b5e43ab2f9a1b57cb26699c3b2d15b5de9694153
[gnulib.git] / ChangeLog
1 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
2
3         unistd: better 'inline'
4         * lib/unistd.c: New file.
5         * lib/unistd.in.h (_GL_UNISTD_INLINE):
6         New macro.  Replace all uses of 'static inline' with it.
7         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
8         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
9         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
10         (Depends-on): Add extern-inline.
11
12         sys_socket: better 'inline'
13         * lib/sys_socket.c: New file.
14         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
15         New macro.  Replace all uses of 'static inline' with it.
16         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
17         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
18         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
19         (Depends-on): Add extern-inline.
20
21         stdio: better 'inline'
22         * lib/stdio.c: New file.
23         * lib/stdio.in.h (_GL_STDIO_INLINE):
24         New macro.  Replace all uses of 'static inline' with it.
25         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
26         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
27         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
28         (Depends-on): Add extern-inline.
29
30         sigaction: better 'inline'
31         * lib/sig-handler.c: New file.
32         * lib/sig-handler.h (SIG_HANDLER_INLINE):
33         New macro.  Replace all uses of 'static inline' with it.
34         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
35         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
36         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
37         (Depends-on): Add extern-inline.
38
39         selinux-h: better 'inline'
40         * lib/se-context.c, lib/se-selinux.c: New files.
41         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
42         * lib/se-context.in.h (SE_CONTEXT_INLINE):
43         New macro.  Replace all uses of 'static inline' with it.
44         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
45         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
46         New macro.  Replace all uses of 'static inline' with it.
47         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
48         * modules/selinux-h (Files, lib_SOURCES):
49         Add lib/se-context.c, lib/se-selinux.c.
50         (Depends-on): Add extern-inline.
51         (configure.ac): Do not require AC_C_INLINE.
52
53         pthread: better 'inline'
54         * lib/pthread.c: New file.
55         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
56         New macro.  Replace all uses of 'static inline' with it.
57         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
58         * m4/pthread.m4 (gl_PTHREAD_CHECK):
59         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
60         * modules/pthread (Files): Add lib/pthread.c.
61         (Depends-on): Add extern-inline.
62
63         math: better 'inline'
64         * lib/math.c: New file.
65         * lib/math.in.h (_GL_MATH_INLINE):
66         New macro.  Replace all uses of 'static inline' with it.
67         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
68         * m4/math_h.m4 (gl_MATH_H):
69         Do not require AC_C_INLINE.
70         * modules/math (Files, lib_SOURCES):
71         Add lib/math.c.
72         (Depends-on): Add extern-inline.
73
74         count-one-bits: better 'inline'
75         * lib/count-one-bits.c: New file.
76         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
77         New macro.  Replace all uses of 'static inline' with it.
78         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
79         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
80         Do not require AC_C_INLINE.
81         * modules/count-one-bits (Files, lib_SOURCES):
82         Add lib/count-one-bits.c.
83         (Depends-on): Add extern-inline.
84
85         count-leading-zeros: better 'inline'
86         * lib/count-leading-zeros.c: New file.
87         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
88         New macro.  Replace all uses of 'static inline' with it.
89         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
90         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
91         Do not require AC_C_INLINE.
92         * modules/count-leading-zeros (Files, lib_SOURCES):
93         Add lib/count-leading-zeros.c.
94         (Depends-on): Add extern-inline.
95
96         bitrotate: better 'inline'
97         * lib/bitrotate.c: New file.
98         * lib/bitrotate.h (BITROTATE_INLINE):
99         New macros.
100         Replace all uses of 'static inline' with them.
101         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
102         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
103         (Depends-on): Add extern-inline.
104         (configure.ac): Do not require AC_C_INLINE.
105
106 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
107
108         maint.mk: avoid gratuitous failure
109         Reported by Stefano Lattarini in
110         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
111         * top/maint.mk (public-submodule-commit): Quote more safely.
112
113 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
114
115         canonicalize, canonicalize-lgpl: support MS-Windows file names
116         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
117         for test cases, which it'd be nice to add at some point.
118         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
119         * lib/canonicalize.c (canonicalize_filename_mode):
120         * lib/canonicalize-lgpl.c (__realpath):
121         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
122         slash is at the beginning of the file name.  Use ISSLASH, instead
123         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
124         the first character with '/'.  Test for
125         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
126         with a drive letter.
127         * lib/canonicalize.c (SLASHES): New macro.
128         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
129
130 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
131
132         fts: introduce FTS_VERBATIM
133         * lib/fts_.h (FTS_VERBATIM): New bit flag.
134         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
135         * lib/fts.c (fts_open): Honor it.
136
137 2012-11-09  Pádraig Brady  <P@draigBrady.com>
138
139         getlogin-tests: allow errno == ENXIO
140         * tests/test-getlogin.c (main): Skip tests if getlogin fails
141         with errno == ENXIO (No controlling tty).
142         getlogin_r-tests: Likewise. Also allow errno == ENOENT
143         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
144         with errno == ENOENT.  This was reported to happen in various
145         situations on GNU/Linux.
146
147 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
148
149         getlogin-tests: allow errno == ENOENT
150         * tests/test-getlogin.c (main): Skip tests if getlogin fails
151         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
152         when running a test in an Emacs shell buffer.
153
154 2012-11-08  Jim Meyering  <jim@meyering.net>
155
156         tests/nap.h: avoid warning about unused variable
157         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
158
159         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
160         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
161         white space before each of the special-cased file names, to avoid
162         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
163         in http://bugs.gnu.org/12830.
164
165 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
166
167         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
168         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
169         fails with errno == EBADF when fd is opened with O_PATH.
170         Reported by Jim Meyering in
171         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
172         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
173         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
174
175 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
176
177         test-utimens: speed up by taking shorter naps
178         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
179         New functions.
180         (nap): Use them, to do a better job of guessing the delay.
181         On Fedora 17 with ext4 atop md atop hard disks, this made
182         test-utimens run 10x faster, because the test napped for
183         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
184         <http://bugs.gnu.org/12820#11>.
185
186 2012-11-07  Jim Meyering  <jim@meyering.net>
187
188         mountlist.c: fix a compilation failure
189         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
190         I introduced while transforming commit v0.0-7683-g613bcb6
191
192 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
193
194         errno: port to LynxOS 178 2.2.2
195         Problem reported by Joel Brobecker in
196         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
197         * doc/posix-headers/errno.texi (errno.h): Document this.
198         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
199         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
200         Supply a string for EILSEQ.
201         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
202
203 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
204
205         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
206         Linux kernel 2.6.39 introduced O_PATH (see
207         <http://lwn.net/Articles/433854/>) and this is a better fallback
208         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
209         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
210         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
211         * lib/fcntl.in.h (O_ACCMODE):
212         * tests/test-fcntl-h.c (main):
213         Do not reject O_ACCMODE merely because it has more than the
214         minimal number of bits, as POSIX allows extensions here.
215
216 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
217
218         mountlist: do not classify a bind-mounted dir entry as "dummy"
219         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
220         the "none"-testing clause.
221         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
222         exception for bind-mounted directories.
223
224 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
225
226         quote: provide a means to escape strings with nul characters
227         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
228         (quote, quote_n): Rename formal arguments for consistency with
229         quotearg.
230
231 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
232
233         test-raise: don't assume 199 is an invalid signal
234         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
235
236         sh-quote-tests: port to Solaris 9
237         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
238         Problem reported by Dagobert Michelsen in
239         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
240
241 2012-10-28  Jim Meyering  <jim@meyering.net>
242
243         maint.mk: rename a new configurable variable
244         * top/maint.mk (_gl_translatable_string_re): Rename from
245         translation-markers: _gl_ prefix to insulate from user Makefile code,
246         and the _re suffix to inform that it's a regular expression.
247
248 2012-10-26  Eric Blake  <eblake@redhat.com>
249
250         maint.mk: let packages tweak sc_po_check pattern
251         * top/maint.mk (sc_po_check): Add translation-markers, to allow
252         finding files with other translation markers.
253
254 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
255
256         euidaccess: speed up 'configure' on GNU hosts
257         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
258         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
259         it's needed only in this case.  Use AC_CHECK_DECLS, not
260         AC_CHECK_DECLS_ONCE.
261         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
262         or AC_REQUIRE for AC_FUNC_GETGROUPS.
263
264         * lib/regexec.c (re_search_internal): Fix grammar in comment.
265
266 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
267
268         fchmodat, fchownat, fstatat: port to non-inlining compilers
269         Problem reported for FreeBSD 9 by Jim Meyering in
270         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
271         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
272         New files, which define FCHMODAT_INLINE etc.
273         * lib/fchmodat.c (FCHMODAT_INLINE):
274         * lib/fchownat.c (FCHOWNAT_INLINE):
275         * lib/fstatat.c (FSTATAT_INLINE):
276         Remove, as chmodat.c etc. now do this.
277         * modules/fchmodat (Files): Add lib/chmodat.c.
278         * modules/fchownat (Files): Add lib/chownat.c.
279         * modules/fstatat (Files): Add lib/statat.c.
280
281 2012-10-15  Jim Meyering  <jim@meyering.net>
282
283         fchmodat.c, fchownat.c: compile-impeding typos
284         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
285         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
286         Introduced in commit v0.0-7636-gd202279.
287
288 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
289
290         fcntl-h: support GNU flags like O_IGNORE_CTTY
291         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
292         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
293         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
294         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
295         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
296         Define to 0 if not already defined.
297         * tests/test-fcntl-h.c: Test these new flags.
298
299 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
300
301         faccessat, etc.: support AT_FDCWD-only use
302         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
303         this function only if its first argument is AT_FDCWD.
304         Emacs wants faccessat for AT_EACCESS but not for any first-arg
305         values other than AT_FDCWD, so it doesn't want all the openat
306         machinery with fchdir etc.
307         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
308         * modules/fstatat, modules/mkdirat, modules/openat (Files):
309         * modules/unlinkat (Files):
310         Remove lib/openat-priv.h, as at-internal supplies this file.
311         Removing this file here allows us to support programs like Emacs
312         that avoid at-internal.
313
314         faccessat: speed up 'configure' on mainstream hosts
315         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
316         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
317         since it's only on unusual platforms that we need to check for
318         'access', and it's better not to slow 'configure' down on all
319         platforms.
320
321         faccessat: port to Solaris 10
322         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
323         Needed on Solaris 10, which doesn't have AT_EACCESS,
324         so we need the Gnulib fcntl.h, which defines it.
325
326 2012-10-14  Pádraig Brady  <P@draigBrady.com>
327         canonicalize: fix C89 compilation
328         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
329         declarations so C89 is supported.  Also remove the comment
330         referencing memorty allocation as the suggested feature could
331         not be implemented as suggested.
332         Reported by Michael Goffioul.
333
334 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
335
336         group-member: omit unnecessary dependencies
337         This is for Emacs, which has its own allocator and where we
338         don't want to use xalloc.
339         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
340         since we no longer use xmalloc.  Do not include stdbool.h, since
341         the changes below happen to remove the only use of bool.
342         (GROUPBUF_SIZE): New constant.
343         (struct group_info): Remove n_groups member.  Add groupbuf member.
344         This lets us get the groups without using malloc, usually.
345         (free_group_info, get_group_info): Adjust to this.
346         (get_group_info): Return the number of groups found, or -1 on error.
347         Use plain malloc not xmalloc, and treat its failure as if there
348         are no groups, as the user already loses in case of error.
349         (group_member): Simplify, based on changes to get_group_info.
350         * modules/group-member (Depends-on): Remove dependencies on
351         xalloc and stdbool.  Add dependency on xalloc-oversized.
352
353 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
354
355         gethrxtime: port to C++
356         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
357
358 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
359
360         ptsname: fix macro-name typo
361         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
362
363 2012-10-03  Simon Josefsson  <simon@josefsson.org>
364
365         inttostr: Relax license.
366         * modules/inttostr (License): Change from LGPL to LGPLv2+.
367
368 2012-10-03  Eric Blake  <eblake@redhat.com>
369
370         ptsname_r: support ptys returned by FreeBSD posix_openpt
371         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
372         lives in /dev/pts/.
373
374 2012-10-02  Eric Blake  <eblake@redhat.com>
375
376         pselect: reject invalid file descriptors
377         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
378         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
379         * modules/pselect (Depends-on): Add dup2.
380         * doc/posix-functions/pselect.texi (pselect): Document this.
381
382         select: reject invalid file descriptors
383         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
384         * lib/select.c (rpl_select) [!win32]: Work around it.
385         * modules/select (Depends-on): Add dup2.
386         * doc/posix-functions/select.texi (select): Document this.
387
388         select: enhance test
389         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
390         New functions.
391         (test_function): Enhance test.
392         (do_select_bad_fd): Avoid any stale errno values.
393
394         ptsname: reject invalid file descriptors
395         http://www.austingroupbugs.net/view.php?id=503
396         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
397         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
398         * modules/stdlib (Makefile.am): Replace witness.
399         * lib/stdlib.in.h (ptsname): Allow for replacement.
400         * modules/ptsname (configure.ac): Trigger replacement.
401         * doc/posix-functions/ptsname.texi (ptsname): Document this.
402
403 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
404
405         hash-pjw-bare: new module
406         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
407         * lib/hash-pjw-bare.h: Likewise.
408         * modules/hash-pjw-bare: New file.
409         * MODULES.html.sh (Misc): Add it.
410
411 2012-10-02  Eric Blake  <eblake@redhat.com>
412
413         manywarnings: cater to more gcc infelicities
414         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
415         -Wuninitialized without -O.
416
417 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
418
419         select, poll tests: Make setsockopt invocation effective.
420         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
421         the bind() call.
422         * tests/test-select.h (open_server_socket): Likewise.
423
424 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
425
426         sockets, sys_stat: restore AC_C_INLINE
427         This undoes the 2012-09-22 patch.
428         * m4/sockets.m4 (gl_SOCKETS):
429         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
430         Restore AC_C_INLINE, since MSVC requires __inline or _inline
431         and does not support plain 'inline'.  Reported by Bruno Haible in
432         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
433
434 2012-09-30  Bruno Haible  <bruno@clisp.org>
435
436         localeconv tests: Avoid test failure on OpenIndiana.
437         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
438         skip the 'grouping' and 'mon_grouping' tests.
439         Reported by Jim Meyering.
440
441 2012-09-30  Bruno Haible  <bruno@clisp.org>
442
443         havelib: Follow libtool developments.
444         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
445         Suggested by Simon Josefsson.
446
447 2012-09-29  Jim Meyering  <meyering@redhat.com>
448
449         fstatat.c: fix a compile-impeding typo
450         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
451         Introduced in commit v0.0-7636-gd202279.
452         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
453
454 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
455
456         extern-inline: provide a -Wundef safe config.h
457         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
458         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
459         to produce a -Wundef warning free config.h.
460
461 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
462
463         hash-pjw: relax license to LGPLv2+
464         * modules/hash-pjw (License): Relax, with consent of author.
465
466 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
467
468         maint.mk: fix strict vs. lazy variable issues with RELEASE
469         * top/maint.mk (_equal): New function.
470         (member_check): Strip the result to avoid spurious spaces.
471         (url_dir_list): Do not use ifeq, which is strict, as it will
472         require RELEASE_TYPE to be defined.
473         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
474         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
475         (announcement_Cc_alpha,announcement_mail_headers_alpha)
476         (announcement_Cc_beta,announcement_mail_headers_beta)
477         (announcement_Cc_stable,announcement_mail_headers_stable): these.
478         (release): Do not depend on $(release-type), as it forces its
479         evaluation.  Bounce to it.
480
481 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
482
483         maint.mk: formatting changes
484         * top/maint.mk: Indent bodies of if's.
485
486 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
487
488         maint.mk: factor the validation of RELEASE_TYPE
489         With help from Jim Meyering.
490         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
491         * top/maint.mk (_empty, _sp): Move their definition earlier.
492         (member-check, release-type): New.
493         Use the latter instead of $(RELEASE_TYPE).
494         Remove now useless local checks.
495
496 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
497
498         maint.mk: provide "make upload" to ease uploading
499         See
500         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
501         Do not depend simply on the current $(VERSION), as there may have been
502         new commits since the tarball generation.  Rather, rely on $(RELEASE),
503         as "make release-commit" already does.
504
505         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
506         "make TYPE".
507
508         * top/maint.mk (upload_command, upload, release): New.
509         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
510         (VERSION): first word of $(RELEASE) is always right.
511         (emit_upload_commands): Adjust.
512         * top/README-release: Update.
513
514 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
515
516         maint.mk: silent rules
517         With help from Stefano Lattarini.
518         * top/maint.mk (writable-files): Use $(AM_V_GEN).
519         (announcement): Use $(AM_V_at).
520
521 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
522
523         localename: port gl_locale_name_thread_unsafe to FreeBSD
524         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
525         and use the simpler FreeBSD implementation on Mac OS X as well.
526         Original idea suggested by Ed Maste in
527         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
528
529 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
530
531         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
532         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
533         * lib/mbuiter.c, lib/xsize.c: New files.
534         * lib/binary-io.h (BINARY_IO_INLINE):
535         * lib/eealloc.h (EEALLOC_INLINE):
536         * lib/mbfile.h (MBFILE_INLINE):
537         * lib/mbiter.h (MBITER_INLINE):
538         * lib/mbuiter.h (MBUITER_INLINE):
539         * lib/xsize.h (XSIZE_INLINE):
540         New macros.
541         Replace all uses of 'static inline' with them.
542         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
543         * m4/eealloc.m4 (gl_EEALLOC):
544         * m4/mbfile.m4 (gl_MBFILE):
545         * m4/mbiter.m4 (gl_MBITER):
546         * m4/xsize.m4 (gl_XSIZE):
547         Do not require AC_C_INLINE.
548         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
549         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
550         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
551         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
552         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
553         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
554         * modules/binary-io, modules/eealloc, modules/mbfile:
555         * modules/mbiter, modules/mbuiter:
556         (Depends-on): Add extern-inline.
557
558         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
559         * lib/pipe-filter-aux.c: New file.
560         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
561         Replace all uses of 'static inline' with it.
562         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
563         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
564         (filter_retcode): No real need for inline here.
565         * modules/pipe-filter-gi, modules/pipe-filter-ii:
566         (Files): Add lib/pipe-filter-aux.c.
567         (Depends-on): Add extern-inline.
568         (configure.ac): Do not require AC_C_INLINE.
569         (lib_SOURCES): Add pipe-filter-aux.c.
570
571         fdutimensat: omit unnecessary AC_C_INLINE
572         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
573
574         fchmodat, fchownat, fstatat: use extern-inline
575         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
576         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
577         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
578         New macros.
579         * lib/openat.h:
580         Replace all uses of 'static inline' with them.
581         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
582         * modules/fchmodat, modules/fchownat, modules/fstatat:
583         * modules/openat-h:
584         (Depends-on):
585         Add extern-inline.
586         (configure.ac): Remove AC_C_INLINE.
587
588         acl, mbchar, priv-set: use extern-inline
589         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
590         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
591         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
592         New macros.
593         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
594         Replace all uses of 'static inline' with it.
595         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
596         * m4/acl.m4 (gl_FUNC_ACL):
597         * m4/mbchar.m4 (gl_MBCHAR):
598         * m4/priv-set.m4 (gl_PRIV_SET):
599         Remove AC_C_INLINE, since 'inline' is no longer used directly.
600         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
601         Add extern-inline.
602
603         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
604         * m4/sockets.m4 (gl_SOCKETS):
605         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
606         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
607         environments where it's already guaranteed to work, so we needn't
608         check for it at 'configure'-time.
609
610         tls-tests: omit unnecessary 'inline'
611         * tests/test-tls.c (perhaps_yield): No longer inline.
612         Simplicity and portability trump efficiency in test cases.
613
614         utimens-tests: avoid unnecessary 'inline'
615         * modules/fdutimensat-tests (configure.ac):
616         * modules/futimens-tests (configure.ac):
617         * modules/utimens-tests (configure.ac):
618         * modules/utimensat-tests (configure.ac):
619         Remove AC_C_INLINE.
620         * tests/test-utimens-common.h (ctime_compare):
621         No longer inline.  Simplicity and portability trump efficiency here.
622
623         misc: don't limit commentary to inline functions
624         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
625         * lib/xalloc-oversized.h, lib/xsize.h:
626         Contrast macros to functions in general, not just to inline functions,
627         when the commentary does not apply only to inline functions.
628
629 2012-09-20  Jim Meyering  <meyering@redhat.com>
630
631         non-recursive-gnulib-prefix-hack: new module
632         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
633         the file that originated in Bison.
634         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
635         largely copied from a snippet that resided in bison's configure.ac.
636         * modules/non-recursive-gnulib-prefix-hack: New file.
637         * MODULES.html.sh (Support for maintaining and releasing projects):
638         Add it.
639
640 2012-09-18  Jim Meyering  <meyering@redhat.com>
641
642         maint.mk: generalize _gl_tight_scope for non-recursive make
643         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
644         that *.h would describe additional .h files in the directory
645         specified by $(_gl_TS_dir).  I.e., add this...
646         (_gl_TS_other_headers): New variable.
647
648         maint.mk: exempt trailing blanks found in "binary" files
649         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
650         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
651         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
652
653 2012-09-17  Jim Meyering  <meyering@redhat.com>
654
655         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
656         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
657         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
658         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
659
660 2012-09-17  Jim Meyering  <meyering@redhat.com>
661
662         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
663         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
664         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
665         It is not in the same category as "exit (0)" or "exit (1)", and
666         besides, I know of no symbolic name for that 77.  Reported by
667         Richard W.M. Jones in
668         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
669
670 2012-09-17  Jim Meyering  <meyering@redhat.com>
671
672         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
673         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
674         all uses of #define, not just those that start in column 1.
675         Richard W.M. Jones reported a false positive in
676         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
677
678 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
679
680         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
681         * lib/localcharset.c (locale_charset) [DARWIN7]:
682         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
683         as these two values are incompatible.  Problem reported by Max Horn.
684         For more discussion, please see
685         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
686
687         doc: document sticky-EOF issue
688         * doc/posix-functions/fgetc.texi (fgetc):
689         * doc/posix-functions/fgets.texi (fgets):
690         * doc/posix-functions/fread.texi (fread):
691         * doc/posix-functions/fscanf.texi (fscanf):
692         * doc/posix-functions/getc.texi (getc):
693         * doc/posix-functions/getchar.texi (getchar):
694         * doc/posix-functions/scanf.texi (scanf):
695         Mention that glibc and default Solaris do not conform to
696         C99 and POSIX-2001 or later, with respect to how getchar
697         etc. behave when feof reports nonzero.
698
699 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
700
701         poll: fix poll(0, NULL, msec)
702         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
703         but nfd is 0.  In that case poll should behave like select.
704
705 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
706             Paolo Bonzini <bonzini@gnu.org>
707
708         poll: fix for systems that can't recv() on a non-socket
709         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
710         is readable.  In this case POLLHUP will not be supported.
711         * doc/posix-functions/poll.texi: Document this.
712
713 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
714
715         poll/select: document portability problems not fixed by Gnulib.
716         * doc/posix-functions/poll.texi: poll does not work well on
717         pipes under Windows.  It has the same limitations as select on
718         BeOS.
719         * doc/posix-functions/select.texi: select does not work well
720         on pipes under Windows.
721
722 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
723
724         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
725         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
726         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
727         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
728
729 2012-09-06  Eric Blake  <eblake@redhat.com>
730
731         net_if: give more details about the bug being fixed
732         * doc/posix-headers/net_if.texi: Add clarification.
733
734 2012-09-05  Eric Blake  <eblake@redhat.com>
735
736         net_if: new module
737         * modules/net_if: New module, borrowing ideas from netinet_in.
738         * m4/net_if_h.m4: New file.
739         * lib/net_if.in.h: Likewise.
740         * doc/posix-headers/net_if.texi (net/if.h): Document it.
741         * MODULES.html.sh (lacking POSIX:2008): Likewise.
742         * tests/test-net_if.c: Make function checks conditional.
743         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
744
745 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
746
747         readutmp: fix non-portable UT_PID use
748         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
749         Use `UT_PID (u) > 0' as absolute condition.
750
751 2012-09-04  Jim Meyering  <meyering@redhat.com>
752
753         fts: reduce two or more trailing spaces to just one, usually
754         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
755         or more slashes, trim all but the final one.  But if a name consists
756         solely of two slashes, don't modify it.  If it consists solely of
757         three or more slashes, strip all but one.
758
759         This is part of the solution to a minor problem with rm:
760         it would print a bogus ELOOP diagnostic when failing to remove
761         the slash-decorated name of a symlink-to-directory:
762
763             $ mkdir d && ln -s d s && env rm -r s/
764             rm: cannot remove 's': Too many levels of symbolic links
765
766         With the change below and a trivial don't-trim-trailing-slashes
767         adjustment to remove.c, it does this:
768
769             $ env rm -r s/
770             rm: cannot remove 's/': Not a directory
771
772         Improved by: Eric Blake
773
774         fts: when there is no risk of overlap, use memcpy, not memmove
775         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
776
777 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
778
779         stdbool: be more compatible with mixed C/C++ compiles
780         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
781         Define to bool, true, false, respectively, as GCC's builtin
782         stdbool.h does.  Problem reported by Michael Goffioul in
783         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
784
785 2012-08-28  Jim Meyering  <meyering@redhat.com>
786
787         revert last change: it was not needed
788         * tests/test-vc-list-files-git.sh: There's already a test for
789         a working git, just below.
790
791 2012-08-28  Jim Meyering  <meyering@redhat.com>
792
793         tests: test-vc-list-files-git.sh: skip if git is not available
794         * tests/test-vc-list-files-git.sh: Skip this test when git is
795         not available.
796
797 2012-08-26  Bruno Haible  <bruno@clisp.org>
798
799         gnulib-tool: Remove no-op option --no-changelog.
800         * gnulib-tool (func_usage): Don't mention --no-changelog.
801         (do_changelog): Remove variable.
802         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
803
804 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
805
806         doc: remove fdl-1.2.texi
807         It is no longer used or maintained, and its use of @acronym
808         is problematic.  See the thread containing
809         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
810         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
811         * doc/old-licenses/fdl-1.2.texi: Remove.
812
813         execinfo: port to FreeBSD
814         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
815         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
816         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
817         * modules/execinfo (Link): Add $(LIB_EXECINFO).
818
819 2012-08-23  Jim Meyering  <meyering@redhat.com>
820
821         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
822         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
823         to placate gcc's -Wold-style-declaration.
824
825 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
826
827         doc: do not use @acronym
828         * doc/inet_ntoa.texi (inet_ntoa):
829         * doc/parse-datetime.texi (Seconds since the Epoch)
830         (Specifying time zone rules):
831         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
832         Don't use @acronym.  Problem reported by John Darlington in
833         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
834
835 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
836
837         stdnoreturn: port to newer GCCs
838         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
839         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
840         Problem reported by Jim Meyering in
841         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
842         Also, rename the 'test' function to a void a clash with the
843         already-supplied 'main' function; this fixes a bug that incorrectly
844         rejected GCC 4.7.1's <stdnoreturn.h>.
845         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
846         Document GCC problem.
847
848 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
849
850         pipe-filter: fix comment typo
851         * lib/pipe-filter.h: Mention correct function.
852
853 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
854
855         execinfo: new module
856         This is for Emacs.  Currently, it provides a no-effect stub
857         on all platforms where it does not already work.
858         It already works on glibc-based systems, and on Solaris 11.
859         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
860         New files.
861         * doc/glibc-headers/execinfo.texi (execinfo.h):
862         * MODULES.html.sh (Misc): Document it.
863
864 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
865
866         extern-inline: support old GCC 'inline'
867         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
868         if available.  This applies to GCC versions 2.7 through 4.2, or
869         when newer GCC is using -fgnu89-inline.  The goal is to address
870         some of the performance issues mentioned by Bruno Haible in
871         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
872
873 2012-08-20  Eric Blake  <eblake@redhat.com>
874
875         maint.mk: avoid redundant file name in message
876         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
877         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
878         (sc_makefile_path_separator_check): Remove bogus $(ME).
879
880 2012-08-20  Mike Frysinger <vapier@gentoo.org>
881
882         timer-time: fix link order when static linking on glibc
883         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
884         _after_ -lrt so that it's significant.
885
886 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
887
888         timespec: omit unnecessary AC_C_INLINE
889         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
890
891         stat-time: omit unnecessary AC_C_INLINE
892         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
893         Do not require AC_C_INLINE.
894
895         ignore-value: omit unnecessary AC_C_INLINE
896         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
897
898         sys_select: avoid 'static inline'
899         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
900
901         mktime: avoid 'static inline'
902         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
903         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
904
905 2012-08-19  Bruno Haible  <bruno@clisp.org>
906
907         gnulib-tool: Improve coding style.
908         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
909         func_emit_lib_Makefile_am.
910         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
911
912 2012-08-19  Bruno Haible  <bruno@clisp.org>
913
914         gnulib-tool: Fix indentation.
915         * gnulib-tool (func_import): Fix indentation.
916
917 2012-08-19  Bruno Haible  <bruno@clisp.org>
918
919         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
920         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
921         on the list of removed files.
922
923 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
924
925         test-parse-datetime: avoid glibc leap-second glitch
926         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
927         with the 2012 rules.  Problem reported by Bruce Dubbs in
928         <http://bugs.gnu.org/12206>.
929
930 2012-08-14  Bruno Haible  <bruno@clisp.org>
931
932         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
933         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
934         from argument.
935         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
936
937 2012-08-14  Eric Blake  <eblake@redhat.com>
938
939         ldexp: relax license
940         * modules/ldexp (License): Trivial relax, since the module only
941         provides a permissively licensed m4 file.
942
943 2012-08-13  Bruno Haible  <bruno@clisp.org>
944
945         gnulib-tool: Fix persistence of --witness-c-macro option.
946         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
947         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
948
949 2012-08-11  Eric Blake  <eblake@redhat.com>
950
951         count-leading-zeros: use a lookup table on non-gcc compilers
952         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
953         alternate implementation, suggested by Jim Meyering.
954
955 2012-08-10  Eric Blake  <eblake@redhat.com>
956
957         count-leading-zeros: new module
958         * modules/count-leading-zeros: New module.
959         * m4/count-leading-zeros.m4: New file.
960         * lib/count-leading-zeros.h: Likewise.
961         * modules/count-leading-zeros-tests: New test.
962         * tests/test-count-leading-zeros.c: New file.
963         * MODULES.html.sh (Integer arithmetic functions): Document it.
964
965 2012-08-07  Simon Josefsson  <simon@josefsson.org>
966             Jim Meyering  <meyering@redhat.com>
967
968         maintainer-makefile: Fix syntax error with dash.
969         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
970         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
971
972 2012-08-05  Jim Meyering  <meyering@redhat.com>
973
974         extern-inline: also ignore -Wmissing-declarations
975         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
976         required with gcc-4.8.0-to-be.
977
978         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
979         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
980         for /error ?([^,]*)/.  This avoids false-positives for strings like
981         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
982
983 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
984
985         gnumakefile: better interaction with Automake-NG
986         * modules/gnumakefile [Makefile.am]: The makefiles generated by
987         Automake-NG always contain a definition of VPATH, even in non-VPATH
988         builds (its value being simply '.' in that case).  So, in the
989         'clean-GNUmakefile' rule, to determine whether running under a
990         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
991         '$(VPATH)' expands to the empty string.
992
993 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
994
995         base64: Use extern C scope in header file, for C++.
996         * lib/base64.h: Add C++ namespace protection.
997
998 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
999
1000         stat-time, timespec, u64: support naive out-of-dir builds
1001         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1002         Use '#include "foo.h"', not '#include <foo.h>', when including
1003         one's own interface.  This works better when configuring with
1004         out-of-directory builds, since packages need not add an
1005         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1006
1007 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1008
1009         utimens: use extern-inline
1010         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1011         * lib/utimens.h: Add copyright notice, since this is now large enough
1012         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1013         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1014         * modules/utimens (Depends-on): Add extern-inline.
1015
1016         u64: use extern-inline
1017         * lib/u64.c: New file.
1018         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1019         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1020         * modules/u64 (Files): Add lib/u64.c.
1021         (Depends-on): Add extern-inline.
1022         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1023         does that now.
1024         (lib_SOURCES): Add u64.c.
1025
1026         timespec: use extern-inline
1027         * lib/timespec.c: New file.
1028         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1029         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1030         * modules/timespec (Files): Add lib/timespec.c.
1031         (Depends-on): Add extern-inline.
1032         (lib_SOURCES): Add timespec.c.
1033
1034         stat-time: use extern-inline
1035         * lib/stat-time.c: New file.
1036         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1037         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1038         * modules/stat-time (Files): Add lib/stat-time.c.
1039         (Depends-on): Add extern-inline.
1040         (lib_SOURCES): Add stat-time.c.
1041
1042         extern-inline: new module
1043         * modules/extern-inline, m4/extern-inline.m4: New files.
1044         This is for better support of 'extern inline' a la ISO C99,
1045         with a portable alternative on compilers that do not support
1046         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1047         of the Emacs executable, when compiled with debugging disabled,
1048         which is a typical way that Emacs is built while developing.
1049
1050 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1051
1052         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1053         * build-aux/do-release-commit-and-tag: Move variable definitions
1054         together.
1055         ($branch): Instead of defaulting to "master", default to the current
1056         branch (as gnu-web-doc-update does).
1057         (help): Display the current values of the option arguments.
1058         * top/maint.mk (release-commit): New.
1059         * top/README-release: Simplify the corresponding step.
1060
1061 2012-07-30  Eric Blake  <eblake@redhat.com>
1062
1063         passfd: fix comment on recvfd
1064         * lib/passfd.c (recvfd): Fix comment.
1065         Reported by Jann Horn <jannhorn@googlemail.com>.
1066
1067 2012-07-30  Jim Meyering  <meyering@redhat.com>
1068
1069         maint.mk: avoid a sub-shell
1070         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1071
1072 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1073
1074         maint.mk: use silent-rules support from Automake
1075         * top/maint.mk (news-check, vc-diff-check, announcement)
1076         (no-submodule-changes, alpha beta stable, release-prep)
1077         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1078
1079 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1080
1081         maint.mk: provide a web-manual-update target
1082         * top/maint.mk: here.
1083         * top/README-release: Use it to simplify the web manual update step.
1084
1085 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1086
1087         README-release: shorten the circuit to post a news
1088         * top/README-release: Point directly to the news submission form.
1089
1090 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1091
1092         gnu-web-doc-update: fix --help
1093         * build-aux/gnu-web-doc-update: The information "top level" was written
1094         twice.
1095
1096 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1097
1098         maint.mk: absolute VPATH issue
1099         * top/maint.mk (release-prep): Help Git find .git/.
1100         From Jim Meyering.
1101
1102 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1103
1104         gitlog-to-changelog: fix previous change
1105         * build-aux/gitlog-to-changelog: Fix condition.
1106         Add missing ";".
1107
1108 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1109
1110         gitlog-to-changelog: don't expect .git to be in $srcdir
1111         Reported by Bruno Haible.
1112         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1113         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1114         Use it.
1115
1116 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1117
1118         maint.mk: absolute VPATH build fix
1119         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1120         $(srcdir) is not a parent of $(builddir).
1121
1122 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1123
1124         clean-temp: Fix memory leak.
1125         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1126         'files' members of tmpdir.
1127
1128 2012-07-27  Jim Meyering  <meyering@redhat.com>
1129
1130         maint.mk: new rule: refresh-gnulib-patches
1131         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1132         Use this rule to refresh them.
1133         * top/maint.mk (refresh-gnulib-patches): New rule.
1134
1135 2012-07-24  Bruno Haible  <bruno@clisp.org>
1136
1137         gnulib-tool: Fix handling of inctests variable.
1138         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1139         Reported by Nick Bowler <nbowler@elliptictech.com>.
1140
1141 2012-07-22  Bruno Haible  <bruno@clisp.org>
1142
1143         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1144         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1145         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1146         Remove exemption for getpass.h.
1147         Suggested by Eric Blake.
1148
1149 2012-07-20  Eric Blake  <eblake@redhat.com>
1150
1151         verify: document conflict with -Wnested-externs
1152         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1153
1154         maint.mk: forbid exit(-1)
1155         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1156
1157 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1158
1159         fsusage: port back to Solaris
1160         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1161         error (fsd not declared) on Solaris 10.  Reported privately by
1162         Andrew Borodin.
1163
1164 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1165
1166         gnu-web-doc-update: fix error messages
1167         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1168
1169         gnu-web-doc-update: check the requirements.
1170         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1171         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1172         * build-aux/bootstrap (find_tool): Comment change.
1173
1174 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1175
1176         maint.mk: minor simplication.
1177         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1178         for default values.
1179
1180 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1181
1182         gitlog-to-changelog: VPATH build issues
1183         If builddir is not a subdirectory of srcdir, running git from it will
1184         fail.
1185         * build-aux/gitlog-to-changelog (--srcdir): New option.
1186
1187 2012-07-15  Bruno Haible  <bruno@clisp.org>
1188
1189         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1190         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1191         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1192         Remove exemption for fpending.h.
1193         Suggested by Eric Blake.
1194
1195 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1196
1197         pthread_sigmask: fix bug on FreeBSD 9
1198         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1199         Include string.h.
1200         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1201         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1202         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1203         but pthread_sigmask (1729, NULL, NULL) returns zero.
1204         See <http://bugs.gnu.org/11884>.
1205         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1206         by inspecting whether the main call changed the old mask.
1207
1208 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1209
1210         README-release: make it more legible
1211         * top/README-release: Improve typography slightly.
1212
1213 2012-07-15  Jim Meyering  <meyering@redhat.com>
1214
1215         maint: require that each sc_... command start with "@"
1216         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1217         "make sc_maint" helps us avoid this nit.
1218
1219 2012-07-15  Jim Meyering  <meyering@redhat.com>
1220
1221         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1222         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1223
1224 2012-07-13  Eric Blake  <eblake@redhat.com>
1225
1226         maint.mk: new syntax check for HAVE_DECL checks
1227         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1228         * cfg.mk
1229         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1230         Exempt some false positives.
1231         Based on a report by Karel Zak.
1232
1233         argp: make HAVE_DECL usage consistent
1234         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1235         macros, not whether they are defined.
1236         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1237         convention with other declaration checks.
1238         Reported by Karel Zak, with suggestions from Paul Eggert.
1239
1240         stat-time: relax license to LGPLv2+
1241         * modules/stat-time (License): Relax, with consent of all authors.
1242
1243         strndup: fix m4 usage error
1244         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1245         defined, to either 0 or 1.
1246         Reported by Karel Zak.
1247
1248 2012-07-11  Jim Meyering  <meyering@redhat.com>
1249
1250         maint: enable the sc_avoid_if_before_free syntax-check rule
1251         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1252         (if_before_free_offenders_): Define.
1253         (if_before_free_basename_re_): Define.
1254         Exempt current files with useless if-before-free.
1255
1256 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1257
1258         gettext: do not assume '#define ... defined ...' behavior
1259         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1260         Do not use '#define FOO ... defined BAR ...', as the C standard says
1261         it's not portable to expect that this works after macro expansion.
1262         Problem reported for gzip by Steven M. Schweda in
1263         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1264
1265 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1266
1267         getloadavg: clean out old Emacs and Autoconf cruft
1268         See Glenn Morris in <http://bugs.gnu.org/11905>.
1269         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1270         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1271         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1272         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1273
1274 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1275
1276         bootstrap: let warn be like tests/init.sh's warn_
1277         Reported by Jim Meyering.
1278         * build-aux/bootstrap (warn): Remove, replaced by...
1279         (warnf_, warn_): these.
1280         Adjust callers.
1281         Shorten messages that no longer fit in 80 columns.
1282
1283 2012-07-09  Bruno Haible  <bruno@clisp.org>
1284
1285         getopt: Simplify after Emacs changed.
1286         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1287         (gl_GETOPT_IFELSE): Remove macro.
1288
1289 2012-07-09  Jim Meyering  <meyering@redhat.com>
1290
1291         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1292         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1293
1294         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1295         Bugs in both of those conspired to make the
1296         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1297         _sc_search_regexp's handling of non-empty $in_files would filter
1298         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1299         choice of in_files value meant there would be no match in most
1300         projects, due to the presence of two or more Makefile.in files.
1301         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1302         Fix a bug in how a non-empty $$in_files was processed:
1303         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1304         in spite of the name, it's a regexp, not a list of file names.
1305
1306 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1307
1308         getloadavg, getopt: fix commentary re configure.in
1309         Autoconf is deprecating the name 'configure.in', so change it to
1310         to the new name 'configure.ac' in a couple of places.
1311         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1312         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1313         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1314         Emacs has renamed it to configure.ac, and it no longer refers
1315         to these macros anyway.
1316
1317         timespec: mark functions with const attributes
1318         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1319         Mark with _GL_ATTRIBUTE_CONST.
1320
1321 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1322
1323         canonicalize[-lgpl]: handle "guessing" values when cross-building
1324         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1325         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1326         matches "*yes" instead of just "yes".  Regression introduced in commit
1327         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1328
1329 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1330             Bruno Haible  <bruno@clisp.org>
1331
1332         canonicalize: make the right guess when cross-compiling to GNU
1333         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1334         determine whether cross-compiling to glibc systems, so as to
1335         include GNU/Hurd.
1336
1337 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1338
1339         timespec-sub: avoid duplicate include
1340         * lib/timespec-sub.c: Do not include <config.h> twice.
1341         Reported by Juanma Barranquero.
1342
1343 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1344
1345         bootstrap: use a more consistent error reporting scheme
1346         * build-aux/bootstrap (warn, die): New.
1347         Use them.
1348
1349 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1350
1351         sys_time: allow too-wide tv_sec
1352         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1353         timeval even if tv_sec is wider than time_t.  This allows
1354         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1355         as without this patch gnulib replaces struct timeval
1356         and OpenBSD futimes therefore has a type mismatch.
1357         * doc/posix-headers/sys_time.texi: Mention this.
1358
1359         pthread: check for both pthread_create and pthread_join
1360         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1361         alter the check so that it tests for both pthread_create and
1362         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1363         Suggested by Bruno Haible and Richard Yao in
1364         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1365
1366         parse-datetime: doc tuneup
1367         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1368         spacing issues.
1369
1370 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1371
1372         do-release-commit-and-tag: fix the previous commit
1373         * build-aux/do-release-commit-and-tag: Actually the test was right,
1374         but the comment and the error message were misleading.
1375         Fix comment, and improve error message.
1376         Perform check first, so that NEWS is not modified uselessly.
1377
1378         do-release-commit-and-tag: fix typo
1379         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1380         _not_ start with a stub.
1381
1382 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1383
1384         pthread: check for pthread_create, not pthread_join
1385         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1386         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1387         pthread_join in libc.  I hope this removes the need for all the
1388         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1389         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1390
1391 2012-07-04  Jim Meyering  <meyering@redhat.com>
1392
1393         parse-datetime: fix failure to diagnose invalid input
1394         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1395         rather than diagnosing the invalid input.  Now it reports this:
1396         date: invalid date '\260'
1397         * lib/parse-datetime.y (to_uchar): Define.
1398         (yylex): Don't sign-extend "other" bytes.
1399         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1400         Thanks to Bruno Haible for the patch to this file.
1401         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1402         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1403
1404 2012-07-03  Jim Meyering  <meyering@redhat.com>
1405
1406         bootstrap: do not require now-removed build-aux/missing
1407         Now that build-aux/missing is, er, missing, bootstrap would
1408         silently fail.
1409         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1410         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1411         no longer part of gnulib.
1412         Diagnose the failure.
1413
1414 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1415
1416         alloca: add support for HP NonStop TNS/E native
1417         * lib/alloca.in.h (alloca): Support the new host.
1418         From a suggestion by Joachim Schmitz in
1419         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1420
1421 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1422
1423         fsusage: remove code not needed on non GNU/Linux systems.
1424
1425         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1426         Don't include headers no longer needed in this case.
1427         * lib/fsusage.c [STAT_STATVFS &&
1428         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1429         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1430
1431 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1432
1433         fsusage: include files needed for glibc 2.6 fallback
1434         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1435         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1436         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1437         Problem reported by Ludovic Courtès in
1438         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1439
1440         fsusage: avoid needless check on GNU/Linux
1441         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1442         on GNU/Linux systems, since it can't possibly work.
1443
1444 2012-07-01  Bruno Haible  <bruno@clisp.org>
1445
1446         log: Fix an autoconf >= 2.64 warning.
1447         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1448         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1449
1450 2012-06-28  Bruno Haible  <bruno@clisp.org>
1451
1452         log10f: Fix possible configuration problem.
1453         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1454         $LOGF_LIBM.
1455         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1456
1457 2012-06-28  Bruno Haible  <bruno@clisp.org>
1458
1459         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1460         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1461         not gl_cv_func_unlink_works.
1462         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1463
1464 2012-06-27  Eric Blake  <eblake@redhat.com>
1465
1466         config: drop scripts that automake says are not independent
1467         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1468         * build-aux/elisp-comp: Delete.
1469         * build-aux/missing: Likewise.
1470         * build-aux/ylwrap: Likewise.
1471         * modules/elisp-comp: Likewise.
1472         * MODULES.html.sh: Drop mention of elisp-comp.
1473         * NEWS: Mention this.
1474
1475 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1476
1477         root-uid: new module
1478         This is for portability to Tandem's NonStop Kernel.
1479         * lib/root-uid.h, modules/root-uid: New files.
1480         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1481         * lib/write-any-file.c, tests/test-sethostname2.c:
1482         Include "root-uid.h".
1483         * lib/euidaccess.c (euidaccess):
1484         * lib/pt_chown.c (main):
1485         * lib/unlinkdir.c (cannot_unlink_dir):
1486         * lib/write-any-file.c (can_write_any_file):
1487         * m4/mknod.m4 (gl_FUNC_MKNOD):
1488         * tests/test-sethostname2.c (geteuid, main):
1489         Don't assume ROOT_UID == 0.
1490         * modules/euidaccess (Depends-on):
1491         * modules/pt_chown (Depends-on):
1492         * modules/sethostname-tests (Depends-on):
1493         * modules/unlinkdir (Depends-on):
1494         * modules/write-any-file (Depends-on):
1495         Add root-uid.
1496
1497         regex: use locale-independent comparison for codeset name
1498         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1499         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1500         for codeset name.
1501         * lib/regex_internal.h: Do not include <strings.h>, since we
1502         no longer use strcasecmp.
1503         * modules/regex (Depends-on): Remove strcase.
1504
1505 2012-06-23  Bruno Haible  <bruno@clisp.org>
1506
1507         getopt-posix: No longer guarantee that option processing is resettable.
1508         * doc/posix-functions/getopt.texi: Drop description of problem with
1509         internal state. Fix info about mingw and msvc9.
1510         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
1511         option processing by getopt(). Run three test programs instead of one.
1512         Simplify cross-compilation guess.
1513         * NEWS: Mention the change.
1514         Reported by Rich Felker <dalias@aerifal.cx>.
1515
1516 2012-06-26  Bruno Haible  <bruno@clisp.org>
1517
1518         argp, regex: Ensure strcasecmp gets declared.
1519         * lib/argp-help.c: Include <strings.h>.
1520         * lib/regex_internal.h: Likewise.
1521         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
1522
1523 2012-06-24  Bruno Haible  <bruno@clisp.org>
1524
1525         ptsname_r: Make it consistent with ptsname on AIX.
1526         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
1527         implementation as for OSF/1.
1528         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
1529         a pty master.
1530
1531         ptsname_r: Make it consistent with ptsname on OSF/1.
1532         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1533         OSF/1.
1534
1535 2012-06-24  Bruno Haible  <bruno@clisp.org>
1536
1537         ttyname_r: Fix result on OSF/1, Solaris.
1538         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
1539
1540 2012-06-24  Bruno Haible  <bruno@clisp.org>
1541
1542         ptsname_r: Add support for Solaris.
1543         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
1544         Solaris.
1545
1546         ptsname_r: Fix test failure on native Windows.
1547         * modules/ptsname_r (Depends-on): Add isatty.
1548
1549         ptsname_r: Fix test failures on IRIX, Solaris.
1550         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
1551         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
1552         accordingly.
1553         * lib/ptsname_r.c: Include <fcntl.h>.
1554         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
1555         set errno if fd is invalid.
1556         * tests/test-isatty.c (main): Update comments.
1557
1558 2012-06-24  Bruno Haible  <bruno@clisp.org>
1559
1560         ptsname test: Extend test.
1561         * tests/test-ptsname.c: Include <errno.h>.
1562         (main): Test behaviour with invalid file descriptor.
1563
1564 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
1565
1566         time: fix obsolete comment
1567         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
1568         reference to HAVE_STRUCT_TIMESPEC in comment.
1569
1570 2012-06-23  Bruno Haible  <bruno@clisp.org>
1571
1572         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
1573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
1574         does not handle abbreviated long options with equivalent
1575         disambiguations, set gl_replace_getopt to yes.
1576         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
1577
1578 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
1579
1580         time_r: fix typo that always overrode localtime_r decl
1581         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
1582         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
1583         not in a standard include.
1584
1585 2012-06-22  Bruno Haible  <bruno@clisp.org>
1586
1587         Write "Mac OS X" instead of "MacOS X".
1588         * README: Write "Mac OS X" instead of "MacOS X".
1589         * build-aux/bootstrap: Likewise.
1590         * build-aux/install-reloc: Likewise.
1591         * lib/acl-internal.h: Likewise.
1592         * lib/acl_entries.c: Likewise.
1593         * lib/argp-ba.c: Likewise.
1594         * lib/argp-pv.c: Likewise.
1595         * lib/config.charset: Likewise.
1596         * lib/copy-acl.c: Likewise.
1597         * lib/csharpexec.c: Likewise.
1598         * lib/euidaccess.c: Likewise.
1599         * lib/fbufmode.c: Likewise.
1600         * lib/fflush.c: Likewise.
1601         * lib/file-has-acl.c: Likewise.
1602         * lib/filemode.h: Likewise.
1603         * lib/fpurge.c: Likewise.
1604         * lib/freadable.c: Likewise.
1605         * lib/freadahead.c: Likewise.
1606         * lib/freading.c: Likewise.
1607         * lib/freadptr.c: Likewise.
1608         * lib/freadseek.c: Likewise.
1609         * lib/fseeko.c: Likewise.
1610         * lib/fseterr.c: Likewise.
1611         * lib/fsusage.c: Likewise.
1612         * lib/fwritable.c: Likewise.
1613         * lib/fwriting.c: Likewise.
1614         * lib/get-rusage-as.c: Likewise.
1615         * lib/get-rusage-data.c: Likewise.
1616         * lib/getdomainname.c: Likewise.
1617         * lib/idpriv-drop.c: Likewise.
1618         * lib/idpriv-droptemp.c: Likewise.
1619         * lib/localcharset.c: Likewise.
1620         * lib/locale.in.h: Likewise.
1621         * lib/localename.c: Likewise.
1622         * lib/mbsrtowcs-state.c: Likewise.
1623         * lib/nproc.c: Likewise.
1624         * lib/passfd.c: Likewise.
1625         * lib/posix_openpt.c: Likewise.
1626         * lib/printf-parse.c: Likewise.
1627         * lib/progreloc.c: Likewise.
1628         * lib/safe-read.h: Likewise.
1629         * lib/safe-write.h: Likewise.
1630         * lib/sched.in.h: Likewise.
1631         * lib/set-mode-acl.c: Likewise.
1632         * lib/signal.in.h: Likewise.
1633         * lib/stdint.in.h: Likewise.
1634         * lib/stdio-impl.h: Likewise.
1635         * lib/stdlib.in.h: Likewise.
1636         * lib/strtod.c: Likewise.
1637         * lib/sys_select.in.h: Likewise.
1638         * lib/tcgetsid.c: Likewise.
1639         * lib/unistd.in.h: Likewise.
1640         * lib/unlockpt.c: Likewise.
1641         * lib/vasnprintf.c: Likewise.
1642         * lib/vma-iter.c: Likewise.
1643         * lib/wcsrtombs-state.c: Likewise.
1644         * m4/acl.m4: Likewise.
1645         * m4/acosl.m4: Likewise.
1646         * m4/asinl.m4: Likewise.
1647         * m4/atanl.m4: Likewise.
1648         * m4/c-stack.m4: Likewise.
1649         * m4/cosl.m4: Likewise.
1650         * m4/expl.m4: Likewise.
1651         * m4/extensions.m4: Likewise.
1652         * m4/fdatasync.m4: Likewise.
1653         * m4/fmal.m4: Likewise.
1654         * m4/frexp.m4: Likewise.
1655         * m4/frexpf.m4: Likewise.
1656         * m4/frexpl.m4: Likewise.
1657         * m4/fsusage.m4: Likewise.
1658         * m4/getdomainname.m4: Likewise.
1659         * m4/getloadavg.m4: Likewise.
1660         * m4/getopt.m4: Likewise.
1661         * m4/gettext.m4: Likewise.
1662         * m4/gnulib-common.m4: Likewise.
1663         * m4/intdiv0.m4: Likewise.
1664         * m4/intlmacosx.m4: Likewise.
1665         * m4/largefile.m4: Likewise.
1666         * m4/ldexpl.m4: Likewise.
1667         * m4/link-follow.m4: Likewise.
1668         * m4/locale-ar.m4: Likewise.
1669         * m4/locale-fr.m4: Likewise.
1670         * m4/locale-ja.m4: Likewise.
1671         * m4/locale-tr.m4: Likewise.
1672         * m4/locale-zh.m4: Likewise.
1673         * m4/locale_h.m4: Likewise.
1674         * m4/lock.m4: Likewise.
1675         * m4/logl.m4: Likewise.
1676         * m4/mathfunc.m4: Likewise.
1677         * m4/minus-zero.m4: Likewise.
1678         * m4/mktime.m4: Likewise.
1679         * m4/mmap-anon.m4: Likewise.
1680         * m4/multiarch.m4: Likewise.
1681         * m4/nanosleep.m4: Likewise.
1682         * m4/nocrash.m4: Likewise.
1683         * m4/poll.m4: Likewise.
1684         * m4/printf-frexpl.m4: Likewise.
1685         * m4/printf.m4: Likewise.
1686         * m4/signbit.m4: Likewise.
1687         * m4/sinl.m4: Likewise.
1688         * m4/sqrtl.m4: Likewise.
1689         * m4/strerror_r.m4: Likewise.
1690         * m4/tanl.m4: Likewise.
1691         * m4/threadlib.m4: Likewise.
1692         * m4/ttyname_r.m4: Likewise.
1693         * m4/unlink.m4: Likewise.
1694         * m4/visibility.m4: Likewise.
1695         * m4/wcwidth.m4: Likewise.
1696         * tests/minus-zero.h: Likewise.
1697         * tests/test-alloca-opt.c: Likewise.
1698         * tests/test-copy-acl.sh: Likewise.
1699         * tests/test-copy-file.sh: Likewise.
1700         * tests/test-fdatasync.c: Likewise.
1701         * tests/test-file-has-acl.sh: Likewise.
1702         * tests/test-flock.c: Likewise.
1703         * tests/test-fsync.c: Likewise.
1704         * tests/test-localename.c: Likewise.
1705         * tests/test-malloca.c: Likewise.
1706         * tests/test-nonblocking-pipe.h: Likewise.
1707         * tests/test-nonblocking-socket.h: Likewise.
1708         * tests/test-openpty.c: Likewise.
1709         * tests/test-posix_openpt.c: Likewise.
1710         * tests/test-ptsname.c: Likewise.
1711         * tests/test-ptsname_r.c: Likewise.
1712         * tests/test-sameacls.c: Likewise.
1713         * tests/test-select.h: Likewise.
1714         * tests/test-set-mode-acl.sh: Likewise.
1715         * tests/test-snprintf-posix.h: Likewise.
1716         * tests/test-sprintf-posix.h: Likewise.
1717         * tests/test-strtod.c: Likewise.
1718         * tests/test-time.c: Likewise.
1719         * tests/test-vasnprintf-posix.c: Likewise.
1720         * tests/test-vasprintf-posix.c: Likewise.
1721         * doc/acl-resources.txt: Likewise.
1722         * doc/**/*.texi: Likewise.
1723         Reported by Max Horn <max@quendi.de>.
1724
1725 2012-06-22  Bruno Haible  <bruno@clisp.org>
1726
1727         grantpt: Relax requirement regarding invalid file descriptors.
1728         * lib/grantpt.c: Don't include <fcntl.h>.
1729         (grantpt): Don't verify the validity of the file descriptor.
1730         * modules/grantpt (Depends-on): Remove fcntl-h.
1731         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
1732         file descriptors.
1733         * doc/posix-functions/grantpt.texi: Document more platforms on which
1734         grantpt succeeds for invalid file descriptors.
1735         Reported by Rich Felker <dalias@aerifal.cx>.
1736
1737 2012-06-22  Bruno Haible  <bruno@clisp.org>
1738
1739         fbufmode test: Don't test unportable behaviour.
1740         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
1741         (main): Invoke it three times.
1742         Reported by Szabolcs Nagy <nsz@port70.net>
1743         and Rich Felker <dalias@aerifal.cx>.
1744
1745 2012-06-21  Bruno Haible  <bruno@clisp.org>
1746
1747         gnulib-tool: Refactor inctests variable.
1748         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
1749         (func_modules_transitive_closure,
1750         func_modules_transitive_closure_separately,
1751         func_import, func_create_testdir): Update.
1752
1753         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
1754         * gnulib-tool: Accept option --without-tests.
1755         (func_usage): Document --without-tests option. Rearrange.
1756         (inctests): Normalize according to the mode.
1757         * NEWS: Mention the change.
1758         Suggested by Simon Josefsson.
1759
1760 2012-06-21  Bruce Korb  <bkorb@gnu.org>
1761
1762         parse-duration test: Avoid spurious output.
1763         * tests/test-parse-duration.sh: Reindent with leading tabs.
1764
1765 2012-06-21  Jim Meyering  <meyering@redhat.com>
1766
1767         maint: disable the strncpy prohibition
1768         * cfg.mk: Do not prohibit strncpy here.
1769
1770 2012-06-21  Bruno Haible  <bruno@clisp.org>
1771
1772         nonblocking: Avoid compilation error on mingw64.
1773         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
1774         fscanf.
1775         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
1776         * modules/vfscanf (configure.ac): Likewise.
1777         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
1778         definition only if stdio.h has prepared it.
1779         Reported by Daniel P. Berrange <berrange@redhat.com>.
1780
1781 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
1782
1783         gnulib-tool: Use readlink if it is available.
1784         * gnulib-tool (func_readlink): Choose function more appropriately.
1785
1786 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
1787
1788         posixtm-tests: port to buggy compiler
1789         Problem reported by Simon Josefsson in
1790         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
1791         * modules/posixtm-tests (Depends-on): Add stdint.
1792         * tests/test-posixtm.c (struct posixtm_test.t_expected):
1793         Now of type int_least64_t, not int64_t, both because that's
1794         what INT64_C returns and because int_least64_t works even
1795         on 72-bit hosts.
1796         (T): Use INT64_C on constants outside the traditional int range,
1797         to work around compiler bug noted by Simon.
1798
1799         mktime: fix integer overflow in 'configure'-time test
1800         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
1801         after integer overflow.  Problem reported by Rich Felker in
1802         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
1803         Also, don't look for further instances of a bug if we've already
1804         found one instance; this helps 'configure' run faster.
1805
1806 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
1807
1808         tmpfile, clean-temp: Fix invocation of GetVersionEx.
1809         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
1810         GetVersionEx correctly.
1811         * lib/clean-temp.c (supports_delete_on_close): Likewise.
1812
1813 2012-06-20  Bruno Haible  <bruno@clisp.org>
1814
1815         fdopen: Allow implementations that don't reject invalid fd arguments.
1816         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
1817         succeeds.
1818         Reported by Rich Felker <dalias@aerifal.cx>.
1819
1820 2012-06-20  Simon Josefsson  <simon@josefsson.org>
1821
1822         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
1823         bring in LIBINTL.
1824
1825 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1826
1827         init.sh: do not rely on autoupated PWD
1828         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
1829         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
1830         Although Nelson's bug was not necessarily fixed by this patch,
1831         it seems wise to make the change for safety.
1832         * tests/init.sh (path_prepend_): Do not rely on PWD updating
1833         automagically after 'cd'; this is not reliable on older shells.
1834         (setup_): Fail if we cannot cd to temporary directory.
1835
1836 2012-06-19  Bruno Haible  <bruno@clisp.org>
1837
1838         stat, fstat: Avoid warnings on mingw64.
1839         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
1840         redefining.
1841         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
1842         Reported by Daniel P. Berrange <berrange@redhat.com>.
1843
1844 2012-06-19  Bruno Haible  <bruno@clisp.org>
1845
1846         stdioext: Add support for musl libc.
1847
1848         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
1849         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
1850
1851         * m4/fseterr.m4: New file.
1852         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
1853         function exists.
1854         * modules/fseterr (Files): Add m4/fseterr.m4.
1855         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
1856         __fseterr does not exist.
1857         (Makefile.am): Remove fseterr.c from lib_SOURCES.
1858
1859         * lib/freadable.h: Update comment.
1860
1861         * lib/fwritable.h: Update comment.
1862
1863         * lib/freading.h: Update comment.
1864
1865         * lib/fwriting.h: Update comment.
1866
1867         * m4/freadahead.m4: New file.
1868         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
1869         that function exists.
1870         * modules/freadahead (Files): Add m4/freadahead.m4.
1871         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
1872         __freadahead does not exist.
1873         (Makefile.am): Remove freadahead.c from lib_SOURCES.
1874
1875         * m4/freadptr.m4: New file.
1876         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
1877         function exists.
1878         * modules/freadptr (Files): Add m4/freadptr.m4.
1879         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
1880         __freadptr does not exist.
1881         (Makefile.am): Remove freadptr.c from lib_SOURCES.
1882
1883         * m4/freadseek.m4: New file.
1884         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
1885         exists.
1886         * modules/freadseek (Files): Add m4/freadseek.m4.
1887         (configure.ac): Invoke gl_FUNC_FREADSEEK.
1888
1889         * lib/fpurge.c (fpurge): Update comment.
1890
1891         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
1892
1893 2012-06-19  Bruno Haible  <bruno@clisp.org>
1894
1895         *printf-posix: Put more info into config.log.
1896         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
1897         exit code into config.log.
1898
1899 2012-06-19  Bruno Haible  <bruno@clisp.org>
1900
1901         getopt-gnu: Fix exit code overflow in autoconf test.
1902         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1903         to keep them below < 128.
1904
1905 2012-06-17  Jim Meyering  <meyering@redhat.com>
1906
1907         maint.mk: fix typo in code to derive GPG key at release time
1908         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1909
1910 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1911
1912         regex: avoid warning when pointers are not long
1913         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1914         and uintptr_t, not long, for portability to hosts where pointers and
1915         long have different sizes.  Issue noted by Daniel P. Berrange in
1916         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1917         and fix suggested by Bruno Haible in
1918         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1919
1920 2012-06-17  Bruno Haible  <bruno@clisp.org>
1921
1922         dummy: Relicense into the public domain.
1923         * modules/dummy (License): Set to "public domain".
1924         Suggested by Reuben Thomas.
1925
1926 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1927
1928         announce-gen: VPATH issues
1929         * build-aux/announce-gen (--srcdir): New option, used to trim the
1930         $srcdir part of the path from $builddir to NEWS.
1931         * top/maint.mk (announcement): Adjust.
1932
1933 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1934
1935         gnu-web-doc-update: VPATH builds
1936         * build-aux/gnu-web-doc-update (--builddir): New option.
1937         Revamp the handling of options.
1938         Prefer $(...) to `...`.
1939         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
1940         the template, and it is GNU mktemp specific.
1941         Prefer set -e to long series of &&.
1942         Restore the initial git branch, not "master".
1943         Properly initialize submodules (don't rely only on bootstrap).
1944         Do not reconfigure blindly, use config.status.
1945         * top/README-release: Update instructions for gnu-web-doc-update.
1946
1947 2012-06-11  Jim Meyering  <meyering@redhat.com>
1948
1949         maint.mk: revert most of the previous change re "all these"
1950         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
1951         For rationale, see the discussion at
1952         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
1953
1954 2012-06-10  Karl Berry  <karl@gnu.org>
1955
1956         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
1957
1958         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
1959
1960 2012-06-10  Bruce Korb  <bkorb@gnu.org>
1961
1962         parse-duration: Relicense under LGPLv2+.
1963         * modules/parse-duration (License): Change to LGPLv2+.
1964
1965 2012-06-10  Jim Meyering  <meyering@redhat.com>
1966
1967         maint.mk: prohibit common grammar error: "all these"
1968         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
1969         the list of prohibited word sequences.  It should be "all of these".
1970         * lib/tempname.c (__gen_tempname): Fix one of them.
1971
1972 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1973
1974         do-release-commit-and-tag: support VPATH builds
1975         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1976         (noteworthy): Defined earlier to factor its value.
1977         (noteworthy_stub): New.
1978         Use it to factor.
1979         (help_version): Split into...
1980         (help, version): these.
1981         Adjust the option processing part.
1982         Support "--option=value" in addition to "--option value".
1983         (builddir): New.
1984         (--builddir): New option.
1985         * top/README-release: Document this.
1986         Reword slightly so that the reader cannot understand that he
1987         has to do these steps before calling do-release-commit-and-tag.
1988
1989 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1990
1991         readme-release: also require announce-gen and maintainer-makefile
1992         * modules/readme-release (Depends-on): here.
1993         * modules/announce-gen, modules/do-release-commit-and-tag,
1994         modules/gnu-web-doc-update, modules/maintainer-makefile
1995         (Description): Point to readme-release.
1996
1997 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1998
1999         maint.mk: fix VPATH issues.
2000         * top/maint.mk (news-check): GNU Make understand $< very well.
2001         (release-prep): NEWS is in $(srcdir).
2002
2003 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2004
2005         readme-release: require the promoted modules.
2006         * modules/readme-release (Depends-on): Add
2007         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2008         in this text.
2009
2010 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2011             Bruno Haible  <bruno@clisp.org>
2012
2013         error, strerror-override: Support mingw64 from Fedora 17.
2014         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2015         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2016         EINPROGRESS.
2017         * lib/strerror-override.h (strerror_override): Test it.
2018         * lib/strerror-override.c (strerror_override): Likewise.
2019         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2020
2021 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2022             Bruno Haible  <bruno@clisp.org>
2023
2024         error, strerror-override: Support mingw64 from Fedora 17.
2025         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2026         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2027         * lib/strerror-override.h (strerror_override): Test it.
2028         * lib/strerror-override.c (strerror_override): Likewise.
2029
2030 2012-06-03  Bruno Haible  <bruno@clisp.org>
2031
2032         error, strerror-override: Support new errno values from POSIX:2008.
2033         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2034         ENOTRECOVERABLE.
2035         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2036         platforms.
2037         * lib/strerror-override.c (strerror_override): Conditionalize the
2038         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2039         * lib/strerror-override.h (strerror_override): Declare also if
2040         GNULIB_defined_EOWNERDEAD is defined.
2041         * tests/test-errno.c (e130, e131): New variables.
2042         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2043         ENOTRECOVERABLE.
2044         Reported by Paolo Bonzini.
2045
2046 2012-05-31  Jim Meyering  <meyering@redhat.com>
2047
2048         savewd: add missing dependency on sys_wait module
2049         * modules/savewd (Depends-on): Add sys_wait, needed at least
2050         for MSVC.  Report and suggested change by Michael Goffioul.
2051
2052 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2053
2054         system-quote-tests: port to CentOS 5
2055         Problem reported by Tom G. Christensen in
2056         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2057         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2058
2059 2012-05-29  Jim Meyering  <meyering@redhat.com>
2060
2061         maint: fix typos in comments and ChangeLog
2062         Culprits identified and fixed mostly automatically using these commands:
2063         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2064         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2065         using http://github.com/lyda/misspell-check
2066         * ChangeLog: Fix typos.
2067         * doc/solaris-versions: Likewise.
2068         * lib/regexec.c (re_search_stub): Likewise.
2069         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2070
2071 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2072
2073         manywarnings: remove duplicate -Wmultichar entry
2074         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2075         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2076         so keep the entry marked as documented.
2077
2078 2012-05-27  Karl Berry  <karl@gnu.org>
2079
2080         * config/srclist.txt (mktime.c): remove last libc sync,
2081         perhaps just temporarily.
2082
2083 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2084
2085         regex: don't assume uint64_t or uint32_t
2086         * lib/regcomp.c (init_word_char): Don't assume that the types
2087         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2088         them, and on some 32-bit compilers there is no uint64_t.
2089         Problem reported by Gianluigi Tiesi in
2090         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2091
2092 2012-05-25  Jim Meyering  <meyering@redhat.com>
2093
2094         maint.mk: add strncpy-prohibiting syntax-check rule
2095         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2096
2097 2012-05-24  Jim Meyering  <meyering@redhat.com>
2098
2099         maint.mk: compute $(gpg_key_ID) more portably
2100         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2101         That use of sed is not portable to some fringe systems.
2102         Reported by Paul Eggert in
2103         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2104
2105 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2106
2107         mktime: sync from glibc
2108         * config/srclist.txt: Uncomment mktime.c.
2109         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2110         First, indent with tabs, since glibc uses tabs and doesn't want to
2111         change and we'd rather be identical to glibc.  Also, two small
2112         coding changes:
2113         (isdst_differ): Use &&, not &, as && is the usual style.
2114         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2115         for clarity.
2116
2117 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2118
2119         announce-gen: du -h is more portable than du --human
2120         * build-aux/announce-gen (sizes): Invoke du with -h instead
2121         of --human.  Accept leading white space in its output.
2122
2123 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2124
2125         announce-gen: Improve diagnostics.
2126         * build-aux/announce-gen: When parsing command line options,
2127         prefer "announce-gen: option --release-type requires an argument"
2128         to "Option release-type requires an argument".
2129
2130 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2131
2132         maint.mk: gpg_key_ID: use sed more portably
2133         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2134         the closing brace.
2135         (refresh-po): Fuse two sed invocations into one.
2136
2137 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2138
2139         gitlog-to-changelog: support the log message format used in Bison.
2140         * build-aux/gitlog-to-changelog: Support --strip-tab and
2141         --strip-cherry-picked.
2142
2143 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2144
2145         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2146         the rest of the current time slice to another thread in the current
2147         process. So if the thread that feeds the file decscriptor we're
2148         polling is not in the current process, we get busy-waiting.
2149         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2150         Patch from Theodore Leblond.
2151         * lib/select.c: Split polling out of the loop that sets the output
2152         fd_sets.  Check for zero result and loop if the wait timeout is
2153         infinite.
2154
2155 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2156
2157         select: Fix build error on IRIX 6.5.
2158         * lib/select.c: Include stddef.h for NULL.
2159
2160 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2161
2162         gc: fix libgcrypt detection on older machines.
2163         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2164         copyright years because the file has been distributed every year
2165         since it was created.
2166
2167 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2168
2169         crypto: fix bug in large buffer handling
2170         Problem reported by Serge Belyshev for glibc in
2171         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2172         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2173         * lib/md4.c (md4_process_block):
2174         * lib/md5.c (md5_process_block):
2175         * lib/sha1.c (sha1_process_block):
2176         * lib/sha256.c (sha256_process_block):
2177         Don't assume the buffer length is less than 2**32.
2178         * lib/sha512.c (sha512_process_block): Likewise.
2179         Here, the bug is present only in the rare case where the host does
2180         not support uint64_t or where size_t is wider than 64 bits.
2181         Use u64size to work around the problems.
2182         * lib/u64.h (u64size): New macro.
2183
2184 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2185
2186         fsusage: fix block size returned on older Linux 2.6
2187
2188         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2189         which is available since Linux 2.6.
2190         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2191         when the member is available so it can be used as a fallback.
2192         * doc/posix-functions/statvfs.texi: Mention the hang issue
2193         on Linux < 2.6.36.
2194
2195 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2196
2197         bootstrap: suppress stderr chatter
2198         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2199         Omit unnecessary chatter to stderr.  The main program chatter
2200         was there only inadvertantly.
2201
2202         bootstrap: .gitignore files created by autopoint, libtool
2203         I ran into this problem when bootstrapping the latest diffutils.
2204         After './bootstrap', 'git status' reported lots of untracked files
2205         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2206         autopoint and do not need to be version-controlled.
2207         * build-aux/bootstrap: Put into .gitignore the files that
2208         autopoint and libtool create, by keeping track of files that exist
2209         after but not before these programs are run.
2210         (version_controlled_file): Move up.  2nd arg is now full file
2211         name, not base name; this is more convenient.  Put CVS at the end,
2212         as it's now somewhat deprecated.
2213
2214 2012-05-14  Jim Meyering  <meyering@redhat.com>
2215
2216         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2217         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2218         definition.  Reported by Bruno Haible.
2219
2220 2012-05-13  Bruno Haible  <bruno@clisp.org>
2221             Paul Eggert  <eggert@cs.ucla.edu>
2222
2223         binary-io: Define set_binary_mode function.
2224         * lib/binary-io.h (set_binary_mode): New function.
2225         (SET_BINARY): Define in terms of set_binary_mode.
2226         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2227         * tests/test-binary-io.c (main): Accept an argument, and test either
2228         set_binary_mode or SET_BINARY depending on the argument.
2229         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2230         argument. Clean up also t-bin-out0.tmp.
2231
2232 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2233
2234         bootstrap: take advantage of POSIX shell features
2235
2236         The 'bootstrap' script offered by Gnulib script already uses POSIX
2237         shell features (like $((...)) arithmetic expansions) that are not
2238         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2239         means that bootstrap must already be run using a proper POSIX shell,
2240         which will thus provide more features, like ${var#pattern} parameter
2241         expansion or inversion of a command exit status with '!'.  We can
2242         thus use these features to improve the clarity and the performances
2243         of the bootstrap script.
2244
2245         Suggested by Eric Blake.
2246
2247         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2248         of sed/expr plus command substitutions, to save some forks.  While
2249         we are at it, prefer the POSIX $(...) form of command substitution,
2250         rather than the legacy form `...` (since the former is visually
2251         clearer and interacts better with quoting), and prefer the idiom:
2252           "if ! CMD; then ACTION ..."
2253         over the idiom:
2254           "if CMD; then :; else ACTION ..."
2255         which was required by legacy Bourne shells not supporting '!'.
2256
2257 2012-05-12  Bruno Haible  <bruno@clisp.org>
2258
2259         system-quote: Add more comments.
2260         * lib/system-quote.h: Add more comments about wilcards and limitations.
2261         Suggested by Eli Zaretskii <eliz@gnu.org>.
2262
2263         sh-quote, system-quote: Add comments about wildcards.
2264         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2265         * lib/system-quote.h: Likewise.
2266         Reported by Eli Zaretskii <eliz@gnu.org>.
2267
2268 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2269
2270         fsusage: check for GNU/Linux statvfs problem dynamically
2271         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2272         Define STAT_STATFS2_BSIZE too, since in this case the code now
2273         checks dynamically whether statvfs is reliable, falling back on
2274         Linux-style statfs otherwise.
2275         (statvfs_works): New function, for dynamically testing statvfs.
2276         (get_fs_usage) [STAT_STATVFS]: Use it.
2277         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2278         statvfs on GNU/Linux hosts, since it's now done dynamically.
2279
2280 2012-05-10  Bruno Haible  <bruno@clisp.org>
2281
2282         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2283         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2284         '?' character.
2285         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2286         * tests/test-system-quote-main.c (check_all): Check also strings like
2287         "??????????".
2288         Reported by Eli Zaretskii <eliz@gnu.org>.
2289
2290 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2291
2292         _Noreturn: port config.h to gcc -Wundef
2293         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2294         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2295         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2296
2297 2012-05-10  Bruno Haible  <bruno@clisp.org>
2298
2299         system-quote: Refactor.
2300         * lib/system-quote.h (system_quote_copy): Fix comment.
2301         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2302         New functions, extracted from system_quote_copy.
2303         (system_quote_length, system_quote_copy): Use these functions.
2304         Reported by Paul Eggert.
2305
2306 2012-05-08  Bruno Haible  <bruno@clisp.org>
2307
2308         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2309         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2310
2311 2012-05-08  Bruno Haible  <bruno@clisp.org>
2312
2313         Tests for module 'system-quote'.
2314         * modules/system-quote-tests: New file.
2315         * tests/test-system-quote.sh: New file.
2316         * tests/test-system-quote-main.c: New file.
2317         * tests/test-system-quote-child.c: New file.
2318
2319         New module 'system-quote'.
2320         * lib/system-quote.h: New file.
2321         * lib/system-quote.c: New file.
2322         * modules/system-quote: New file.
2323
2324 2012-05-08  Bruno Haible  <bruno@clisp.org>
2325
2326         sh-quote: Make C++ safe and allow multiple inclusion.
2327         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2328         declarations in extern "C".
2329
2330 2012-05-08  Bruno Haible  <bruno@clisp.org>
2331
2332         sh-quote tests: Make tests stricter.
2333         * tests/test-sh-quote.c (check_one): Check the return value of
2334         shell_quote_copy.
2335         (main): Check a string with a CR character. Check a string that
2336         contains UCHAR_MAX.
2337
2338 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2339
2340         warnings.m4: provide a means to specify the program to compile.
2341         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2342         (gl_WARN_ADD): here.
2343         Use gl_AS_VAR_APPEND.
2344         Support an argument to specify the program to compile.
2345         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2346         AC_SUBST the WARN_CFLAGS when they are used.
2347         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2348         leave this to gl_WARN_ADD.
2349
2350 2012-05-08  Eric Blake  <eblake@redhat.com>
2351
2352         doc: recommendations on gettext version
2353         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2354         choice between versions.
2355         * DEPENDENCIES (gettext): Cover both approaches.
2356
2357 2012-05-08  Jim Meyering  <meyering@redhat.com>
2358
2359         init.sh: explain why EXEEXT support uses aliases rather than functions
2360         * tests/init.sh: Add a comment.
2361
2362         init.sh: don't let bash aliases interfere with tests
2363         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2364         is bash.  This avoids problems for those who alias standard commands to
2365         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2366         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2367
2368 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2369
2370         stdint: be more consistent with glibc, SunOS libc
2371         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2372         (gl_int_fast16_t, gl_uint_fast16_t)
2373         (gl_int_fast32_t, gl_uint_fast32_t)
2374         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2375         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2376         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2377         Be consistent with glibc by default, and with SunOS 5.10 and later
2378         if __sun is defined.  This lessens the likelihood of clashes if
2379         code compiled for older hosts is combined with code compiled for
2380         newer ones.  Problem reported by Niels Möller in
2381         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2382
2383 2012-05-07  Eric Blake  <eblake@redhat.com>
2384
2385         isatty: relax license to LGPLv2+
2386         * modules/isatty (License): Relax license.
2387
2388 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2389
2390         stat-size: comment fix
2391         * lib/stat-size.h: Remove obsolete comment about indenting.
2392
2393 2012-05-06  Bruno Haible  <bruno@clisp.org>
2394
2395         Tests for module 'sh-quote'.
2396         * modules/sh-quote-tests: New file.
2397         * tests/test-sh-quote.c: New file.
2398
2399 2012-05-06  Bruno Haible  <bruno@clisp.org>
2400
2401         sh-quote: Improve shell_quote_argv's signature.
2402         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2403         * lib/sh-quote.c (shell_quote_argv): Likewise.
2404
2405 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2406
2407         stdint: document issues with int_fast8_t etc.
2408         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2409         stdint.h substitutes may define these types differently.  See
2410         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2411
2412 2012-05-05  Bruno Haible  <bruno@clisp.org>
2413
2414         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2415         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2416         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2417         or 'guessing no (mishandles large arguments)'.
2418
2419 2012-05-05  Bruno Haible  <bruno@clisp.org>
2420
2421         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2422         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2423         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2424         set gl_cv_func_link_follows_symlink to "guessing no".
2425
2426 2012-05-05  Bruno Haible  <bruno@clisp.org>
2427
2428         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2429         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2430         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2431         "guessing no".
2432         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2433
2434 2012-05-05  Bruno Haible  <bruno@clisp.org>
2435
2436         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2437         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2438         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2439         set gl_cv_struct_dirent_d_ino to "guessing yes".
2440
2441 2012-05-05  Bruno Haible  <bruno@clisp.org>
2442
2443         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2444         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2445         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2446         "guessing yes".
2447
2448 2012-05-05  Bruno Haible  <bruno@clisp.org>
2449
2450         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2451         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2452         compiling to a glibc system, set gl_cv_func_signbit and
2453         gl_cv_func_signbit_gcc to "guessing yes".
2454
2455 2012-05-05  Bruno Haible  <bruno@clisp.org>
2456
2457         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2458         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2459         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2460         to "guessing yes".
2461         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2462         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2463
2464 2012-05-05  Bruno Haible  <bruno@clisp.org>
2465
2466         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2467         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2468         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2469         gl_cv_func_realpath_works to "guessing yes".
2470
2471 2012-05-05  Bruno Haible  <bruno@clisp.org>
2472
2473         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2474         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2475         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2476
2477 2012-05-04  Bruno Haible  <bruno@clisp.org>
2478
2479         Tweak last commit.
2480         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2481         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2482
2483 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2484
2485         unistd_h: make it easier to avoid sys_types_h
2486         This is useful for Emacs, which has its own method of porting to
2487         Windows, and which therefore does not need the sys_types_h module.
2488         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2489         code moved here from gl_SYS_TYPES_H.
2490         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2491         using the code directly.
2492         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2493         gl_SYS_TYPES_H.
2494         * modules/sys_types (Files):
2495         * modules/unistd (Files): Add m4/off_t.m4.
2496
2497 2012-05-03  Bruno Haible  <bruno@clisp.org>
2498
2499         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2500         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2501         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2502         "guessing yes" or "guessing no".
2503         (gl_FUNC_LSTAT): Update.
2504         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2505         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2506         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
2507
2508 2012-05-03  Bruno Haible  <bruno@clisp.org>
2509
2510         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
2511         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
2512         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
2513         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
2514         cross-compiling, choose the first alternative on glibc systems.
2515         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
2516
2517 2012-05-03  Bruno Haible  <bruno@clisp.org>
2518
2519         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
2520         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
2521         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
2522
2523 2012-05-03  Bruno Haible  <bruno@clisp.org>
2524
2525         chown: Avoid "guessing no" when cross-compiling to glibc systems.
2526         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
2527
2528 2012-05-03  Bruno Haible  <bruno@clisp.org>
2529
2530         Avoid "guessing no" guesses when cross-compiling to glibc systems.
2531         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
2532         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
2533         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
2534         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
2535         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
2536         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
2537         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
2538         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
2539         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
2540         compiling to glibc systems, set gl_cv_func_chown_slash_works,
2541         gl_cv_func_chown_ctime_works to "guessing yes".
2542         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
2543         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
2544         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
2545         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
2546         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
2547         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
2548         compiling to glibc systems, set gl_cv_func_open_directory_works to
2549         "guessing yes".
2550         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
2551         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
2552         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
2553         "guessing yes".
2554         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
2555         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
2556         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
2557         compiling to glibc systems, set gl_cv_func_floorf_ieee to
2558         "guessing yes".
2559         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
2560         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
2561         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
2562         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
2563         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
2564         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
2565         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
2566         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
2567         "guessing yes".
2568         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
2569         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
2570         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
2571         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
2572         "guessing yes".
2573         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
2574         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
2575         "guessing yes".
2576         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
2577         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
2578         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
2579         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
2580         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
2581         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
2582         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
2583         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
2584         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
2585         compiling to glibc systems, set gl_cv_func_log10f_ieee to
2586         "guessing yes".
2587         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
2588         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
2589         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
2590         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
2591         "guessing yes".
2592         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
2593         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
2594         "guessing yes".
2595         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
2596         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
2597         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
2598         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
2599         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
2600         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
2601         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
2602         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
2603         compiling to glibc systems, set gl_cv_func_mkfifo_works to
2604         "guessing yes".
2605         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
2606         compiling to glibc systems, set gl_cv_func_mknod_works to
2607         "guessing yes".
2608         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
2609         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
2610         "guessing yes".
2611         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
2612         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
2613         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
2614         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
2615         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
2616         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
2617         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
2618         compiling to glibc systems, set gl_cv_func_svid_putenv to
2619         "guessing yes".
2620         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
2621         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
2622         "guessing yes".
2623         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
2624         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
2625         "guessing yes".
2626         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
2627         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
2628         to "guessing yes".
2629         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
2630         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
2631         to "guessing yes".
2632         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
2633         compiling to glibc systems, set gl_cv_func_rmdir_works to
2634         "guessing yes".
2635         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
2636         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
2637         gl_cv_func_unlink_parent_fails to "guessing yes".
2638         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
2639         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
2640         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
2641         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
2642         gl_cv_func_rename_dest_works to "guessing yes".
2643         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
2644         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
2645         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
2646         compiling to glibc systems, set gl_cv_func_roundf_ieee to
2647         "guessing yes".
2648         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
2649         compiling to glibc systems, set gl_cv_func_roundl_ieee to
2650         "guessing yes".
2651         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
2652         compiling to glibc systems, set gl_cv_func_setenv_works to
2653         "guessing yes".
2654         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
2655         compiling to glibc systems, set gl_cv_func_unsetenv_works to
2656         "guessing yes".
2657         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
2658         compiling to glibc systems, set gl_cv_func_sleep_works to
2659         "guessing yes".
2660         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
2661         compiling to glibc systems, set gl_cv_func_stat_file_slash to
2662         "guessing yes".
2663         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
2664         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
2665         "guessing yes".
2666         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
2667         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
2668         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
2669         compiling to glibc systems, set gl_cv_func_truncf_ieee to
2670         "guessing yes".
2671         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
2672         compiling to glibc systems, set gl_cv_func_truncl_ieee to
2673         "guessing yes".
2674         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
2675         compiling to glibc systems, set gl_cv_func_usleep_works to
2676         "guessing yes".
2677         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
2678         compiling to glibc systems, set gl_cv_func_futimesat_works to
2679         "guessing yes".
2680
2681 2012-05-03  Bruno Haible  <bruno@clisp.org>
2682
2683         Say "guessing yes" or "guessing no" when cross-compiling.
2684         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
2685         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
2686         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
2687         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
2688         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
2689         am_cv_func_working_getline to "guessing yes" or "guessing no".
2690         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
2691         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
2692         (gl_FUNC_MEMMEM): When cross-compiling, set
2693         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
2694         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
2695         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
2696         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
2697         set gl_cv_func_strcasestr_works_always to "guessing yes" or
2698         "guessing no".
2699         (gl_FUNC_STRCASESTR): When cross-compiling, set
2700         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
2701         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
2702         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
2703         (gl_FUNC_STRSTR): When cross-compiling, set
2704         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
2705         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
2706         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
2707         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
2708         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
2709
2710 2012-05-01  Bruno Haible  <bruno@clisp.org>
2711
2712         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
2713         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
2714         * build-aux/reloc-ldflags: Likewise.
2715         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
2716
2717 2012-05-01  Bruno Haible  <bruno@clisp.org>
2718
2719         gnulib-tool: Remove transitional code.
2720         * gnulib-tool: Don't warn about --import with 0 arguments any more.
2721         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
2722
2723 2012-05-01  Bruno Haible  <bruno@clisp.org>
2724
2725         getcwd: Fix misindentation.
2726         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
2727
2728 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
2729
2730         exclude: process exclude and include directives in order
2731         This restores the pre-2009 behavior, and is part of a fix of a
2732         grep bug reported by Quentin Arce in
2733         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
2734         * lib/exclude.c (struct exclude): Remove 'tail' member.
2735         (new_exclude_segment): Prepend the new segment instead of appending.
2736         Return void, since that's now more convenient.
2737         (file_pattern_matches): Renamed from excluded_file_pattern_p.
2738         (file_name_matches): Renamed from excluded_file_name_p.
2739         (file_pattern_matches, file_name_matches):
2740         Return true if the pattern matches, not if it excludes.
2741         All callers changed.
2742         (excluded_file_name): Process the list in reverse order;
2743         since the list is now reversed this restores the pre-2009 behavior.
2744         (add_exclude): Adjust to new reversed-order list.  Use local var
2745         rather than macro, for clarity.
2746         * tests/test-exclude7.sh: Adjust to corrected behavior.
2747
2748         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
2749         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
2750         it's not possible here.  Handle the case of \ at end of pattern
2751         without dumping core.
2752         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
2753
2754         _Noreturn: future-proof non-GNU and non-MSVC compilers
2755         * build-aux/snippet/_Noreturn.h (_Noreturn):
2756         * m4/gnulib-common.m4 (gl_COMMON_BODY):
2757         Do not define _Noreturn if __STDC_VERSION__ indicates this is
2758         C11 or later.  This is more likely to work with random future C
2759         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
2760         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
2761
2762         exclude: handle wildcards with FNM_EXTMATCH
2763         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
2764         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
2765         comment that "has wildcards" really means "has or may have
2766         wildcards".  Simplify by avoiding the need to call strcspn.
2767
2768 2012-04-29  Bruno Haible  <bruno@clisp.org>
2769
2770         gnulib-tool: Fix list of authors.
2771         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
2772
2773 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
2774
2775         bootstrap: support Automake-NG in $buildreq
2776         * bootstrap (check_versions): Handle automake and aclocal from
2777         Automake-NG specially.  They can be specified as respectively
2778         the "automake-ng" and "aclocal-ng" requirements.
2779
2780 2012-04-25  Eric Blake  <eblake@redhat.com>
2781
2782         bootstrap: only force latest Makefile.in.in for gettext module
2783         * build-aux/bootstrap (with_gettext): Only install latest
2784         Makefile.in.in for projects requesting bleeding edge gettext.
2785
2786 2012-04-22  Bruno Haible  <bruno@clisp.org>
2787
2788         doc: Mention reason for replacement on glibc/Linux systems.
2789         * doc/posix-functions/dprintf.texi: Mention the problem with special
2790         'long double' values.
2791         * doc/posix-functions/fprintf.texi: Likewise.
2792         * doc/posix-functions/printf.texi: Likewise.
2793         * doc/posix-functions/snprintf.texi: Likewise.
2794         * doc/posix-functions/sprintf.texi: Likewise.
2795         * doc/posix-functions/vdprintf.texi: Likewise.
2796         * doc/posix-functions/vfprintf.texi: Likewise.
2797         * doc/posix-functions/vprintf.texi: Likewise.
2798         * doc/posix-functions/vsnprintf.texi: Likewise.
2799         * doc/posix-functions/vsprintf.texi: Likewise.
2800         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
2801         platforms with F_DUPFD_CLOEXEC problems.
2802         * doc/posix-functions/glob.texi: Mention which platforms are affected
2803         by the problem with symbolic links.
2804         * doc/posix-functions/linkat.texi: Mention the problem with
2805         AT_SYMLINK_FOLLOW on Linux.
2806
2807 2012-04-22  Bruno Haible  <bruno@clisp.org>
2808
2809         pwrite: Don't replace on all platforms.
2810         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
2811
2812 2012-04-22  Bruno Haible  <bruno@clisp.org>
2813
2814         rint* tests: Avoid gcc warnings.
2815         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
2816         * tests/test-rintf.c (INFINITY, NAN): Likewise.
2817         * tests/test-rintl.c (INFINITY, NAN): Likewise.
2818
2819 2012-04-21  Bruno Haible  <bruno@clisp.org>
2820
2821         users.txt: Update.
2822         * users.txt: Add freedink, wdiff. Update URLs for projects that have
2823         switched from CVS to git, bzr, or svn.
2824
2825 2012-04-21  Bruno Haible  <bruno@clisp.org>
2826
2827         Large File Support for native Windows platforms.
2828
2829         * m4/largefile.m4 (gl_LARGEFILE): New macro.
2830         * modules/largefile (configure.ac): Require gl_LARGEFILE.
2831
2832         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
2833         type.
2834         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
2835         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
2836         * doc/posix-headers/sys_types.texi: Mention the effect of the
2837         'largefile' module.
2838
2839         * lib/fcntl.in.h: Add comments about off_t.
2840         * modules/fcntl-h (Depends-on): Add sys_types.
2841
2842         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
2843         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
2844         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
2845         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
2846         * modules/unistd (Depends-on): Add sys_types.
2847         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
2848
2849         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
2850         instead of lseek.
2851         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
2852         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
2853         * modules/lseek (Depends-on): Add sys_types.
2854
2855         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
2856         msvc-nothrow.h.
2857         (SetFileSize): New function.
2858         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
2859         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
2860         if Large File Support is requested.
2861         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
2862         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
2863
2864         * lib/stdio.in.h: Add comments about off_t.
2865         * modules/stdio (Depends-on): Add sys_types.
2866
2867         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
2868         instead of ftello.
2869         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
2870         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
2871         (gl_PREREQ_FTELLO): New macro.
2872         * modules/ftello (Depends-on): Add sys_types.
2873         (configure.ac): Incoke gl_PREREQ_FTELLO.
2874
2875         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
2876         instead of fseeko.
2877         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
2878         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
2879         (gl_PREREQ_FSEEKO): New macro.
2880         * modules/fseeko (Depends-on): Add sys_types.
2881         (configure.ac): Invoke gl_PREREQ_FSEEKO.
2882
2883         * lib/sys_stat.in.h: Add comments about off_t.
2884         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
2885         64-bit integer for st_size in 'struct stat'.
2886         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
2887         Define _GL_WINDOWS_64_BIT_ST_SIZE.
2888         * modules/sys_stat (Depends-on): Add sys_types.
2889         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
2890
2891         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
2892         instead of stat or _stat.
2893
2894         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
2895         'struct _stati64' instead of fstat and 'struct stat'.
2896         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
2897         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2898
2899         Reported by Ray Satiro <raysatiro@yahoo.com>.
2900
2901 2012-04-19  Eric Blake  <eblake@redhat.com>
2902
2903         bootstrap: accommodate older libtool
2904         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2905         Reported by Daniel P. Berrange.
2906
2907 2012-04-19  Jim Meyering  <meyering@redhat.com>
2908
2909         announce-gen: avoid failure due to lack of Digest::SHA1
2910         Even with the preferred Digest::SHA available, this script
2911         would fail when the backup module, Digest::SHA1, was not installed.
2912         * build-aux/announce-gen: Quote the conditional use of "use".
2913         Reported by Reuben Thomas in:
2914         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2915
2916         bootstrap: don't let a user's CDPATH setting affect this script
2917         When CDPATH is set, cd will sometimes generate output.
2918         When "cd" is run in a subshell whose output matters, that
2919         surprising-to-some output can cause malfunction.
2920         Unsetting CDPATH turns off this shell "feature."
2921         * build-aux/bootstrap (CDPATH): Unset.
2922         Reported by Reuben Thomas in:
2923         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
2924         and inspired by his patch here:
2925         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
2926
2927 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2928         and Jim Meyering  <meyering@redhat.com>
2929
2930         maint.mk: catch "see @xref{}" and similar
2931         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2932         prohibit "See also @xref{", "Also see @pxref{", and similar.
2933
2934 2012-04-16  Jim Meyering  <meyering@redhat.com>
2935
2936         bootstrap: really use gnulib's po/Makefile.in.in
2937         * build-aux/bootstrap: Correct the source file name in previous change.
2938         Reported by Akim Demaille.
2939
2940         configmake: correct minor inconsistency in Makefile rule
2941         * modules/configmake (Makefile.am): All other rules like this one
2942         run the final "mv -f ..." in the same backslash-continued command
2943         as the one that does everything else.  This one put the mv -f ...
2944         command on a separate, non-backslash-continued line.
2945         Make it like the others.
2946
2947         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
2948         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
2949         the one from gettext.  Reported by Akim Demaille.
2950
2951 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
2952
2953         Fix recursion of install-* into po directories.
2954         Bison's install-pdf bug reported by Hans Aberg at
2955         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
2956         * build-aux/po/Makefile.in.in (install-dvi, install-html)
2957         (install-info, install-pdf, install-ps): New targets.
2958
2959 2012-04-16  Jim Meyering  <meyering@redhat.com>
2960
2961         maint: avoid spurious "make sc_maint" failure
2962         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
2963         exempt all *.class file names, for lib/javaversion.class.
2964
2965 2012-04-15  Bruno Haible  <bruno@clisp.org>
2966
2967         lseek: Make configure test independent of environment.
2968         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
2969         Windows, we know that lseek() on pipes is broken; skip the runtime
2970         test.
2971
2972 2012-04-14  Bruno Haible  <bruno@clisp.org>
2973
2974         stat: Bypass buggy override in mingw64.
2975         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2976         * lib/stat.c (stat) [mingw64]: Define to _stat.
2977         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2978
2979 2012-04-14  Bruno Haible  <bruno@clisp.org>
2980
2981         pathmax: Fix compilation error on MSVC 9.
2982         * modules/pathmax (Depends-on): Add unistd.
2983
2984 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2985
2986         README: document pointer comparison assumption
2987         * README (Portability guidelines): Document assumption about
2988         pointer comparisons, in response to a recent bug-gnulib comment by
2989         Jeffrey Kegler.
2990
2991 2012-04-12  Bruno Haible  <bruno@clisp.org>
2992
2993         Tests for module 'getrusage'.
2994         * modules/getrusage-tests: New file.
2995         * tests/test-getrusage.c: New file.
2996
2997         New module 'getrusage'.
2998         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2999         warn-on-use.h.
3000         (getrusage): New declaration.
3001         * lib/getrusage.c: New file.
3002         * m4/getrusage.m4: New file.
3003         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3004         is declared.
3005         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3006         HAVE_GETRUSAGE.
3007         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3008         snippet/c++defs, snippet/warn-on-use.
3009         (Makefile.am): Update generation of sys/resource.h. Substitute
3010         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3011         * modules/getrusage: New file.
3012         * doc/posix-functions/getrusage.texi: Mention the new module.
3013
3014 2012-04-12  Bruno Haible  <bruno@clisp.org>
3015
3016         Tests for module 'sys_resource'.
3017         * modules/sys_resource-tests: New file.
3018         * tests/test-sys_resource.c: New file.
3019
3020         New module 'sys_resource'.
3021         * lib/sys_resource.in.h: New file.
3022         * m4/sys_resource_h.m4: New file.
3023         * modules/sys_resource: New file.
3024         * doc/posix-headers/sys_resource.texi: Mention the new module.
3025
3026 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3027
3028         ioctl: Fix compilation error on mingw.
3029         * lib/ioctl.c: Include <windows.h>.
3030         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3031
3032 2012-04-04  Jim Meyering  <meyering@redhat.com>
3033
3034         regex: correct #pragma guard expression
3035         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3036         not 4.3.  Correct its cpp guard expression.
3037
3038 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3039
3040         regex: remove unnecessary type punning
3041         Problem reported by Vladimir Serbinenko in
3042         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3043         * lib/regex.h (struct re_pattern_buffer): Change the type of
3044         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3045         Fix comment to match code.
3046         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3047         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3048         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3049         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3050         (set_regs):
3051         Omit no-longer-necessary casts.
3052
3053 2012-04-03  Bruno Haible  <bruno@clisp.org>
3054
3055         Tests for module 'ilogbl'.
3056         * modules/ilogbl-tests: New file.
3057         * tests/test-ilogbl.c: New file.
3058
3059         New module 'ilogbl'.
3060         * lib/math.in.h (ilogbl): New declaration.
3061         * lib/ilogbl.c: New file.
3062         * m4/ilogbl.m4: New file.
3063         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3064         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3065         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3066         Split sed invocation, to avoid the limit of 100 substitutions of
3067         HP-UX 'sed'.
3068         * modules/ilogbl: New file.
3069         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3070         * doc/posix-functions/ilogbl.texi: Mention the new module.
3071
3072 2012-04-03  Bruno Haible  <bruno@clisp.org>
3073
3074         Tests for module 'ilogbf'.
3075         * modules/ilogbf-tests: New file.
3076         * tests/test-ilogbf.c: New file.
3077
3078         New module 'ilogbf'.
3079         * lib/math.in.h (ilogbf): New declaration.
3080         * lib/ilogbf.c: New file.
3081         * m4/ilogbf.m4: New file.
3082         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3084         REPLACE_ILOGBF.
3085         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3086         REPLACE_ILOGBF.
3087         * modules/ilogbf: New file.
3088         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3089         * doc/posix-functions/ilogbf.texi: Mention the new module.
3090
3091 2012-04-03  Bruno Haible  <bruno@clisp.org>
3092
3093         Tests for module 'ilogb'.
3094         * modules/ilogb-tests: New file.
3095         * tests/test-ilogb.c: New file.
3096         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3097         tests/test-logb-ieee.h.
3098
3099         New module 'ilogb'.
3100         * lib/math.in.h (ilogb): New declaration.
3101         * lib/ilogb.c: New file.
3102         * m4/ilogb.m4: New file.
3103         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3104         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3105         REPLACE_ILOGB.
3106         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3107         REPLACE_ILOGB.
3108         * modules/ilogb: New file.
3109         * tests/test-math-c++.cc: Check the declaration of ilogb.
3110         * doc/posix-functions/ilogb.texi: Mention the new module.
3111
3112 2012-04-03  Bruno Haible  <bruno@clisp.org>
3113
3114         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3115         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3116         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3117         (main): Check their values.
3118         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3119         problem.
3120
3121 2012-04-03  Bruno Haible  <bruno@clisp.org>
3122
3123         Tests for module 'logbl-ieee'.
3124         * modules/logbl-ieee-tests: New file.
3125         * tests/test-logbl-ieee.c: New file.
3126
3127         New module 'logbl-ieee'.
3128         * modules/logbl-ieee: New file.
3129
3130         Tests for module 'logb-ieee'.
3131         * modules/logb-ieee-tests: New file.
3132         * tests/test-logb-ieee.c: New file.
3133
3134         New module 'logb-ieee'.
3135         * modules/logb-ieee: New file.
3136
3137         Tests for module 'logbf-ieee'.
3138         * modules/logbf-ieee-tests: New file.
3139         * tests/test-logbf-ieee.c: New file.
3140         * tests/test-logb-ieee.h: New file.
3141
3142         New module 'logbf-ieee'.
3143         * modules/logbf-ieee: New file.
3144
3145 2012-04-03  Bruno Haible  <bruno@clisp.org>
3146
3147         Tests for module 'logbl'.
3148         * modules/logbl-tests: New file.
3149         * tests/test-logbl.c: New file.
3150
3151         New module 'logbl'.
3152         * lib/math.in.h (logbl): New declaration.
3153         * lib/logbl.c: New file.
3154         * m4/logbl.m4: New file.
3155         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3156         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3157         REPLACE_LOGBL.
3158         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3159         REPLACE_LOGBL.
3160         * modules/logbl: New file.
3161         * tests/test-math-c++.cc: Check the declaration of logbl.
3162         * doc/posix-functions/logbl.texi: Mention the new module.
3163
3164 2012-04-02  Bruno Haible  <bruno@clisp.org>
3165
3166         Tests for module 'logbf'.
3167         * modules/logbf-tests: New file.
3168         * tests/test-logbf.c: New file.
3169
3170         New module 'logbf'.
3171         * lib/math.in.h (logbf): New declaration.
3172         * lib/logbf.c: New file.
3173         * m4/logbf.m4: New file.
3174         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3175         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3176         REPLACE_LOGBF.
3177         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3178         REPLACE_LOGBF.
3179         * modules/logbf: New file.
3180         * tests/test-math-c++.cc: Check the declaration of logbf.
3181         * doc/posix-functions/logbf.texi: Mention the new module.
3182
3183 2012-04-02  Bruno Haible  <bruno@clisp.org>
3184
3185         logb tests: More tests.
3186         * tests/test-logb.h: New file, based on tests/test-logb.c and
3187         tests/test-frexp.h.
3188         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3189         (main): Just invoke test_function.
3190         * modules/logb-tests (Files): Add tests/test-logb.h,
3191         tests/minus-zero.h, tests/randomd.c.
3192         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3193
3194         logb: Provide replacement and workarounds.
3195         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3196         is 1.
3197         * lib/logb.c: New file.
3198         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3199         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3200         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3201         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3202         * modules/logb (Files): Add lib/logb.c.
3203         (Depends-on): Add isfinite, frexp, isnand.
3204         (configure.ac): Compile the replacement code logb.c if needed.
3205         * tests/test-math-c++.cc: Check the declaration of logb.
3206         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3207         with subnormal numbers.
3208
3209 2012-04-02  Bruno Haible  <bruno@clisp.org>
3210
3211         log10* tests: Speed up.
3212         * tests/test-log10.h (test_function): Reduce amount of random numbers
3213         to test.
3214
3215 2012-04-01  Bruno Haible  <bruno@clisp.org>
3216
3217         logf-ieee: Fix test whether logf works.
3218         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3219
3220 2012-04-01  Bruno Haible  <bruno@clisp.org>
3221
3222         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3223         * lib/log10l.c: Include <float.h>
3224         (log10l): On IRIX, normalize the +Infinity value.
3225         * modules/log10l (Depends-on): Add 'float'.
3226         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3227         +Infinity.
3228
3229         log10f-ieee: Work around test failure on NetBSD 5.1.
3230         * m4/log10f-ieee.m4: New file.
3231         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3232         test whether log10f works with a negative argument. Replace it if not.
3233         * lib/log10f.c (log10f): For negative arguments, return NaN.
3234         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3235         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3236         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3237
3238         log10f-ieee: Work around test failure on Solaris 9.
3239         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3240         (configure.ac): Require gl_FUNC_LOG10F.
3241
3242         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3243         * m4/log10-ieee.m4: New file.
3244         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3245         whether log10 works with a negative argument. Replace it if not.
3246         * lib/log10.c (log10): For negative arguments, return NaN.
3247         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3248         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3249         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3250
3251         Tests for module 'log10l-ieee'.
3252         * modules/log10l-ieee-tests: New file.
3253         * tests/test-log10l-ieee.c: New file.
3254
3255         New module 'log10l-ieee'.
3256         * modules/log10l-ieee: New file.
3257
3258         Tests for module 'log10-ieee'.
3259         * modules/log10-ieee-tests: New file.
3260         * tests/test-log10-ieee.c: New file.
3261
3262         New module 'log10-ieee'.
3263         * modules/log10-ieee: New file.
3264
3265         Tests for module 'log10f-ieee'.
3266         * modules/log10f-ieee-tests: New file.
3267         * tests/test-log10f-ieee.c: New file.
3268         * tests/test-log10-ieee.h: New file.
3269
3270         New module 'log10f-ieee'.
3271         * modules/log10f-ieee: New file.
3272
3273 2012-04-01  Bruno Haible  <bruno@clisp.org>
3274
3275         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3276         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3277         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3278         workaround.
3279         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3280         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3281         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3282         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3283         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3284         (Depends-on): Update conditions.
3285         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3286         IRIX 6.5, OSF/1 5.1 problems.
3287
3288 2012-04-01  Bruno Haible  <bruno@clisp.org>
3289
3290         log10f: Work around OSF/1 5.1 bug.
3291         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3292         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3293         workaround.
3294         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3295         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3297         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3298         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3299         (Depends-on): Update conditions.
3300         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3301
3302 2012-04-01  Bruno Haible  <bruno@clisp.org>
3303
3304         log10: Work around OSF/1 5.1 bug.
3305         * lib/math.in.h (log10): New declaration.
3306         * lib/log10.c: New file.
3307         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3308         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3309         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3310         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3311         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3312         * modules/log10 (Files): Add lib/log10.c.
3313         (Depends-on): Add math.
3314         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3315         * tests/test-math-c++.cc: Check the declaration of log10.
3316         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3317
3318 2012-03-31  Bruno Haible  <bruno@clisp.org>
3319
3320         log10l tests: More tests.
3321         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3322         tests/minus-zero.h, tests/randoml.c.
3323         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3324         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3325         (main): Invoke test_function.
3326
3327         log10f tests: More tests.
3328         * modules/log10f-tests (Files): Add tests/test-log10.h,
3329         tests/minus-zero.h, tests/randomf.c.
3330         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3331         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3332         (main): Invoke test_function.
3333
3334         log10 tests: More tests.
3335         * tests/test-log10.h: New file.
3336         * modules/log10-tests (Files): Add tests/test-log10.h,
3337         tests/minus-zero.h, tests/randomd.c.
3338         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3339         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3340         (main): Invoke test_function.
3341
3342 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3343
3344         fflush: Fix syntax error.
3345         * lib/fflush.c: Include unused-parameter.h, needed for
3346         _GL_UNUSED_PARAMETER.
3347         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3348
3349 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3350
3351         regex: pacify GCC when compiling GRUB
3352         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3353         a diagnostic.  Reported by Vladimir Serbinenko in
3354         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3355
3356 2012-03-29  Eric Blake  <eblake@redhat.com>
3357
3358         stdio: don't assume gets any more
3359         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3360         support.
3361         * modules/stdio (Makefile.am): Likewise.
3362         * lib/stdio-read.c (gets): Likewise.
3363         * tests/test-stdio-c++.cc: Likewise.
3364         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3365         * lib/stdio.in.h (gets): Make warning occur in more places.
3366         * doc/posix-functions/gets.texi (gets): Update documentation.
3367         Reported by Christer Solskogen.
3368
3369         maint.mk: fix syntax checks without exclusions
3370         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3371         Reported by Daniel P. Berrange.
3372
3373         strerror_r: avoid compiler warning
3374         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3375         level.
3376
3377         fflush: avoid compiler warning
3378         * lib/fflush.c (update_fpos_cache): Mark variables that are
3379         potentially unused.
3380
3381 2012-03-25  Bruno Haible  <bruno@clisp.org>
3382
3383         Tests for module 'localeconv'.
3384         * modules/localeconv-tests: New file.
3385         * tests/test-localeconv.c: New file.
3386
3387         New module 'localeconv'.
3388         * lib/locale.in.h (localeconv): New declaration.
3389         * lib/localeconv.c: New file.
3390         * m4/localeconv.m4: New file.
3391         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3392         REPLACE_LOCALECONV.
3393         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3394         REPLACE_LOCALECONV.
3395         * modules/localeconv: New file.
3396         * modules/nl_langinfo (Depends-on): Add localeconv.
3397         * modules/human (Depends-on): Likewise.
3398         * doc/posix-functions/localeconv.texi: Mention the new module.
3399
3400 2012-03-25  Bruno Haible  <bruno@clisp.org>
3401
3402         locale: Provide a complete 'struct lconv'.
3403         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3404         'struct lconv' does not contain int_p_cs_precedes.
3405         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3406         * doc/posix-headers/locale.texi: Update.
3407
3408         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3409         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3410         * doc/posix-headers/locale.texi: Update.
3411
3412         locale: Provide a working 'struct lconv'.
3413         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3414         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3415         'struct lconv' does not even contain decimal_point.
3416         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3417         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3418         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3419         * doc/posix-headers/locale.texi: Mention the problems with
3420         'struct lconv'.
3421         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3422
3423 2012-03-24  Bruno Haible  <bruno@clisp.org>
3424
3425         Enable common subexpression optimization in GCC.
3426         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3427         macros.
3428         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3429         GCC attribute 'const'.
3430         (uc_locale_language): Declare with GCC attribute 'pure'.
3431         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3432         with GCC attribute 'const'.
3433         * lib/unictype.in.h (uc_is_general_category_withtable,
3434         uc_combining_class, uc_combining_class_name,
3435         uc_combining_class_long_name, uc_bidi_class_name,
3436         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3437         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3438         uc_decimal_value, uc_digit_value, uc_numeric_value,
3439         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3440         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3441         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3442         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3443         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3444         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3445         Declare with GCC attribute 'const'.
3446         (uc_general_category_name, uc_general_category_long_name,
3447         uc_general_category_byname, uc_general_category,
3448         uc_is_general_category, uc_combining_class_byname,
3449         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3450         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3451         Declare with GCC attribute 'pure'.
3452         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3453         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3454         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3455         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3456         with GCC attribute 'pure'.
3457         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3458         'const'.
3459         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3460         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3461         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3462         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3463         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3464         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3465         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3466         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3467         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3468         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3469         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3470         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3471         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3472         GCC attribute 'pure'.
3473         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3474         'const'.
3475         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3476         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3477         u32_strwidth): Declare with GCC attribute 'pure'.
3478
3479         Enable common subexpression optimization in GCC.
3480         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3481         (alphasort): Declare with GCC attribute 'pure'.
3482         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3483         (atoll): Declare with GCC attribute 'pure'.
3484         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3485         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3486         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3487         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3488         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3489         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3490         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3491
3492 2012-03-24  Bruno Haible  <bruno@clisp.org>
3493
3494         gnulib-tool: Avoid unintended error output from 'cmp'.
3495         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3496         "cmp -s", not "cmp > /dev/null".
3497
3498 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3499
3500         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3501
3502         It's not just Automake versions < 1.9b that creates an empty
3503         pkgdatadir at installation time if pkgdata_DATA is specified
3504         to empty; modern automake versions do this as well, at least
3505         until automake 1.11.4 (not yet released at the moment of writing,
3506         but soon to appear).  That behaviour was generally considered a
3507         feature rather than a bug, at least until this discussion:
3508         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
3509
3510         See also automake bugs #10997 and #11030.
3511
3512         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
3513         reference to relevant automake bug numbers.
3514         (func_emit_tests_Makefile_am): Likewise.
3515
3516 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3517
3518         announce-gen: use Digest::SHA when possible
3519         * build-aux/announce-gen: Use Digest::SHA when possible, falling
3520         back to Digest::SHA1 if necessary.
3521
3522 2012-03-20  Jim Meyering  <meyering@redhat.com>
3523
3524         tests: avoid gcc warnings about argv vs. const initializers
3525         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
3526         warnings about discarding 'const' qualifier from pointer target type.
3527         * tests/test-posix_spawn2.c (main): Likewise.
3528
3529 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
3530
3531         README-release: simplify slightly
3532         * top/README-release: Run "git checkout master" only once.
3533
3534 2012-03-15  Mark Wielaard  <mark@klomp.org>
3535
3536         git-merge-changelog: add specific example on how to use with hg.
3537         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
3538
3539 2012-03-18  Mark Wielaard  <mark@klomp.org>
3540
3541         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
3542
3543 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
3544
3545         git-version-gen: don't let "prefix" envvar cause trouble
3546         * build-aux/git-version-gen (prefix): Initialize properly,
3547         so as not to use a value specified via the environment.
3548         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
3549
3550 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3551
3552         regex: diagnose too-large repeat counts in EREs
3553         Previously, the code did not diagnose the too-large repeat count
3554         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
3555         as if it were 'b\{1000000000}', which is unexpected.
3556         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
3557         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
3558         is a reasonable one for this problem.  Another option would be to
3559         create a new REG_OVERFLOW error for repeat counts that are too large.
3560         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
3561         count is too large, so that the caller can distinguish the two cases.
3562         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
3563         "Too large" return code, and that repeat counts are one example of this.
3564
3565 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
3566
3567         doc: some glibc x32 integer width issues
3568         * doc/posix-headers/sys_types.texi (sys/types.h):
3569         * doc/posix-headers/time.texi (time.h):
3570         Mention that glibc x32 does not conform to POSIX in a couple of
3571         areas related to integer widths.
3572
3573 2012-03-15  Bruno Haible  <bruno@clisp.org>
3574
3575         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
3576         * lib/fma.c (VOLATILE): New macro.
3577         (FUNC): Use it to work around a GCC compiler bug.
3578
3579 2012-03-13  Bruno Haible  <bruno@clisp.org>
3580
3581         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3582         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
3583         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
3584         REPLACE_HYPOTL to 1.
3585         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
3586
3587 2012-03-13  Bruno Haible  <bruno@clisp.org>
3588
3589         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3590         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
3591         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
3592         REPLACE_REMAINDERL to 1.
3593         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
3594         bug.
3595
3596 2012-03-13  Bruno Haible  <bruno@clisp.org>
3597
3598         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3599         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
3600         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
3601         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
3602         too big rounding errors.
3603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
3604         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
3605         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
3606         (Depends-on): Update conditions.
3607         * tests/test-sqrtl.c (my_ldexpl): New function.
3608         (main): Add test of a particular value.
3609         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3610
3611 2012-03-13  Pádraig Brady  <P@draigBrady.com>
3612
3613         doc: Update timer_* platform portability notes.
3614         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
3615         that always return ENOSYS.
3616         * doc/posix-functions/timer_delete.texi: Likewise.
3617         * doc/posix-functions/timer_gettime.texi: Likewise.
3618         * doc/posix-functions/timer_settime.texi: Likewise.
3619
3620 2012-03-13  Bruno Haible  <bruno@clisp.org>
3621
3622         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
3623         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
3624         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
3625         REPLACE_CBRTL to 1.
3626         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
3627
3628 2012-03-13  Bruno Haible  <bruno@clisp.org>
3629
3630         remainderl: Avoid compilation error on AIX >= 5.2.
3631         * lib/math.in.h (remainderl): Undefine macro from the system header.
3632
3633 2012-03-13  Bruno Haible  <bruno@clisp.org>
3634
3635         Avoid compilation errors with MSVC option -fp:strict.
3636         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
3637         * lib/cbrtf.c: Likewise.
3638         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3639
3640 2012-03-12  Bruno Haible  <bruno@clisp.org>
3641
3642         uninorm: Don't crash in out-of-memory conditions.
3643         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
3644         gracefully.
3645         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
3646         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
3647
3648 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
3649
3650         quote: fix syntax-check
3651         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
3652         also exports quote_quoting_options.
3653
3654 2012-03-12  Simon Josefsson  <simon@josefsson.org>
3655
3656         Collapse list of copyright years to ranges.  See
3657         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
3658         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
3659         build-aux/csharpexec.sh.in, build-aux/gnupload,
3660         build-aux/install-reloc, build-aux/javacomp.sh.in,
3661         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
3662         build-aux/move-if-change, build-aux/reloc-ldflags,
3663         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
3664
3665 2012-03-11  Bruno Haible  <bruno@clisp.org>
3666
3667         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3668         * m4/log2f-ieee.m4: New file.
3669         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
3670         whether log2f works with a minus zero argument. Replace it if not.
3671         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
3672         (Depends-on): Add log2-ieee.
3673         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
3674         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
3675
3676         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
3677         * m4/log2-ieee.m4: New file.
3678         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
3679         whether log2 works with a minus zero argument. Replace it if not.
3680         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
3681         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
3682         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
3683
3684         Tests for module 'log2l-ieee'.
3685         * modules/log2l-ieee-tests: New file.
3686         * tests/test-log2l-ieee.c: New file.
3687
3688         New module 'log2l-ieee'.
3689         * modules/log2l-ieee: New file.
3690
3691         Tests for module 'log2-ieee'.
3692         * modules/log2-ieee-tests: New file.
3693         * tests/test-log2-ieee.c: New file.
3694
3695         New module 'log2-ieee'.
3696         * modules/log2-ieee: New file.
3697
3698         Tests for module 'log2f-ieee'.
3699         * modules/log2f-ieee-tests: New file.
3700         * tests/test-log2f-ieee.c: New file.
3701         * tests/test-log2-ieee.h: New file.
3702
3703         New module 'log2f-ieee'.
3704         * modules/log2f-ieee: New file.
3705
3706 2012-03-11  Bruno Haible  <bruno@clisp.org>
3707
3708         Tests for module 'log2l'.
3709         * modules/log2l-tests: New file.
3710         * tests/test-log2l.c: New file.
3711
3712         New module 'log2l'.
3713         * lib/math.in.h (log2l): New declaration.
3714         * lib/log2l.c: New file.
3715         * m4/log2l.m4: New file.
3716         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
3717         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
3718         REPLACE_LOG2L.
3719         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
3720         REPLACE_LOG2L.
3721         * modules/log2l: New file.
3722         * tests/test-math-c++.cc: Check the declaration of log2l.
3723         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
3724         and OSF/1 problems.
3725
3726 2012-03-11  Bruno Haible  <bruno@clisp.org>
3727
3728         Tests for module 'log2f'.
3729         * modules/log2f-tests: New file.
3730         * tests/test-log2f.c: New file.
3731
3732         New module 'log2f'.
3733         * lib/math.in.h (log2f): New declaration.
3734         * lib/log2f.c: New file.
3735         * m4/log2f.m4: New file.
3736         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
3737         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
3738         REPLACE_LOG2F.
3739         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
3740         REPLACE_LOG2F.
3741         * modules/log2f: New file.
3742         * tests/test-math-c++.cc: Check the declaration of log2f.
3743         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
3744         and OSF/1 and Cygwin problems.
3745
3746 2012-03-11  Bruno Haible  <bruno@clisp.org>
3747
3748         Tests for module 'log2'.
3749         * modules/log2-tests: New file.
3750         * tests/test-log2.c: New file.
3751         * tests/test-log2.h: New file.
3752
3753         New module 'log2'.
3754         * lib/math.in.h (log2): New declaration.
3755         * lib/log2.c: New file.
3756         * m4/log2.m4: New file.
3757         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
3758         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
3759         REPLACE_LOG2.
3760         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
3761         REPLACE_LOG2.
3762         * modules/log2: New file.
3763         * tests/test-math-c++.cc: Check the declaration of log2.
3764         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
3765         and OSF/1 and Cygwin problems.
3766
3767 2012-03-11  Bruno Haible  <bruno@clisp.org>
3768
3769         exp2* tests: More tests.
3770         * tests/test-exp2.h (test_function): Test all integral arguments that
3771         don't need to overflow or denormalized numbers.
3772         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
3773         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
3774         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
3775
3776 2012-03-10  Bruno Haible  <bruno@clisp.org>
3777
3778         log1pl-ieee: Work around test failure on AIX 7.1.
3779         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
3780
3781         log1pl-ieee: Work around test failure on IRIX 6.5.
3782         * m4/log1pl-ieee.m4: New file.
3783         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
3784         test whether log1pl works with a minus zero argument. Replace it if
3785         not.
3786         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
3787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
3788         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
3789         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
3790         (Depends-on): Update conditions.
3791         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3792         m4/signbit.m4.
3793         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
3794         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
3795
3796         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
3797         * m4/log1pf-ieee.m4: New file.
3798         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
3799         test whether log1pf works with a minus zero argument. Replace it if
3800         not.
3801         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
3802         m4/signbit.m4.
3803         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
3804         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
3805
3806         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
3807         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
3808         (configure.ac): Require gl_FUNC_LOG1PF.
3809
3810         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
3811         * m4/log1p-ieee.m4: New file.
3812         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
3813         whether log1p works with a minus zero argument. Replace it if not.
3814         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
3815         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
3816         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
3817         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
3818         (Depends-on): Update conditions.
3819         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
3820         m4/signbit.m4.
3821         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
3822         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
3823
3824         Tests for module 'log1pl-ieee'.
3825         * modules/log1pl-ieee-tests: New file.
3826         * tests/test-log1pl-ieee.c: New file.
3827
3828         New module 'log1pl-ieee'.
3829         * modules/log1pl-ieee: New file.
3830
3831         Tests for module 'log1p-ieee'.
3832         * modules/log1p-ieee-tests: New file.
3833         * tests/test-log1p-ieee.c: New file.
3834
3835         New module 'log1p-ieee'.
3836         * modules/log1p-ieee: New file.
3837
3838         Tests for module 'log1pf-ieee'.
3839         * modules/log1pf-ieee-tests: New file.
3840         * tests/test-log1pf-ieee.c: New file.
3841         * tests/test-log1p-ieee.h: New file.
3842
3843         New module 'log1pf-ieee'.
3844         * modules/log1pf-ieee: New file.
3845
3846 2012-03-10  Bruno Haible  <bruno@clisp.org>
3847
3848         Tests for module 'log1pl'.
3849         * modules/log1pl-tests: New file.
3850         * tests/test-log1pl.c: New file.
3851
3852         New module 'log1pl'.
3853         * lib/math.in.h (log1pl): New declaration.
3854         * lib/log1pl.c: New file.
3855         * m4/log1pl.m4: New file.
3856         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
3857         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
3858         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
3859         * modules/log1pl: New file.
3860         * tests/test-math-c++.cc: Check the declaration of log1pl.
3861         * doc/posix-functions/log1pl.texi: Mention the new module.
3862
3863 2012-03-10  Bruno Haible  <bruno@clisp.org>
3864
3865         Tests for module 'log1pf'.
3866         * modules/log1pf-tests: New file.
3867         * tests/test-log1pf.c: New file.
3868
3869         New module 'log1pf'.
3870         * lib/math.in.h (log1pf): New declaration.
3871         * lib/log1pf.c: New file.
3872         * m4/log1pf.m4: New file.
3873         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
3874         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
3875         REPLACE_LOG1PF.
3876         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
3877         REPLACE_LOG1PF.
3878         * modules/log1pf: New file.
3879         * tests/test-math-c++.cc: Check the declaration of log1pf.
3880         * doc/posix-functions/log1pf.texi: Mention the new module.
3881
3882 2012-03-10  Bruno Haible  <bruno@clisp.org>
3883
3884         log1p tests: More tests.
3885         * tests/test-log1p.h: New file.
3886         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
3887         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
3888         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
3889         (main): Invoke test_function.
3890
3891         log1p: Provide replacement for Minix and MSVC.
3892         * lib/math.in.h (log1p): New declaration.
3893         * lib/log1p.c: New file.
3894         * m4/log1p.m4: New file.
3895         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
3896         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
3897         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3898         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3899         (Depends-on): Add math, isnand, log, round.
3900         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3901         HAVE_LOG1P is 0.
3902         * tests/test-math-c++.cc: Check the declaration of log1p.
3903         * doc/posix-functions/log1p.texi: Mention the replacement.
3904
3905 2012-03-10  Bruno Haible  <bruno@clisp.org>
3906
3907         math tests: Small simplification.
3908         * tests/test-exp.h (test_function): Use the same err_bound for
3909         'double' on platforms with sizeof (long double) == sizeof (double)
3910         than on platforms with sizeof (long double) > sizeof (double).
3911         * tests/test-exp2.h (test_function): Likewise.
3912         * tests/test-expm1.h (test_function): Likewise.
3913         * tests/test-log.h (test_function): Likewise.
3914
3915 2012-03-10  Bruno Haible  <bruno@clisp.org>
3916
3917         Fix some comments.
3918         * lib/expl.c: Fix an ambiguous comment.
3919         * lib/expm1.c: Likewise.
3920         * lib/expm1l.c: Likewise.
3921         * lib/exp2.c: Likewise.
3922         * lib/exp2l.c: Likewise.
3923
3924 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3925
3926         regex: allow inclusion of <regex.h> before <limits.h>
3927         Without this patch, portable programs had to include <limits.h> before
3928         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
3929         I ran into this problem with a test version of GNU grep on Solaris 8.
3930         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
3931         This is done conditionally so that this change can be merged
3932         back to glibc.
3933         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
3934         using the included regex.
3935
3936         fts: depend on fdopendir
3937         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
3938         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
3939         problem was introduced when fdopendir was split out.
3940
3941 2012-03-10  Bruno Haible  <bruno@clisp.org>
3942
3943         Remove unused variables.
3944         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
3945         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3946
3947 2012-03-10  Bruno Haible  <bruno@clisp.org>
3948
3949         isnanf-nolibm: Fix last commit.
3950         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
3951
3952         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
3953         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
3954
3955 2012-03-10  Bruno Haible  <bruno@clisp.org>
3956
3957         logf-ieee: Work around test failure on NetBSD 5.1.
3958         * m4/logf-ieee.m4: New file.
3959         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
3960         whether logf works with a negative argument. Replace it if not.
3961         * lib/logf.c (logf): For negative arguments, return NaN.
3962         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
3963         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
3964         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
3965
3966         logf-ieee: Work around test failure on Solaris 9.
3967         * modules/logf-ieee (Depends-on): Add log-ieee.
3968         (configure.ac): Require gl_FUNC_LOGF.
3969
3970         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3971         * m4/log-ieee.m4: New file.
3972         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
3973         log works with a negative argument. Replace it if not.
3974         * lib/log.c (log): For negative arguments, return NaN.
3975         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3976         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3977         * doc/posix-functions/log.texi: Mention the log-ieee module.
3978
3979         Tests for module 'logl-ieee'.
3980         * modules/logl-ieee-tests: New file.
3981         * tests/test-logl-ieee.c: New file.
3982
3983         New module 'logl-ieee'.
3984         * modules/logl-ieee: New file.
3985
3986         Tests for module 'log-ieee'.
3987         * modules/log-ieee-tests: New file.
3988         * tests/test-log-ieee.c: New file.
3989
3990         New module 'log-ieee'.
3991         * modules/log-ieee: New file.
3992
3993         Tests for module 'logf-ieee'.
3994         * modules/logf-ieee-tests: New file.
3995         * tests/test-logf-ieee.c: New file.
3996         * tests/test-log-ieee.h: New file.
3997
3998         New module 'logf-ieee'.
3999         * modules/logf-ieee: New file.
4000
4001 2012-03-10  Bruno Haible  <bruno@clisp.org>
4002
4003         log: Fix bug introduced on 2012-03-09.
4004         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4005
4006 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4007
4008         timer-time: link explicitly with pthreads on glibc
4009         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4010         to support static linking, when newer glibc is
4011         detected, as that contains pthread emulation of
4012         POSIX timer functions where required.
4013         * modules/timer-time: Depend on threadlib to
4014         pull in the appropriate library to link.
4015
4016 2012-03-10  Bruno Haible  <bruno@clisp.org>
4017
4018         log* tests: More tests.
4019         * tests/test-log.h: New file.
4020         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4021         (main): Invoke test_function.
4022         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4023         (main): Invoke test_function.
4024         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4025         (main): Invoke test_function.
4026         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4027         tests/randomd.c.
4028         (Makefile.am): Add randomd.c to test_log_SOURCES.
4029         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4030         tests/randomf.c.
4031         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4032         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4033         tests/randoml.c.
4034         (Depends-on): Add 'float'.
4035         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4036
4037 2012-03-09  Bruno Haible  <bruno@clisp.org>
4038
4039         logl: Work around OSF/1 5.1 bug.
4040         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4041         * lib/logl.c (logl): If logl exists, use it and provide just the
4042         workaround.
4043         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4044         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4046         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4047         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4048         (Depends-on): Update conditions.
4049         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4050
4051 2012-03-09  Bruno Haible  <bruno@clisp.org>
4052
4053         logf: Work around OSF/1 5.1 bug.
4054         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4055         * lib/logf.c (logf): If logf exists, use it and provide just the
4056         workaround.
4057         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4058         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4059         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4060         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4061         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4062         (Depends-on): Update conditions.
4063         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4064
4065 2012-03-09  Bruno Haible  <bruno@clisp.org>
4066
4067         log: Work around OSF/1 5.1 bug.
4068         * lib/math.in.h (log): New declaration.
4069         * lib/log.c: New file.
4070         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4071         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4072         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4074         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4075         * modules/log (Files): Add lib/log.c.
4076         (Depends-on): Add math.
4077         (configure.ac): If REPLACE_LOG is 1, compile an override.
4078         * tests/test-math-c++.cc: Check the declaration of log.
4079         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4080
4081 2012-03-09  Jim Meyering  <meyering@redhat.com>
4082
4083         readtokens.c: adjust wording in a comment
4084         * lib/readtokens.c: Insert omitted "that" in a comment.
4085
4086 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4087
4088         modechange: add notations +40, 00440, etc.
4089         * lib/modechange.c (mode_compile): Support new notations
4090         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4091
4092 2012-03-08  Bruno Haible  <bruno@clisp.org>
4093
4094         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4095         * m4/exp2l-ieee.m4: New file.
4096         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4097         test whether exp2l works with a NaN argument and with a negative
4098         infinity argument. Replace it if not.
4099         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4100         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4101         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4102         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4103         (Depends-on): Update conditions.
4104         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4105         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4106         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4107
4108         Tests for module 'exp2l-ieee'.
4109         * modules/exp2l-ieee-tests: New file.
4110         * tests/test-exp2l-ieee.c: New file.
4111
4112         New module 'exp2l-ieee'.
4113         * modules/exp2l-ieee: New file.
4114
4115         Tests for module 'exp2-ieee'.
4116         * modules/exp2-ieee-tests: New file.
4117         * tests/test-exp2-ieee.c: New file.
4118
4119         New module 'exp2-ieee'.
4120         * modules/exp2-ieee: New file.
4121
4122         Tests for module 'exp2f-ieee'.
4123         * modules/exp2f-ieee-tests: New file.
4124         * tests/test-exp2f-ieee.c: New file.
4125         * tests/test-exp2-ieee.h: New file.
4126
4127         New module 'exp2f-ieee'.
4128         * modules/exp2f-ieee: New file.
4129
4130 2012-03-08  Bruno Haible  <bruno@clisp.org>
4131
4132         Tests for module 'exp2l'.
4133         * modules/exp2l-tests: New file.
4134         * tests/test-exp2l.c: New file.
4135
4136         New module 'exp2l'.
4137         * lib/math.in.h (exp2l): New declaration.
4138         * lib/exp2l.c: New file.
4139         * lib/expl-table.c: New file, extracted from lib/expl.c.
4140         * lib/expl.c (gl_expl_table): New declaration.
4141         (expl): Remove expl_table. Update reference.
4142         * m4/exp2l.m4: New file.
4143         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4144         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4145         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4146         * modules/exp2l: New file.
4147         * modules/expl (Files): Add lib/expl-table.c.
4148         (configure.ac): Compile also expl-table.c.
4149         * tests/test-math-c++.cc: Check the declaration of exp2l.
4150         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4151         problem.
4152
4153 2012-03-08  Bruno Haible  <bruno@clisp.org>
4154
4155         Tests for module 'exp2f'.
4156         * modules/exp2f-tests: New file.
4157         * tests/test-exp2f.c: New file.
4158
4159         New module 'exp2f'.
4160         * lib/math.in.h (exp2f): New declaration.
4161         * lib/exp2f.c: New file.
4162         * m4/exp2f.m4: New file.
4163         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4164         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4165         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4166         * modules/exp2f: New file.
4167         * tests/test-math-c++.cc: Check the declaration of exp2f.
4168         * doc/posix-functions/exp2f.texi: Mention the new module and the
4169         IRIX problem.
4170
4171 2012-03-08  Bruno Haible  <bruno@clisp.org>
4172
4173         Tests for module 'exp2'.
4174         * modules/exp2-tests: New file.
4175         * tests/test-exp2.c: New file.
4176         * tests/test-exp2.h: New file.
4177
4178         New module 'exp2'.
4179         * lib/math.in.h (exp2): New declaration.
4180         * lib/exp2.c: New file.
4181         * m4/exp2.m4: New file.
4182         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4184         REPLACE_EXP2.
4185         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4186         REPLACE_EXP2.
4187         * modules/exp2: New file.
4188         * tests/test-math-c++.cc: Check the declaration of exp2.
4189         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4190         and OpenBSD problems.
4191
4192 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4193
4194         savedir: fix comment typo
4195         * lib/savedir.c (savedirstream): Fix typo in comment.
4196
4197 2012-03-08  Bruno Haible  <bruno@clisp.org>
4198
4199         test-readtokens.c: use const; remove unwarranted cast
4200         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4201
4202 2012-03-08  Bruno Haible  <bruno@clisp.org>
4203
4204         fmal: Avoid compilation error on AIX.
4205         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4206         AIX 5.2..7.1.
4207
4208 2012-03-08  Bruno Haible  <bruno@clisp.org>
4209
4210         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4211         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4212         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4213         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4214         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4215         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4216         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4217
4218 2012-03-08  Bruno Haible  <bruno@clisp.org>
4219
4220         remainderf: Override buggy system function on IRIX 6.5.
4221         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4222         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4223         when it exists.
4224         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4225
4226 2012-03-08  Jim Meyering  <meyering@redhat.com>
4227
4228         test-readtokens.c: avoid const-related compilation warnings
4229         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4230
4231 2012-03-07  Jim Meyering  <meyering@redhat.com>
4232             Bruno Haible  <bruno@clisp.org>
4233
4234         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4235         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4236         tests/randomd.c.
4237         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4238         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4239         tests/randoml.c.
4240         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4241
4242 2012-03-07  Bruno Haible  <bruno@clisp.org>
4243
4244         expm1l: Avoid compilation error on AIX.
4245         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4246         AIX 5.2..7.1.
4247
4248 2012-03-07  Bruno Haible  <bruno@clisp.org>
4249
4250         expm1l: Don't override undeclared system function on IRIX 6.5.
4251         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4252         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4253         it exists. Set HAVE_DECL_EXPM1L.
4254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4255         HAVE_EXPM1L.
4256         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4257         HAVE_EXPM1L.
4258         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4259
4260 2012-03-07  Bruno Haible  <bruno@clisp.org>
4261
4262         remainderl: Don't override undeclared system function on IRIX 6.5.
4263         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4264         HAVE_REMAINDERL.
4265         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4266         declared when it exists. Set HAVE_DECL_REMAINDERL.
4267         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4268         not HAVE_REMAINDERL.
4269         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4270         HAVE_REMAINDERL.
4271         * doc/posix-functions/remainderl.texi: Mention missing declaration
4272         problem.
4273
4274 2012-03-07  Bruno Haible  <bruno@clisp.org>
4275
4276         rintf: Don't override undeclared system function on IRIX 6.5.
4277         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4278         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4279         exists. Set HAVE_DECL_RINTF.
4280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4281         HAVE_RINTF.
4282         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4283         HAVE_RINTF.
4284         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4285
4286 2012-03-07  Bruno Haible  <bruno@clisp.org>
4287
4288         roundl: Avoid compilation error on AIX.
4289         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4290         AIX 5.2..7.1.
4291
4292 2012-03-07  Bruno Haible  <bruno@clisp.org>
4293
4294         roundl: Don't override undeclared system function on IRIX 6.5.
4295         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4296         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4297         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4298         * modules/roundl (configure.ac): For replacement code, test
4299         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4300         (Depends-on): Update conditions.
4301         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4302
4303 2012-03-07  Bruno Haible  <bruno@clisp.org>
4304
4305         roundf: Don't override undeclared system function on IRIX 6.5.
4306         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4307         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4308         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4309         * modules/roundf (configure.ac): For replacement code, test
4310         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4311         (Depends-on): Update conditions.
4312         * modules/roundf-ieee (Depends-on): Update conditions.
4313         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4314
4315 2012-03-07  Bruno Haible  <bruno@clisp.org>
4316
4317         round: Don't override undeclared system function on IRIX 6.5.
4318         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4319         argument.
4320         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4321         also when it is not declared. Set HAVE_ROUND. For replacement code,
4322         test HAVE_ROUND, not HAVE_DECL_ROUND.
4323         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4324         not HAVE_DECL_ROUND.
4325         (Depends-on): Update conditions.
4326         * modules/round-ieee (Depends-on): Update conditions.
4327         * doc/posix-functions/round.texi: Mention the IRIX problem.
4328
4329 2012-03-07  Bruno Haible  <bruno@clisp.org>
4330
4331         copysignf: Don't override undeclared system function on IRIX 6.5.
4332         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4333         HAVE_COPYSIGNF.
4334         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4335         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4336         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4337         not HAVE_COPYSIGNF.
4338         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4339         HAVE_COPYSIGNF.
4340         * doc/posix-functions/copysignf.texi: Mention missing declaration
4341         problem.
4342
4343 2012-03-07  Jim Meyering  <meyering@redhat.com>
4344
4345         readtokens: add tests
4346         * modules/readtokens-tests: New file.
4347         * tests/test-readtokens.c: New file.
4348
4349 2012-03-07  Jim Meyering  <meyering@redhat.com>
4350
4351         quotearg: the module must now include quote.h
4352         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4353         So must the module.
4354         * modules/quotearg (Files): Add quote.h.
4355
4356 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4357
4358         readtokens: avoid core dumps with unusual calling patterns
4359         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4360         * lib/readtokens.c: Include limits.h.
4361         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4362         (readtoken): Don't cache the delimiters; the cache code was buggy
4363         if !delim && saved_delim, or if the new n_delim differs from the old.
4364         Also, it wasn't thread-safe.
4365
4366 2012-03-07  Bruno Haible  <bruno@clisp.org>
4367
4368         quote: Adhere to common module description layout.
4369         * modules/quote (Makefile.am): Add back empty section.
4370
4371 2012-03-06  Akim Demaille  <demaille@gostai.com>
4372
4373         quote: fuse into quotearg
4374         This patch is made for the benefit of Bison.
4375         quote does not leave the choice of the quoting style to the user.
4376         quoting_style provides poor customizability, yet quoting_options,
4377         which is very rich, is hidden inside quotearg.c.  So in order to
4378         allow quote customization, move its implementation to quotearg.c.
4379         * lib/quote.c: Remove.
4380         * modules/quote: Adjust.
4381         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4382         warning: provide all the members of literal structs.
4383         (quote_quoting_options): New.
4384         (quote, quote_n): Import implementation from quote.c.
4385         * lib/quote.h: Import the comments from quote.c.
4386         (quote_quoting_options): New.
4387
4388 2012-03-06  Bruno Haible  <bruno@clisp.org>
4389
4390         Tests for module 'expm1l-ieee'.
4391         * modules/expm1l-ieee-tests: New file.
4392         * tests/test-expm1l-ieee.c: New file.
4393
4394         New module 'expm1l-ieee'.
4395         * modules/expm1l-ieee: New file.
4396
4397         Tests for module 'expm1f-ieee'.
4398         * modules/expm1f-ieee-tests: New file.
4399         * tests/test-expm1f-ieee.c: New file.
4400
4401         New module 'expm1f-ieee'.
4402         * modules/expm1f-ieee: New file.
4403
4404         Tests for module 'expm1-ieee'.
4405         * modules/expm1-ieee-tests: New file.
4406         * tests/test-expm1-ieee.c: New file.
4407         * tests/test-expm1-ieee.h: New file.
4408
4409         New module 'expm1-ieee'.
4410         * modules/expm1-ieee: New file.
4411         * m4/expm1-ieee.m4: New file.
4412         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4413         whether expm1 works with a minus zero argument. Replace it if not.
4414         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4415         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4416         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4417         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4418         (Depends-on): Update conditions.
4419         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4420         AIX problem.
4421
4422 2012-03-06  Bruno Haible  <bruno@clisp.org>
4423
4424         Work around expm1f bug on IRIX 6.5.
4425         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4426         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4427         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4428         not work.
4429         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4430         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4431         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4432         (Depends-on): Update conditions.
4433         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4434
4435 2012-03-06  Bruno Haible  <bruno@clisp.org>
4436
4437         Tests for module 'expm1l'.
4438         * modules/expm1l-tests: New file.
4439         * tests/test-expm1l.c: New file.
4440
4441         New module 'expm1l'.
4442         * lib/math.in.h (expm1l): New declaration.
4443         * lib/expm1l.c: New file.
4444         * m4/expm1l.m4: New file.
4445         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4446         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4447         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4448         * modules/expm1l: New file.
4449         * tests/test-math-c++.cc: Check the declaration of expm1l.
4450         * doc/posix-functions/expm1l.texi: Mention the new module.
4451
4452 2012-03-06  Bruno Haible  <bruno@clisp.org>
4453
4454         Tests for module 'expm1f'.
4455         * modules/expm1f-tests: New file.
4456         * tests/test-expm1f.c: New file.
4457
4458         New module 'expm1f'.
4459         * lib/math.in.h (expm1f): New declaration.
4460         * lib/expm1f.c: New file.
4461         * m4/expm1f.m4: New file.
4462         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4463         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4464         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4465         * modules/expm1f: New file.
4466         * tests/test-math-c++.cc: Check the declaration of expm1f.
4467         * doc/posix-functions/expm1f.texi: Mention the new module.
4468
4469 2012-03-06  Bruno Haible  <bruno@clisp.org>
4470
4471         Tests for module 'expm1'.
4472         * modules/expm1-tests: New file.
4473         * tests/test-expm1.c: New file.
4474         * tests/test-expm1.h: New file.
4475
4476         New module 'expm1'.
4477         * lib/math.in.h (expm1): New declaration.
4478         * lib/expm1.c: New file.
4479         * m4/expm1.m4: New file.
4480         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4481         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4482         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4483         * modules/expm1: New file.
4484         * tests/test-math-c++.cc: Check the declaration of expm1.
4485         * doc/posix-functions/expm1.texi: Mention the new module.
4486
4487 2012-03-06  Bruno Haible  <bruno@clisp.org>
4488
4489         math: Ensure declarations of math functions.
4490         * modules/acosf (Depends-on): Add 'extensions'.
4491         * modules/asinf (Depends-on): Likewise.
4492         * modules/atan2f (Depends-on): Likewise.
4493         * modules/atanf (Depends-on): Likewise.
4494         * modules/cbrt (Depends-on): Likewise.
4495         * modules/cbrtf (Depends-on): Likewise.
4496         * modules/cbrtl (Depends-on): Likewise.
4497         * modules/copysignf (Depends-on): Likewise.
4498         * modules/copysignl (Depends-on): Likewise.
4499         * modules/cosf (Depends-on): Likewise.
4500         * modules/coshf (Depends-on): Likewise.
4501         * modules/expf (Depends-on): Likewise.
4502         * modules/fabsf (Depends-on): Likewise.
4503         * modules/fabsl (Depends-on): Likewise.
4504         * modules/fmaf (Depends-on): Likewise.
4505         * modules/fmal (Depends-on): Likewise.
4506         * modules/fmodf (Depends-on): Likewise.
4507         * modules/fmodl (Depends-on): Likewise.
4508         * modules/frexpf (Depends-on): Likewise.
4509         * modules/frexpl (Depends-on): Likewise.
4510         * modules/hypot (Depends-on): Likewise.
4511         * modules/hypotf (Depends-on): Likewise.
4512         * modules/hypotl (Depends-on): Likewise.
4513         * modules/ldexpf (Depends-on): Likewise.
4514         * modules/ldexpl (Depends-on): Likewise.
4515         * modules/log10f (Depends-on): Likewise.
4516         * modules/log10l (Depends-on): Likewise.
4517         * modules/log1p (Depends-on): Likewise.
4518         * modules/logb (Depends-on): Likewise.
4519         * modules/logf (Depends-on): Likewise.
4520         * modules/modff (Depends-on): Likewise.
4521         * modules/modfl (Depends-on): Likewise.
4522         * modules/powf (Depends-on): Likewise.
4523         * modules/remainderf (Depends-on): Likewise.
4524         * modules/remainderl (Depends-on): Likewise.
4525         * modules/rintf (Depends-on): Likewise.
4526         * modules/rintl (Depends-on): Likewise.
4527         * modules/sinf (Depends-on): Likewise.
4528         * modules/sinhf (Depends-on): Likewise.
4529         * modules/sqrtf (Depends-on): Likewise.
4530         * modules/tanf (Depends-on): Likewise.
4531         * modules/tanhf (Depends-on): Likewise.
4532         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
4533         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
4534         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
4535         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
4536         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
4537         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
4538         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
4539         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
4540         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
4541         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
4542         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
4543         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
4544         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
4545         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
4546         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
4547         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
4548         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
4549         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4550         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
4551         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
4552         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
4553         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
4554         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
4555         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
4556         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
4557         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
4558         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
4559         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
4560         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
4561         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
4562         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4563         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
4564         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4565         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4566         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
4567         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
4568         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
4569         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
4570         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
4571         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
4572         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
4573
4574 2012-03-06  Bruno Haible  <bruno@clisp.org>
4575
4576         math: Update module names in warnings.
4577         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
4578         tanl): Use specific module name in warn-on-use warning.
4579
4580 2012-03-06  Bruno Haible  <bruno@clisp.org>
4581
4582         expl: Simplify computation.
4583         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
4584
4585 2012-03-05  Bruno Haible  <bruno@clisp.org>
4586
4587         exp* tests: More tests.
4588         * tests/test-exp.h: New file.
4589         * tests/test-exp.c: Include <float.h> and test-exp.h.
4590         (main): Invoke test_function.
4591         * tests/test-expf.c: Include <float.h> and test-exp.h.
4592         (main): Invoke test_function.
4593         * tests/test-expl.c: Include <float.h> and test-exp.h.
4594         (main): Invoke test_function.
4595         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
4596         (Makefile.am): Add randomd.c to test_exp_SOURCES.
4597         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
4598         (Makefile.am): Add randomf.c to test_expf_SOURCES.
4599         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
4600         (Depends-on): Add 'float'.
4601         (Makefile.am): Add randoml.c to test_expl_SOURCES.
4602
4603         expl: Fix precision of computed result.
4604         * lib/expl.c: Completely rewritten.
4605         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
4606         (Maintainer): Add me.
4607         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
4608
4609 2012-03-05  Bruno Haible  <bruno@clisp.org>
4610
4611         cbrt* tests: More tests.
4612         * tests/test-cbrt.h: New file.
4613         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
4614         (main): Invoke test_function.
4615         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
4616         (main): Invoke test_function.
4617         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
4618         (main): Invoke test_function.
4619         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
4620         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
4621         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
4622         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
4623         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
4624         (Depends-on): Add 'float'.
4625         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
4626
4627 2012-03-05  Bruno Haible  <bruno@clisp.org>
4628
4629         hypot* tests: More tests.
4630         * tests/test-hypot.h: New file, partially extracted from
4631         tests/test-hypotl.c.
4632         * tests/test-hypot.c: Include test-hypot.h.
4633         (main): Invoke test_function.
4634         * tests/test-hypotf.c: Include test-hypot.h.
4635         (main): Invoke test_function.
4636         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
4637         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
4638         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
4639         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
4640         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
4641         tests/randomf.c.
4642         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
4643         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
4644         tests/randoml.c.
4645         (Depends-on): Add 'fpucw', 'float'.
4646         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
4647
4648 2012-03-05  Bruno Haible  <bruno@clisp.org>
4649
4650         fpucw: Doc about FreeBSD.
4651         * lib/fpucw.h: Mention FreeBSD in comments.
4652
4653 2012-03-04  Bruno Haible  <bruno@clisp.org>
4654
4655         sqrt* tests: More tests.
4656         * tests/test-sqrt.h: New file.
4657         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
4658         (main): Invoke test_function.
4659         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
4660         (main): Invoke test_function.
4661         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
4662         (main): Invoke test_function.
4663         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
4664         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
4665         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
4666         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
4667         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
4668         (Depends-on): Add 'float'.
4669         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
4670
4671 2012-03-04  Bruno Haible  <bruno@clisp.org>
4672
4673         remainder* tests: More tests.
4674         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
4675         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
4676         (main): Invoke test_function.
4677         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
4678         (main): Invoke test_function.
4679         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
4680         (main): Invoke test_function.
4681         * modules/remainder-tests (Files): Add tests/test-remainder.h,
4682         tests/randomd.c.
4683         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
4684         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
4685         tests/randomf.c.
4686         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
4687         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
4688         tests/randoml.c.
4689         (Depends-on): Add 'float'.
4690         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
4691
4692 2012-03-04  Bruno Haible  <bruno@clisp.org>
4693
4694         remainder, remainderf, remainderl: Fix computation for large quotients.
4695         * lib/remainder.c: Completely rewritten.
4696         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
4697         USE_FLOAT.
4698         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
4699         USE_LONG_DOUBLE.
4700         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
4701         isnand, isinf. Remove round, fma.
4702         * modules/remainderf (Files): Add lib/remainder.c.
4703         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
4704         Remove roundf, fmaf.
4705         * modules/remainderl (Files): Add lib/remainder.c.
4706         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
4707         isinf. Remove roundl, fmal.
4708         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
4709         REMAINDER_LIBM.
4710         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
4711         REMAINDERF_LIBM.
4712         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
4713         REMAINDERL_LIBM.
4714
4715 2012-03-04  Bruno Haible  <bruno@clisp.org>
4716
4717         fmod* tests: More tests.
4718         * tests/test-fmod.h (my_ldexp): New function.
4719         (test_function): Reduce amount of random numbers to test. Add tests
4720         of very large quotients x / y.
4721         * tests/test-fmod.c (MAX_EXP): New macro.
4722         * tests/test-fmodf.c (MAX_EXP): Likewise.
4723         * tests/test-fmodl.c (MAX_EXP): Likewise.
4724
4725 2012-03-04  Bruno Haible  <bruno@clisp.org>
4726
4727         fmod, fmodl: Fix computation for large quotients x / y.
4728         * lib/fmod.c: Completely rewritten.
4729         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
4730         USE_LONG_DOUBLE.
4731         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
4732         isnand. Remove fma.
4733         * modules/fmodl (Files): Add lib/fmod.c.
4734         (Depends-on): Add float, isfinite, signbit, fabsl,
4735         frexpl, ldexpl, isnanl. Remove fma.
4736         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
4737         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
4738
4739 2012-03-03  Bruno Haible  <bruno@clisp.org>
4740
4741         fmod* tests: More tests.
4742         * tests/test-fmod.h: New file.
4743         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
4744         (main): Invoke test_function.
4745         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
4746         (main): Invoke test_function.
4747         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
4748         (main): Invoke test_function.
4749         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
4750         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
4751         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
4752         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
4753         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
4754         (Depends-on): Add 'float'.
4755         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
4756
4757 2012-03-03  Bruno Haible  <bruno@clisp.org>
4758
4759         rint* tests: More tests.
4760         * tests/test-rint.h: New file, partially extracted from
4761         tests/test-rintl.c.
4762         * tests/test-rint.c: Include test-rint.h.
4763         (main): Invoke test_function.
4764         * tests/test-rintf.c: Include test-rint.h.
4765         (main): Invoke test_function.
4766         * tests/test-rintl.c: Include test-rint.h.
4767         (main): Invoke test_function.
4768         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
4769         (Makefile.am): Add randomd.c to test_rint_SOURCES.
4770         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
4771         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
4772         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
4773         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
4774
4775 2012-03-03  Bruno Haible  <bruno@clisp.org>
4776
4777         modf* tests: More tests.
4778         * tests/test-modf.h: New file.
4779         * tests/test-modf.c: Include <float.h> and test-modf.h.
4780         (main): Invoke test_function.
4781         * tests/test-modff.c: Include <float.h> and test-modf.h.
4782         (main): Invoke test_function.
4783         * tests/test-modfl.c: Include <float.h> and test-modf.h.
4784         (main): Invoke test_function.
4785         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
4786         (Makefile.am): Add randomd.c to test_modf_SOURCES.
4787         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
4788         (Makefile.am): Add randomf.c to test_modff_SOURCES.
4789         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
4790         (Depends-on): Add 'float'.
4791         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
4792
4793 2012-03-03  Bruno Haible  <bruno@clisp.org>
4794
4795         fabs* tests: More tests.
4796         * tests/test-fabs.h: New file, partially extracted from
4797         tests/test-fabsl.c.
4798         * tests/test-fabs.c (RANDOM): New macro.
4799         * tests/test-fabsf.c (RANDOM): New macro.
4800         * tests/test-fabsl.c (RANDOM): New macro.
4801         * modules/fabs-tests (Files): Add tests/randomd.c.
4802         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
4803         * modules/fabsf-tests (Files): Add tests/randomf.c.
4804         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
4805         * modules/fabsl-tests (Files): Add tests/randoml.c.
4806         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
4807
4808 2012-03-03  Bruno Haible  <bruno@clisp.org>
4809
4810         ldexp* tests: More tests.
4811         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
4812         * tests/test-ldexp.c (RANDOM): New macro.
4813         * tests/test-ldexpf.c (RANDOM): New macro.
4814         * tests/test-ldexpl.c (RANDOM): New macro.
4815         * modules/ldexp-tests (Files): Add tests/randomd.c.
4816         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
4817         * modules/ldexpf-tests (Files): Add tests/randomf.c.
4818         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
4819         * modules/ldexpl-tests (Files): Add tests/randoml.c.
4820         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
4821
4822 2012-03-03  Bruno Haible  <bruno@clisp.org>
4823
4824         frexp* tests: More tests.
4825         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
4826         * tests/test-frexp.c (RANDOM): New macro.
4827         * tests/test-frexpf.c (RANDOM): New macro.
4828         * tests/test-frexpl.c (RANDOM): New macro.
4829         * modules/frexp-tests (Files): Add tests/randomd.c.
4830         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
4831         * modules/frexpf-tests (Files): Add tests/randomf.c.
4832         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
4833         * modules/frexpl-tests (Files): Add tests/randoml.c.
4834         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
4835
4836 2012-03-03  Bruno Haible  <bruno@clisp.org>
4837
4838         Support for pseudo-random numbers in tests.
4839         * tests/randomf.c: New file.
4840         * tests/randomd.c: New file.
4841         * tests/randoml.c: New file.
4842         * tests/macros.h (randomf, randomd, randoml): New declarations.
4843
4844 2012-03-03  Bruno Haible  <bruno@clisp.org>
4845
4846         frexp* tests: Refactor.
4847         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
4848         * tests/test-frexp.c: Include and use it.
4849         * tests/test-frexpf.c: Likewise.
4850         * tests/test-frexpl.c: Likewise.
4851         * modules/frexp-tests (Files): Add tests/test-frexp.h.
4852         * modules/frexpf-tests (Files): Likewise.
4853         * modules/frexpl-tests (Files): Likewise.
4854
4855 2012-03-02  Jim Meyering  <meyering@redhat.com>
4856
4857         maint: don't specify XZ_OPT=-9ev in dist-related rule
4858         Using xz's -9 option is warranted only if you have a very large
4859         tarball (see xz's documentation for the sizes vs. presets), and
4860         requires 64MiB of memory at decompression time.
4861         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
4862         Automake's default of just "-e" is fine.  Override on a
4863         per-package basis by setting XZ_OPT e.g., in cfg.mk.
4864
4865 2012-03-01  Eric Blake  <eblake@redhat.com>
4866
4867         maint.mk: allow announcement for non-gnulib project
4868         * maint.mk (announcement): Skip gnulib version if not used.
4869
4870 2012-03-01  Jim Meyering  <meyering@redhat.com>
4871
4872         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
4873         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
4874         envvar settings cannot interfere.  Otherwise, setting envvars like
4875         prohibit=foo require=bar, etc. would cause spurious test failures.
4876
4877 2012-03-01  Eric Blake  <eblake@redhat.com>
4878
4879         maint.mk: add per-line exclusions to prohibitions
4880         * maint.mk (_sc_search_regexp): Add $exclude parameter.
4881         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
4882         (sc_const_long_option): Use it.
4883
4884 2012-03-01  Bruno Haible  <bruno@clisp.org>
4885
4886         Tests for module 'expl-ieee'.
4887         * modules/expl-ieee-tests: New file.
4888         * tests/test-expl-ieee.c: New file.
4889
4890         New module 'expl-ieee'.
4891         * modules/expl-ieee: New file.
4892
4893         Tests for module 'exp-ieee'.
4894         * modules/exp-ieee-tests: New file.
4895         * tests/test-exp-ieee.c: New file.
4896
4897         New module 'exp-ieee'.
4898         * modules/exp-ieee: New file.
4899
4900         Tests for module 'expf-ieee'.
4901         * modules/expf-ieee-tests: New file.
4902         * tests/test-expf-ieee.c: New file.
4903         * tests/test-exp-ieee.h: New file.
4904
4905         New module 'expf-ieee'.
4906         * modules/expf-ieee: New file.
4907
4908 2012-02-29  Bruno Haible  <bruno@clisp.org>
4909
4910         cbrtl-ieee: Work around test failure on IRIX 6.5.
4911         * m4/cbrtl-ieee.m4: New file.
4912         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4913         test whether cbrtl works with a minus zero argument. Replace it if not.
4914         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4915         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4916         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4917         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4918         (Depends-on): Update conditions.
4919         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4920         m4/signbit.m4.
4921         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
4922         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
4923         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
4924
4925         Tests for module 'cbrtl-ieee'.
4926         * modules/cbrtl-ieee-tests: New file.
4927         * tests/test-cbrtl-ieee.c: New file.
4928
4929         New module 'cbrtl-ieee'.
4930         * modules/cbrtl-ieee: New file.
4931
4932         Tests for module 'cbrt-ieee'.
4933         * modules/cbrt-ieee-tests: New file.
4934         * tests/test-cbrt-ieee.c: New file.
4935
4936         New module 'cbrt-ieee'.
4937         * modules/cbrt-ieee: New file.
4938
4939         Tests for module 'cbrtf-ieee'.
4940         * modules/cbrtf-ieee-tests: New file.
4941         * tests/test-cbrtf-ieee.c: New file.
4942         * tests/test-cbrt-ieee.h: New file.
4943
4944         New module 'cbrtf-ieee'.
4945         * modules/cbrtf-ieee: New file.
4946
4947 2012-02-29  Bruno Haible  <bruno@clisp.org>
4948
4949         cbrtf: Work around bug in IRIX 6.5 system function.
4950         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
4951         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
4952         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
4953         work.
4954         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
4955         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
4956         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
4957         (Depends-on): Update conditions.
4958         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
4959
4960 2012-02-29  Bruno Haible  <bruno@clisp.org>
4961
4962         Tests for module 'cbrtl'.
4963         * modules/cbrtl-tests: New file.
4964         * tests/test-cbrtl.c: New file.
4965
4966         New module 'cbrtl'.
4967         * lib/math.in.h (cbrtl): New declaration.
4968         * lib/cbrtl.c: New file.
4969         * m4/cbrtl.m4: New file.
4970         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
4971         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
4972         HAVE_DECL_CBRTL.
4973         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
4974         HAVE_DECL_CBRTL.
4975         * modules/cbrtl: New file.
4976         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4977         * doc/posix-functions/cbrtl.texi: Mention the new module.
4978
4979 2012-02-29  Bruno Haible  <bruno@clisp.org>
4980
4981         Tests for module 'cbrtf'.
4982         * modules/cbrtf-tests: New file.
4983         * tests/test-cbrtf.c: New file.
4984
4985         New module 'cbrtf'.
4986         * lib/math.in.h (cbrtf): New declaration.
4987         * lib/cbrtf.c: New file.
4988         * m4/cbrtf.m4: New file.
4989         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4991         HAVE_DECL_CBRTF.
4992         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4993         HAVE_DECL_CBRTF.
4994         * modules/cbrtf: New file.
4995         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4996         * doc/posix-functions/cbrtf.texi: Mention the new module.
4997
4998 2012-02-29  Bruno Haible  <bruno@clisp.org>
4999
5000         cbrt: Provide replacement on MSVC and Minix.
5001         * lib/math.in.h (cbrt): New declaration.
5002         * lib/cbrt.c: New file.
5003         * m4/cbrt.m4: New file.
5004         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5006         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5007         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5008         (Depends-on): Add dependencies.
5009         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5010         * tests/test-math-c++.cc: Check the declaration of cbrt.
5011         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5012         replacement.
5013
5014 2012-02-29  Bruno Haible  <bruno@clisp.org>
5015
5016         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5017         * m4/hypotl-ieee.m4: New file.
5018         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5019         test whether hypotl works with mixed NaN and Infinity arguments.
5020         Replace it if not.
5021         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5022         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5023         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5024         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5025         (Depends-on): Update conditions.
5026         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5027         (Depends-on): Add hypot-ieee.
5028         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5029         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5030
5031         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5032         * m4/hypotf-ieee.m4: New file.
5033         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5034         test whether hypotf works with mixed NaN and Infinity arguments.
5035         Replace it if not.
5036         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5037         (Depends-on): Add hypot-ieee.
5038         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5039         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5040
5041         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5042         * lib/math.in.h (hypot): New declaration.
5043         * lib/hypot.c: New file.
5044         * m4/hypot-ieee.m4: New file.
5045         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5046         whether hypot works with mixed NaN and Infinity arguments. Replace it
5047         if not.
5048         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5049         REPLACE_HYPOT.
5050         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5051         * modules/hypot (Files): Add lib/hypot.c.
5052         (Depends-on): Add dependencies.
5053         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5054         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5055         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5056         * tests/test-math-c++.cc: Check the declaration of hypot.
5057         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5058
5059         Tests for module 'hypotl-ieee'.
5060         * modules/hypotl-ieee-tests: New file.
5061         * tests/test-hypotl-ieee.c: New file.
5062
5063         New module 'hypotl-ieee'.
5064         * modules/hypotl-ieee: New file.
5065
5066         Tests for module 'hypot-ieee'.
5067         * modules/hypot-ieee-tests: New file.
5068         * tests/test-hypot-ieee.c: New file.
5069
5070         New module 'hypot-ieee'.
5071         * modules/hypot-ieee: New file.
5072
5073         Tests for module 'hypotf-ieee'.
5074         * modules/hypotf-ieee-tests: New file.
5075         * tests/test-hypotf-ieee.c: New file.
5076         * tests/test-hypot-ieee.h: New file.
5077
5078         New module 'hypotf-ieee'.
5079         * modules/hypotf-ieee: New file.
5080
5081 2012-02-29  Bruno Haible  <bruno@clisp.org>
5082
5083         Remove unused variables.
5084         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5085         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5086         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5087         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5088
5089 2012-02-29  Eric Blake  <eblake@redhat.com>
5090
5091         termios: fix pid_t always, not just for tcgetsid
5092         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5093         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5094         just when building tcgetsid.
5095
5096 2012-02-29  Bruno Haible  <bruno@clisp.org>
5097
5098         Tests for module 'hypotl'.
5099         * modules/hypotl-tests: New file.
5100         * tests/test-hypotl.c: New file.
5101
5102         New module 'hypotl'.
5103         * lib/math.in.h (hypotl): New declaration.
5104         * lib/hypotl.c: New file.
5105         * m4/hypotl.m4: New file.
5106         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5107         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5108         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5109         * modules/hypotl: New file.
5110         * tests/test-math-c++.cc: Check the hypotl declaration.
5111         * doc/posix-functions/hypotl.texi: Mention the new module.
5112
5113 2012-02-29  Eric Blake  <eblake@redhat.com>
5114
5115         tcgetsid: fix cygwin header bug
5116         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5117
5118         docs: update cygwin progress
5119         * doc/posix-functions/llround.texi (llround): Added in cygwin
5120         1.7.8.
5121         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5122         * doc/glibc-functions/program_invocation_name.texi
5123         (program_invocation_name): Likewise.
5124         * doc/glibc-functions/program_invocation_short_name.texi
5125         (program_invocation_short_name): Likewise.
5126         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5127         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5128         Likewise.
5129         * doc/posix-functions/pthread_spin_destroy.texi
5130         (pthread_spin_destroy): Added in cygwin 1.7.10.
5131         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5132         Likewise.
5133         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5134         Likewise.
5135         * doc/posix-functions/pthread_spin_trylock.texi
5136         (pthread_spin_trylock): Likewise.
5137         * doc/posix-functions/pthread_spin_unlock.texi
5138         (pthread_spin_unlock): Likewise.
5139         * doc/posix-functions/pthread_setschedprio.texi
5140         (pthread_setschedprio): Likewise.
5141         * doc/posix-functions/pthread_attr_getstack.texi
5142         (pthread_attr_getstack): Likewise.
5143         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5144         (pthread_attr_getstackaddr): Likewise.
5145         * doc/glibc-functions/pthread_getattr_np.texi
5146         (pthread_getattr_np): Likewise.
5147         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5148         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5149         * doc/posix-functions/clock_settime.texi (clock_settime):
5150         Likewise.
5151         * doc/posix-functions/pthread_attr_getguardsize.texi
5152         (pthread_attr_getguardsize): Likewise.
5153         * doc/posix-functions/pthread_attr_setguardsize.texi
5154         (pthread_attr_setguardsize): Likewise.
5155         * doc/posix-functions/pthread_attr_setstack.texi
5156         (pthread_attr_setstack): Likewise.
5157         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5158         (pthread_attr_setstackaddr): Likewise.
5159         * doc/posix-functions/clock_getcpuclockid.texi
5160         (clock_getcpuclockid): Likewise.
5161         * doc/posix-functions/pthread_getcpuclockid.texi
5162         (pthread_getcpuclockid): Likewise.
5163         * doc/glibc-functions/error.texi (error): Likewise.
5164         * doc/glibc-functions/error_at_line.texi (error_at_line):
5165         Likewise.
5166         * doc/glibc-functions/error_message_count.texi
5167         (error_message_count): Likewise.
5168         * doc/glibc-functions/error_one_per_line.texi
5169         (error_one_per_line): Likewise.
5170         * doc/glibc-functions/error_print_progname.texi
5171         (error_print_progname): Likewise.
5172         * doc/posix-functions/pthread_condattr_getclock.texi
5173         (pthread_condattr_getclock): Likewise.
5174         * doc/posix-functions/pthread_condattr_setclock.texi
5175         (pthread_condattr_setclock): Likewise.
5176         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5177         Likewise.
5178         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5179         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5180         * doc/glibc-functions/get_current_dir_name.texi
5181         (get_current_dir_name): Likewise.
5182         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5183         Likewise.
5184         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5185         wrong return type.
5186         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5187         1.7.11.
5188
5189 2012-02-29  Bruno Haible  <bruno@clisp.org>
5190
5191         Tests for module 'hypotf'.
5192         * modules/hypotf-tests: New file.
5193         * tests/test-hypotf.c: New file.
5194
5195         New module 'hypotf'.
5196         * lib/math.in.h (hypotf): New declaration.
5197         * lib/hypotf.c: New file.
5198         * m4/hypotf.m4: New file.
5199         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5200         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5201         REPLACE_HYPOTF.
5202         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5203         REPLACE_HYPOTF.
5204         * modules/hypotf: New file.
5205         * tests/test-math-c++.cc: Check the hypotf declaration.
5206         * doc/posix-functions/hypotf.texi: Mention the new module.
5207
5208         hypot: Prepare for hypotf module.
5209         * m4/hypot.m4: New file.
5210         * modules/hypot (Files): Add m4/hypot.m4.
5211         (configure.ac): Invoke gl_FUNC_HYPOT.
5212
5213 2012-02-29  Bruno Haible  <bruno@clisp.org>
5214
5215         hypot tests: More tests.
5216         * tests/test-hypot.c: Include <float.h>.
5217         (main): Add tests about overflow and underflow.
5218
5219 2012-02-29  Bruno Haible  <bruno@clisp.org>
5220
5221         math code: Add comments.
5222         * lib/acosl.c: Add comment about related glibc source files.
5223         * lib/asinl.c: Likewise.
5224         * lib/atanl.c: Likewise.
5225         * lib/expl.c: Likewise.
5226         * lib/logl.c: Likewise.
5227         * lib/sincosl.c: Likewise.
5228         * lib/sinl.c: Likewise.
5229         * lib/tanl.c: Likewise.
5230         * lib/trigl.c: Likewise.
5231         * lib/cosl.c: Likewise. Fix comments.
5232
5233 2012-02-28  Bruno Haible  <bruno@clisp.org>
5234
5235         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5236         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5237         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5238         HUGE_VALL are defined.
5239         (numeric_equald): Renamed from numeric_equal.
5240         (numeric_equalf, numeric_equall): New functions.
5241         (main): Check also HUGE_VALF, HUGE_VALL.
5242         * modules/math-tests (Files): Add tests/macros.h.
5243         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5244         HUGE_VALL.
5245
5246 2012-02-28  Bruno Haible  <bruno@clisp.org>
5247
5248         doc: Move ISO C11 feature notes into POSIX chapters.
5249         * doc/posix-functions/aligned_alloc.texi: Renamed from
5250         doc/glibc-functions/aligned_alloc.texi.
5251         * doc/posix-functions/quick_exit.texi: Renamed from
5252         doc/glibc-functions/quick_exit.texi.
5253         * doc/posix-headers/uchar.texi: Renamed from
5254         doc/glibc-headers/uchar.texi.
5255         * doc/posix-functions/c16rtomb.texi: Renamed from
5256         doc/glibc-functions/c16rtomb.texi.
5257         * doc/posix-functions/c32rtomb.texi: Renamed from
5258         doc/glibc-functions/c32rtomb.texi.
5259         * doc/posix-functions/mbrtoc16.texi: Renamed from
5260         doc/glibc-functions/mbrtoc16.texi.
5261         * doc/posix-functions/mbrtoc32.texi: Renamed from
5262         doc/glibc-functions/mbrtoc32.texi.
5263         * doc/gnulib.texi: Update.
5264         (Glibc uchar.h): Remove section.
5265         Suggested by Eric Blake.
5266
5267 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5268
5269         stdnoreturn: port to MSVC better
5270         MSVC standard headers use __declspec(noreturn), so #define noreturn
5271         to empty on that platform.  Reported by Bruno Haible in
5272         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5273         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5274         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5275
5276 2012-02-28  Bruno Haible  <bruno@clisp.org>
5277
5278         doc: Mention new glibc headers and functions.
5279         * doc/glibc-headers/uchar.texi: New file.
5280         * doc/glibc-functions/aligned_alloc.texi: New file.
5281         * doc/glibc-functions/c16rtomb.texi: New file.
5282         * doc/glibc-functions/c32rtomb.texi: New file.
5283         * doc/glibc-functions/clock_adjtime.texi: New file.
5284         * doc/glibc-functions/fanotify_init.texi: New file.
5285         * doc/glibc-functions/fanotify_mark.texi: New file.
5286         * doc/glibc-functions/inet6_opt_append.texi: New file.
5287         * doc/glibc-functions/inet6_opt_find.texi: New file.
5288         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5289         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5290         * doc/glibc-functions/inet6_opt_init.texi: New file.
5291         * doc/glibc-functions/inet6_opt_next.texi: New file.
5292         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5293         * doc/glibc-functions/inet6_rth_add.texi: New file.
5294         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5295         * doc/glibc-functions/inet6_rth_init.texi: New file.
5296         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5297         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5298         * doc/glibc-functions/inet6_rth_space.texi: New file.
5299         * doc/glibc-functions/login.texi: New file.
5300         * doc/glibc-functions/mbrtoc16.texi: New file.
5301         * doc/glibc-functions/mbrtoc32.texi: New file.
5302         * doc/glibc-functions/name_to_handle_at.texi: New file.
5303         * doc/glibc-functions/ntp_gettimex.texi: New file.
5304         * doc/glibc-functions/open_by_handle_at.texi: New file.
5305         * doc/glibc-functions/prlimit.texi: New file.
5306         * doc/glibc-functions/process_vm_readv.texi: New file.
5307         * doc/glibc-functions/process_vm_writev.texi: New file.
5308         * doc/glibc-functions/recvmmsg.texi: New file.
5309         * doc/glibc-functions/scandirat.texi: New file.
5310         * doc/glibc-functions/sendmmsg.texi: New file.
5311         * doc/glibc-functions/setns.texi: New file.
5312         * doc/glibc-functions/timespec_get.texi: New file.
5313         * doc/gnulib.texi: Include them.
5314         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5315         sections.
5316         Reported by Eric Blake.
5317
5318 2012-02-28  Bruno Haible  <bruno@clisp.org>
5319
5320         Avoid compilation errors with MSVC option -fp:strict.
5321         * lib/floor.c: Use MSVC specific pragma fenv_access.
5322         * lib/ceil.c: Likewise.
5323         * lib/trunc.c: Likewise.
5324         * lib/round.c: Likewise.
5325         * lib/rint.c: Likewise.
5326         * lib/fma.c: Likewise.
5327         * lib/integer_length.c: Likewise.
5328         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5329         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5330         * tests/test-floor2.c: Likewise.
5331         * tests/test-floorf2.c: Likewise.
5332         * tests/test-ceil2.c: Likewise.
5333         * tests/test-ceilf2.c: Likewise.
5334         * tests/test-trunc2.c: Likewise.
5335         * tests/test-truncf2.c: Likewise.
5336         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5337
5338 2012-02-27  Bruno Haible  <bruno@clisp.org>
5339
5340         Tests for module 'sqrtl-ieee'.
5341         * modules/sqrtl-ieee-tests: New file.
5342         * tests/test-sqrtl-ieee.c: New file.
5343
5344         New module 'sqrtl-ieee'.
5345         * modules/sqrtl-ieee: New file.
5346
5347         Tests for module 'sqrt-ieee'.
5348         * modules/sqrt-ieee-tests: New file.
5349         * tests/test-sqrt-ieee.c: New file.
5350
5351         New module 'sqrt-ieee'.
5352         * modules/sqrt-ieee: New file.
5353
5354         Tests for module 'sqrtf-ieee'.
5355         * modules/sqrtf-ieee-tests: New file.
5356         * tests/test-sqrtf-ieee.c: New file.
5357         * tests/test-sqrt-ieee.h: New file.
5358
5359         New module 'sqrtf-ieee'.
5360         * modules/sqrtf-ieee: New file.
5361
5362 2012-02-27  Bruno Haible  <bruno@clisp.org>
5363
5364         remainderl-ieee: Work around test failure on OSF/1.
5365         * m4/remainderl-ieee.m4: New file.
5366         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5367         present, test whether remainderl works with a zero second argument.
5368         Replace it if not.
5369         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5370         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5371         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5372         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5373         (Depends-on): Update conditions.
5374         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5375         (Depends-on): Add remainder-ieee.
5376         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5377         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5378         module.
5379
5380         remainderf-ieee: Work around test failure on OSF/1.
5381         * m4/remainderf-ieee.m4: New file.
5382         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5383         present, test whether remainderf works with a zero second argument.
5384         Replace it if not.
5385         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5386         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5387         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5388         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5389         (Depends-on): Update conditions.
5390         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5391         (Depends-on): Add remainder-ieee.
5392         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5393         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5394         module.
5395
5396         remainder-ieee: Work around test failure on OSF/1.
5397         * m4/remainder-ieee.m4: New file.
5398         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5399         present, test whether remainder works with a zero second argument.
5400         Replace it if not.
5401         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5402         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5403         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5404         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5405         (Depends-on): Update dependencies.
5406         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5407         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5408         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5409
5410         Tests for module 'remainderl-ieee'.
5411         * modules/remainderl-ieee-tests: New file.
5412         * tests/test-remainderl-ieee.c: New file.
5413
5414         New module 'remainderl-ieee'.
5415         * modules/remainderl-ieee: New file.
5416
5417         Tests for module 'remainder-ieee'.
5418         * modules/remainder-ieee-tests: New file.
5419         * tests/test-remainder-ieee.c: New file.
5420
5421         New module 'remainder-ieee'.
5422         * modules/remainder-ieee: New file.
5423
5424         Tests for module 'remainderf-ieee'.
5425         * modules/remainderf-ieee-tests: New file.
5426         * tests/test-remainderf-ieee.c: New file.
5427         * tests/test-remainder-ieee.h: New file.
5428
5429         New module 'remainderf-ieee'.
5430         * modules/remainderf-ieee: New file.
5431
5432 2012-02-27  Bruno Haible  <bruno@clisp.org>
5433
5434         modff, modfl: Fix configure syntax error.
5435         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5436         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5437
5438 2012-02-27  Bruno Haible  <bruno@clisp.org>
5439
5440         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5441         * m4/fmodl-ieee.m4: New file.
5442         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5443         whether fmodl works with zero arguments. Replace it if not.
5444         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5445         (Depends-on): Add fmod-ieee.
5446         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5447         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5448
5449         fmodf-ieee: Work around test failure on OSF/1.
5450         * m4/fmodf-ieee.m4: New file.
5451         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5452         whether fmodf works with zero arguments. Replace it if not.
5453         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5454         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5455         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5456         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5457         (Depends-on): Update dependencies.
5458         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5459         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5460         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5461
5462         fmodf-ieee: Work around test failure on MSVC 9.
5463         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5464         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5465
5466         fmod-ieee: Work around test failures on OSF/1, mingw.
5467         * m4/fmod-ieee.m4: New file.
5468         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5469         whether fmod works with zero arguments. Replace it if not.
5470         * lib/math.in.h (fmod): New declaration.
5471         * lib/fmod.c: New file.
5472         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5473         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5474         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5475         * modules/fmod (Files): Add lib/fmod.c.
5476         (Depends-on): Add math, isinf, trunc, fma.
5477         (configure.ac): Arrange to compile lib/fmod.c if needed.
5478         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5479         m4/signbit.m4.
5480         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5481         * tests/test-math-c++.cc: Check the declaration of fmod.
5482         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5483
5484         fmodl-ieee: Fix test failures.
5485         * lib/fmodl.c (fmodl): Treat Inf specially.
5486         * modules/fmodl (Depends-on): Add isinf.
5487
5488         Tests for module 'fmodl-ieee'.
5489         * modules/fmodl-ieee-tests: New file.
5490         * tests/test-fmodl-ieee.c: New file.
5491
5492         New module 'fmodl-ieee'.
5493         * modules/fmodl-ieee: New file.
5494
5495         Tests for module 'fmod-ieee'.
5496         * modules/fmod-ieee-tests: New file.
5497         * tests/test-fmod-ieee.c: New file.
5498
5499         New module 'fmod-ieee'.
5500         * modules/fmod-ieee: New file.
5501
5502         Tests for module 'fmodf-ieee'.
5503         * modules/fmodf-ieee-tests: New file.
5504         * tests/test-fmodf-ieee.c: New file.
5505         * tests/test-fmod-ieee.h: New file.
5506
5507         New module 'fmodf-ieee'.
5508         * modules/fmodf-ieee: New file.
5509
5510 2012-02-27  Bruno Haible  <bruno@clisp.org>
5511
5512         Tests for module 'rintl-ieee'.
5513         * modules/rintl-ieee-tests: New file.
5514         * tests/test-rintl-ieee.c: New file.
5515
5516         New module 'rintl-ieee'.
5517         * modules/rintl-ieee: New file.
5518
5519         Tests for module 'rint-ieee'.
5520         * modules/rint-ieee-tests: New file.
5521         * tests/test-rint-ieee.c: New file.
5522
5523         New module 'rint-ieee'.
5524         * modules/rint-ieee: New file.
5525
5526         Tests for module 'rintf-ieee'.
5527         * modules/rintf-ieee-tests: New file.
5528         * tests/test-rintf-ieee.c: New file.
5529         * tests/test-rint-ieee.h: New file.
5530
5531         New module 'rintf-ieee'.
5532         * modules/rintf-ieee: New file.
5533
5534 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5535
5536         regex: re_search etc. should return -2 when memory exhausted
5537         This bug was uncovered when testing 'grep'.  Without the fix,
5538         re_search and friends return -1 when memory is exhausted, but -1
5539         means no match, and this causes grep to falsely report no-match
5540         instead of memory-exhaustion.  See
5541         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
5542         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
5543         trouble; this can occur if re_search_internal ran out of memory.
5544
5545 2012-02-26  Bruno Haible  <bruno@clisp.org>
5546
5547         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
5548         * m4/modfl-ieee.m4: New file.
5549         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
5550         whether modfl works with Inf. Replace it if not.
5551         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
5552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
5553         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
5554         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
5555         (Depends-on): Update dependencies.
5556         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
5557         m4/signbit.m4.
5558         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
5559         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
5560
5561         modfl-ieee: Fix dependencies.
5562         * modules/modfl-ieee (Depends-on): Add modf-ieee.
5563
5564         modfl-ieee: Fix test failures.
5565         * lib/modfl.c (modfl): Treat NaN and Inf specially.
5566         * modules/modfl (Depends-on): Add isfinite, isinf.
5567
5568         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
5569         * m4/modff-ieee.m4: New file.
5570         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
5571         whether modff works with NaN and Inf. Replace it if not.
5572         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
5573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
5574         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
5575         * modules/modff (configure.ac): Consider REPLACE_MODFF.
5576         (Depends-on): Update dependencies.
5577         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
5578         m4/signbit.m4.
5579         (Depends-on): Add modf-ieee.
5580         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
5581         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
5582
5583         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
5584         * m4/modf-ieee.m4: New file.
5585         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
5586         whether modf works with NaN and Inf. Replace it if not.
5587         * lib/math.in.h (modf): New declaration.
5588         * lib/modf.c: New file.
5589         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
5590         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
5591         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
5592         * modules/modf (Files): Add lib/modf.c.
5593         (Depends-on): Add math, isfinite, trunc, isinf.
5594         (configure.ac): Addrange to compile lib/modf.c if needed.
5595         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
5596         m4/signbit.m4.
5597         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
5598         * tests/test-math-c++.cc: Check the declaration of modf.
5599         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
5600
5601         Tests for module 'modfl-ieee'.
5602         * modules/modfl-ieee-tests: New file.
5603         * tests/test-modfl-ieee.c: New file.
5604
5605         New module 'modfl-ieee'.
5606         * modules/modfl-ieee: New file.
5607
5608         Tests for module 'modf-ieee'.
5609         * modules/modf-ieee-tests: New file.
5610         * tests/test-modf-ieee.c: New file.
5611
5612         New module 'modf-ieee'.
5613         * modules/modf-ieee: New file.
5614
5615         Tests for module 'modff-ieee'.
5616         * modules/modff-ieee-tests: New file.
5617         * tests/test-modff-ieee.c: New file.
5618         * tests/test-modf-ieee.h: New file.
5619
5620         New module 'modff-ieee'.
5621         * modules/modff-ieee: New file.
5622
5623 2012-02-26  Bruno Haible  <bruno@clisp.org>
5624
5625         Tests for module 'fabsl-ieee'.
5626         * modules/fabsl-ieee-tests: New file.
5627         * tests/test-fabsl-ieee.c: New file.
5628
5629         New module 'fabsl-ieee'.
5630         * modules/fabsl-ieee: New file.
5631
5632         Tests for module 'fabs-ieee'.
5633         * modules/fabs-ieee-tests: New file.
5634         * tests/test-fabs-ieee.c: New file.
5635
5636         New module 'fabs-ieee'.
5637         * modules/fabs-ieee: New file.
5638
5639         Tests for module 'fabsf-ieee'.
5640         * modules/fabsf-ieee-tests: New file.
5641         * tests/test-fabsf-ieee.c: New file.
5642         * tests/test-fabs-ieee.h: New file.
5643
5644         New module 'fabsf-ieee'.
5645         * modules/fabsf-ieee: New file.
5646
5647 2012-02-26  Bruno Haible  <bruno@clisp.org>
5648
5649         Tests for module 'fmal-ieee'.
5650         * modules/fmal-ieee-tests: New file.
5651         * tests/test-fmal-ieee.c: New file.
5652
5653         New module 'fmal-ieee'.
5654         * modules/fmal-ieee: New file.
5655
5656         Tests for module 'fma-ieee'.
5657         * modules/fma-ieee-tests: New file.
5658         * tests/test-fma-ieee.c: New file.
5659
5660         New module 'fma-ieee'.
5661         * modules/fma-ieee: New file.
5662
5663         Tests for module 'fmaf-ieee'.
5664         * modules/fmaf-ieee-tests: New file.
5665         * tests/test-fmaf-ieee.c: New file.
5666         * tests/test-fma-ieee.h: New file.
5667
5668         New module 'fmaf-ieee'.
5669         * modules/fmaf-ieee: New file.
5670
5671 2012-02-26  Bruno Haible  <bruno@clisp.org>
5672
5673         Tests for module 'ldexpl-ieee'.
5674         * modules/ldexpl-ieee-tests: New file.
5675         * tests/test-ldexpl-ieee.c: New file.
5676
5677         New module 'ldexpl-ieee'.
5678         * modules/ldexpl-ieee: New file.
5679
5680         Tests for module 'ldexp-ieee'.
5681         * modules/ldexp-ieee-tests: New file.
5682         * tests/test-ldexp-ieee.c: New file.
5683
5684         New module 'ldexp-ieee'.
5685         * modules/ldexp-ieee: New file.
5686
5687         Tests for module 'ldexpf-ieee'.
5688         * modules/ldexpf-ieee-tests: New file.
5689         * tests/test-ldexpf-ieee.c: New file.
5690         * tests/test-ldexp-ieee.h: New file.
5691
5692         New module 'ldexpf-ieee'.
5693         * modules/ldexpf-ieee: New file.
5694
5695 2012-02-26  Bruno Haible  <bruno@clisp.org>
5696
5697         Refactor frexp*-ieee tests.
5698         * tests/test-frexp-ieee.h: New file.
5699         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
5700         (main): Just call test_function.
5701         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
5702         (main): Just call test_function.
5703         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
5704         (main): Just call test_function.
5705         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
5706         * modules/frexp-ieee-tests (Files): Likewise.
5707         * modules/frexpl-ieee-tests (Files): Likewise.
5708
5709         Tests for module 'frexpl-ieee'.
5710         * modules/frexpl-ieee-tests: New file.
5711         * tests/test-frexpl-ieee.c: New file.
5712
5713         New module 'frexpl-ieee'.
5714         * modules/frexpl-ieee: New file.
5715
5716         Tests for module 'frexp-ieee'.
5717         * modules/frexp-ieee-tests: New file.
5718         * tests/test-frexp-ieee.c: New file.
5719
5720         New module 'frexp-ieee'.
5721         * modules/frexp-ieee: New file.
5722
5723         Tests for module 'frexpf-ieee'.
5724         * modules/frexpf-ieee-tests: New file.
5725         * tests/test-frexpf-ieee.c: New file.
5726
5727         New module 'frexpf-ieee'.
5728         * modules/frexpf-ieee: New file.
5729
5730 2012-02-26  Bruno Haible  <bruno@clisp.org>
5731
5732         roundl-ieee tests: More tests.
5733         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5734         (main): Add tests for [MX] shaded specification in POSIX.
5735         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5736         (Depends-on): Add isnanl-nolibm.
5737
5738         round-ieee tests: More tests.
5739         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5740         (main): Add tests for [MX] shaded specification in POSIX.
5741         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5742         (Depends-on): Add isnand-nolibm.
5743
5744         roundf-ieee tests: More tests.
5745         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5746         (main): Add tests for [MX] shaded specification in POSIX.
5747         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5748         (Depends-on): Add isnanf-nolibm.
5749
5750         truncl-ieee tests: More tests.
5751         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5752         (main): Add tests for [MX] shaded specification in POSIX.
5753         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5754         (Depends-on): Add isnanl-nolibm.
5755
5756         trunc-ieee tests: More tests.
5757         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5758         (main): Add tests for [MX] shaded specification in POSIX.
5759         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5760         (Depends-on): Add isnand-nolibm.
5761
5762         truncf-ieee tests: More tests.
5763         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5764         (main): Add tests for [MX] shaded specification in POSIX.
5765         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5766         (Depends-on): Add isnanf-nolibm.
5767
5768         ceill-ieee tests: More tests.
5769         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5770         (main): Add tests for [MX] shaded specification in POSIX.
5771         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5772         (Depends-on): Add isnanl-nolibm.
5773
5774         ceil-ieee tests: More tests.
5775         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5776         (main): Add tests for [MX] shaded specification in POSIX.
5777         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5778         (Depends-on): Add isnand-nolibm.
5779
5780         ceilf-ieee tests: More tests.
5781         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5782         (main): Add tests for [MX] shaded specification in POSIX.
5783         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5784         (Depends-on): Add isnanf-nolibm.
5785
5786         floorl-ieee tests: More tests.
5787         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
5788         (main): Add tests for [MX] shaded specification in POSIX.
5789         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5790         (Depends-on): Add isnanl-nolibm.
5791
5792         floor-ieee tests: More tests.
5793         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
5794         (main): Add tests for [MX] shaded specification in POSIX.
5795         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5796         (Depends-on): Add isnand-nolibm.
5797
5798         floorf-ieee tests: More tests.
5799         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
5800         (main): Add tests for [MX] shaded specification in POSIX.
5801         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
5802         (Depends-on): Add isnanf-nolibm.
5803
5804 2012-02-26  Bruno Haible  <bruno@clisp.org>
5805
5806         fpieee: More comments.
5807         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
5808
5809 2012-02-25  Bruno Haible  <bruno@clisp.org>
5810
5811         Tests for module 'log10l'.
5812         * modules/log10l-tests: New file.
5813         * tests/test-log10l.c: New file.
5814         * tests/test-math-c++.cc: Check the declaration of log10l.
5815
5816         New module 'log10l'.
5817         * lib/math.in.h (log10l): New declaration.
5818         * lib/log10l.c: New file.
5819         * m4/log10l.m4: New file.
5820         * modules/log10l: New file.
5821         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
5822         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
5823         HAVE_DECL_LOG10L.
5824         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
5825         HAVE_DECL_LOG10L.
5826         * doc/posix-functions/log10l.texi: Mention the new module.
5827
5828 2012-02-25  Bruno Haible  <bruno@clisp.org>
5829
5830         fmodl, remainder*: Avoid wrong results due to rounding errors.
5831         * lib/fmodl.c (fmodl): Correct the result if it is not within the
5832         expected bounds.
5833         * lib/remainderf.c (remainderf): Likewise.
5834         * lib/remainder.c (remainder): Likewise.
5835         * lib/remainderl.c (remainderl): Likewise.
5836
5837 2012-02-25  Bruno Haible  <bruno@clisp.org>
5838
5839         Tests for module 'remainderl'.
5840         * modules/remainderl-tests: New file.
5841         * tests/test-remainderl.c: New file.
5842         * tests/test-math-c++.cc: Check the declaration of remainderl.
5843
5844         New module 'remainderl'.
5845         * lib/math.in.h (remainderl): New declaration.
5846         * lib/remainderl.c: New file.
5847         * m4/remainderl.m4: New file.
5848         * modules/remainderl: New file.
5849         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
5850         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
5851         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
5852         HAVE_REMAINDERL.
5853         * doc/posix-functions/remainderl.texi: Mention the new module.
5854
5855 2012-02-25  Bruno Haible  <bruno@clisp.org>
5856
5857         Tests for module 'remainderf'.
5858         * modules/remainderf-tests: New file.
5859         * tests/test-remainderf.c: New file.
5860         * tests/test-math-c++.cc: Check the declaration of remainderf.
5861
5862         New module 'remainderf'.
5863         * lib/math.in.h (remainderf): New declaration.
5864         * lib/remainderf.c: New file.
5865         * m4/remainderf.m4: New file.
5866         * modules/remainderf: New file.
5867         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
5868         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
5869         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
5870         HAVE_REMAINDERF.
5871         * doc/posix-functions/remainderf.texi: Mention the new module.
5872
5873 2012-02-25  Bruno Haible  <bruno@clisp.org>
5874
5875         remainder: Support for MSVC.
5876         * lib/math.in.h (remainder): New declaration.
5877         * lib/remainder.c: New file.
5878         * m4/remainder.m4: New file.
5879         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
5880         (Depends-on): Add math, round, fma.
5881         (configure.ac): Use results of gl_FUNC_REMAINDER.
5882         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
5883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
5884         HAVE_DECL_REMAINDER.
5885         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
5886         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
5887         * tests/test-math-c++.cc: Check the declaration of remainder.
5888         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
5889         problems are fixed.
5890
5891 2012-02-25  Bruno Haible  <bruno@clisp.org>
5892
5893         Tests for module 'fmodl'.
5894         * modules/fmodl-tests: New file.
5895         * tests/test-fmodl.c: New file.
5896         * tests/test-math-c++.cc: Check the declaration of fmodl.
5897
5898         New module 'fmodl'.
5899         * lib/math.in.h (fmodl): New declaration.
5900         * lib/fmodl.c: New file.
5901         * m4/fmodl.m4: New file.
5902         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5903         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5904         REPLACE_FMODL.
5905         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5906         REPLACE_FMODL.
5907         * modules/fmodl: New file.
5908         * doc/posix-functions/fmodl.texi: Mention the new module.
5909
5910 2012-02-25  Bruno Haible  <bruno@clisp.org>
5911
5912         Tests for module 'modfl'.
5913         * modules/modfl-tests: New file.
5914         * tests/test-modfl.c: New file.
5915         * tests/test-math-c++.cc: Check the declaration of modfl.
5916
5917         New module 'modfl'.
5918         * lib/math.in.h (modfl): New declaration.
5919         * lib/modfl.c: New file.
5920         * m4/modfl.m4: New file.
5921         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
5922         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
5923         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
5924         * modules/modfl: New file.
5925         * doc/posix-functions/modfl.texi: Mention the new module.
5926
5927 2012-02-25  Bruno Haible  <bruno@clisp.org>
5928
5929         Tests for module 'fabsl'.
5930         * modules/fabsl-tests: New file.
5931         * tests/test-fabsl.c: New file.
5932         * tests/test-math-c++.cc: Check the declaration of fabsl.
5933
5934         New module 'fabsl'.
5935         * lib/math.in.h (fabsl): New declaration.
5936         * lib/fabsl.c: New file.
5937         * m4/fabsl.m4: New file.
5938         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
5939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
5940         REPLACE_FABSL.
5941         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
5942         REPLACE_FABSL.
5943         * modules/fabsl: New file.
5944         * doc/posix-functions/fabsl.texi: Mention the new module.
5945
5946 2012-02-25  Bruno Haible  <bruno@clisp.org>
5947
5948         fabs tests: More tests.
5949         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
5950         (zero): New variable.
5951         (main): Add tests for signed zero.
5952         * modules/fabs-tests (Files): Add tests/minus-zero.h.
5953
5954         fabsf tests: More tests.
5955         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
5956         (zero): New variable.
5957         (main): Add tests for signed zero.
5958         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
5959
5960 2012-02-24  Bruno Haible  <bruno@clisp.org>
5961
5962         atanl: Provide function definition on MSVC.
5963         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5964         function pointer.
5965         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
5966
5967 2012-02-24  Bruno Haible  <bruno@clisp.org>
5968
5969         acosl: Provide function definition on MSVC.
5970         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
5971         function pointer.
5972         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
5973
5974 2012-02-24  Bruno Haible  <bruno@clisp.org>
5975
5976         asinl: Provide function definition on MSVC.
5977         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5978         function pointer.
5979         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5980
5981 2012-02-24  Bruno Haible  <bruno@clisp.org>
5982
5983         tanl: Provide function definition on MSVC.
5984         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5985         function pointer.
5986         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5987
5988 2012-02-24  Bruno Haible  <bruno@clisp.org>
5989
5990         cosl: Provide function definition on MSVC.
5991         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5992         function pointer.
5993         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5994
5995 2012-02-24  Bruno Haible  <bruno@clisp.org>
5996
5997         sinl: Provide function definition on MSVC.
5998         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5999         function pointer.
6000         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6001
6002 2012-02-24  Bruno Haible  <bruno@clisp.org>
6003
6004         logl: Provide function definition on MSVC.
6005         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6006         function pointer.
6007         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6008
6009 2012-02-24  Bruno Haible  <bruno@clisp.org>
6010
6011         expl: Provide function definition on MSVC.
6012         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6013         function pointer.
6014         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6015
6016 2012-02-24  Bruno Haible  <bruno@clisp.org>
6017
6018         sqrtl: Provide function definition on MSVC.
6019         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6020         a function pointer.
6021         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6022
6023 2012-02-24  Bruno Haible  <bruno@clisp.org>
6024
6025         ceill: Provide function definition on MSVC.
6026         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6027         used as a function pointer.
6028         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6029
6030 2012-02-24  Bruno Haible  <bruno@clisp.org>
6031
6032         floorl: Provide function definition on MSVC.
6033         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6034         used as a function pointer.
6035         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6036
6037 2012-02-24  Bruno Haible  <bruno@clisp.org>
6038
6039         ceilf: Provide function definition on MSVC.
6040         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6041         used as a function pointer.
6042         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6043
6044 2012-02-24  Bruno Haible  <bruno@clisp.org>
6045
6046         floorf: Provide function definition on MSVC.
6047         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6048         used as a function pointer.
6049         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6050
6051 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6052
6053         stdnoreturn: new module
6054         This implements a replacement for C11's <stdnoreturn.h>.
6055         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6056         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6057         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6058         * tests/test-stdnoreturn.c: New files.
6059
6060 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6061
6062         regex: fix false multibyte matches in some regular expressions
6063         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6064         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6065         * lib/regex_internal.c (re_string_skip_chars):
6066         Fix miscomputation of remain_len that may cause incomplete
6067         multi-byte character and false match.
6068
6069 2012-02-24  Jim Meyering  <meyering@redhat.com>
6070
6071         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6072         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6073         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6074         Remove now-unnecessary str''cmp obfuscation.
6075         Suggested by Akim Demaille.
6076
6077 2012-02-24  Bruno Haible  <bruno@clisp.org>
6078
6079         streq: Rename macro.
6080         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6081         * NEWS: Mention the change.
6082         * lib/mbrtowc.c (mbrtowc): Update.
6083         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6084         * lib/wcwidth.c (wcwidth): Update.
6085         Suggested by Akim Demaille and Jim Meyering.
6086
6087 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6088
6089         regex: fix typo in definition of MIN
6090         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6091         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6092
6093 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6094             Bruno Haible  <bruno@clisp.org>
6095
6096         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6097         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6098         entries into a stack-allocated buffer directly.
6099         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6100
6101 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6102             Bruno Haible  <bruno@clisp.org>
6103
6104         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6105
6106          - There were several instances of this pattern:
6107
6108              for (;;) {
6109                n = acl (f, GETACLCNT, 0, NULL);
6110                [ allocate an array A of size N ]
6111                if (acl (f, GETACL, n, a) == n)
6112                  break;
6113              }
6114
6115            This loop might never terminate if some other process is constantly
6116            manipulating the file's ACL.  The loop should be rewritten to
6117            terminate.
6118
6119          - The acl (... GETACLNT ...) call is merely an optimization; its value
6120            is merely a hint as to how big to make the array.  A better
6121            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6122            and just guess a reasonably-big size, growing the size and trying
6123            again if it's not large enough.  This guarantees termination, and
6124            saves a system call.
6125
6126         * lib/acl-internal.h: Include <limits.h>.
6127         (MIN, SIZE_MAX): New macros.
6128         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6129         a stack-allocated buffer, and use malloc if it does not fit. Don't
6130         use GETACLCNT.
6131         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6132
6133 2012-02-19  Bruno Haible  <bruno@clisp.org>
6134
6135         acl: Fix endless loop on Solaris with vxfs.
6136         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6137         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6138         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6139         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6140         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6141         Reported by Bill Jones in
6142         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6143
6144 2012-02-19  Bruno Haible  <bruno@clisp.org>
6145
6146         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6147         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6148         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6149         that this function returns 0 in some more cases.
6150
6151 2012-02-19  Bruno Haible  <bruno@clisp.org>
6152
6153         acl: Update doc references.
6154         * doc/acl-resources.txt: Update links to Solaris documentation.
6155
6156 2012-02-19  Bruno Haible  <bruno@clisp.org>
6157
6158         Fix test failure in many locales on Solaris 11.
6159         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6160         'tr' arguments.
6161         * tests/test-pipe-filter-ii1.c (main): Likewise.
6162         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6163         expressions in the C locale.
6164         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6165         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6166
6167 2012-02-19  Bruno Haible  <bruno@clisp.org>
6168
6169         gnulib-tool: Improve usage message.
6170         * gnulib-tool (func_usage): Move doc of --help and --version to the
6171         section "Operation modes".
6172
6173 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6174
6175         README-release: make it easier to execute commands
6176         * top/README-release: break commands out on to separate lines.
6177
6178 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6179
6180         GNUmakefile: simplify detection of unconfigured trees
6181         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6182         whether the tree make is being run from is already configured or
6183         not.  Related simplifications.
6184
6185 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6186
6187         * gnulib-tool (func_usage): Document --help and --version.
6188
6189 2012-02-11  Jim Meyering  <meyering@redhat.com>
6190
6191         bootstrap: don't exit 0 upon gnulib-tool failure
6192         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6193         its exit status, not 0.
6194
6195 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6196
6197         README-release: various improvements
6198         * top/README-release: Give a command to push changes for the
6199         release.  Add "distcheck" to list of other pre-release checks.
6200         Fix instance of "make stable" which should be "make TYPE".
6201
6202 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6203
6204         maint: replace FSF snail-mail addresses with URLs
6205         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6206         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6207         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6208         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6209         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6210         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6211         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6212         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6213         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6214         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6215         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6216         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6217         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6218         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6219         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6220         * lib/glthread/thread.c, lib/glthread/thread.h:
6221         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6222         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6223         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6224         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6225         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6226         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6227         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6228         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6229         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6230         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6231         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6232         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6233         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6234         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6235         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6236         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6237         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6238         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6239         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6240         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6241         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6242         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6243         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6244         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6245         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6246         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6247         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6248         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6249         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6250         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6251         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6252         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6253         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6254         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6255         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6256         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6257         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6258         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6259         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6260         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6261         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6262         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6263         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6264         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6265         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6266         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6267         * tests/test-poll.c, tests/test-quotearg-simple.c:
6268         * tests/test-quotearg.c, tests/test-quotearg.h:
6269         * tests/test-round-ieee.c, tests/test-round1.c:
6270         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6271         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6272         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6273         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6274         * tests/test-strerror.c, tests/test-strerror_r.c:
6275         * tests/test-strsignal.c, tests/test-strverscmp.c:
6276         * tests/test-xmemdup0.c:
6277         Replace FSF snail mail addresses with URLs, as per GNU coding
6278         standards.  See glibc bug
6279         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6280
6281 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6282
6283         README-release: capitalize a word and split a line
6284         * top/README-release: Fix punctuation and spacing.
6285
6286 2012-02-08  Akim Demaille  <demaille@gostai.com>
6287
6288         fatal-signal: use C prototypes (with explicit void).
6289         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6290         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6291
6292 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6293
6294         regex: spelling fix
6295         * lib/regexec.c: spelling fix
6296
6297         regex: rely on stdint.h for SIZE_MAX
6298         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6299
6300 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6301
6302         regex: merge glibc changes
6303
6304         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6305         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6306         (init_word_char): Work even if bitset words are not exactly 32 or
6307         64 bits wide.  Don't assume there are no padding bits.
6308         * lib/regex.c [_LIBC]: Do not include <config.h>.
6309         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6310         and -Wtype-limits.
6311         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6312         needless disagreement with glibc.  All uses changed.  Define it to
6313         1 only if _GNU_SOURCE, to match glibc.
6314         (_REG_RM_NAME): Remove; no longer needed, since the names in
6315         question are now all protected by __USE_GNU.
6316         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6317         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6318         * lib/regex_internal.h (MIN): New macro.
6319
6320         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6321         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6322
6323         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6324         * lib/regex_internal.c (re_string_fetch_byte_case):
6325         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6326         is miscompiled, and it turns out it is because of an incorrect
6327         attribute on re_string_fetch_byte_case.  Unlike
6328         re_string_peek_byte_case, this one is really not pure, it modifies
6329         memory (increments pstr->cur_idx), and with the pure attribute GCC
6330         assumed it doesn't and it cached the presumed value of
6331         regexp->cur_idx in a variable across the
6332          for (;; ++i)
6333            {
6334              if (i >= BRACKET_NAME_BUF_SIZE)
6335                return REG_EBRACK;
6336              if (token->type == OP_OPEN_CHAR_CLASS)
6337                ch = re_string_fetch_byte_case (regexp);
6338              else
6339                ch = re_string_fetch_byte (regexp);
6340              if (re_string_eoi(regexp))
6341                return REG_EBRACK;
6342              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6343                break;
6344              elem->opr.name[i] = ch;
6345            }
6346
6347         2011-11-29 Andreas Schwab <schwab@redhat.com>
6348         * lib/regcomp.c (build_equiv_class):
6349         Fix access after end of search string in regex matcher.
6350
6351         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6352         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6353
6354         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6355         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6356
6357         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6358         * lib/regcomp.c (parse_branch, parse_sub_exp):
6359         More regex memory leak fixes and tests.
6360         (parse_sub_exp, parse_bracket_exp):
6361         Fix memory leak for some invalid regular expressions.
6362
6363         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6364         * lib/regex_internal.c, lib/regexec.c:
6365         Fix unnecessary overallocation due to incomplete character.  When
6366         incomplete characters are found at the end of a string the code
6367         ran amok and allocated lots of memory.  Stricter limits are now in
6368         place.
6369
6370         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6371         * lib/regex.h: Update documentation.
6372
6373         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6374         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6375
6376         2010-05-05 Andreas Schwab <schwab@redhat.com>
6377         * lib/regexec.c (find_collation_sequence_value):
6378         Fix lookup of collation sequence value during regexp matching.
6379
6380         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6381         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6382
6383         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6384         * lib/regex.h: Cleanup namespace.
6385
6386         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6387         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6388
6389         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6390         * lib/regex_internal.h: Prevent some declarations and definitions
6391         to be seen when used in tests.
6392
6393         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6394         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6395         __libc_lock_* macros if not _LIBC.
6396         (struct re_dfa_t): Add lock.
6397
6398 2012-02-07  Eric Blake  <eblake@redhat.com>
6399
6400         maint.mk: also prohibit lower-case @var@
6401         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6402         lower case, like @top_srcdir@.
6403
6404 2012-02-04  Eric Blake  <eblake@redhat.com>
6405
6406         canonicalize: avoid uninitialized memory use
6407         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6408         random '/' left in dest.
6409         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6410
6411 2012-02-04  Bruno Haible  <bruno@clisp.org>
6412
6413         isatty: Fix test failure of ptsname_r on native Windows.
6414         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6415         and don't set errno.
6416         (isatty): Test first whether fd is valid. Set errno when returning 0.
6417
6418 2012-02-04  Bruno Haible  <bruno@clisp.org>
6419
6420         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6421         * tests/test-spawn-pipe-main.c: Include progname.h.
6422         (main): Invoke set_program_name.
6423         * modules/spawn-pipe-tests (Depends-on): Add progname.
6424
6425         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6426         * tests/test-nonblocking-socket-main.c: Include progname.h.
6427         (main): Invoke set_program_name.
6428         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6429
6430         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6431         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6432         (main): Invoke set_program_name.
6433         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6434
6435 2012-02-04  Eric Blake  <eblake@redhat.com>
6436
6437         canonicalize-lgpl: fix // handling
6438         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6439
6440         canonicalize: fix // handling
6441         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6442         /// to //, since only // is special.
6443
6444 2012-02-04  Bruno Haible  <bruno@clisp.org>
6445
6446         ioctl: Fix test failure on native Windows.
6447         * lib/ioctl.c: Include msvc-nothrow.h.
6448         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6449
6450 2012-02-04  Bruno Haible  <bruno@clisp.org>
6451
6452         fsync: Avoid test failure on native Windows.
6453         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6454         read-only.
6455
6456 2012-02-04  Bruno Haible  <bruno@clisp.org>
6457
6458         sys_select: Avoid syntax error on OpenBSD 5.0.
6459         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6460         currently being included, just include the system's <sys/select.h>.
6461
6462 2012-02-04  Bruno Haible  <bruno@clisp.org>
6463
6464         sys_select: Avoid syntax error on OpenBSD 5.0.
6465         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6466         <sys/select.h>, not before.
6467         Reported by Jiri B <jirib@devio.us>.
6468
6469 2012-02-04  Bruno Haible  <bruno@clisp.org>
6470
6471         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6472         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6473         global variables.
6474         * tests/test-get-rusage-data.c (main): Likewise.
6475         Reported by Jim Meyering.
6476
6477 2012-02-04  Bruno Haible  <bruno@clisp.org>
6478
6479         stdioext: Fix last commit.
6480         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6481
6482 2012-02-03  Bruno Haible  <bruno@clisp.org>
6483
6484         stdioext: Add tentative support for Plan9.
6485         * lib/stdio-impl.h: Include <errno.h>.
6486         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6487         * lib/freadable.c (freadable): Likewise.
6488         * lib/fwritable.c (fwritable): Likewise.
6489         * lib/fbufmode.c (fbufmode): Likewise.
6490         * lib/freading.c (freading): Likewise.
6491         * lib/fwriting.c (fwriting): Likewise.
6492         * lib/freadptr.c (freadptr): Likewise.
6493         * lib/freadseek.c (freadptrinc): Likewise.
6494         * lib/freadahead.c (freadahead): Likewise.
6495         * lib/fpurge.c (fpurge): Likewise.
6496         * lib/fseeko.c (rpl_fseeko): Likewise.
6497         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6498         Reported by Jens Staal <staal1978@gmail.com>.
6499
6500 2012-02-02  Jim Meyering  <meyering@redhat.com>
6501
6502         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6503         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6504         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6505         not even to try to add the attribute.  Instead, add a pragma to suppress
6506         the suggestion/warning.
6507
6508 2012-01-31  Karl Berry  <karl@gnu.org>
6509
6510         setstate doc: typo.
6511         * doc/posix-functions/setstate.texi (setstate): { not (.
6512
6513 2012-01-31  Bruno Haible  <bruno@clisp.org>
6514
6515         popen: Make more robust on Windows.
6516         * lib/popen.c: On native Windows, use the _popen based code even if
6517         HAVE_POPEN is set.
6518         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
6519         environment variable on native Windows.
6520
6521 2012-01-30  Bruno Haible  <bruno@clisp.org>
6522
6523         pclose: Fix typo.
6524         * lib/stdio.in.h (pclose): Fix typo in warning message.
6525
6526 2012-01-30  Bruno Haible  <bruno@clisp.org>
6527
6528         doc about getlogin_r, setstate.
6529         * doc/posix-functions/getlogin_r.texi: List the incompatible
6530         declaration problem under "not fixed by gnulib".
6531         * doc/posix-functions/setstate.texi: Mention incompatible declaration
6532         problem on Solaris 11 and other platforms.
6533
6534 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
6535             Bruno Haible  <bruno@clisp.org>
6536
6537         poll tests: Make test more robust.
6538         * tests/test-poll.c: Include macros.h.
6539         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
6540         return value of various I/O operations.
6541         * modules/poll-tests (Files): Add tests/macros.h.
6542
6543 2012-01-30  Bruno Haible  <bruno@clisp.org>
6544
6545         sys_stat: Fix support for mingw64 and MSVC.
6546         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
6547         header files already do it.
6548         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
6549         stat itself.
6550         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6551
6552 2012-01-30  Bruno Haible  <bruno@clisp.org>
6553
6554         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
6555         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
6556         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
6557
6558 2012-01-29  Bruno Haible  <bruno@clisp.org>
6559
6560         quotearg: Fix test failure on MacOS X 10.5.
6561         * tests/test-quotearg-simple.c: Include localcharset.h.
6562         (main): If the locale encoding is not ASCII, bypass the tests of
6563         locale_quoting_style and clocale_quoting_style.
6564         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
6565
6566 2012-01-29  Jim Meyering  <meyering@redhat.com>
6567
6568         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
6569         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
6570         detect uses of canonicalize_file_name.
6571
6572 2012-01-28  Bruno Haible  <bruno@clisp.org>
6573
6574         test-framework-sh: Fix test failure with AIX 7.1 diff.
6575         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
6576         in column 1, like 'diff -c' does.
6577         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
6578         whether 'diff -u' is used. Instead, test whether the output contains
6579         some '@' character.
6580
6581 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
6582
6583         strtoimax: eliminate need for stdint.h, inttypes.h checks
6584         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
6585         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
6586         the prerequisites for a recently-introduced strtoimax test.
6587         I guess this might cause strtoimax to be replaced when not
6588         strictly necessary on older hosts, but this shouldn't introduce
6589         any bugs and it should make Emacs 'configure' faster on typical
6590         modern hosts.  Problem discovered when importing the latest gnulib
6591         to an Emacs test version.
6592         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
6593
6594 2012-01-28  Bruno Haible  <bruno@clisp.org>
6595
6596         sys_time: Override 'struct timeval' on some native Windows platforms.
6597         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
6598         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
6599         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
6600         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
6601         needs to be overridden.
6602         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
6603         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
6604         * tests/test-sys_select.c: Check that the tv_sec member has the same
6605         size as a 'time_t'.
6606         * tests/test-sys_time.c: Likewise.
6607         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
6608         is set, set also REPLACE_GETTIMEOFDAY.
6609         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
6610         convert the resulting 'struct timeval' before returning.
6611         * lib/select.c: Include <sys/time.h>.
6612         (select, timeval): Undefine at the right place.
6613         * modules/select (Depends-on): Add sys_time.
6614         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
6615         some Windows platforms.
6616         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
6617
6618 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6619
6620         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
6621         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
6622         an integer.
6623         * lib/fcntl.c (dupfd): Likewise.
6624         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
6625
6626 2012-01-28  Bruno Haible  <bruno@clisp.org>
6627
6628         fcntl: Avoid compilation error on native Windows.
6629         * modules/fcntl (Depends-on): Add 'close'.
6630
6631 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6632
6633         select, poll, isatty: Avoid warnings on x86_64 mingw64.
6634         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
6635         pointer to an integer.
6636         * lib/poll.c (IsConsoleHandle): Likewise.
6637         * lib/isatty.c (IsConsoleHandle): Likewise.
6638
6639 2012-01-28  Jim Meyering  <meyering@redhat.com>
6640
6641         doc: clarify README-release
6642         * top/README-release: Clarify: you should make a point to have
6643         the latest stable versions of build tools in your PATH, and the
6644         reference to buildreq is solely for its list of tool names, not
6645         for its minimal-functional version numbers.
6646         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
6647
6648         maint.mk: use more readable (yet functionally equivalent) quoting
6649         It is common to quote a single quote in a single quoted string like
6650         this:  '...'\''...'.  Unless you know the idiom, that looks like
6651         gibberish, so prefer to double-quote the string when possible.
6652         Then you can use a more readable, lone single quote: "...'..."
6653         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
6654         "don't" is more readable than the equivalent 'don'\''t'.
6655         (sc_cast_of_x_alloc_return_value): Likewise.
6656         (sc_cast_of_alloca_return_value): Likewise.
6657         (sc_makefile_path_separator_check): Similar: use ":" in '...',
6658         rather than '\'':'\''.
6659
6660 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6661
6662         stdalign: relax _Alignof and tighten _Alignas test
6663         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
6664         as it was too strict: alignof must divide offsetof, but it need
6665         not equal offsetof.  Inspired by Joseph S. Myers's comment
6666         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
6667         Conversely, tighten the _Alignas test a bit, as the resulting
6668         alignment must be exactly 8.
6669
6670 2012-01-27  Bruno Haible  <bruno@clisp.org>
6671
6672         stdalign: Document the last change.
6673         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
6674
6675 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
6676
6677         stdalign: check that alignof and offsetof are consistent
6678         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
6679         Problem reported for gnulib by Richard W.M. Jones in
6680         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
6681
6682 2012-01-27  Jim Meyering  <meyering@redhat.com>
6683
6684         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
6685         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
6686         convert a sequence with gaps to the minimal containing range.
6687         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
6688         * tests/test-update-copyright.sh: Test for this.
6689         The FSF confirmed it is ok to do this, assuming there is at
6690         least one significant change per year in the affected range:
6691         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
6692
6693 2012-01-26  Bruno Haible  <bruno@clisp.org>
6694
6695         pipe2: refine doc about thread-safety
6696         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
6697         multithread-safety problem.
6698         * doc/glibc-functions/accept4.texi: Likewise.
6699
6700 2012-01-26  Bruno Haible  <bruno@clisp.org>
6701
6702         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
6703         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
6704         In the test program, include <fcntl.h>, for O_RDONLY.
6705
6706 2012-01-26  Eric Blake  <eblake@redhat.com>
6707
6708         pipe2: document lack of thread-safety in replacement
6709         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
6710         issue in replacement.
6711         * doc/glibc-functions/accept4.texi (accept4): Likewise.
6712         Based on a report by Eric Wong.
6713
6714 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
6715             Bruno Haible  <bruno@clisp.org>
6716
6717         malloca: Avoid warnings on x86_64 mingw64.
6718         * lib/malloca.c: Include <stdint.h>.
6719         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
6720         * modules/malloca (Depends-on): Add stdint.
6721         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
6722
6723 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
6724
6725         obstack: remove __STDC__ conditionals
6726         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
6727         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
6728         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
6729         m4/include_next.m4 as the only gnulib-maintained places that still
6730         refer to __STDC__.
6731
6732 2012-01-24  Bruno Haible  <bruno@clisp.org>
6733
6734         havelib: Modern quoting.
6735         * build-aux/config.rpath: Quote 'like this', not `like this', as per
6736         the recent change to the GNU coding standards.
6737
6738 2012-01-24  Bruno Haible  <bruno@clisp.org>
6739
6740         stdint: Improve support for Android.
6741         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
6742         Reported by Simon Josefsson <simon@josefsson.org>.
6743
6744 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
6745
6746         doc: omit trailing empty lines from INSTALL etc.
6747         * doc/Makefile (INSTALL): Omit trailing empty lines.
6748         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
6749         omit trailing empty lines.  This simplifies the build procedure.
6750
6751 2012-01-23  Jim Meyering  <meyering@redhat.com>
6752
6753         tests: avoid spurious warnings about gl_sockets_startup
6754         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
6755         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
6756         reporting a "statement with no effect".
6757         * tests/test-accept.c (main): Mark as "(void)".
6758         * tests/test-accept4.c (main): Likewise.
6759         * tests/test-bind.c (main): Likewise.
6760         * tests/test-connect.c (main): Likewise.
6761         * tests/test-getpeername.c (main): Likewise.
6762         * tests/test-getsockname.c (main): Likewise.
6763         * tests/test-getsockopt.c (main): Likewise.
6764         * tests/test-listen.c (main): Likewise.
6765         * tests/test-recv.c (main): Likewise.
6766         * tests/test-recvfrom.c (main): Likewise.
6767         * tests/test-send.c (main): Likewise.
6768         * tests/test-sendto.c (main): Likewise.
6769         * tests/test-setsockopt.c (main): Likewise.
6770         * tests/test-shutdown.c (main): Likewise.
6771
6772 2012-01-21  Bruno Haible  <bruno@clisp.org>
6773
6774         locale-fr.m4: Fix for Android.
6775         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
6776         failure of the test program on Bionic libc.
6777
6778 2012-01-21  Jim Meyering  <meyering@redhat.com>
6779
6780         bootstrap: fail when bootstrap_post_import_hook fails
6781         Otherwise, it's far too easy to miss diagnostics emitted
6782         between gnulib-tool's output and that of running configure.
6783         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
6784
6785 2012-01-17  Jim Meyering  <meyering@redhat.com>
6786
6787         maint: enable sc_trailing_blank
6788         * build-aux/pmccabe.css: Remove trailing blanks.
6789         * doc/acl-cygwin.txt: Likewise.
6790         * doc/gnu-oids.texi: Likewise
6791         * cfg.mk: Enable sc_trailing_blank.
6792         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
6793
6794 2012-01-17  Jim Meyering  <meyering@redhat.com>
6795
6796         maint: enable sc_prohibit_openat_without_use
6797         * cfg.mk: Enable sc_prohibit_openat_without_use.
6798         Exempt lib/selinux-at.c.
6799
6800 2012-01-17  Jim Meyering  <meyering@redhat.com>
6801
6802         maint: enable sc_prohibit_cloexec_without_use
6803         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
6804         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
6805
6806 2012-01-17  Jim Meyering  <meyering@redhat.com>
6807
6808         maint: enable sc_prohibit_intprops_without_use
6809         * cfg.mk: Enable sc_prohibit_intprops_without_use
6810         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
6811
6812 2012-01-17  Jim Meyering  <meyering@redhat.com>
6813
6814         maint: enable sc_prohibit_hash_pjw_without_use
6815         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
6816         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
6817         to match any use of \<hash_pjw\>, i.e., not necessarily with a
6818         following " (".
6819
6820 2012-01-17  Jim Meyering  <meyering@redhat.com>
6821
6822         maint: enable double-word-prohibiting rule
6823         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
6824         Exempt three files.
6825
6826 2012-01-17  Jim Meyering  <meyering@redhat.com>
6827
6828         maint: remove empty lines at EOF, but excluding modules/*
6829         Apply syntax rules at home as well as abroad.  Most changes
6830         were induced by running this:
6831           make srcdir=. _build-aux=build-aux -f top/maint.mk \
6832             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
6833             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
6834         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
6835         Exempt modules/* and two binary files.
6836         Also exempt doc/INSTALL*, per request from Bruno Haible.
6837         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
6838         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
6839         * doc/Copyright/request-assign.future: Likewise.
6840         * doc/Copyright/request-disclaim.changes: Likewise.
6841         * doc/INSTALL: Likewise.
6842         * doc/INSTALL.ISO: Likewise.
6843         * doc/INSTALL.UTF-8: Likewise.
6844         * doc/acl-cygwin.txt: Likewise.
6845         * doc/acl-resources.txt: Likewise.
6846         * doc/fdl-1.2.texi: Likewise.
6847         * doc/fdl-1.3.texi: Likewise.
6848         * doc/fdl.texi: Likewise.
6849         * lib/argp-pin.c: Likewise.
6850         * lib/round.c: Likewise.
6851         * lib/unicase/u16-totitle.c: Likewise.
6852         * lib/unictype/block_test.c: Likewise.
6853         * lib/uninorm/canonical-decomposition.c: Likewise.
6854         * m4/README: Likewise.
6855         * m4/relocatable-lib.m4: Likewise.
6856         * tests/test-isnand-nolibm.c: Likewise.
6857         * tests/test-isnand.c: Likewise.
6858         * tests/uninorm/NormalizationTest.txt: Likewise.
6859
6860 2012-01-17  Jim Meyering  <meyering@redhat.com>
6861
6862         maint: add framework to run syntax-check rules against gnulib sources
6863         * cfg.mk: New file, to disable all currently-failing tests.
6864         We'll enable them one by one, as they are made to pass.
6865         * Makefile (sc_maint): New rule.
6866
6867 2012-01-21  Bruno Haible  <bruno@clisp.org>
6868
6869         stdint: Add support for Android.
6870         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
6871         include the system's <stdint.h>.
6872         Reported by Simon Josefsson <simon@josefsson.org>.
6873
6874 2012-01-19  Jim Meyering  <meyering@redhat.com>
6875
6876         bootstrap: add bootstrap_post_import_hook
6877         Bison does still need something like the gnulib_mk_hook whose
6878         invocation I had to remove along with slurp in commit 767ccd40.
6879         Technically, we could get along without it, but doing so would
6880         have required living with a warning and a mandatory post-bootstrap
6881         automake rerun.
6882         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
6883         (bootstrap_post_import_hook): New function.
6884         Invoke it after gnulib-tool --import and before autoreconf.
6885
6886 2012-01-18  Jim Meyering  <meyering@redhat.com>
6887
6888         gitlog-to-changelog: don't use "no_"-prefixed variable name
6889         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
6890         to enable both --cluster and --no-cluster.  Change variable name,
6891         s/\$no_cluster/$cluster/, and reverse usage to match.
6892
6893         gitlog-to-changelog: use "||", not "or" in expressions
6894         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
6895         expressions.
6896
6897 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6898
6899         gitlog-to-changelog: new option --no-cluster
6900         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6901         clustering of adjacent commit messages.
6902
6903 2012-01-17  Jim Meyering  <meyering@redhat.com>
6904
6905         maint: spell file systems with two words, not one
6906         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6907         two words, not one.
6908
6909 2012-01-16  Jim Meyering  <meyering@redhat.com>
6910
6911         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6912         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6913
6914 2012-01-16  Eric Blake  <eblake@redhat.com>
6915
6916         bootstrap: cater to autoconf 2.59
6917         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6918         is not available.
6919
6920         bootstrap: properly check for libtool
6921         * build-aux/bootstrap (libtoolize): Also run libtool when older
6922         usage is detected.
6923
6924 2012-01-15  Bruno Haible  <bruno@clisp.org>
6925
6926         Improve support for MSVC 9.
6927         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
6928         clashes on MSVC.
6929         * lib/fcntl.in.h: Likewise.
6930         * lib/stdlib.in.h: Likewise.
6931         * lib/sys_stat.in.h: Likewise.
6932
6933 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
6934
6935         gnupload: we hold the master copy of this script now
6936         For motivation and more information, see:
6937         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
6938         * build-aux/gnupload: Make it clear in the heading comments that the
6939         master copy of this file is maintained by gnulib.  Since we are at
6940         it, bump its copyright year and ...
6941         ($scriptversion): ... the date in its version.
6942         ($usage): Patches and bug reports should be sent to the gnulib list,
6943         not the automake one.
6944         * config/srclist.txt: Don't try to sync 'gnupload' from automake
6945         anymore.
6946
6947 2012-01-15  Bruno Haible  <bruno@clisp.org>
6948
6949         Fix module 'random'.
6950         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
6951         initstate, setstate are declared.
6952
6953 2012-01-14  Bruno Haible  <bruno@clisp.org>
6954
6955         Tests for module 'random'.
6956         * modules/random-tests: New file.
6957         * tests/test-random.c: New file, based on tests/test-random_r.c.
6958
6959         New module 'random'.
6960         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
6961         declarations.
6962         * lib/random.c: New file, based on glibc/stdlib/random.c.
6963         * m4/random.m4: New file.
6964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
6965         HAVE_RANDOM.
6966         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
6967         * modules/random: New file.
6968         * config/srclist.txt: Add an entry for random.c.
6969         * doc/posix-functions/random.texi: Mention the 'random' module.
6970         * doc/posix-functions/initstate.texi: Likewise.
6971         * doc/posix-functions/setstate.texi: Likewise.
6972         * doc/posix-functions/srandom.texi: Likewise.
6973
6974 2012-01-12  Bruno Haible  <bruno@clisp.org>
6975
6976         random_r: Use common idioms.
6977         * lib/random_r.c: Include <stdlib.h> first.
6978
6979         random_r: Override incompatible API on AIX, OSF/1.
6980         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6981         Override the system function if REPLACE_RANDOM_R is 1.
6982         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6983         and OSF/1, set REPLACE_RANDOM_R.
6984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6985         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6986         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6987         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6988         * doc/glibc-functions/random_r.texi: Likewise.
6989         * doc/glibc-functions/setstate_r.texi: Likewise.
6990
6991         random_r: Support for MSVC 9.
6992         * lib/random_r.c: Include stdint.h, not inttypes.h.
6993
6994 2012-01-12  Eric Blake  <eblake@redhat.com>
6995
6996         inet_ntop: guard extra work by IF_LINT
6997         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6998         better code generation when not checking for warnings.
6999         Suggested by Paul Eggert and Jim Meyering.
7000
7001         strptime: fix regression on mingw
7002         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7003         Fix regression.  Reported by Bruno Haible.
7004
7005 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7006             Bruno Haible  <bruno@clisp.org>
7007
7008         copy-file: add error-code-returning variant.
7009         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7010         (qcopy_file_preserving): New declaration.
7011         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7012         copy_file_preserving. Change return type to 'int'. Don't emit an error
7013         message here.
7014         (copy_file_preserving): New function.
7015         * tests/test-copy-file.c: Include <stdlib.h>.
7016         (main): Test qcopy_file_preserving if the environment variable
7017         NO_STDERR_OUTPUT is set.
7018         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7019         with NO_STDERR_OUTPUT
7020         * tests/test-copy-file-2.sh: Likewise.
7021
7022 2012-01-10  Bruno Haible  <bruno@clisp.org>
7023
7024         copy-file: Use 'quote' module consistently.
7025         * lib/copy-file.c (copy_file_preserving): Use quote().
7026
7027         copy-file: Refactor.
7028         * lib/copy-file.c: Include quote.h.
7029         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7030         message here.
7031         * modules/copy-file (Depends-on): Add quote.
7032
7033         acl: Export qcopy_acl.
7034         * lib/acl.h (qcopy_acl): New declaration.
7035         * lib/copy-acl.c (qcopy_acl): Make non-static.
7036
7037         acl: Rename a local variable.
7038         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7039
7040         acl: Align return values of copy_acl and qcopy_acl.
7041         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7042         maybe < -1.
7043
7044 2012-01-11  Eric Blake  <eblake@redhat.com>
7045
7046         strptime: silence gcc warnings
7047         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7048         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7049         Reported by Daniel P. Berrange.
7050
7051         inet_ntop: silence gcc warning
7052         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7053         Reported by Daniel P. Berrange.
7054
7055 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7056
7057         getloadavg test: skip the test on GNU/Linux without /proc mounted
7058         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7059         file.  When /proc is not mounted, it always fails with ENOENT.
7060         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7061         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7062
7063 2012-01-10  Bruno Haible  <bruno@clisp.org>
7064
7065         regex: Avoid link error on MSVC 9.
7066         * modules/regex (Depends-on): Add wctype.
7067
7068 2012-01-10  Bruno Haible  <bruno@clisp.org>
7069
7070         doc: Mention --with-tests option.
7071         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7072         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7073         --with-tests.
7074         Reported by Reuben Thomas.
7075
7076 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7077
7078         users.txt: order package names lexicographically.
7079         * users.txt: Order package names lexicographically.
7080
7081 2012-01-10  Jim Meyering  <meyering@redhat.com>
7082
7083         maint.mk: fix description in comment
7084         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7085
7086         ignore-value: remove deprecated ignore_ptr function
7087         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7088         * NEWS: Note this.
7089
7090 2012-01-09  Jim Meyering  <meyering@redhat.com>
7091
7092         test-init.sh: avoid a subshell
7093         * tests/test-init.sh: Remove protective subshell.
7094         Suggested by Bernhard Voelker.  While a subshell is normally
7095         required to protect against older shells (Solaris, FreeBSD) that
7096         warn about a missing program before performing redirection, the
7097         shell-selection tests performed by init.sh probably exclude any
7098         offending shell.
7099
7100 2012-01-08  Bruno Haible  <bruno@clisp.org>
7101
7102         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7103         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7104         variable.
7105
7106 2012-01-08  Bruno Haible  <bruno@clisp.org>
7107
7108         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7109         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7110         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7111         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7112         macro.
7113         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7114         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7115         * lib/spawn_faction_addopen.c: Add workaround implementation if
7116         HAVE_WORKING_POSIX_SPAWN.
7117         * modules/spawn (Makefile): Substitute
7118         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7119         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7120         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7121         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7122         (Depends-on): Update conditions.
7123         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7124         the Solaris 11 bug.
7125
7126 2012-01-08  Bruno Haible  <bruno@clisp.org>
7127
7128         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7129         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7130         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7131         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7132         macro.
7133         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7134         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7135         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7136         HAVE_WORKING_POSIX_SPAWN.
7137         * modules/spawn (Makefile): Substitute
7138         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7139         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7140         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7141         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7142         (Depends-on): Update conditions.
7143         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7144         the Solaris 11 bug.
7145
7146 2012-01-08  Bruno Haible  <bruno@clisp.org>
7147
7148         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7149         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7150         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7151         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7152         HAVE_WORKING_POSIX_SPAWN.
7153         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7154         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7155         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7156         * lib/spawn_faction_addclose.c: Add workaround implementation if
7157         HAVE_WORKING_POSIX_SPAWN.
7158         * modules/spawn (Makefile): Substitute
7159         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7160         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7161         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7162         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7163         (Depends-on): Update conditions.
7164         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7165         the Solaris 11 bug.
7166
7167 2012-01-08  Bruno Haible  <bruno@clisp.org>
7168
7169         doc: Update for Solaris 11 2011-11.
7170         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7171         * m4/printf.m4: Update comments.
7172
7173 2012-01-08  Bruno Haible  <bruno@clisp.org>
7174
7175         mktime: Avoid compilation error on Solaris 11.
7176         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7177
7178 2012-01-08  Bruno Haible  <bruno@clisp.org>
7179
7180         doc: Small fix.
7181         * doc/posix-headers/nl_types.texi: Correct platforms list.
7182
7183 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7184
7185         Add lgpl-3.0 module.
7186         * MODULES.html.sh (Support for building documentation): Add
7187         lgpl-3.0.
7188         * modules/lgpl-3.0: New file.
7189
7190 2012-01-08  Jim Meyering  <meyering@redhat.com>
7191
7192         select.c: indent with spaces, not TABs
7193         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7194
7195 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7196
7197         quotearg: do not use grave accent for left quote
7198         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7199         locale_quoting_style.
7200         (quotearg_buffer_restyled): Fix example.
7201         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7202
7203 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7204
7205         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7206         Most programs do not have translation catalogs for English and much
7207         less separate catalogs for British and American English.  Drop the
7208         suggestion to translators about these two, and provide it
7209         automatically for Unicode locales.  Like most programs, even those
7210         using American English, we use single quotation marks.  This conflicts
7211         with the American typographic convention, but works better when you
7212         cite the entire error message within double quotes.  It also tries not
7213         to clash with established practice and with what non-gnulib programs
7214         will usually do.
7215         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7216         using an UTF-8 or GB-18030 locale.  The list of other locales with
7217         quotes was provided by Bruno Haible.
7218         (quotearg_buffer_restyled): Adjust instructions to translators.
7219         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7220         text, since this would be wrong when using Unicode.
7221         * modules/quotearg: Depend on c-strcaseeq.
7222
7223 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7224
7225         quotearg: fix Wikipedia link
7226         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7227
7228 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7229
7230         Fix for mingw with MSVC9.
7231         * m4/ld-version-script.m4: Check that compiler rejects version
7232         scripts with syntax errors.  Reported by Bruno Haible
7233         <bruno@clisp.org>.
7234
7235 2012-01-06  Bruno Haible  <bruno@clisp.org>
7236
7237         Talk about "native Windows API", not "Woe32".
7238         * lib/accept4.c: Update comments to mention native Windows.
7239         * lib/execute.c: Likewise.
7240         * lib/fatal-signal.c: Likewise.
7241         * lib/localcharset.c: Likewise.
7242         * lib/nanosleep.c: Likewise.
7243         * lib/nl_langinfo.c: Likewise.
7244         * lib/pclose.c: Likewise.
7245         * lib/pipe-filter-gi.c: Likewise.
7246         * lib/pipe-filter-ii.c: Likewise.
7247         * lib/pipe.c: Likewise.
7248         * lib/pipe2.c: Likewise.
7249         * lib/popen.c: Likewise.
7250         * lib/progreloc.c: Likewise.
7251         * lib/relocatable.c: Likewise.
7252         * lib/sigaction.c: Likewise.
7253         * lib/sigprocmask.c: Likewise.
7254         * lib/spawn-pipe.h: Likewise.
7255         * lib/spawn-pipe.c: Likewise.
7256         * lib/spawni.c: Likewise.
7257         * lib/stat-time.h: Likewise.
7258         * lib/w32spawn.h: Likewise.
7259         * tests/test-isatty.c: Likewise.
7260         * lib/config.charset: More comments.
7261         * doc/gnulib-intro.texi: Mention native Windows.
7262         * doc/posix-functions/_Exit_C99.texi: Likewise.
7263         * doc/posix-headers/fcntl.texi: Likewise.
7264
7265 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7266
7267         argp: Avoid crash if translator uses % characters in a translation.
7268         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7269         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7270
7271 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7272
7273         doc: C11 and C++11 are now official
7274         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7275         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7276         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7277         * modules/stdalign:
7278         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7279
7280 2012-01-06  Bruno Haible  <bruno@clisp.org>
7281
7282         uc-is-grapheme-break tests: Tweak.
7283         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7284         message.
7285
7286 2012-01-06  Bruno Haible  <bruno@clisp.org>
7287
7288         test-init.sh: correct the test for diff -u
7289         * tests/test-init.sh: Also redirect stdout to /dev/null.
7290
7291 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7292
7293         Use ', not `, for quoting output.
7294         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7295         (print_changelog_deltas, get_tool_versions, main program):
7296         * build-aux/git-version-gen:
7297         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7298         * build-aux/move-if-change (help):
7299         * build-aux/useless-if-before-free (usage, main program):
7300         * check-module (parse_module_file, usage)
7301         (find_included_lib_files, check_module):
7302         * lib/argmatch.c (main) [TEST]:
7303         * lib/argp-help.c (_help):
7304         * lib/getopt1.c (main) [TEST]:
7305         * lib/git-merge-changelog.c (usage):
7306         * lib/xstrtol-error.c (xstrtol_error):
7307         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7308         * m4/argz.m4 (gl_FUNC_ARGZ):
7309         * m4/bison.m4 (gl_BISON):
7310         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7311         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7312         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7313         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7314         * m4/gc-random.m4 (gl_GC_RANDOM):
7315         * m4/intl.m4 (gt_CHECK_DECL):
7316         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7317         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7318         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7319         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7320         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7321         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7322         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7323         * tests/test-dirname.c (main):
7324         * tests/test-getpass.c (main):
7325         * tests/test-iconvme.c (main):
7326         * tests/test-parse-datetime.c (LOG):
7327         * tests/test-xstrtoimax.sh:
7328         * tests/test-xstrtol.sh:
7329         * tests/test-xstrtoll.sh:
7330         * tests/test-xstrtoumax.sh:
7331         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7332         * top/GNUmakefile (abort-due-to-no-makefile):
7333         Quote 'like this', not `like this', as per the recent change to
7334         the GNU coding standards.
7335
7336 2012-01-05  Bruno Haible  <bruno@clisp.org>
7337
7338         strtoimax: Don't force a replacement on systems where intmax_t is int.
7339         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7340         'intmax_t' is not larger than 'int'.
7341         Reported by Pádraig Brady <P@draigBrady.com>.
7342
7343 2012-01-05  Bruno Haible  <bruno@clisp.org>
7344
7345         doc: Mention NetBSD bugs.
7346         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7347         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7348
7349 2012-01-05  Bruno Haible  <bruno@clisp.org>
7350
7351         strtoumax tests: Enhance tests.
7352         * tests/test-strtoumax.c (main): Add tests for large values.
7353
7354 2012-01-05  Bruno Haible  <bruno@clisp.org>
7355
7356         strtoimax: Work around AIX 5.1 bug.
7357         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7358         definition.
7359         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7360         Set HAVE_STRTOIMAX.
7361         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7362         REPLACE_STRTOIMAX.
7363         * modules/inttypes-incomplete (Makefile.am): Substitute
7364         REPLACE_STRTOIMAX.
7365         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7366         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7367         (Depends-on): Update conditions.
7368         * tests/test-strtoimax.c (main): Add tests for large values.
7369         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7370
7371 2012-01-05  Bruno Haible  <bruno@clisp.org>
7372
7373         inttypes: Modernize.
7374         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7375         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7376         (Makefile.am): Update inttypes.h rule.
7377
7378 2012-01-05  Jim Meyering  <meyering@redhat.com>
7379
7380         init.sh: don't waste a subshell just to redirect stderr
7381         * tests/init.sh: In testing for diff -u and diff -c, use a
7382         stderr-redirecting exec inside `...` rather than a subshell.
7383
7384         test-init.sh: avoid failure on HP-UX 11.00
7385         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7386         resolves to diff -c or cmp.  Reported by Bruno Haible.
7387
7388 2012-01-05  Bruno Haible  <bruno@clisp.org>
7389
7390         Tests for module 'strtoull'.
7391         * modules/strtoull-tests: New file.
7392         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7393
7394 2012-01-05  Bruno Haible  <bruno@clisp.org>
7395
7396         Tests for module 'strtoll'.
7397         * modules/strtoll-tests: New file.
7398         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7399
7400 2012-01-05  Bruno Haible  <bruno@clisp.org>
7401
7402         Tests for module 'strtoul'.
7403         * modules/strtoul-tests: New file.
7404         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7405
7406 2012-01-05  Bruno Haible  <bruno@clisp.org>
7407
7408         Tests for module 'strtol'.
7409         * modules/strtol-tests: New file.
7410         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7411
7412 2012-01-04  Jim Meyering  <meyering@redhat.com>
7413
7414         test-init.sh: accommodate Solaris 5.10's different diff -u output
7415         * tests/test-init.sh: Also exempt @@ lines from the comparison
7416         of diff output, since Solaris 5.10 and GNU diff formats differ.
7417         Reported by Stefano Lattarini.
7418
7419 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7420
7421         test-posixtm: don't assume signed integer wraparound
7422         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7423         after signed integer overflow.  Inspired by (though it may not
7424         fix) Bruno Haible's bug report in
7425         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7426
7427         Spell out "Windows 9x" and "Windows XP".
7428         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7429         "Windows 9x" and "WinXP" with "Windows XP".
7430
7431 2012-01-04  Jim Meyering  <meyering@redhat.com>
7432
7433         test-vc-list-files-cvs.sh: remove obsolete comment
7434         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7435         double exit.  Now that's all encapsulated via skip_ and Exit.
7436
7437 2012-01-04  Bruno Haible  <bruno@clisp.org>
7438
7439         Talk about "native Windows API", not "Win32".
7440         * lib/classpath.c: Update comments to mention native Windows.
7441         * lib/csharpexec.c: Likewise.
7442         * lib/dup2.c: Likewise.
7443         * lib/error.c: Likewise.
7444         * lib/fcntl.c: Likewise.
7445         * lib/filename.h: Likewise.
7446         * lib/findprog.c: Likewise.
7447         * lib/get-rusage-as.c: Likewise.
7448         * lib/get-rusage-data.c: Likewise.
7449         * lib/getpagesize.c: Likewise.
7450         * lib/javaexec.c: Likewise.
7451         * lib/msvc-inval.c: Likewise.
7452         * lib/msvc-nothrow.c: Likewise.
7453         * lib/nanosleep.c: Likewise.
7454         * lib/nonblocking.c: Likewise.
7455         * lib/printf-parse.c: Likewise.
7456         * lib/setlocale.c: Likewise.
7457         * lib/sigaction.c: Likewise.
7458         * lib/strerror_r.c: Likewise.
7459         * lib/tmpdir.c: Likewise.
7460         * lib/vasnprintf.c: Likewise.
7461         * lib/w32spawn.h: Likewise.
7462         * lib/waitpid.c: Likewise.
7463         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7464         * m4/locale-ar.m4: Likewise.
7465         * m4/locale-fr.m4: Likewise.
7466         * m4/locale-ja.m4: Likewise.
7467         * m4/locale-tr.m4: Likewise.
7468         * m4/locale-zh.m4: Likewise.
7469         * m4/printf.m4: Likewise.
7470         * tests/test-cloexec.c: Likewise.
7471         * tests/test-copy-acl.sh: Likewise.
7472         * tests/test-copy-file.sh: Likewise.
7473         * tests/test-file-has-acl.sh: Likewise.
7474         * tests/test-set-mode-acl.sh: Likewise.
7475         * tests/test-dup-safer.c: Likewise.
7476         * tests/test-dup2.c: Likewise.
7477         * tests/test-dup3.c: Likewise.
7478         * tests/test-fcntl.c: Likewise.
7479         * tests/test-nonblocking-pipe.h: Likewise.
7480         * tests/test-nonblocking-socket.h: Likewise.
7481         * tests/test-pipe.c: Likewise.
7482         * tests/test-pipe2.c: Likewise.
7483         * tests/test-spawn-pipe-child.c: Likewise.
7484         * doc/acl-resources.txt: Likewise.
7485         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7486         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7487         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7488         * lib/localcharset.c: Update comments to mention native Windows.
7489         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7490         * lib/localename.c: Likewise.
7491         * lib/progreloc.c: Likewise.
7492         * lib/relocatable.c: Likewise.
7493         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7494         (windows_compute_revents): Renamed from win32_compute_revents.
7495         (windows_compute_revents_socket): Renamed from
7496         win32_compute_revents_socket.
7497         * lib/select.c: Update comments to mention native Windows.
7498         (windows_poll_handle): Renamed from win32_poll_handle.
7499         * m4/threadlib.m4: Update comments to mention native Windows.
7500         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7501         --enable-threads=windows instead of --enable-threads=win32. Set
7502         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7503         * lib/glthread/lock.h: Update comments to mention native Windows.
7504         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7505         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7506         USE_WIN32_THREADS.
7507         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
7508         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
7509         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
7510         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
7511         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
7512         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
7513         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
7514         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
7515         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
7516         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
7517         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
7518         * tests/test-tls.c: Likewise.
7519         Rationale:
7520         Microsoft renamed the "Win32 API" to "Windows API", as it is available
7521         on both 32-bit and 64-bit Windows systems.
7522         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
7523         line of distinction is between "native Windows" on one side and Unix/
7524         POSIX systems on the other side. More details in
7525         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
7526         Suggested by Paul Eggert.
7527
7528 2012-01-03  Bruno Haible  <bruno@clisp.org>
7529
7530         isatty: Support for MSVC 9.
7531         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
7532         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
7533         (_isatty_nothrow): New function.
7534         (isatty): Use it instead of _isatty.
7535         (IsConsoleHandle): Add comment, from Paolo Bonzini.
7536         * lib/poll.c (IsConsoleHandle): Likewise.
7537         * lib/select.c (IsConsoleHandle): Likewise.
7538         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
7539         (gl_PREREQ_ISATTY): New macro.
7540         * modules/isatty (Depends-on): Add msvc-inval.
7541         (configure.ac): Invoke gl_PREREQ_ISATTY.
7542
7543 2012-01-03  Jim Meyering  <meyering@redhat.com>
7544
7545         maint.mk: remove temporary transition aid from over 1.5 years ago
7546         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
7547         purpose was to aid in the transition (avoiding silent malfunction)
7548         from that old name to the new _sc_search_regexp.  This shim was
7549         added by commit 219c504b.
7550
7551         init.sh: do not try to accommodate compare arguments starting with "-"
7552         * tests/init.sh (compare_dev_null_): Do not try to accommodate
7553         compare arguments that start with "-".  Besides, we do not worry
7554         about this when invoking diff or cmp; why start now with sed?
7555         Using "--" to separate options from argument would trigger sed
7556         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
7557         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
7558
7559 2012-01-02  Bruno Haible  <bruno@clisp.org>
7560
7561         Enhance tests for module 'isatty'.
7562         * modules/isatty-tests (Depends-on): Add pipe-posix.
7563         * tests/test-isatty.c: Include <fcntl.h>.
7564         (DEV_NULL): New macro.
7565         (main): Test the resut of isatty() also on regular files, pipes, and
7566         /dev/null.
7567
7568         New module 'isatty'.
7569         * lib/unistd.in.h (isatty): New declaration.
7570         * lib/isatty.c: New file, based on an idea of
7571         Bastien Roucariès <roucaries.bastien@gmail.com>.
7572         * m4/isatty.m4: New file.
7573         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
7574         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
7575         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
7576         REPLACE_ISATTY.
7577         * modules/isatty: New file.
7578         * doc/posix-functions/isatty.texi: Mention the new module.
7579         Suggested by Paolo Bonzini.
7580
7581 2012-01-02  Bruno Haible  <bruno@clisp.org>
7582
7583         canonicalize: Tweak 2011-12-29 commit.
7584         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
7585         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
7586
7587 2012-01-02  Jim Meyering  <meyering@redhat.com>
7588
7589         gitlog-to-changelog: describe input syntax in --help output
7590         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
7591
7592         gitlog-to-changelog: fix typo in --help: show backslash before email @
7593         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
7594         in sources, but not in actual output.
7595
7596 2011-12-30  Jim Meyering  <meyering@redhat.com>
7597
7598         gitlog-to-changelog: don't malfunction when name contains %-directive
7599         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
7600         in a name string cause trouble.  E.g., with a user name of "%s",
7601         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
7602
7603 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
7604
7605         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
7606         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
7607         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
7608         the "  (tiny change)" notation that is appended to the standard
7609         ChangeLog "date  name  email" header line.
7610
7611 2012-01-01  Jim Meyering  <meyering@redhat.com>
7612
7613         test-framework-sh: init.sh: fix "make dist" failure
7614         When using gnulib-tool's --with-tests option and any module that
7615         depends on test-framework-sh, "make dist" would fail due to the
7616         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
7617         in the gltests directory, and not in the gllib/ directory.
7618         One way to work around that is to move the EXTRA_DIST += init.sh
7619         from the primary module to the -tests one:
7620         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
7621         * modules/test-framework-sh (Makefile.am): ...not here.
7622         Reported by Tom G. Christensen in
7623         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
7624
7625         version-etc: update copyright year reported by --version
7626         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
7627
7628 2011-12-31  Pádraig Brady  <P@draigBrady.com>
7629
7630         canonicalize: only stat() if required
7631         * lib/canonicalize.c (canonicalize_filename_mode):
7632         Avoid calling l?stat() when both CAN_MISSING,
7633         and CAN_NOLINKS are set, as we neither need
7634         to resolve symlinks or test component existence.
7635
7636 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
7637
7638         doc: cover st_ino issues once; add OpenVMS etc.
7639         * doc/posix-functions/stat.texi (stat):
7640         * doc/posix-functions/lstat.texi (lstat):
7641         * doc/posix-functions/fstatat.texi (fstatat):
7642         * doc/posix-functions/fstat.texi (fstat):
7643         Move general 'struct stat' stuff to sys_stat.texi,
7644         leaving behind a pointer.
7645         * doc/posix-headers/sys_stat.texi (sys/stat.h):
7646         Merge duplicate info about 'struct stat' problems into here.
7647         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
7648         and suggest partial workarounds.
7649
7650         same-inode: port to OpenVMS
7651         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
7652         three st_ino values.
7653
7654 2011-12-30  Pádraig Brady  <P@draigBrady.com>
7655
7656         canonicalize: fix references to stat() and lstat()
7657         * lib/canonicalize.c (canonicalize_filename_mode):
7658         Ensure references always resolve to a replacement
7659         function if required (even via a macro).
7660
7661 2011-12-30  Jim Meyering  <meyering@redhat.com>
7662
7663         gitlog-to-changelog: remove a little duplication
7664         * build-aux/gitlog-to-changelog (main): Grep @lines once,
7665         rather than twice.
7666
7667 2011-12-29  Pádraig Brady  <P@draigBrady.com>
7668
7669         canonicalize: add support for not resolving symlinks
7670         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
7671         indicate we don't want to follow symlinks.  Also
7672         provide CAN_MODE_MASK to aid setting these existing
7673         mutually exclusive values.
7674         * lib/canonicalize.c (canonicalize_filename_mode):
7675         Extract the flags from can_mode parameter, which
7676         are currently just used to select between stat()
7677         and lstat().  Also ensure that mutually exclusive
7678         values are flagged immediately as invalid.
7679         * tests/test-canonicalize.c: Verify symlinks are
7680         not followed, and that invalid flag combinations
7681         are diagnosed.
7682
7683 2011-12-25  Jim Meyering  <meyering@redhat.com>
7684
7685         gitlog-to-changelog: do not clump multi-paragraph entries
7686         Identical header lines (date,name,email+coauthors) are suppressed,
7687         thus putting all entries with those same characteristics under
7688         a single header.  However, when a log entry consists of two or
7689         more paragraphs, it may not be clear where it starts and ends.
7690         This change makes it so that such an entry is always separated
7691         from others by a header line, even when that header would
7692         otherwise be suppressed.
7693         * build-aux/gitlog-to-changelog: Implement the above.
7694         Inspired by a related request from Stefano Lattarini in
7695         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
7696
7697 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
7698
7699         announce-gen: fix `cmd' typo in diagnostic
7700         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
7701         diagnostic: a missing '$' meant that the command was not output.
7702
7703 2011-12-23  Jim Meyering  <meyering@redhat.com>
7704
7705         test-framework-sh: distribute init.sh
7706         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
7707         Otherwise, "make -C gnulib-tests check" (at least in grep) would
7708         fail due to the lack of init.sh.
7709
7710         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
7711         * modules/atexit-tests: Rather than listing tests/init.sh,
7712         now that there's a module for it, simply depend on that new module.
7713         * modules/closein-tests: Likewise.
7714         * modules/exclude-tests: Likewise.
7715         * modules/getcwd-tests: Likewise.
7716         * modules/perror-tests: Likewise.
7717         * modules/pread-tests: Likewise.
7718         * modules/pwrite-tests: Likewise.
7719         * modules/vc-list-files-tests: Likewise.
7720         * modules/verify-tests: Likewise.
7721         * modules/xalloc-die-tests: Likewise.
7722         * modules/xstrtoimax-tests: Likewise.
7723         * modules/xstrtol-tests: Likewise.
7724         * modules/xstrtoll-tests: Likewise.
7725         * modules/xstrtoumax-tests: Likewise.
7726         * modules/yesno-tests: Likewise.
7727
7728 2011-12-22  Jim Meyering  <meyering@redhat.com>
7729
7730         test-framework-sh: add minimal tests of init.sh's compare function
7731         * modules/test-framework-sh-tests: New file.
7732         * tests/test-init.sh: New file.
7733
7734         test-framework-sh: new module
7735         * modules/test-framework-sh: New file.
7736         * MODULES.html.sh (Support for maintaining and releasing projects):
7737         List it.
7738
7739         init.sh: do not emit simulated diff output to stderr
7740         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
7741
7742 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
7743
7744         .gitignore: ignore gnulib.dvi and regex.info
7745         * doc/.gitignore:add gnulib.dvi and regex.info
7746
7747 2011-12-22  Jim Meyering  <meyering@redhat.com>
7748
7749         init.sh: correct previous change
7750         * tests/init.sh (compare): My previous change was wrong.
7751         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
7752
7753         init.sh: avoid unwarranted test failure when using "set -e"
7754         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
7755         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
7756         a use like "compare exp out" would get evoke an unconditional failure.
7757
7758 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
7759
7760         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
7761         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
7762         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
7763         autoreconf that did not.
7764         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
7765         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7766
7767 2011-12-17  Jim Meyering  <meyering@redhat.com>
7768
7769         bootstrap: remove some now-unneeded code
7770         This script arose back when gnulib-tool was young.
7771         Since then, it has seen improvements that render much of this
7772         script unnecessary.  In particular, it can now make symlinks
7773         to the files it uses.  Also, I no longer see as much value in
7774         marking files as read-only via comments.
7775         If you relied on the symlink-creation feature of the preceding
7776         version of this script, you can get most of that functionality
7777         by adding the --symlink option to the definition of
7778         gnulib_tool_option_extras in your bootstrap.conf file.
7779         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
7780         Run autopoint and libtoolize *before* gnulib-tool.
7781         After it, run an abbreviated autoreconf, rather than a loop around
7782         all tools.
7783         (slirp, bt_mark_as_generated): Remove functions.
7784
7785 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
7786
7787         ftoastr: fix typo
7788         * lib/ftoastr.h: Fix misspelling in comment.
7789
7790 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
7791
7792         * top/README-release: fix punctuation.
7793
7794 2011-12-17  Jim Meyering  <meyering@redhat.com>
7795
7796         bootstrap: correct the recent buildreq change
7797         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
7798         had no effect.
7799         * build-aux/bootstrap (buildreq): Bracket each search term with
7800         "*...*", so that the shell "case" statement works as intended.
7801         Add comments.
7802
7803 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
7804
7805         build: let bootstrap resort to wget when downloading .po files
7806         * build-aux/bootstrap (download_po_files): Fallback to wget when
7807         downloading the .po files via rsync fails.  This is necessary to
7808         bootstrap from behind a strict firewall.
7809
7810 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7811
7812         stdint: don't assume C++11 when compiling with g++
7813         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
7814         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
7815         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
7816         work also in C++ before C++11, as that improperly inhibits
7817         generating a substitute stdint.h for that case.
7818
7819 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
7820
7821         alloca: protect comment from gnulib-tool
7822         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
7823         that gnulib-tool doesn't think it's a license, and munge it to
7824         say "GCC version 3".
7825
7826 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
7827
7828         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
7829         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
7830         $(abs_top_builddir) instead of $(top_builddir).
7831
7832 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
7833
7834         strftime-tests: also test nanoseconds
7835         * tests/test-strftime.c (T): Add a test of %N.
7836
7837 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
7838
7839         inttypes, stdint: add C++11 support
7840         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
7841         when including inttypes.h and stdint.h.  Support this change to
7842         the standard.
7843         * doc/posix-headers/inttypes.texi (inttypes.h):
7844         * doc/posix-headers/stdint.texi (stdint.h): Document this.
7845         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
7846         Define if not defined already, for the benefit of pre-C++11 hosts.
7847         Define the standard format macros (e.g., PRId8) always.
7848         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
7849         Likewise, if __cpluspus.  Define the standard constant and limit
7850         macros (e.g., INT8_C, INT8_MAX) always.
7851         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
7852         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
7853         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
7854         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
7855         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
7856         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
7857         Likewise.
7858
7859 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7860
7861         nonblocking tests: Fix test failure on Linux/PPC.
7862         Suggested by Prerna Saxena in
7863         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
7864         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
7865         Set to 1100000.
7866
7867 2011-12-12  Jim Meyering  <meyering@redhat.com>
7868
7869         argmatch: don't hard-code `' when listing valid option arguments
7870         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
7871         use the quote function to add quotes.  Use fputs rather than
7872         fprintf for the format string with no format directive.
7873
7874 2011-12-07  Eric Blake  <eblake@redhat.com>
7875
7876         bootstrap: detect tools required by gnulib-tool
7877         * build-aux/bootstrap (buildreq): Provide minimum implicit
7878         dependencies.
7879         * DEPENDENCIES: Mention patch as a prereq.
7880
7881 2011-12-04  Bruno Haible  <bruno@clisp.org>
7882
7883         sethostname: Port to Windows platforms.
7884         * lib/sethostname.c: Provide an alternate implementation for Windows
7885         platforms.
7886         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
7887         (main): Skip the test if sethostname() fails with EPERM. On Windows
7888         platforms, don't check the result of gethostname().
7889
7890 2011-12-04  Bruno Haible  <bruno@clisp.org>
7891             Jim Meyering  <meyering@redhat.com>
7892
7893         tests: Avoid spurious error message on platforms without mktemp program.
7894         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
7895
7896 2011-12-04  Bruno Haible  <bruno@clisp.org>
7897
7898         sethostname: Fix documentation.
7899         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7900         "not fixed" section.
7901
7902 2011-12-03  Bruno Haible  <bruno@clisp.org>
7903
7904         gnulib-tool: Verify that the License field is present and non-empty.
7905         * gnulib-tool (func_get_license_raw): New function, extracted from
7906         func_get_license.
7907         (func_get_license): Use it. Warn if the module is not a test module and
7908         has no license.
7909         Suggested by Jim Meyering.
7910
7911 2011-12-03  Bruno Haible  <bruno@clisp.org>
7912
7913         sethostname tests: Fix link error on mingw.
7914         * tests/test-sethostname1.c: New file, extracted from
7915         tests/test-sethostname.c.
7916         * tests/test-sethostname2.c: New file, extracted from
7917         tests/test-sethostname.c.
7918         * tests/test-sethostname.c: Remove file.
7919         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7920         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
7921         (Depends-on): Add gethostname.
7922         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
7923         Link the latter with $(GETHOSTNAME_LIB).
7924
7925         sethostname tests: Fix compilation error on mingw.
7926         * tests/test-sethostname.c: Don't include <sys/types.h>.
7927         (geteuid): Use a dummy value without uid_t.
7928         * modules/sethostname-tests (Depends-on): Remove sys_types.
7929
7930         sethostname tests: Avoid a gcc warning.
7931         * tests/test-sethostname.c (main): Remove an unused variable.
7932
7933         Tweak last commit.
7934         * modules/sethostname-tests (Files): Sort by decreasing importance.
7935         (configure.ac): Check for geteuid.
7936         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
7937         the test when there's nothing to test. Drop an unnecessary cast.
7938         Improve an error message. Verify that the final sethostname() call
7939         succeeds.
7940
7941 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7942
7943         Add a test suite for the sethostname module.
7944         * modules/sethostname-tests: New file.  A test program
7945         for the sethostname module.
7946         * tests/test-sethostname.c: Likewise.
7947
7948 2011-12-03  Bruno Haible  <bruno@clisp.org>
7949
7950         Tweak last commit.
7951         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
7952         Fix preprocessor directives indentation. Fix typos.
7953         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
7954         * modules/unistd (Makefile): Likewise.
7955
7956 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7957
7958         Integrate the sethostname module into unistd.
7959         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
7960         into the unistd.h header.
7961         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
7962         preprocessor directives.
7963         * modules/unistd: Setup the Makefile substitutions of the
7964         SETHOSTNAME preprocessor directives.
7965
7966 2011-12-03  Bruno Haible  <bruno@clisp.org>
7967
7968         Tweak last commit.
7969         * lib/sethostname.c: Don't include <string.h>.
7970         (sethostname): No need to copy the argument string to the stack. Don't
7971         call clearerr. Preserve errno when fprintf failed.
7972         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
7973         Don't invoke AC_REPLACE_FUNCS.
7974         * modules/sethostname (Link): Remove empty section.
7975         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7976         failure problem.
7977
7978 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7979
7980         New module 'sethostname'.
7981         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7982         for systems that lack it.
7983         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7984         sethostname declaration and function.
7985         * modules/sethostname: New file.  Define the sethostname module.
7986
7987 2011-12-03  Bruno Haible  <bruno@clisp.org>
7988
7989         Tweak last commit.
7990         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7991
7992 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7993
7994         Split the HOST_NAME_MAX detection into a separate m4 macro.
7995         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7996         macro so it can be used by the pending sethostname module.
7997
7998 2011-12-03  Bruno Haible  <bruno@clisp.org>
7999
8000         Fix module descriptions syntax.
8001         * modules/argv-iter (License): Fix syntax.
8002         * modules/di-set (License): Likewise.
8003         * modules/ino-map (License): Likewise.
8004         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8005
8006 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8007
8008         stdalign: port to Clang 3.0
8009         Problem reported by Simon Josefsson in
8010         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8011         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8012         which has <stdalign.h> but which does not define alignof.
8013         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8014
8015 2011-12-01  Eric Blake  <eblake@redhat.com>
8016
8017         mktempd: silence dd usage
8018         * build-aux/mktempd (rand_bytes): Silence dd.
8019
8020 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8021
8022         manywarnings: Don't mention gcc version in docstring.
8023         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8024         Jim Meyering <meyering@redhat.com>.
8025
8026 2011-11-30  Jim Meyering  <meyering@redhat.com>
8027
8028         hash: mark a few floating point constants with "f" suffix
8029         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8030         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8031         floating point constants with "f", since they're destined to be
8032         saved/used as "float"s.
8033
8034 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8035
8036         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8037         * tests/test-float.c (test_long_double): Correct and re-enable the
8038         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8039
8040 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8041
8042         Avoid subtracting two pointers that don't point into the same block.
8043         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8044         only pointers into the same memory block are subtracted. We cannot
8045         assume that sizeof (ptrdiff_t) == sizeof (void *).
8046
8047 2011-11-29  Eric Blake  <eblake@redhat.com>
8048
8049         maint.mk: add syntax check for use of compare from init.sh
8050         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8051         moved here from coreutils.
8052
8053         manywarnings: drop -Wunsuffixed-float-constants
8054         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8055         '1.0D', which is the only way to silence this warning for 'double'.
8056
8057 2011-11-29  Jim Meyering  <meyering@redhat.com>
8058
8059         hash: mark compute_bucket_size with the pure attribute
8060         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8061
8062         quotearg, propername: correct pragma guard expression
8063         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8064         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8065
8066 2011-11-28  Jim Meyering  <meyering@redhat.com>
8067
8068         propername: do not mark proper_name with the const attribute
8069         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8070         since it examines data pointed to by its parameter.
8071         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8072         the suggestion from -Wsuggest-attribute=const.
8073
8074         propername: mark one more function as const
8075         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8076
8077 2011-11-27  Jim Meyering  <meyering@redhat.com>
8078
8079         mark functions with const and pure attributes
8080
8081         Mark functions per suggestions from gcc-4.6 when using these options:
8082         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8083         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8084         Follow these guidelines: when possible, apply the attribute to
8085         an extern declaration, not to its definition.  Apply it to the
8086         definition only when the definition is static.
8087         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8088         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8089         * lib/base64.h (isbase64): Likewise.
8090         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8091         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8092         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8093         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8094         (c_tolower, c_toupper): Likewise.
8095         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8096         * lib/chdir-long.c (find_non_slash): Likewise.
8097         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8098         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8099         * lib/file-type.h (file_type): Likewise.
8100         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8101         * lib/filevercmp.c (verrevcmp): Likewise.
8102         * lib/freadahead.h (freadahead): Likewise.
8103         * lib/fts.c (fts_maxarglen): Likewise.
8104         * lib/hash-pjw.h (hash_pjw): Likewise.
8105         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8106         * lib/hash.c (is_prime, next_prime): Likewise.
8107         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8108         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8109         (hash_table_ok, hash_get_first, hash_string): Likewise.
8110         (compute_bucket_size): Likewise.
8111         * lib/i-ring.h (i_ring_empty): Likewise.
8112         * lib/isnan.c (isnanl): Likewise.
8113         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8114         * lib/memcasecmp.h (memcasecmp): Likewise.
8115         * lib/memchr2.h (memchr2): Likewise.
8116         * lib/memcmp2.h (memcmp2): Likewise.
8117         * lib/parse-datetime.y (lookup_zone): Likewise.
8118         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8119         [!WINDOWS_SOCKETS]: Likewise.
8120         * lib/strnlen1.h (strnlen1): Likewise.
8121         * lib/uniwidth.in.h (uc_width): Likewise.
8122         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8123         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8124         (quoting_options_from_style): Add a comment.
8125         * lib/propername.h (proper_name): Add a comment.
8126
8127 2011-11-27  Bruno Haible  <bruno@clisp.org>
8128
8129         Remove unused macros from !_LIBC code in glibc-borrowed files.
8130         * lib/fnmatch.c (STRCOLL): Remove macro.
8131         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8132         * lib/glob.c (__stat, __readdir64): Remove macros.
8133         * lib/tempname.c (__open64, __xstat64): Remove macros.
8134         Suggested by Paul Eggert.
8135
8136 2011-11-27  Bruno Haible  <bruno@clisp.org>
8137
8138         getcwd: Fix link error on MSVC 9.
8139         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8140
8141 2011-11-27  Bruno Haible  <bruno@clisp.org>
8142
8143         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8144         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8145         HAVE_OPENDIR is 0.
8146         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8147         HAVE_CLOSEDIR is 0.
8148         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8149         is 0.
8150         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8151
8152 2011-11-27  Bruno Haible  <bruno@clisp.org>
8153
8154         getcwd: Fix bug from 2011-08-17.
8155         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8156         platforms that need it.
8157         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8158         code of 4 to be a failure, not a success. This ensures that
8159         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8160
8161 2011-11-27  Bruno Haible  <bruno@clisp.org>
8162
8163         binary-io tests: Avoid test failure on mingw when libtool is used.
8164         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8165         Don't verify the size of t-bin-out1.tmp here.
8166         * tests/test-binary-io.sh: Verify it here.
8167         Reported by Simon Josefsson.
8168
8169 2011-11-26  Bruno Haible  <bruno@clisp.org>
8170
8171         Fix conflict between two instantiations of module 'unistd'.
8172         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8173         ${include_guard_prefix} also in the autoconf snippet.
8174         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8175         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8176         GNULIB_UNISTD_H_GETOPT.
8177         * modules/getopt-posix (configure.ac): Set the
8178         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8179         * modules/getopt-gnu (configure.ac): Likewise.
8180         * modules/unistd (Makefile.am): Change the substitution value of
8181         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8182         Reported by Simon Josefsson.
8183
8184 2011-11-25  Bruno Haible  <bruno@clisp.org>
8185
8186         pagealign_alloc: Doc and comments.
8187         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8188         module.
8189         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8190
8191 2011-11-25  Jim Meyering  <meyering@redhat.com>
8192
8193         test-update-copyright.sh: avoid false-positive failure
8194         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8195         around false positive failure on Cygwin/Windows.  The latter was
8196         matching erroneously-created files with names like
8197         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8198
8199 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8200
8201         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8202         * m4/valgrind-tests.m4: Check that the parameters that will be
8203         used works, not just a subset of them.  Reported by Bruno Haible
8204         <bruno@clisp.org>.
8205
8206 2011-11-24  Jim Meyering  <meyering@redhat.com>
8207
8208         test-stdalign.c: comment out long double tests
8209         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8210         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8211         error: '_Alignas' specifiers cannot reduce alignment of \
8212         'static_longdouble_alignas'.
8213
8214 2011-11-22  Jim Meyering  <meyering@redhat.com>
8215
8216         init.sh: make "compare /dev/null FILE" output more readable
8217         * tests/init.sh (compare_): Document the preferred order of arguments.
8218         (emit_diff_u_header_): New function.
8219         (compare_dev_null_): Emit a simulated diff, rather than just the
8220         contents of the unexpected file.  Suggestion from Bruno Haible.
8221
8222 2011-11-21  Jim Meyering  <meyering@redhat.com>
8223             Eric Blake  <eblake@redhat.com>
8224
8225         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8226         * tests/init.sh: Make our compare function slightly more portable.
8227         Reported by Bruno Haible in
8228         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8229
8230 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8231
8232         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8233         before using it, in code that ends up in config.h.
8234
8235 2011-11-20  Bruno Haible  <bruno@clisp.org>
8236
8237         getcwd: Work around getcwd bug on AIX 5..7.
8238         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8239         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8240         Use a different value for gl_cv_func_getcwd_path_max. Move the
8241         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8242         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8243         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8244         Define HAVE_MINIMALLY_WORKING_GETCWD.
8245         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8246         where it is not even minimally working, that is, on AIX.
8247         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8248         m4/getcwd-path-max.m4.
8249         (main): Update exit code computation.
8250         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8251         getcwd does not handle long file names.
8252
8253 2011-11-20  Bruno Haible  <bruno@clisp.org>
8254
8255         getcwd: Fix bug from 2009-09-10.
8256         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8257         like "no".
8258
8259 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8260
8261         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8262
8263 2011-11-20  Bruno Haible  <bruno@clisp.org>
8264
8265         fma tests: Avoid shadowing local variables.
8266         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8267         expected.
8268
8269 2011-11-20  Bruno Haible  <bruno@clisp.org>
8270
8271         copysignf tests: Fix.
8272         * tests/test-copysignf.c: Fix signature check.
8273
8274 2011-11-20  Bruno Haible  <bruno@clisp.org>
8275
8276         fma: Remove unused code.
8277         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8278         unused macros.
8279
8280 2011-11-20  Bruno Haible  <bruno@clisp.org>
8281
8282         sethostname: Fix doc about AIX.
8283         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8284         sethostname; it has it.
8285
8286         sethostname: Mention more portability problems.
8287         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8288         problem.
8289         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8290
8291 2011-11-19  Bruno Haible  <bruno@clisp.org>
8292
8293         Depend on module fcntl-h when AT_FDCWD is used.
8294         * modules/utimens (Depends-on): Add fcntl-h.
8295         * modules/areadlinkat (Depends-on): Likewise.
8296         * modules/areadlinkat-with-size (Depends-on): Likewise.
8297         * modules/faccessat (Depends-on): Likewise.
8298         * modules/fchmodat (Depends-on): Likewise.
8299         * modules/fchownat (Depends-on): Likewise.
8300         * modules/getcwd (Depends-on): Likewise.
8301         * modules/mkdirat (Depends-on): Likewise.
8302         * modules/mkfifoat (Depends-on): Likewise.
8303         * modules/readlinkat (Depends-on): Likewise.
8304         * modules/symlinkat (Depends-on): Likewise.
8305         * modules/dup2-tests (Depends-on): Likewise.
8306         * modules/fdutimensat-tests (Depends-on): Likewise.
8307         * modules/futimens-tests (Depends-on): Likewise.
8308
8309 2011-11-19  Bruno Haible  <bruno@clisp.org>
8310
8311         euidaccess: Update a comment.
8312         * lib/euidaccess.c: Update comment about platforms with faccessat.
8313
8314 2011-11-19  Bruno Haible  <bruno@clisp.org>
8315
8316         openat: Fix file list.
8317         * modules/openat (Files): Remove lib/at-func.c.
8318
8319 2011-11-19  Bruno Haible  <bruno@clisp.org>
8320
8321         fstatat: Simplify.
8322         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8323         gnulib should define rpl_fstatat, there is a
8324         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8325
8326 2011-11-19  Bruno Haible  <bruno@clisp.org>
8327
8328         Ensure 'inline' can be used in tests/test-utimens-common.h.
8329         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8330         * modules/futimens-tests (configure.ac): Likewise.
8331         * modules/utimens-tests (configure.ac): Likewise.
8332         * modules/utimensat-tests (configure.ac): Likewise.
8333
8334 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8335
8336         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8337         not hash_insert0.
8338         (hash_insert_if_absent): Doc fix.
8339
8340 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8341
8342         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8343
8344 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8345
8346         test-getcwd: disambiguate exit status
8347         * tests/test-getcwd.c (test_long_name): Return 0..7.
8348         (main): Exit with an unambiguous exit status.  The old
8349         code yielded a mysterious mixture of two failure codes.
8350
8351         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8352         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8353         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8354         rpl_fstatat or fstatat.  This should fix the other problem
8355         reported by Kai Habel in
8356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8357         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8358         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8359         and I reproduced it on a Solaris 8 host we still have in production.
8360
8361 2011-11-18  Jim Meyering  <meyering@redhat.com>
8362
8363         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8364         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8365         Add a sentence to the comment.
8366         (hash_insert0): New function that simply calls hash_insert_if_absent.
8367         * lib/hash.h (hash_insert_if_absent): Declare it.
8368         (hash_insert0): Add deprecation attribute.
8369         (_GL_ATTRIBUTE_DEPRECATED): Define.
8370         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8371         not hash_insert0.
8372         * NEWS: Mention it, even though it's not really an incompatible change.
8373
8374 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8375
8376         openat: avoid compilation failure due to lack of <errno.h> inclusion
8377         * lib/openat.c: Include <errno.h>.
8378
8379 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8380
8381         * modules/getcwd (Depends-on): Add fdopendir.
8382         This fixes one of the two problems reported by Kai Habel in
8383         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8384
8385         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8386         stdalign problem reported by Ian Beckwith in
8387         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8388         * modules/crypto/gc-arcfour (Depends-on):
8389         Depend conditionally on crypto/arcfour.
8390         * modules/crypto/gc-arctwo (Depends-on):
8391         Depend conditionally on crypto/arctwo.
8392         * modules/crypto/gc-des (Depends-on):
8393         Depend conditionally on crypto/des.
8394         * modules/crypto/gc-hmac-md5 (Depends-on):
8395         Depend conditionally on crypto/hmac-md5.
8396         * modules/crypto/gc-hmac-sha1 (Depends-on):
8397         Depend conditionally on crypto/hmac-sha1.
8398         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8399         * modules/crypto/gc-md4 (Depends-on):
8400         Depend conditionally on crypto/md4.
8401         * modules/crypto/gc-md5 (Depends-on):
8402         Depend conditionally on crypto/md5.
8403         * modules/crypto/gc-rijndael (Depends-on):
8404         Depend conditionally on crypto/rijndael.
8405         * modules/crypto/gc-sha1 (Depends-on):
8406         Depend conditionally on crypto/sha1.
8407         * modules/crypto/gc-arcfour:
8408         * modules/crypto/gc-arctwo:
8409         * modules/crypto/gc-des:
8410         * modules/crypto/gc-hmac-md5:
8411         * modules/crypto/gc-hmac-sha1:
8412         * modules/crypto/gc-md2:
8413         * modules/crypto/gc-md4:
8414         * modules/crypto/gc-md5:
8415         * modules/crypto/gc-rijndael:
8416         * modules/crypto/gc-sha1:
8417         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8418         now that the conditional dependencies do the work for us.
8419
8420 2011-11-17  Jim Meyering  <meyering@redhat.com>
8421
8422         tests: factor st_ctime-comparison out of two headers
8423         * tests/test-utimens-common.h (ctime_compare): Define.
8424         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8425         * tests/test-lutimens.h (test_lutimens): Likewise.
8426         * tests/test-utimens.h (test_utimens): Likewise.
8427
8428         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8429         Invoke the test program via an init.sh-using wrapper.
8430         * tests/test-getcwd.sh: New file.
8431         * modules/getcwd-tests (Files): Add it.
8432         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8433
8434 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8435
8436         gitlog-to-changelog: support multi-author commits.
8437         The FSF cares about keeping track of all authors of patches to its
8438         projects, but Git doesn't provide obvious support for multi-author
8439         changesets. Consensus seems to be forming around the use of extra
8440         Signed-off-by inspired lines in the log message formatted as
8441         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8442         multi-author commits between version control systems.
8443         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8444         log message and output in standard ChangeLog multi-author format.
8445         Reported by Peter Rosin <peda@lysator.liu.se>
8446
8447 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8448             Bruno Haible  <bruno@clisp.org>
8449
8450         Fix some modules' file list.
8451         * modules/fstatat (Files): Add m4/lstat.m4.
8452         * modules/openat (Files): Likewise.
8453         * modules/unlinkat (Files): Likewise.
8454
8455 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8456
8457         maint.mk: fix tight-scope.mk generation in VPATH builds.
8458         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8459         reference with $(srcdir) so that the file is found correctly even
8460         when running `make syntax-check' in a VPATH build.
8461
8462 2011-11-13  Bruno Haible  <bruno@clisp.org>
8463             Jim Meyering  <meyering@redhat.com>
8464
8465         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8466         * tests/init.sh (compare): Remove "No differences encountered" or
8467         synonymous output from the 'diff' program.
8468
8469 2011-11-13  Bruno Haible  <bruno@clisp.org>
8470
8471         Makefile: Tweak indentation.
8472         * Makefile: Use tab as first character in every line that contains rule
8473         commands.
8474
8475 2011-11-13  Bruno Haible  <bruno@clisp.org>
8476
8477         Syntax check for copyright statements.
8478         * check-copyright: New file.
8479         * Makefile (sc_check_copyright): New rule.
8480
8481 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8482
8483         * build-aux/git-version-gen: Add --prefix to configure the tag
8484         match string.
8485
8486 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8487
8488         * build-aux/git-version-gen: Add --help and --version.
8489
8490 2011-11-12  Jim Meyering  <meyering@redhat.com>
8491
8492         revamp the other test-exclude?.sh scripts to use init.sh, too
8493         * tests/test-exclude1.sh: Use init.sh.
8494         * tests/test-exclude2.sh: Likewise.
8495         * tests/test-exclude3.sh: Likewise.
8496         * tests/test-exclude4.sh: Likewise.
8497         * tests/test-exclude5.sh: Likewise.
8498         * tests/test-exclude6.sh: Likewise.
8499         * tests/test-exclude7.sh: Likewise.
8500         * tests/test-exclude8.sh: Likewise.
8501         * modules/exclude-tests (Files): List init.sh.
8502
8503         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8504         These shell scripts ignored failure of the binary test-exclude,
8505         so making the latter return 77 didn't cause them to be skipped.
8506         * tests/test-exclude5.sh: Exit with test-exclude's error status
8507         when that program fails.  Revamp to use init.sh.
8508         * tests/test-exclude2.sh: Likewise.
8509
8510         test-exclude: fix a typo
8511         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
8512
8513 2011-11-11  Bruno Haible  <bruno@clisp.org>
8514
8515         obstack: Fix compilation error on MSVC 9.
8516         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
8517
8518 2011-11-11  Jim Meyering  <meyering@redhat.com>
8519
8520         test-exclude: skip tests rather than failing on deficient systems
8521         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
8522         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
8523         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
8524         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
8525
8526 2011-11-10  Bruno Haible  <bruno@clisp.org>
8527
8528         ptsname_r test: Avoid gcc warning on glibc systems.
8529         * tests/test-ptsname_r.c (null_ptr): New function.
8530         (test_errors): Use it.
8531
8532 2011-11-10  Bruno Haible  <bruno@clisp.org>
8533
8534         ptsname_r: Avoid compilation error on OSF/1 5.1.
8535         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
8536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
8537         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
8538         function is not declared or incompatibly declared.
8539         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
8540         * modules/ptsname_r (Depends-on, configure.ac): Update.
8541         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
8542
8543 2011-11-10  Bruno Haible  <bruno@clisp.org>
8544
8545         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
8546         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
8547         When cross-compiling, guess yes on all platforms except AIX.
8548         Reported by Ludovic Courtès <ludo@gnu.org>.
8549
8550 2011-11-09  Bruno Haible  <bruno@clisp.org>
8551
8552         ptsname_r tests: Fix bugs.
8553         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
8554         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
8555
8556 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
8557
8558         fstatat: work with cross-compilation
8559         Problem reported by Ludovic Courtès in
8560         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
8561         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
8562         "cross-compiling" and assume the bug is present.  Replace
8563         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
8564         an inverted sense, to be more conservative about our assumptions.
8565         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
8566
8567 2011-11-09  Bruno Haible  <bruno@clisp.org>
8568
8569         Improve MODULES.html output.
8570         * modules/mkfifoat (Description): Use the word "function".
8571         * modules/readlinkat (Description): Likewise.
8572         * modules/symlinkat (Description): Likewise.
8573
8574 2011-11-09  Eric Blake  <eblake@redhat.com>
8575
8576         ptsname_r-tests: new test module
8577         * modules/ptsname_r-tests: New module.
8578         * tests/test-ptsname_r.c: New file.
8579
8580         ptsname_r: new module
8581         * modules/ptsname_r: New module.
8582         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
8583         * lib/ptsname.c (__ptsname_r): Split...
8584         * lib/ptsname_r.c: ...into new file.
8585         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8586         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
8587         * modules/stdlib (Makefile.am): Substitute witnesses.
8588         * lib/stdlib.in.h (ptsname_r): Declare it.
8589         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
8590         * MODULES.html.sh (Misc): Likewise.
8591         * modules/ptsname (Depends-on): Alter dependency.
8592         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
8593
8594 2011-11-09  Jim Meyering  <meyering@redhat.com>
8595
8596         announce-gen: be more concise when there's only one URL+tarball
8597         * build-aux/announce-gen (get_tool_versions): When you distribute
8598         only one type of tarball, combine the first two "Here are..."
8599         sections and make the key-checking grammar independent of
8600         how many tarballs there are.
8601
8602 2011-11-09  Eric Blake  <eblake@redhat.com>
8603
8604         openpty: provide a stub on mingw
8605         * lib/pty.in.h (includes): Provide forward declarations.
8606         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
8607
8608         raise: fix mingw handling of SIGPIPE
8609         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
8610
8611 2011-11-08  Bruno Haible  <bruno@clisp.org>
8612
8613         More conditional dependencies.
8614         * modules/faccessat (Depends-on): Add conditions.
8615         * modules/fchmodat (Depends-on): Likewise.
8616         * modules/fchownat (Depends-on): Likewise.
8617         * modules/fstatat (Depends-on): Likewise.
8618         * modules/mkfifoat (Depends-on): Likewise.
8619         * modules/readlinkat (Depends-on): Likewise.
8620         * modules/symlinkat (Depends-on): Likewise.
8621         * modules/unlinkat (Depends-on): Likewise.
8622         * modules/utimensat (Depends-on): Likewise.
8623         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
8624         * modules/linkat (Depends-on): Refine the conditions.
8625         * modules/renameat (Depends-on): Likewise.
8626
8627 2011-11-08  Bruno Haible  <bruno@clisp.org>
8628
8629         faccessat: Move AC_LIBOBJ invocation to module description.
8630         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
8631         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
8632         invocation from here...
8633         * modules/faccessat (configure.ac): ... to here. Invoke
8634         gl_PREREQ_FACCESSAT.
8635
8636 2011-11-08  Bruno Haible  <bruno@clisp.org>
8637
8638         faccessat: Simplify autoconf macro.
8639         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
8640         gl_FUNC_EUIDACCESS.
8641
8642 2011-11-08  Bruno Haible  <bruno@clisp.org>
8643
8644         renameat: Fix dependencies.
8645         * modules/renameat (Depends-on): Add stdbool.
8646
8647 2011-11-08  Bruno Haible  <bruno@clisp.org>
8648
8649         mkfifoat: Fix module description.
8650         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
8651         not gl_UNISTD_MODULE_INDICATOR.
8652
8653 2011-11-08  Bruno Haible  <bruno@clisp.org>
8654
8655         fstatat: Remove unused dependency.
8656         * modules/fstatat (Depends-on): Remove fstat.
8657
8658 2011-11-08  Simon Josefsson  <simon@josefsson.org>
8659
8660         GNUmakefile: behave when Makefile is missing.
8661         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
8662
8663 2011-11-08  Bruno Haible  <bruno@clisp.org>
8664
8665         openat: Conditionalize dependencies.
8666         * lib/openat.c: Reduce the scope of some #includes.
8667         * modules/openat (Depends-on): Add conditions.
8668
8669 2011-11-07  Jim Meyering  <meyering@redhat.com>
8670
8671         maint.mk: extract GPG key ID without using a temporary file
8672         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
8673         without using a temporary file.  Based on a suggestion from Werner Koch
8674         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
8675
8676 2011-11-07  Eric Blake  <eblake@redhat.com>
8677
8678         grantpt: fix typo
8679         * lib/stdlib.in.h (grantpt): Check correct function.
8680
8681         maint.mk: silence new syntax check
8682         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
8683
8684 2011-11-06  Bruno Haible  <bruno@clisp.org>
8685
8686         Doc about floating-point and math API.
8687         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
8688         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
8689
8690 2011-11-06  Bruno Haible  <bruno@clisp.org>
8691
8692         stdalign tests: Skip the test when compiled by Sun C.
8693         * tests/test-stdalign.c (main): Skip the test on Sun C.
8694
8695 2011-11-06  Bruno Haible  <bruno@clisp.org>
8696
8697         ansi-c++-opt: Complete the 2011-06-05 change.
8698         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
8699         does not support namespaces, set the variable to "no", not to ":".
8700
8701 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
8702
8703         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
8704
8705 2011-11-06  Bruno Haible  <bruno@clisp.org>
8706
8707         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
8708         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
8709         (minus_zerol) [HP-UX]: New macro.
8710         (unary_minus) [HP-UX]: New function.
8711         (copysignl) [HP-UX]: Use unary_minus function.
8712
8713 2011-11-06  Bruno Haible  <bruno@clisp.org>
8714
8715         ldexp, ldexpf, ldexpl: Enhance tests.
8716         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
8717         and tests/test-ldexpl.c.
8718         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
8719         LDEXP, MIN_EXP, MAX_EXP): New macros.
8720         Include test-ldexp.h.
8721         (main): Just call test_function.
8722         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
8723         infinity.h, nan.h.
8724         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8725         MAX_EXP): New macros.
8726         Include test-ldexp.h.
8727         (x, y): Remove variables.
8728         (main): Just call test_function.
8729         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
8730         infinity.h, nan.h.
8731         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
8732         MAX_EXP): New macros.
8733         Include test-ldexp.h.
8734         (x, y): Remove variables.
8735         (main): Just call test_function.
8736         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
8737         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
8738         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8739         (Depends-on): Add isnand-nolibm, signbit, float.
8740         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
8741         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
8742         (Depends-on): Add isnanf-nolibm, signbit, float.
8743
8744 2011-11-06  Bruno Haible  <bruno@clisp.org>
8745
8746         math tests: Cosmetics.
8747         * tests/test-math-c++.cc: Reorder declarations.
8748
8749 2011-11-05  Bruno Haible  <bruno@clisp.org>
8750
8751         fma*: Simplify test.
8752         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
8753         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
8754
8755         Tests for module 'fmal'.
8756         * modules/fmal-tests: New file.
8757         * tests/test-fmal1.c: New file.
8758         * tests/test-fmal2.c: New file.
8759
8760         New module 'fmal'.
8761         * lib/math.in.h (fmal): New declaration.
8762         * lib/fmal.c: New file.
8763         * m4/fmal.m4: New file.
8764         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
8765         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
8766         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
8767         REPLACE_FMAL.
8768         * modules/fmal: New file.
8769         * doc/posix-functions/fmal.texi: Mention the new module and the various
8770         bugs.
8771
8772         Tests for module 'fmaf'.
8773         * modules/fmaf-tests: New file.
8774         * tests/test-fmaf1.c: New file.
8775         * tests/test-fmaf2.c: New file.
8776
8777         New module 'fmaf'.
8778         * lib/math.in.h (fmaf): New declaration.
8779         * lib/fmaf.c: New file.
8780         * m4/fmaf.m4: New file.
8781         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
8782         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
8783         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
8784         REPLACE_FMAF.
8785         * modules/fmaf: New file.
8786         * doc/posix-functions/fmaf.texi: Mention the new module and the various
8787         bugs.
8788
8789         Tests for module 'fma'.
8790         * modules/fma-tests: New file.
8791         * tests/test-fma1.c: New file.
8792         * tests/test-fma1.h: New file.
8793         * tests/test-fma2.c: New file.
8794         * tests/test-fma2.h: New file.
8795
8796         New module 'fma'.
8797         * lib/math.in.h (fma): New declaration.
8798         * lib/fma.c: New file.
8799         * m4/fma.m4: New file.
8800         * m4/fegetround.m4: New file.
8801         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
8802         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
8803         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
8804         REPLACE_FMA.
8805         * modules/fma: New file.
8806         * doc/posix-functions/fma.texi: Mention the new module and the various
8807         bugs.
8808
8809         Extend gl_MATHFUNC.
8810         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
8811         Support 'void' as argument type.
8812         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
8813
8814 2011-11-05  Jim Meyering  <meyering@redhat.com>
8815
8816         maint.mk: also prohibit inclusion of dirent.h without use
8817         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
8818
8819 2011-11-05  Bruno Haible  <bruno@clisp.org>
8820
8821         ldexpl tests: Avoid test failure on MSVC 9.
8822         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
8823         value. Needed in order to enforce the conversion from a value greater
8824         than LDBL_MAX to Infinity.
8825
8826 2011-11-05  Bruno Haible  <bruno@clisp.org>
8827
8828         New modules 'at-internal', 'openat-h', split off from module 'openat'.
8829         * modules/at-internal: New file, extracted from modules/openat.
8830         * modules/openat-h: New file.
8831         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
8832         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
8833         * modules/openat (Description): Add reference to POSIX function.
8834         (Files): Remove lib/openat.h, lib/openat-proc.c.
8835         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
8836         intprops, unistd.
8837         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
8838         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
8839         gl_FCNTL_MODULE_INDICATOR.
8840         (Include): Remove unistd.h, openat.h.
8841         * modules/areadlinkat (Files): Add lib/at-func.c.
8842         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8843         openat-die, openat-h, save-cwd.
8844         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
8845         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8846         openat-die, openat-h, save-cwd, unistd.
8847         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
8848         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8849         openat-h, save-cwd. Remove fcntl-h, openat.
8850         * modules/fchmodat (Files): Remove lib/openat.h.
8851         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8852         openat, stdbool, unistd.
8853         * modules/fchownat (Files): Remove lib/openat.h.
8854         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8855         openat, stdbool, sys_stat.
8856         * modules/fdopendir (Files): Remove lib/openat-priv.h,
8857         lib/openat-proc.c.
8858         (Depends-on): Add at-internal.
8859         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
8860         * modules/fstatat (Files): Remove lib/openat.h.
8861         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8862         stdbool, unistd.
8863         * modules/fts (Depends-on): Add openat-h.
8864         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
8865         openat.
8866         * modules/mkdirat (Files): Remove lib/openat.h.
8867         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8868         openat, stdbool, sys_stat.
8869         * modules/mkfifoat (Files): Add lib/at-func.c.
8870         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8871         openat-h, save-cwd. Remove fcntl-h, openat.
8872         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
8873         * modules/readlinkat (Files): Add lib/at-func.c.
8874         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8875         openat-h, save-cwd. Remove fcntl-h, openat.
8876         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
8877         openat.
8878         * modules/selinux-at (Files): Add lib/at-func.c.
8879         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8880         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
8881         * modules/symlinkat (Files): Add lib/at-func.c.
8882         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8883         openat-h, save-cwd. Remove fcntl-h, openat.
8884         * modules/unlinkat (Files): Remove lib/openat.h.
8885         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8886         stdbool.
8887         * modules/utimensat (Files): Add lib/at-func.c.
8888         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
8889         openat-die, openat-h, save-cwd.
8890         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
8891         * modules/fdutimensat-tests (Depends-on): Add openat.
8892         * modules/fstatat-tests (Depends-on): Add openat-h.
8893         * modules/readlinkat-tests (Depends-on): Add openat.
8894         * modules/symlinkat-tests (Depends-on): Add openat.
8895
8896 2011-11-05  Bruno Haible  <bruno@clisp.org>
8897
8898         openat: Include <stdbool.h>.
8899         * lib/openat.c: Include <stdbool.h>.
8900
8901 2011-11-04  Bruno Haible  <bruno@clisp.org>
8902
8903         fchownat, renameat, unlinkat: Fix dependencies.
8904         * modules/fchownat (Depends-on): Add fstatat.
8905         * modules/renameat (Depends-on): Likewise.
8906         * modules/unlinkat (Depends-on): Likewise.
8907
8908 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8909
8910         openat: remove direct dependency on dirent
8911         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8912         and hasn't been needed ever since fdopendir was split into its own
8913         module on 2009-08-31.
8914         * modules/openat (Depends-on): Remove dirent.
8915
8916 2011-11-04  Bruno Haible  <bruno@clisp.org>
8917
8918         renameat: Optimize code size.
8919         * modules/renameat (configure.ac): Don't compile at-func2.c if
8920         REPLACE_RENAMEAT is 1.
8921
8922 2011-11-04  Bruno Haible  <bruno@clisp.org>
8923
8924         openat tests: Fix file list.
8925         * modules/openat-tests (Files): Add tests/test-open.h.
8926
8927 2011-11-04  Bruno Haible  <bruno@clisp.org>
8928
8929         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
8930         * modules/fchmodat (Depends-on): Add openat-die.
8931         * modules/fchownat (Depends-on): Likewise.
8932         * modules/linkat (Depends-on): Likewise.
8933         * modules/renameat (Depends-on): Likewise.
8934         * modules/openat (Depends-on): Add dirent.
8935
8936 2011-11-04  Jim Meyering  <meyering@redhat.com>
8937
8938         at-func*.c: fix comments
8939         * lib/at-func2.c: Correct/improve first-line comment.
8940         * lib/at-func.c: Correct grammar in first-line comment.
8941
8942 2011-11-04  Bruno Haible  <bruno@clisp.org>
8943
8944         New module 'mkdirat', split off from module 'openat'.
8945         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
8946         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
8947         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
8948         * modules/mkdirat: New file, extracted from modules/openat.
8949         * modules/openat (Files): Remove lib/mkdirat.c.
8950         (Depends-on): Remove mkdir.
8951         (configure.ac): Remove AC_LIBOBJ of mkdirat.
8952         (Include): Remove <sys/stat.h>.
8953         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
8954         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
8955         tests/test-mkdir.h.
8956         (Depends-on): Remove ignore-value.
8957         (Makefile.am): Remove rules for test-mkdirat.
8958         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
8959         of module 'openat'.
8960         * NEWS: Mention the change.
8961
8962 2011-11-04  Bruno Haible  <bruno@clisp.org>
8963
8964         closedir: Avoid warning on mingw.
8965         * lib/closedir.c: Include <unistd.h>.
8966
8967 2011-11-04  Bruno Haible  <bruno@clisp.org>
8968
8969         New module 'fstatat', split off from module 'openat'.
8970         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
8971         defined.
8972         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
8973         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
8974         gl_FUNC_FSTATAT.
8975         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8976         * modules/fstatat: New file, extracted from modules/openat.
8977         * modules/openat (Files): Remove lib/fstatat.c.
8978         (Depends-on): Remove lstat.
8979         (configure.ac): Remove AC_LIBOBJ of fstatat.
8980         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8981         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8982         tests/test-lstat.h, tests/test-stat.h.
8983         (Depends-on): Remove getcwd-lgpl.
8984         (Makefile.am): Remove rules for test-fstatat.
8985         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8986         of module 'openat'.
8987         * NEWS: Mention the change.
8988         * modules/getcwd (Depends-on): Add fstatat.
8989         * modules/linkat (Depends-on): Likewise.
8990         * modules/mkfifoat-tests (Depends-on): Likewise.
8991         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8992
8993 2011-11-03  Bruno Haible  <bruno@clisp.org>
8994
8995         New module 'unlinkat', split off from module 'openat'.
8996         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8997         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8998         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8999         * modules/unlinkat: New file, extracted from modules/openat. Correct
9000         the dependency conditions.
9001         * modules/openat (Files): Remove lib/unlinkat.c.
9002         (Depends-on): Remove rmdir, unlink.
9003         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9004         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9005         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9006         tests/test-rmdir.h, tests/test-unlink.h.
9007         (Depends-on): Remove unlinkdir.
9008         (Makefile.am): Remove rules for test-unlinkat.
9009         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9010         of module 'openat'.
9011         * NEWS: Mention the change.
9012         * modules/linkat-tests (Depends-on): Add unlinkat.
9013         * modules/mkfifoat-tests (Depends-on): Likewise.
9014         * modules/readlinkat-tests (Depends-on): Likewise.
9015
9016 2011-11-02  Bruno Haible  <bruno@clisp.org>
9017
9018         New module 'fchmodat', split off from module 'openat'.
9019         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9020         defined.
9021         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9022         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9023         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9024         * modules/fchmodat: New file, extracted from modules/openat.
9025         * modules/openat (Files): Remove lib/fchmodat.c.
9026         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9027         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9028         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9029         (Makefile.am): Remove rules for test-fchmodat.
9030         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9031         of module 'openat'.
9032         * NEWS: Mention the change.
9033
9034 2011-11-02  Jim Meyering  <meyering@redhat.com>
9035
9036         putenv: indent #definition of "environ" to placate cppi
9037         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9038
9039         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9040         Git logs are often treated as immutable, because editing them
9041         changes the SHA1 checksums of all descendants.  Thus, errors in
9042         git logs tend to stay there forever.  However, when we generate
9043         a ChangeLog file -- typically for distribution -- from that git log,
9044         we can actually make corrections in the generated file.  The key
9045         lies in recording in machine-readable/applicable form the desired
9046         corrections.  See --help for description and an example.
9047         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9048         (usage): Describe it; alphabetize option descriptions.
9049         (main): Honor the new option, carefully.
9050
9051 2011-11-01  Jim Meyering  <meyering@redhat.com>
9052
9053         gitlog-to-changelog: avoid an infloop
9054         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9055         that ends up being empty.
9056
9057 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9058
9059         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9060         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9061         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9062         contains (possibly-quoted) backslashes.  This should avoid
9063         all-too-common shell bugs if COMPLICATED contains backslashes in
9064         the "wrong" places.  Reported by David Evans in
9065         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9066         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9067         because we want ASCII ranges.  Is there some reason we don't use
9068         the C locale everywhere in this script?
9069         (func_module, top level): Avoid unwanted pathname expansion when
9070         $repo_url_prefix or $repo_url_suffix_repl contain shell
9071         metacharacters like '?' and '*'.
9072
9073 2011-11-01  Bruno Haible  <bruno@clisp.org>
9074
9075         fchownat: Improve description.
9076         * modules/fchownat (Description): Add link to function.
9077
9078 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9079
9080         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9081         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9082         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9083         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9084
9085 2011-11-01  Bruno Haible  <bruno@clisp.org>
9086
9087         alignof: Avoid collision with stdalign module.
9088         * lib/alignof.h (alignof): Remove macro.
9089         * NEWS: Mention the change.
9090         Reported by Paul Eggert.
9091
9092 2011-11-01  Bruno Haible  <bruno@clisp.org>
9093
9094         New module 'fchownat', split off from module 'openat'.
9095         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9096         defined.
9097         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9098         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9099         invoke gl_FUNC_FCHOWNAT.
9100         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9101         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9102         * modules/fchownat: New file, extracted from modules/openat.
9103         * modules/openat (Files): Remove lib/fchownat.c.
9104         (Depends-on): Remove lchown.
9105         (configure.ac): Remove AC_LIBOBJ of fchownat.
9106         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9107         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9108         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9109         (Depends-on): Remove mgetgroups, usleep, stat-time.
9110         (configure.ac): Remove test for getegid.
9111         (Makefile.am): Remove rules for test-fchownat.
9112         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9113         of module 'openat'.
9114         * NEWS: Mention the change.
9115
9116 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9117
9118         stdalign: port better to MSVC and to Sun C 5.11
9119         This fixes some of the problems reported by Bruno Haible in
9120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9121         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9122         shortcomings of MSVC and of Sun C 5.11.
9123         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9124         around __declspec arg.
9125         * modules/stdalign-tests (Files): Add tests/macros.h.
9126         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9127         Include macros.h, for ASSERT.
9128         (DECLARE_ALIGNED): Remove.
9129         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9130         to catch bug), and to 1 if not (simplifies the rest of the code).
9131         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9132         (CHECK_AUTO): Remove.
9133         (CHECK_ALIGNED): Check only the alignment of the static vars,
9134         since auto var alignment isn't supported by Sun C 5.11.
9135         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9136         ASSERT failures are easier to diagnose.
9137
9138 2011-10-31  Bruno Haible  <bruno@clisp.org>
9139
9140         doc about some IRIX 5.3 problems.
9141         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9142         on IRIX 5.3.
9143         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9144         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9145         5.3.
9146         * doc/posix-functions/grantpt.texi: Likewise.
9147         * doc/posix-functions/unlockpt.texi: Likewise.
9148         * doc/posix-functions/lgamma.texi: Likewise.
9149         * doc/posix-functions/nextafter.texi: Likewise.
9150         * doc/posix-functions/remainder.texi: Likewise.
9151         * doc/posix-functions/select.texi: Mention misplaced declaration on
9152         IRIX 5.3.
9153         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9154
9155 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9156
9157         gitlog-to-changelog: fix git-log invocation.
9158         git-log mishandles date strings before 1970-01-01 UTC, and there is
9159         no use to specify --since=1970-01-01 by default anyway.
9160         * build-aux/gitlog-to-changelog: By default, when no --since option
9161         was given, do not specify explicit --since option to git-log.
9162
9163 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9164
9165         gitlog-to-changelog: new option --append-dot.
9166         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9167         first non-blank line of each commit message terminated with a dot.
9168
9169 2011-10-30  Bruno Haible  <bruno@clisp.org>
9170
9171         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9172         * lib/ffsl.h: Include <config.h>.
9173         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9174
9175 2011-10-30  Jim Meyering  <meyering@redhat.com>
9176
9177         GNUmakefile: reenable "make syntax-check" for most projects
9178         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9179         build-aux variable", "syntax-check" would do nothing but succeed with
9180         the "No version control files detected..." diagnostic (unless you
9181         happened to override _build-aux via cfg.mk).
9182         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9183         to precede inclusion of maint.mk.  Otherwise, these variables would
9184         be used undefined in any project that does not override the default.
9185
9186 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9187
9188         gitlog-to-changelog: treat a message with only blank lines as empty.
9189         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9190         trailing blank lines before the code that issues a warning about an
9191         empty commit message.
9192
9193 2011-10-30  Jim Meyering  <meyering@redhat.com>
9194
9195         test-parse-datetime.c: avoid new DST-related false positive test failure
9196         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9197         based on the time/date we'll convert, not the current time.
9198         Otherwise, the moment we cross a DST boundary like today's in
9199         Europe, (CEST to CET), that offset ends up being one hour off.
9200
9201 2011-10-27  Bruno Haible  <bruno@clisp.org>
9202
9203         fstat: Tweak documentation.
9204         * modules/fstat (Description): More precise description.
9205
9206 2011-10-27  Bruno Haible  <bruno@clisp.org>
9207
9208         Update documentation regarding 'largefile' module.
9209         * doc/posix-functions/fstat.texi: Tweak wording.
9210         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9211         problems with huge directories and/or small ino_t types.
9212         * doc/posix-functions/readdir.texi: Likewise.
9213         * doc/posix-functions/rewinddir.texi: Likewise.
9214
9215 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9216
9217         maint.mk: don't maintain a second build-aux variable.
9218         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9219         depends on GNUmakefile, which already maintains a cfg.mk
9220         overridable $(_build-aux) for projects with a non-standard
9221         build-aux directory location, although without the $(srcdir)
9222         prefix.  Use that variable consistently instead of introducing a
9223         second one.  Adjust all call sites.
9224
9225 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9226
9227         Add stdalign module and use it in other modules.
9228         This is based on a previous proposal by Bruno Haible
9229         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9230
9231         stdalign: new module
9232         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9233         * modules/stdalign: New files.
9234         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9235         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9236
9237         stdalign-tests: new module
9238         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9239
9240         argp: use stdalign
9241         * lib/argp-parse.c: Include <stdalign.h>.
9242         (alignof): Remove.
9243         * modules/argp (Depends-on): Add stdalign.
9244
9245         crypto libraries: use stdalign
9246         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9247         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9248         Do not include <stdlib.h> twice, in md4.c.
9249         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9250         because we are accessing a pointer's bit-pattern, not a size.
9251         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9252         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9253         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9254         * modules/crypto/sha512: Likewise.
9255
9256         sys_socket: use stdalign, not alignof
9257         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9258         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9259
9260 2011-10-27  Bruno Haible  <bruno@clisp.org>
9261
9262         raise test: Avoid a test failure on Linux/MIPS.
9263         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9264         because 99 is a valid signal on Linux/MIPS.
9265
9266 2011-10-27  Bruno Haible  <bruno@clisp.org>
9267
9268         nonblocking tests: Fix test failure on Linux/MIPS.
9269         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9270         Set to 270000.
9271
9272 2011-10-27  Bruno Haible  <bruno@clisp.org>
9273
9274         utimensat: Work around problem on Linux/hppa.
9275         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9276         values.
9277         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9278
9279 2011-10-25  Jim Meyering  <meyering@redhat.com>
9280
9281         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9282         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9283         after symbols like NULL, size_t, etc.
9284         Reported by Alfred M. Szmidt.
9285
9286         maint.mk: exempt ENODATA from a syntax-check rule
9287         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9288         from the sc_prohibit_always-defined_macros syntax-check rule.
9289         Add a comment.  See this for more details:
9290         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9291
9292 2011-10-23  Jim Meyering  <meyering@redhat.com>
9293
9294         fts: close parent dir FD before returning from post-traversal fts_read
9295         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9296         unlink A, even though an FD open on A remained.  This is suboptimal
9297         (holding a file descriptor open longer than needed), but otherwise not
9298         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9299         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9300         that represents a real problem: it causes the removal of A to fail
9301         with e.g., "rm: cannot remove `A': Device or resource busy"
9302
9303         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9304         directory file descriptors.  After completing the final, FTS_DP,
9305         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9306         cache, but then proceeded to add a new FD to it via the subsequent
9307         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9308         final file descriptor would be closed only via fts_close's call to
9309         fd_ring_clear.  Now, it is usually closed earlier, via the final
9310         FTS_DP-returning fts_read call.
9311         * lib/fts.c (restore_initial_cwd): New function, converted from
9312         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9313         Update callers.
9314         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9315         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9316
9317 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9318             Bruno Haible  <bruno@clisp.org>
9319             Jim Meyering  <jim@meyering.net>
9320
9321         readme-release: improve safety of release prep instructions.
9322         * README-release: Don't git pull all branches when only master
9323         is needed for the release process.
9324         Run make maintainer-clean before changing trees and merging.
9325         Don't try to run ./configure right after git pull in case files
9326         that influence the bootstrap process have changed, move the
9327         ./configure step to after running ./bootstrap.
9328         Don't bootstrap "one last time"... it's the first time!
9329
9330 2011-10-22  Bruno Haible  <bruno@clisp.org>
9331
9332         errno, strerror-override: Support for MSVC 10.
9333         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9334         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9335         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9336         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9337         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9338         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9339         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9340         Assign values compatible with MSVC 10.
9341         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9342         New macros.
9343         (GNULIB_defined_EWINSOCK): New macro.
9344         * lib/strerror-override.c (strerror_override): Update accordingly.
9345         * lib/strerror-override.h: Likewise.
9346         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9347         longer equal to the corresponding errno value.
9348         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9349
9350 2011-10-22  Bruno Haible  <bruno@clisp.org>
9351
9352         perror: Recognize when test program crashes.
9353         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9354         strerror, set gl_cv_func_perror_works to no.
9355         Reported by Daniel Richard G. <skunk@iskunk.org>.
9356
9357         perror: Fix indentation.
9358         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9359
9360 2011-10-22  Bruno Haible  <bruno@clisp.org>
9361
9362         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9363         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9364         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9365         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9366         functions, not as a macro.
9367         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9368         macros.
9369         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9370         absence of macro.
9371         Suggested by Eric Blake.
9372         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9373
9374 2011-10-21  Bruno Haible  <bruno@clisp.org>
9375
9376         relocatable-prog-wrapper: Don't leave object files behind.
9377         * build-aux/install-reloc: Re-synchronize list of .o files to be
9378         removed with list of compilation units.
9379
9380 2011-10-20  Bruno Haible  <bruno@clisp.org>
9381
9382         openpty, posix_openpt: Remove code duplication.
9383         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9384         * lib/openpty.c: Include <stdlib.h>.
9385         (openpty): Use posix_openpt on all platforms except IRIX.
9386         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9387
9388 2011-10-20  Bruno Haible  <bruno@clisp.org>
9389
9390         unlockpt: Detect invalid argument.
9391         * lib/unlockpt.c: Include <fcntl.h>.
9392         (unlockpt): Check whether fd is valid, using fcntl().
9393         * modules/unlockpt (Depends-on): Add fcntl-h.
9394
9395 2011-10-20  Bruno Haible  <bruno@clisp.org>
9396
9397         openpty: Avoid compilation error on AIX 6.1.
9398         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9399
9400 2011-10-20  Bruno Haible  <bruno@clisp.org>
9401
9402         posix_openpt: Support for OpenBSD.
9403         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9404         (posix_openpt) [OpenBSD]: New code.
9405         * lib/grantpt.c: Include <fcntl.h>.
9406         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9407         * modules/grantpt (Depends-on): Add fcntl-h.
9408
9409 2011-10-20  Bruno Haible  <bruno@clisp.org>
9410
9411         posix_openpt test: Coding style.
9412         * tests/test-posix_openpt.c: Use GNU coding style.
9413
9414 2011-10-20  Bruno Haible  <bruno@clisp.org>
9415
9416         grantpt: Support --avoid=pt_chown.
9417         * modules/grantpt (Files): Add lib/pty-private.h.
9418
9419 2011-10-20  Bruno Haible  <bruno@clisp.org>
9420
9421         posix_openpt: Fix autoconf macro.
9422         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9423         unneeded check for _getpty.
9424
9425 2011-10-20  Bruno Haible  <bruno@clisp.org>
9426
9427         openpty: Update comments.
9428         * lib/openpty.c: Add comments about Minix.
9429
9430 2011-10-19  Eric Blake  <eblake@redhat.com>
9431
9432         openpty: relax license
9433         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9434
9435         pt_chown: use configmake to simplify build
9436         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9437
9438         ptsname and others: relax license
9439         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9440         * modules/unlockpt (License): Likewise.
9441         * modules/pt_chown (License): Likewise.
9442         * modules/ptsname (License): Likewise.
9443         * modules/ttyname_r (License): Likewise.
9444
9445 2011-10-19  Jim Meyering  <meyering@redhat.com>
9446
9447         posix_openpt: remove spurious #endif
9448         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9449
9450 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9451
9452         maint.mk: Respect $(build_aux) in web-manual rule.
9453         * top/maint.mk (web-manual): Find gen-announce script in user's
9454         $(build_aux) directory instead of hard-coding 'build-aux'.
9455
9456 2011-10-19  Bruno Haible  <bruno@clisp.org>
9457
9458         posix_openpt: Fix compilation error.
9459         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9460         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9461         Mention the openpty module as an alternative.
9462
9463 2011-10-19  Bruno Haible  <bruno@clisp.org>
9464
9465         Support for old NeXTstep 3.3 frexp().
9466         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9467         execution time of the test to 5 seconds.
9468         Reported by Daniel Richard G. <skunk@iskunk.org>.
9469
9470 2011-10-19  Bruno Haible  <bruno@clisp.org>
9471
9472         Support for old NeXTstep 3.3 sed.
9473         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9474         part, use /.../, not \|...|. Escape periods in the header file name.
9475         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9476         Reported by Daniel Richard G. <skunk@iskunk.org>.
9477
9478 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9479
9480         Support for old NeXTstep 3.3 gcc.
9481         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9482         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9483         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9484         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9485         * lib/regex.h (_Restrict_arr_): Likewise.
9486         * lib/regex_internal.h (re_token_t): Likewise.
9487         * lib/regexec.c (check_node_accept_bytes): Likewise.
9488         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9489
9490 2011-10-18  Eric Blake  <eblake@redhat.com>
9491
9492         posix_openpt: new module
9493         * modules/posix_openpt: New module.
9494         * m4/posix_openpt.m4: New file.
9495         * lib/posix_openpt.c: Likewise.
9496         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9497         (gl_STDLIB_H_DEFAULTS): Set defaults.
9498         * modules/stdlib (Makefile.am): Substitute macros.
9499         * lib/stdlib.in.h (posix_openpt): Declare.
9500         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9501         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9502         * modules/posix_openpt-tests: New test module.
9503         * tests/test-posix_openpt.c: New test.
9504
9505 2011-10-15  Bruno Haible  <bruno@clisp.org>
9506
9507         xstrtoll: Fix compilation failure.
9508         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
9509         from lib/strtol.c.
9510         * doc/posix-headers/limits.texi: Mention missing numerical limits on
9511         some platforms.
9512         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9513
9514 2011-10-15  Bruno Haible  <bruno@clisp.org>
9515
9516         vasnprintf: Optimize bit search operation.
9517         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
9518         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
9519         gl_DOUBLE_EXPONENT_LOCATION.
9520         * modules/vasnprintf (Files): Add m4/exponentd.m4.
9521         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9522         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9523         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9524         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9525         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9526         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9527         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9528         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
9529
9530 2011-10-15  Bruno Haible  <bruno@clisp.org>
9531
9532         vasnprintf: Fix comments.
9533         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
9534
9535 2011-10-14  Bruno Haible  <bruno@clisp.org>
9536
9537         Tests for module 'integer_length_ll'.
9538         * modules/integer_length_ll-tests: New file.
9539         * tests/test-integer_length_ll.c: New file.
9540
9541         New module 'integer_length_ll'.
9542         * lib/integer_length_ll.c: New file.
9543         * modules/integer_length_ll: New file.
9544
9545 2011-10-14  Bruno Haible  <bruno@clisp.org>
9546
9547         Tests for module 'integer_length_l'.
9548         * modules/integer_length_l-tests: New file.
9549         * tests/test-integer_length_l.c: New file.
9550
9551         New module 'integer_length_l'.
9552         * lib/integer_length_l.c: New file.
9553         * modules/integer_length_l: New file.
9554
9555 2011-10-14  Bruno Haible  <bruno@clisp.org>
9556
9557         Tests for module 'integer_length'.
9558         * modules/integer_length-tests: New file.
9559         * tests/test-integer_length.c: New file.
9560
9561         New module 'integer_length'.
9562         * lib/integer_length.h: New file.
9563         * lib/integer_length.c: New file.
9564         * modules/integer_length: New file.
9565
9566 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9567
9568         popen: Fix dependency conditions.
9569         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
9570
9571 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9572
9573         perror: Fix autoconf test.
9574         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
9575         <stdlib.h> and <string.h>.
9576
9577 2011-10-14  Bruno Haible  <bruno@clisp.org>
9578
9579         ffsl: Optimize on 64-bit platforms.
9580         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
9581         unrolling.
9582
9583 2011-10-13  Bruno Haible  <bruno@clisp.org>
9584
9585         ffsl: Optimize on 32-bit platforms.
9586         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
9587         use ffs() without a loop.
9588
9589         ffsl, ffsll: Optimize for GCC.
9590         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
9591         * lib/ffsl.c (GCC_BUILTIN): New macro.
9592         * lib/ffsll.c (GCC_BUILTIN): Likewise.
9593
9594 2011-10-13  Bruno Haible  <bruno@clisp.org>
9595
9596         ffs, bcopy, memset: Support symbol renaming via config.h.
9597         * lib/ffs.c: Include <config.h>.
9598         * lib/bcopy.c: Likewise.
9599         * lib/memset.c: Likewise.
9600
9601 2011-10-10  Bruno Haible  <bruno@clisp.org>
9602
9603         atanl: Simplify for platforms where 'long double' == 'double'.
9604         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9605         alternative implementation.
9606         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9607         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9608         * modules/atanl (Depends-on): Add atan. Update conditions.
9609
9610 2011-10-10  Bruno Haible  <bruno@clisp.org>
9611
9612         acosl: Simplify for platforms where 'long double' == 'double'.
9613         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9614         alternative implementation.
9615         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9616         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9617         * modules/acosl (Depends-on): Add acos. Update conditions.
9618
9619 2011-10-10  Bruno Haible  <bruno@clisp.org>
9620
9621         asinl: Simplify for platforms where 'long double' == 'double'.
9622         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9623         alternative implementation.
9624         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9625         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9626         * modules/asinl (Depends-on): Add asin. Update conditions.
9627
9628 2011-10-10  Bruno Haible  <bruno@clisp.org>
9629
9630         tanl: Simplify for platforms where 'long double' == 'double'.
9631         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9632         implementation.
9633         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9634         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9635         * modules/tanl (Depends-on): Add tan. Update conditions.
9636         (configure.ac): Don't compile trigl.c if
9637         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9638
9639 2011-10-10  Bruno Haible  <bruno@clisp.org>
9640
9641         cosl: Simplify for platforms where 'long double' == 'double'.
9642         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9643         implementation.
9644         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9645         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9646         * modules/cosl (Depends-on): Add cos. Update conditions.
9647         (configure.ac): Don't compile sincosl.c and trigl.c if
9648         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9649
9650 2011-10-10  Bruno Haible  <bruno@clisp.org>
9651
9652         sinl: Simplify for platforms where 'long double' == 'double'.
9653         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9654         implementation.
9655         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9656         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9657         * modules/sinl (Depends-on): Add sin. Update conditions.
9658         (configure.ac): Don't compile sincosl.c and trigl.c if
9659         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9660
9661 2011-10-10  Bruno Haible  <bruno@clisp.org>
9662
9663         logl: Simplify for platforms where 'long double' == 'double'.
9664         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9665         implementation.
9666         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9667         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9668         * modules/logl (Depends-on): Add log. Update conditions.
9669
9670 2011-10-10  Bruno Haible  <bruno@clisp.org>
9671
9672         expl: Simplify for platforms where 'long double' == 'double'.
9673         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
9674         implementation.
9675         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9676         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9677         * modules/expl (Depends-on): Add exp. Update conditions.
9678
9679 2011-10-10  Bruno Haible  <bruno@clisp.org>
9680
9681         sqrtl: Simplify for platforms where 'long double' == 'double'.
9682         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9683         alternative implementation.
9684         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9685         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9686         * modules/sqrtl (Depends-on): Update conditions.
9687
9688 2011-10-10  Bruno Haible  <bruno@clisp.org>
9689
9690         ldexpl: Simplify for platforms where 'long double' == 'double'.
9691         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9692         alternative implementation.
9693         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9694         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9695         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
9696
9697 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
9698
9699         ffsll: set correct witness
9700         * modules/ffsll (configure.ac): Fix typo.
9701
9702 2011-10-10  Bruno Haible  <bruno@clisp.org>
9703
9704         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
9705         * lib/printf-frexpl.c: Include <config.h>.
9706         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9707         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
9708         second time.
9709         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
9710         gl_LONG_DOUBLE_VS_DOUBLE.
9711         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
9712         conditions.
9713
9714 2011-10-10  Bruno Haible  <bruno@clisp.org>
9715
9716         frexpl: Simplify for platforms where 'long double' == 'double'.
9717         * lib/frexpl.c: Include <config.h>.
9718         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9719         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9720         time.
9721         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9722         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9723         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
9724         * modules/frexpl (Depends-on): Add frexp. Update conditions.
9725         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
9726         conditions.
9727
9728 2011-10-10  Jim Meyering  <meyering@redhat.com>
9729
9730         test-renameat: don't leave behind a temporary file
9731         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
9732           ERROR: files left in build directory after distclean:
9733           ./gltests/test-renameat.too
9734           make[1]: *** [distcleancheck] Error 1
9735         Reported by Tom G. Christensen.
9736
9737 2011-10-09  Bruno Haible  <bruno@clisp.org>
9738
9739         rint: Determine RINT_LIBM correctly on AIX 7.
9740         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
9741         directly, not only through a function pointer. Also accept an optional
9742         4th argument with extra code.
9743         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
9744         rintf() call by gcc when optimizing.
9745
9746         mathfunc.m4: Refactor.
9747         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
9748         m4 variable.
9749
9750 2011-10-09  Bruno Haible  <bruno@clisp.org>
9751
9752         rintl: Simplify for platforms where 'long double' == 'double'.
9753         * lib/rintl.c: Include <config.h>.
9754         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9755         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9756         time.
9757         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9758         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9759         * modules/rintl (Depends-on): Add rint. Update conditions.
9760
9761 2011-10-09  Bruno Haible  <bruno@clisp.org>
9762
9763         roundl: Simplify for platforms where 'long double' == 'double'.
9764         * lib/roundl.c: Include <config.h>.
9765         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9766         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9767         time.
9768         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9769         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9770         * modules/roundl (Depends-on): Add round. Update conditions.
9771
9772 2011-10-09  Bruno Haible  <bruno@clisp.org>
9773
9774         truncl: Simplify for platforms where 'long double' == 'double'.
9775         * lib/truncl.c: Include <config.h>.
9776         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9777         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9778         time.
9779         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9780         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9781         * modules/truncl (Depends-on): Add trunc. Update conditions.
9782
9783 2011-10-09  Bruno Haible  <bruno@clisp.org>
9784
9785         ceill: Simplify for platforms where 'long double' == 'double'.
9786         * lib/ceill.c: Include <config.h>.
9787         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9788         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9789         time.
9790         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9791         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9792         * modules/ceill (Depends-on): Add ceil. Update conditions.
9793
9794 2011-10-09  Bruno Haible  <bruno@clisp.org>
9795
9796         floorl: Simplify for platforms where 'long double' == 'double'.
9797         * lib/floorl.c: Include <config.h>.
9798         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
9799         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
9800         time.
9801         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9802         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9803         * modules/floorl (Depends-on): Add floor. Update conditions.
9804
9805 2011-10-09  Bruno Haible  <bruno@clisp.org>
9806
9807         rint: Fix ordering constraints.
9808         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
9809         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
9810         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
9811
9812 2011-10-09  Bruno Haible  <bruno@clisp.org>
9813
9814         copysignl: Simplify for platforms where 'long double' == 'double'.
9815         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
9816         alternative.
9817         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9818         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
9819         * modules/copysignl (Depends-on): Add copysign. Update conditions.
9820
9821 2011-10-09  Bruno Haible  <bruno@clisp.org>
9822
9823         Tests for module 'rintl'.
9824         * modules/rintl-tests: New file.
9825         * tests/test-rintl.c: New file.
9826
9827         New module 'rintl'.
9828         * lib/math.in.h (rintl): New declaration.
9829         * lib/rintl.c: New file.
9830         * m4/rintl.m4: New file.
9831         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
9832         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
9833         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
9834         * modules/rintl: New file.
9835         * tests/test-math-c++.cc: Check the declaration of rintl.
9836         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9837         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
9838         * doc/posix-functions/rintl.texi: Mention the new module.
9839
9840 2011-10-09  Bruno Haible  <bruno@clisp.org>
9841
9842         Tests for module 'rintf'.
9843         * modules/rintf-tests: New file.
9844         * tests/test-rintf.c: New file.
9845
9846         New module 'rintf'.
9847         * lib/math.in.h (rintf): New declaration.
9848         * lib/rintf.c: New file.
9849         * m4/rintf.m4: New file.
9850         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
9851         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
9852         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
9853         * modules/rintf: New file.
9854         * tests/test-math-c++.cc: Check the declaration of rintf.
9855         * doc/posix-functions/rintf.texi: Mention the new module.
9856
9857 2011-10-09  Bruno Haible  <bruno@clisp.org>
9858
9859         rint: Support for MSVC.
9860         * lib/math.in.h (rint): New declaration.
9861         * lib/rint.c: New file.
9862         * m4/rint.m4: New file.
9863         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
9864         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
9865         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
9866         * modules/rint (Description): Fix.
9867         (Files): Add lib/rint.c, m4/rint.m4.
9868         (Depends-on): Add math.
9869         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
9870         gl_MATH_MODULE_INDICATOR.
9871         * tests/test-math-c++.cc: Check the declaration of rint.
9872         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9873         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
9874         * doc/posix-functions/rint.texi: Mention the replacement provided by
9875         the module.
9876
9877         rint tests: More tests.
9878         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
9879         minus-zero.h, infinity.h, nan.h.
9880         (main): Skip the test if the current rounding mode is not standard. Add
9881         tests for negative numbers, minus zero, infinity, NaN.
9882         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
9883         tests/nan.h.
9884         (Depends-on): Add isnand-nolibm.
9885
9886 2011-10-09  Bruno Haible  <bruno@clisp.org>
9887
9888         Tests for module 'copysignl'.
9889         * modules/copysignl-tests: New file.
9890         * tests/test-copysignl.c: New file.
9891
9892         New module 'copysignl'.
9893         * lib/math.in.h (copysignl): New declaration.
9894         * lib/copysignl.c: New file.
9895         * m4/copysignl.m4: New file.
9896         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
9897         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9898         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9899         HAVE_COPYSIGNL.
9900         * modules/copysignl: New file.
9901         * tests/test-math-c++.cc: Check the declaration of copysignl.
9902         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9903         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9904         * doc/posix-functions/copysignl.texi: Mention the new module.
9905
9906 2011-10-09  Bruno Haible  <bruno@clisp.org>
9907
9908         Tests for module 'copysignf'.
9909         * modules/copysignf-tests: New file.
9910         * tests/test-copysignf.c: New file.
9911
9912         New module 'copysignf'.
9913         * lib/math.in.h (copysignf): New declaration.
9914         * lib/copysignf.c: New file.
9915         * m4/copysignf.m4: New file.
9916         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9917         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9918         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9919         HAVE_COPYSIGNF.
9920         * modules/copysignf: New file.
9921         * tests/test-math-c++.cc: Check the declaration of copysignf.
9922         * doc/posix-functions/copysignf.texi: Mention the new module.
9923
9924 2011-10-09  Bruno Haible  <bruno@clisp.org>
9925
9926         Ensure that HAVE_* variables are set to 1 before they are set to 0.
9927         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
9928         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
9929         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9930         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
9931         gl_SIGNAL_H_DEFAULTS.
9932
9933 2011-10-09  Bruno Haible  <bruno@clisp.org>
9934
9935         poll: Make macro safer.
9936         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
9937         ac_cv_header_poll_h is not set.
9938
9939 2011-10-09  Bruno Haible  <bruno@clisp.org>
9940
9941         copysign: Provide replacement.
9942         * lib/math.in.h (copysign): New declaration.
9943         * lib/copysign.c: New file.
9944         * m4/copysign.m4: New file.
9945         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
9946         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
9947         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
9948         HAVE_COPYSIGN.
9949         * modules/copysign (Description): Clarify.
9950         (Files): Add lib/copysign.c, m4/copysign.m4.
9951         (Depends-on): Add math, signbit.
9952         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
9953         gl_MATH_MODULE_INDICATOR.
9954         * tests/test-math-c++.cc: Check the declaration of copysign.
9955         * doc/posix-functions/copysign.texi: Mention the effects of the module
9956         on Minix and MSVC.
9957
9958 2011-10-09  Bruno Haible  <bruno@clisp.org>
9959
9960         isinf: Ensure macro on AIX 5.1.
9961         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
9962         macro.
9963         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
9964
9965 2011-10-09  Bruno Haible  <bruno@clisp.org>
9966
9967         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
9968         * modules/snprintf-posix-tests (configure.ac): Require
9969         gl_LONG_DOUBLE_VS_DOUBLE.
9970         * modules/sprintf-posix-tests (configure.ac): Likewise.
9971         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
9972         * modules/vasprintf-posix-tests (configure.ac): Likewise.
9973         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
9974         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9975         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9976         tests on platforms where 'long double' is the same as 'double'.
9977         * tests/test-sprintf-posix.h (test_function): Likewise.
9978         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9979         * tests/test-vasprintf-posix.c (test_function): Likewise.
9980
9981         *printf: Fix for platforms where 'long double' == 'double'.
9982         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9983         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9984         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9985         * modules/fprintf-posix (Files): Likewise.
9986         * modules/obstack-printf-posix (Files): Likewise.
9987         * modules/snprintf-posix (Files): Likewise.
9988         * modules/sprintf-posix (Files): Likewise.
9989         * modules/vasnprintf (Files): Likewise.
9990         * modules/vasnprintf-posix (Files): Likewise.
9991         * modules/vasprintf-posix (Files): Likewise.
9992         * modules/vdprintf-posix (Files): Likewise.
9993         * modules/vfprintf-posix (Files): Likewise.
9994         * modules/vsnprintf-posix (Files): Likewise.
9995         * modules/vsprintf-posix (Files): Likewise.
9996         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9997         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9998         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9999         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10000         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10001         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10002         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10003
10004         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10005         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10006         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10007         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10008         'long double'.
10009         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10010
10011         isinf: Fix for platforms where 'long double' == 'double'.
10012         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10013         Don't blindly assume 80-bit 'long double'.
10014
10015         isfinite: Fix for platforms where 'long double' == 'double'.
10016         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10017         Don't blindly assume 80-bit 'long double'.
10018
10019         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10020         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10021         * modules/isfinite-tests (configure.ac): Require
10022         gl_LONG_DOUBLE_VS_DOUBLE.
10023         * modules/isinf-tests (configure.ac): Likewise.
10024         * modules/isnan-tests (configure.ac): Likewise.
10025         * modules/isnanl-tests (configure.ac): Likewise.
10026         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10027         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10028         tests on platforms where 'long double' is the same as 'double'.
10029         * tests/test-isinf.c (test_isinfl): Likewise.
10030         * tests/test-isnan.c (test_long_double): Likewise.
10031         * tests/test-isnanl.h (main): Likewise.
10032
10033 2011-10-08  Bruno Haible  <bruno@clisp.org>
10034
10035         Tests for module 'tanhf'.
10036         * modules/tanhf-tests: New file.
10037         * tests/test-tanhf.c: New file.
10038
10039         New module 'tanhf'.
10040         * lib/math.in.h (tanhf): New declaration.
10041         * lib/tanhf.c: New file.
10042         * m4/tanhf.m4: New file.
10043         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10045         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10046         * modules/tanhf: New file.
10047         * tests/test-math-c++.cc: Check the declaration of tanhf.
10048         * doc/posix-functions/tanhf.texi: Mention the new module.
10049
10050         tanh: Use a .m4 file.
10051         * m4/tanh.m4: New file.
10052         * modules/tanh (Files): Add it.
10053         (configure.ac): Just invoke gl_FUNC_TANH.
10054
10055 2011-10-08  Bruno Haible  <bruno@clisp.org>
10056
10057         Tests for module 'coshf'.
10058         * modules/coshf-tests: New file.
10059         * tests/test-coshf.c: New file.
10060
10061         New module 'coshf'.
10062         * lib/math.in.h (coshf): New declaration.
10063         * lib/coshf.c: New file.
10064         * m4/coshf.m4: New file.
10065         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10066         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10067         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10068         * modules/coshf: New file.
10069         * tests/test-math-c++.cc: Check the declaration of coshf.
10070         * doc/posix-functions/coshf.texi: Mention the new module.
10071
10072         cosh: Use a .m4 file.
10073         * m4/cosh.m4: New file.
10074         * modules/cosh (Files): Add it.
10075         (configure.ac): Just invoke gl_FUNC_COSH.
10076
10077 2011-10-08  Bruno Haible  <bruno@clisp.org>
10078
10079         Tests for module 'sinhf'.
10080         * modules/sinhf-tests: New file.
10081         * tests/test-sinhf.c: New file.
10082
10083         New module 'sinhf'.
10084         * lib/math.in.h (sinhf): New declaration.
10085         * lib/sinhf.c: New file.
10086         * m4/sinhf.m4: New file.
10087         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10088         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10089         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10090         * modules/sinhf: New file.
10091         * tests/test-math-c++.cc: Check the declaration of sinhf.
10092         * doc/posix-functions/sinhf.texi: Mention the new module.
10093
10094         sinh: Use a .m4 file.
10095         * m4/sinh.m4: New file.
10096         * modules/sinh (Files): Add it.
10097         (configure.ac): Just invoke gl_FUNC_SINH.
10098
10099 2011-10-08  Bruno Haible  <bruno@clisp.org>
10100
10101         Tests for module 'atan2f'.
10102         * modules/atan2f-tests: New file.
10103         * tests/test-atan2f.c: New file.
10104
10105         New module 'atan2f'.
10106         * lib/math.in.h (atan2f): New declaration.
10107         * lib/atan2f.c: New file.
10108         * m4/atan2f.m4: New file.
10109         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10110         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10111         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10112         * modules/atan2f: New file.
10113         * tests/test-math-c++.cc: Check the declaration of atan2f.
10114         * doc/posix-functions/atan2f.texi: Mention the new module.
10115
10116         atan2: Use a .m4 file.
10117         * m4/atan2.m4: New file.
10118         * modules/atan2 (Files): Add it.
10119         (configure.ac): Just invoke gl_FUNC_ATAN2.
10120
10121 2011-10-08  Bruno Haible  <bruno@clisp.org>
10122
10123         Tests for module 'atanf'.
10124         * modules/atanf-tests: New file.
10125         * tests/test-atanf.c: New file.
10126
10127         New module 'atanf'.
10128         * lib/math.in.h (atanf): New declaration.
10129         * lib/atanf.c: New file.
10130         * m4/atanf.m4: New file.
10131         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10132         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10133         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10134         * modules/atanf: New file.
10135         * tests/test-math-c++.cc: Check the declaration of atanf.
10136         * doc/posix-functions/atanf.texi: Mention the new module.
10137
10138         atan: Use a .m4 file.
10139         * m4/atan.m4: New file.
10140         * modules/atan (Files): Add it.
10141         (configure.ac): Just invoke gl_FUNC_ATAN.
10142
10143 2011-10-08  Bruno Haible  <bruno@clisp.org>
10144
10145         Tests for module 'acosf'.
10146         * modules/acosf-tests: New file.
10147         * tests/test-acosf.c: New file.
10148
10149         New module 'acosf'.
10150         * lib/math.in.h (acosf): New declaration.
10151         * lib/acosf.c: New file.
10152         * m4/acosf.m4: New file.
10153         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10154         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10155         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10156         * modules/acosf: New file.
10157         * tests/test-math-c++.cc: Check the declaration of acosf.
10158         * doc/posix-functions/acosf.texi: Mention the new module.
10159
10160         acos: Use a .m4 file.
10161         * m4/acos.m4: New file.
10162         * modules/acos (Files): Add it.
10163         (configure.ac): Just invoke gl_FUNC_ACOS.
10164
10165 2011-10-08  Bruno Haible  <bruno@clisp.org>
10166
10167         Tests for module 'asinf'.
10168         * modules/asinf-tests: New file.
10169         * tests/test-asinf.c: New file.
10170
10171         New module 'asinf'.
10172         * lib/math.in.h (asinf): New declaration.
10173         * lib/asinf.c: New file.
10174         * m4/asinf.m4: New file.
10175         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10176         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10177         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10178         * modules/asinf: New file.
10179         * tests/test-math-c++.cc: Check the declaration of asinf.
10180         * doc/posix-functions/asinf.texi: Mention the new module.
10181
10182         asin: Use a .m4 file.
10183         * m4/asin.m4: New file.
10184         * modules/asin (Files): Add it.
10185         (configure.ac): Just invoke gl_FUNC_ASIN.
10186
10187 2011-10-08  Bruno Haible  <bruno@clisp.org>
10188
10189         Tests for module 'tanf'.
10190         * modules/tanf-tests: New file.
10191         * tests/test-tanf.c: New file.
10192
10193         New module 'tanf'.
10194         * lib/math.in.h (tanf): New declaration.
10195         * lib/tanf.c: New file.
10196         * m4/tanf.m4: New file.
10197         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10198         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10199         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10200         * modules/tanf: New file.
10201         * tests/test-math-c++.cc: Check the declaration of tanf.
10202         * doc/posix-functions/tanf.texi: Mention the new module.
10203
10204         tan: Use a .m4 file.
10205         * m4/tan.m4: New file.
10206         * modules/tan (Files): Add it.
10207         (configure.ac): Just invoke gl_FUNC_TAN.
10208
10209 2011-10-08  Bruno Haible  <bruno@clisp.org>
10210
10211         Tests for module 'cosf'.
10212         * modules/cosf-tests: New file.
10213         * tests/test-cosf.c: New file.
10214
10215         New module 'cosf'.
10216         * lib/math.in.h (cosf): New declaration.
10217         * lib/cosf.c: New file.
10218         * m4/cosf.m4: New file.
10219         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10221         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10222         * modules/cosf: New file.
10223         * tests/test-math-c++.cc: Check the declaration of cosf.
10224         * doc/posix-functions/cosf.texi: Mention the new module.
10225
10226         cos: Use a .m4 file.
10227         * m4/cos.m4: New file.
10228         * modules/cos (Files): Add it.
10229         (configure.ac): Just invoke gl_FUNC_COS.
10230
10231 2011-10-08  Bruno Haible  <bruno@clisp.org>
10232
10233         Tests for module 'sinf'.
10234         * modules/sinf-tests: New file.
10235         * tests/test-sinf.c: New file.
10236
10237         New module 'sinf'.
10238         * lib/math.in.h (sinf): New declaration.
10239         * lib/sinf.c: New file.
10240         * m4/sinf.m4: New file.
10241         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10243         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10244         * modules/sinf: New file.
10245         * tests/test-math-c++.cc: Check the declaration of sinf.
10246         * doc/posix-functions/sinf.texi: Mention the new module.
10247
10248         sin: Use a .m4 file.
10249         * m4/sin.m4: New file.
10250         * modules/sin (Files): Add it.
10251         (configure.ac): Just invoke gl_FUNC_SIN.
10252
10253 2011-10-08  Bruno Haible  <bruno@clisp.org>
10254
10255         Tests for module 'powf'.
10256         * modules/powf-tests: New file.
10257         * tests/test-powf.c: New file.
10258
10259         New module 'powf'.
10260         * lib/math.in.h (powf): New declaration.
10261         * lib/powf.c: New file.
10262         * m4/powf.m4: New file.
10263         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10265         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10266         * modules/powf: New file.
10267         * tests/test-math-c++.cc: Check the declaration of powf.
10268         * doc/posix-functions/powf.texi: Mention the new module.
10269
10270         pow: Use a .m4 file.
10271         * m4/pow.m4: New file.
10272         * modules/pow (Files): Add it.
10273         (configure.ac): Just invoke gl_FUNC_POW.
10274
10275 2011-10-08  Bruno Haible  <bruno@clisp.org>
10276
10277         Tests for module 'log10f'.
10278         * modules/log10f-tests: New file.
10279         * tests/test-log10f.c: New file.
10280
10281         New module 'log10f'.
10282         * lib/math.in.h (log10f): New declaration.
10283         * lib/log10f.c: New file.
10284         * m4/log10f.m4: New file.
10285         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10287         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10288         * modules/log10f: New file.
10289         * tests/test-math-c++.cc: Check the declaration of log10f.
10290         * doc/posix-functions/log10f.texi: Mention the new module.
10291
10292         log10: Use a .m4 file.
10293         * m4/log10.m4: New file.
10294         * modules/log10 (Files): Add it.
10295         (configure.ac): Just invoke gl_FUNC_LOG10.
10296
10297 2011-10-08  Bruno Haible  <bruno@clisp.org>
10298
10299         Tests for module 'logf'.
10300         * modules/logf-tests: New file.
10301         * tests/test-logf.c: New file.
10302
10303         New module 'logf'.
10304         * lib/math.in.h (logf): New declaration.
10305         * lib/logf.c: New file.
10306         * m4/logf.m4: New file.
10307         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10309         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10310         * modules/logf: New file.
10311         * tests/test-math-c++.cc: Check the declaration of logf.
10312         * doc/posix-functions/logf.texi: Mention the new module.
10313
10314         log: Use a .m4 file.
10315         * m4/log.m4: New file.
10316         * modules/log (Files): Add it.
10317         (configure.ac): Just invoke gl_FUNC_LOG.
10318
10319 2011-10-08  Bruno Haible  <bruno@clisp.org>
10320
10321         Tests for module 'expf'.
10322         * modules/expf-tests: New file.
10323         * tests/test-expf.c: New file.
10324
10325         New module 'expf'.
10326         * lib/math.in.h (expf): New declaration.
10327         * lib/expf.c: New file.
10328         * m4/expf.m4: New file.
10329         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10331         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10332         * modules/expf: New file.
10333         * tests/test-math-c++.cc: Check the declaration of expf.
10334         * doc/posix-functions/expf.texi: Mention the new module.
10335
10336         exp: Use a .m4 file.
10337         * m4/exp.m4: New file.
10338         * modules/exp (Files): Add it.
10339         (configure.ac): Just invoke gl_FUNC_EXP.
10340
10341 2011-10-08  Bruno Haible  <bruno@clisp.org>
10342
10343         Tests for module 'sqrtf'.
10344         * modules/sqrtf-tests: New file.
10345         * tests/test-sqrtf.c: New file.
10346
10347         New module 'sqrtf'.
10348         * lib/math.in.h (sqrtf): New declaration.
10349         * lib/sqrtf.c: New file.
10350         * m4/sqrtf.m4: New file.
10351         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10353         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10354         * modules/sqrtf: New file.
10355         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10356         * doc/posix-functions/sqrtf.texi: Mention the new module.
10357
10358 2011-10-08  Bruno Haible  <bruno@clisp.org>
10359
10360         Tests: Avoid link failures w.r.t. libintl.
10361         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10362         $(LIBINTL).
10363         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10364         $(LIBINTL).
10365         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10366         against $(LIBINTL).
10367         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10368         $(LIBINTL).
10369         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10370         $(LIBINTL).
10371         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10372
10373 2011-10-08  Bruno Haible  <bruno@clisp.org>
10374
10375         pow tests: Defeat compiler optimizations.
10376         * tests/test-pow.c (main): Assign arguments to x and y before use.
10377
10378 2011-10-08  Bruno Haible  <bruno@clisp.org>
10379
10380         gnulib-tool: Improve last commit.
10381         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10382         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10383         ignore dependencies that are not among the modules list.
10384
10385 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10386
10387         gnulib-tool: don't follow dependencies to avoided modules
10388         This fixes a bug that is related to the previous one.
10389         * gnulib-tool (func_modules_transitive_closure)
10390         (func_emit_autoconf_snippets):
10391         Check whether a dependency is acceptable before using it.
10392         (--extract-dependencies): Report an error if --avoid is also used,
10393         since this combination of options is not yet supported.
10394
10395         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10396         Problem reported by Peter Dyballa in
10397         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10398         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10399         when echoing "$condition".
10400
10401 2011-10-07  Bruno Haible  <bruno@clisp.org>
10402
10403         Fix documentation about math functions on MacOS X.
10404         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10405         MacOS X 10.5.
10406         * doc/posix-functions/fdim.texi: Likewise.
10407         * doc/posix-functions/feclearexcept.texi: Likewise.
10408         * doc/posix-functions/fegetenv.texi: Likewise.
10409         * doc/posix-functions/fegetround.texi: Likewise.
10410         * doc/posix-functions/feholdexcept.texi: Likewise.
10411         * doc/posix-functions/feraiseexcept.texi: Likewise.
10412         * doc/posix-functions/fesetenv.texi: Likewise.
10413         * doc/posix-functions/fesetround.texi: Likewise.
10414         * doc/posix-functions/fetestexcept.texi: Likewise.
10415         * doc/posix-functions/feupdateenv.texi: Likewise.
10416         * doc/posix-functions/fmax.texi: Likewise.
10417         * doc/posix-functions/fmin.texi: Likewise.
10418         * doc/posix-functions/log2.texi: Likewise.
10419         * doc/posix-functions/modff.texi: Likewise.
10420         * doc/posix-functions/nan.texi: Likewise.
10421         * doc/posix-functions/nanf.texi: Likewise.
10422         * doc/posix-functions/nextafterf.texi: Likewise.
10423         * doc/posix-functions/remquo.texi: Likewise.
10424
10425 2011-10-07  Bruno Haible  <bruno@clisp.org>
10426
10427         modff: Drop assumption about library that defines modff.
10428         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10429         AC_CHECK_FUNCS.
10430         * modules/modff (Files): Add m4/mathfunc.m4.
10431
10432 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10433
10434         raise tests: Avoid a GCC warning.
10435         * tests/test-raise.c (handler): Use _Noreturn.
10436
10437 2011-10-07  Bruno Haible  <bruno@clisp.org>
10438
10439         Tests for module 'ldexpf'.
10440         * modules/ldexpf-tests: New file.
10441         * tests/test-ldexpf.c: New file.
10442
10443         New module 'ldexpf'.
10444         * lib/math.in.h (ldexpf): New declaration.
10445         * lib/ldexpf.c: New file.
10446         * m4/ldexpf.m4: New file.
10447         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10448         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10449         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10450         * modules/ldexpf: New file.
10451         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10452         * doc/posix-functions/ldexpf.texi: Mention the new module.
10453
10454 2011-10-06  Bruno Haible  <bruno@clisp.org>
10455
10456         frexpf: Work around problems on IRIX and mingw.
10457         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10458         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10459         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10460         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10461         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10462         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10463         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10464
10465 2011-10-06  Bruno Haible  <bruno@clisp.org>
10466
10467         fabsf: Drop assumption about library that defines fabsf.
10468         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10469         AC_CHECK_FUNCS.
10470         * modules/fabsf (Files): Add m4/mathfunc.m4.
10471
10472 2011-10-06  Bruno Haible  <bruno@clisp.org>
10473
10474         frexpf: Drop assumption about library that defines frexpf.
10475         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10476         'int *', 'float *', 'long double *', 'float', 'long double'.
10477         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10478         AC_CHECK_FUNCS.
10479         * modules/frexpf (Files): Add m4/mathfunc.m4.
10480
10481         Tests for module 'frexpf'.
10482         * modules/frexpf-tests: New file.
10483         * tests/test-frexpf.c: New file.
10484
10485         New module 'frexpf'.
10486         * lib/math.in.h (frexpf): New declaration.
10487         * lib/frexpf.c: New file.
10488         * m4/frexpf.m4: New file.
10489         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10490         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10491         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10492         * modules/frexpf: New file.
10493         * tests/test-math-c++.cc: Check the declaration of frexpf.
10494         * doc/posix-functions/frexpf.texi: Mention the new module.
10495
10496 2011-10-06  Bruno Haible  <bruno@clisp.org>
10497
10498         math: Sort function declarations of math.in.h.
10499         * lib/math.in.h (frexp, logb): Move declarations.
10500
10501 2011-10-05  Bruno Haible  <bruno@clisp.org>
10502
10503         Tests for module 'modff'.
10504         * modules/modff-tests: New file.
10505         * tests/test-modff.c: New file.
10506
10507         New module 'modff'.
10508         * lib/math.in.h (modff): New declaration.
10509         * lib/modff.c: New file.
10510         * m4/modff.m4: New file.
10511         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
10512         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
10513         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
10514         * modules/modff: New file.
10515         * tests/test-math-c++.cc: Check the declaration of modff.
10516         * doc/posix-functions/modff.texi: Mention the new module.
10517
10518         modf tests: Make test sharper.
10519         * tests/test-modf.c (main): Strengthen upper bound.
10520
10521         modf: Use a .m4 file.
10522         * m4/modf.m4: New file.
10523         * modules/modf (Files): Add it.
10524         (configure.ac): Just invoke gl_FUNC_MODF.
10525
10526 2011-10-05  Bruno Haible  <bruno@clisp.org>
10527
10528         Tests for module 'fmodf'.
10529         * modules/fmodf-tests: New file.
10530         * tests/test-fmodf.c: New file.
10531
10532         New module 'fmodf'.
10533         * lib/math.in.h (fmodf): New declaration.
10534         * lib/fmodf.c: New file.
10535         * m4/fmodf.m4: New file.
10536         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
10537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
10538         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
10539         * modules/fmodf: New file.
10540         * tests/test-math-c++.cc: Check the declaration of fmodf.
10541         * doc/posix-functions/fmodf.texi: Mention the new module.
10542
10543         fmod: Use a .m4 file.
10544         * m4/fmod.m4: New file.
10545         * modules/fmod (Files): Add it.
10546         (configure.ac): Just invoke gl_FUNC_FMOD.
10547
10548 2011-10-05  Bruno Haible  <bruno@clisp.org>
10549
10550         Tests for module 'fabsf'.
10551         * modules/fabsf-tests: New file.
10552         * tests/test-fabsf.c: New file.
10553
10554         New module 'fabsf'.
10555         * lib/math.in.h (fabsf): New declaration.
10556         * lib/fabsf.c: New file.
10557         * m4/fabsf.m4: New file.
10558         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
10559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
10560         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
10561         * modules/fabsf: New file.
10562         * tests/test-math-c++.cc: Check the declaration of fabsf.
10563         * doc/posix-functions/fabsf.texi: Mention the new module.
10564
10565         fabs: Use a .m4 file.
10566         * m4/fabs.m4: New file.
10567         * modules/fabs (Files): Add it.
10568         (configure.ac): Just invoke gl_FUNC_FABS.
10569
10570 2011-10-05  Jim Meyering  <meyering@redhat.com>
10571
10572         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
10573         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
10574         ls -lL regression introduced in coreutils-8.12, it does so at the
10575         cost of an additional stat call in the common case.  Besides, now
10576         that the kernel change that prompted commit 95f7c57f has been reverted
10577         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
10578         we have no use for commit 95f7c57f, "file-has-acl: use
10579         acl_extended_file_nofollow if available".
10580
10581 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
10582
10583         file-has-acl: revert unintended change in behavior of ls -L
10584         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
10585         derived from...
10586         (file_has_acl): ...code here.  Call it.
10587         This problem was introduced with 2011-07-22 commit 95f7c57f,
10588         "file-has-acl: use acl_extended_file_nofollow if available".
10589         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
10590
10591 2011-10-03  Bruno Haible  <bruno@clisp.org>
10592
10593         poll: Avoid link errors on MSVC.
10594         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
10595         * modules/poll (Depends-on): Add sockets.
10596         (Link): New section.
10597         * NEWS: Mention the change.
10598         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
10599         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
10600         $(LIB_POLL) instead of $(LIBSOCKET).
10601
10602 2011-10-03  Bruno Haible  <bruno@clisp.org>
10603
10604         sys_select tests: Fix link error on MSVC 9.
10605         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
10606         with $(LIB_SELECT) instead of $(LIBSOCKET).
10607
10608 2011-10-03  Bruno Haible  <bruno@clisp.org>
10609
10610         sys_select: Fix compilation error on mingw.
10611         * lib/sys_select.in.h: On native Windows, include <io.h>.
10612
10613 2011-10-03  Bruno Haible  <bruno@clisp.org>
10614
10615         wmemset: Support for MSVC.
10616         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
10617         whether wmemset() exists.
10618
10619 2011-10-03  Bruno Haible  <bruno@clisp.org>
10620
10621         wmemmove: Support for MSVC.
10622         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
10623         whether wmemmove() exists.
10624
10625 2011-10-03  Bruno Haible  <bruno@clisp.org>
10626
10627         wmemcpy: Support for MSVC.
10628         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
10629         whether wmemcpy() exists.
10630
10631 2011-10-03  Bruno Haible  <bruno@clisp.org>
10632
10633         wmemcmp: Support for MSVC.
10634         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
10635         whether wmemcmp() exists.
10636
10637 2011-10-03  Bruno Haible  <bruno@clisp.org>
10638
10639         wmemchr: Support for MSVC.
10640         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
10641         whether wmemchr() exists.
10642
10643 2011-10-03  Bruno Haible  <bruno@clisp.org>
10644
10645         glthread/*, strsignal: Support for MSVC.
10646         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
10647         including <winsock.h> on MSVC 9.
10648         * lib/glthread/lock.h: Likewise.
10649         * lib/glthread/thread.h: Likewise.
10650         * lib/glthread/tls.h: Likewise.
10651         * lib/glthread/yield.h: Likewise.
10652         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
10653         if HAVE_UNISTD_H is false.
10654         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
10655
10656 2011-10-03  Bruno Haible  <bruno@clisp.org>
10657
10658         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
10659         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
10660         Set to 100000.
10661
10662 2011-10-03  Bruno Haible  <bruno@clisp.org>
10663
10664         acl: Fix specification.
10665         * lib/file-has-acl.c (file_has_acl): Fix specification.
10666
10667 2011-10-03  Bruno Haible  <bruno@clisp.org>
10668
10669         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
10670         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
10671         (compute_curr_prefix, shared_library_fullname,
10672         find_shared_library_fullname, get_shared_library_fullname, relocate):
10673         Use it together with PIC && INSTALLDIR.
10674         Reported by <jojelino@gmail.com>
10675         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
10676
10677 2011-10-01  Jim Meyering  <meyering@redhat.com>
10678
10679         maint.mk: adjust a release-related rule not to require use of gzip
10680         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
10681         Instead, check each file in $(DIST_ARCHIVES).  This is better for
10682         projects that build only .tar.xz files.  Also fix an erroneous test.
10683
10684         test-linkat: don't leave behind a temporary file
10685         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
10686         Otherwise, coreutils' "make distcheck" would fail with this:
10687           Only in /c/cu/tests/torture/coreutils/test/\
10688             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
10689           make[2]: *** [my-distcheck] Error 1
10690
10691         float, math: add omitted file
10692         * lib/itold.c: Add file, required for yesterday's float change.
10693
10694 2011-10-01  Bruno Haible  <bruno@clisp.org>
10695
10696         isinf: Fix for OpenBSD/x86.
10697         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
10698         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
10699         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
10700
10701 2011-10-01  Bruno Haible  <bruno@clisp.org>
10702
10703         isfinite: Fix syntax error in configure test.
10704         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
10705
10706         isfinite: Fix typo.
10707         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
10708         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
10709
10710 2011-10-01  Bruno Haible  <bruno@clisp.org>
10711
10712         nonblocking tests: Fix test failure on Linux/IA-64.
10713         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
10714         Set to 270000.
10715
10716 2011-10-01  Bruno Haible  <bruno@clisp.org>
10717
10718         mkfifoat tests: Fix a test failure on mingw.
10719         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
10720         with error ENOSYS.
10721
10722 2011-09-30  Bruno Haible  <bruno@clisp.org>
10723
10724         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
10725         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
10726         'long double'. Set REPLACE_ITOLD.
10727         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
10728         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
10729         * lib/itold.c: New file.
10730         * modules/float (Files): Add lib/itold.c.
10731         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
10732         (Makefile.am): Substitute REPLACE_ITOLD.
10733         * modules/math (Depends-on): Add float.
10734         (Makefile.am): Substitute REPLACE_ITOLD.
10735         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
10736         * doc/posix-headers/math.texi: Likewise.
10737         * doc/posix-functions/logl.texi: Likewise.
10738
10739 2011-09-30  Bruno Haible  <bruno@clisp.org>
10740
10741         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
10742         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
10743         Set to 140000.
10744
10745 2011-09-30  Bruno Haible  <bruno@clisp.org>
10746
10747         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
10748         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
10749         invocation, say "right after AC_PROG_CC_STDC", not "right after
10750         AC_PROG_CC".
10751         Reported by Gary V. Vaughan <gary@gnu.org>.
10752
10753 2011-09-30  Bruno Haible  <bruno@clisp.org>
10754
10755         Centralize C99 requirement.
10756         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
10757         * modules/stdarg (configure.ac-early): Invoke it instead of
10758         AC_PROG_CC_STDC.
10759         Reported by Gary V. Vaughan and Paul Eggert.
10760
10761 2011-09-29  Bruno Haible  <bruno@clisp.org>
10762
10763         float: Fix LDBL_MAX value on Linux/PowerPC.
10764         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
10765         on Linux/PowerPC.
10766         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
10767         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
10768         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
10769         platform.
10770         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
10771
10772 2011-09-29  Bruno Haible  <bruno@clisp.org>
10773
10774         doc: Improve doc about gl_EARLY.
10775         * doc/gnulib-tool.texi (Initial import): Mention where to place an
10776         AC_PROG_CC_STDC invocation.
10777         Reported by Gary V. Vaughan <gary@gnu.org>.
10778
10779 2011-09-28  Bruno Haible  <bruno@clisp.org>
10780
10781         fgetc, fputc, fread, fwrite tests: Fix link error.
10782         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
10783         on non-MSVC platforms.
10784         * tests/test-fputc.c (main): Likewise.
10785         * tests/test-fread.c (main): Likewise.
10786         * tests/test-fwrite.c (main): Likewise.
10787         Reported by Jim Meyering.
10788
10789 2011-09-27  Bruno Haible  <bruno@clisp.org>
10790
10791         fputc, fwrite tests: Avoid test failure on MSVC.
10792         * tests/test-fgetc.c: Include msvc-inval.h.
10793         (main): Invoke gl_msvc_inval_ensure_handler.
10794         * tests/test-fputc.c: Include msvc-inval.h.
10795         (main): Invoke gl_msvc_inval_ensure_handler.
10796         * tests/test-fread.c: Include msvc-inval.h.
10797         (main): Invoke gl_msvc_inval_ensure_handler.
10798         * tests/test-fwrite.c: Include msvc-inval.h.
10799         (main): Invoke gl_msvc_inval_ensure_handler.
10800         * modules/fgetc-tests (Depends-on): Add msvc-inval.
10801         * modules/fputc-tests (Depends-on): Likewise.
10802         * modules/fread-tests (Depends-on): Likewise.
10803         * modules/fwrite-tests (Depends-on): Likewise.
10804
10805 2011-09-27  Bruno Haible  <bruno@clisp.org>
10806
10807         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
10808         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
10809         (raise): Remove older, duplicated declaration.
10810         (_gl_raise_SIGPIPE): New declaration.
10811         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
10812         (rpl_raise): Remove function.
10813         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
10814         a gnulib-defined SIGPIPE here.
10815         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
10816         'sigprocmask' has detected missing signal-blocking and the module
10817         'sigpipe' is enabled.
10818         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
10819
10820 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
10821
10822         base64-tests: avoid memory leak
10823         * tests/test-base64.c (main): Plug memory leak.
10824
10825         base32: new module
10826         * modules/base32: New module.
10827         * lib/base32.c: New file.
10828         * lib/base32.h: Likewise.
10829         * m4/base32.m4: Likewise.
10830         * modules/base32-tests: New test.
10831         * tests/test-base32.c: Likewise.
10832         * MODULES.html.sh (Misc): Mention it.
10833
10834 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10835
10836         gnulib: use more-standard license notice wording
10837         * gnulib-tool (func_emit_copyright_notice): When emitting a
10838         license notice into a file, use the standard wording as suggested
10839         by the current information for GNU maintainers, except say "file"
10840         rather than "program".  The new wording gives a license version
10841         number, which addresses an issue raised by Glenn Morris in
10842         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
10843         * m4/onceonly.m4: Use that same wording here, too.
10844
10845         dup2: minor simplification
10846         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
10847         as lib/dup2.c no longer uses 'inline'.
10848
10849 2011-09-25  Bruno Haible  <bruno@clisp.org>
10850
10851         strings: Fix compilation error on MSVC.
10852         * lib/strings.in.h: Include <stddef.h> for size_t.
10853
10854 2011-09-25  Bruno Haible  <bruno@clisp.org>
10855
10856         fflush et al.: Document limitation on MSVC.
10857         * doc/posix-functions/fflush.texi: Document possible crash in handling
10858         mode other than DEFAULT_HANDLING.
10859         * doc/posix-functions/fgetc.texi: Likewise.
10860         * doc/posix-functions/fputc.texi: Likewise.
10861         * doc/posix-functions/fread.texi: Likewise.
10862         * doc/posix-functions/fwrite.texi: Likewise.
10863
10864 2011-09-25  Bruno Haible  <bruno@clisp.org>
10865
10866         msvc-inval: Allow three invalid parameter handling modes.
10867         * lib/msvc-inval.h: Don't include <stdlib.h> here.
10868         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
10869         macros.
10870         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
10871         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
10872         SANE_LIBRARY_HANDLING as a no-op.
10873         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
10874         <stdlib.h>.
10875         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
10876
10877 2011-09-25  Bruno Haible  <bruno@clisp.org>
10878
10879         msvc-inval: Make handler multithread-safe.
10880         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
10881         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
10882         declarations.
10883         (gl_msvc_inval_current): New declaration.
10884         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10885         Operate on the structure returned by gl_msvc_inval_current().
10886         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
10887         Remove varaiables.
10888         (tls_index, tls_initialized): New variables.
10889         (not_per_thread): New variable.
10890         (gl_msvc_inval_current): New function.
10891         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
10892         returned by gl_msvc_inval_current().
10893
10894 2011-09-25  Bruno Haible  <bruno@clisp.org>
10895
10896         msvc-inval: Install handler globally.
10897         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10898         !_MSC_VER.
10899         (gl_msvc_invalid_parameter_handler): Remove declaration.
10900         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10901         declarations.
10902         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10903         Install the handler globally, don't uninstall it.
10904         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10905         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10906         currently valid, call RaiseException instead.
10907         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10908         for !_MSC_VER.
10909
10910 2011-09-25  Bruno Haible  <bruno@clisp.org>
10911
10912         strerror_r-posix: Fix for MSVC 9.
10913         * lib/strerror_r.c (local_snprintf): New function.
10914         (snprintf): Define to local_snprintf, not to _snprintf.
10915
10916 2011-09-25  Bruno Haible  <bruno@clisp.org>
10917
10918         ftruncate: Support for MSVC 9.
10919         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10920         (chsize_nothrow): New function.
10921         (chsize): Redefine as a macro.
10922         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
10923         * modules/ftruncate (Depends-on): Add msvc-inval.
10924
10925 2011-09-25  Bruno Haible  <bruno@clisp.org>
10926
10927         New module 'fstat'.
10928         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
10929         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
10930         * lib/fchdir.c (rpl_fstat): Remove function.
10931         * m4/fstat.m4: New file.
10932         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
10933         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
10934         declared.
10935         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
10936         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
10937         * modules/fstat: New file.
10938         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
10939         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
10940         is set.
10941         * doc/posix-functions/fstat.texi: Mention the new module and the
10942         problem on MSVC.
10943         * NEWS: Mention the change.
10944         * modules/acl (Depends-on): Add fstat.
10945         * modules/chdir-safer (Depends-on): Likewise.
10946         * modules/chown (Depends-on): Likewise.
10947         * modules/copy-file (Depends-on): Likewise.
10948         * modules/fchdir (Depends-on): Likewise.
10949         * modules/fdopendir (Depends-on): Likewise.
10950         * modules/fopen (Depends-on): Likewise.
10951         * modules/fts (Depends-on): Likewise.
10952         * modules/getcwd (Depends-on): Likewise.
10953         * modules/isapipe (Depends-on): Likewise.
10954         * modules/linkat (Depends-on): Likewise.
10955         * modules/lseek (Depends-on): Likewise.
10956         * modules/mkdir-p (Depends-on): Likewise.
10957         * modules/open (Depends-on): Likewise.
10958         * modules/openat (Depends-on): Likewise.
10959         * modules/read-file (Depends-on): Likewise.
10960         * modules/renameat (Depends-on): Likewise.
10961         * modules/utimens (Depends-on): Likewise.
10962
10963 2011-09-25  Bruno Haible  <bruno@clisp.org>
10964
10965         linkat: Fix compilation on MSVC 9.
10966         * lib/linkat.c: Don't include <stdint.h>.
10967
10968 2011-09-25  Bruno Haible  <bruno@clisp.org>
10969
10970         fclose: Support for MSVC 9.
10971         * lib/fclose.c: Include msvc-inval.h.
10972         (fclose_nothrow): New function.
10973         (rpl_fclose): Use it.
10974         * modules/fclose (Depends-on): Add msvc-inval.
10975         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10976
10977 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10978
10979         dup2: minor simplifications
10980         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10981         that it's a performance win.
10982         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10983         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10984
10985 2011-09-24  Jim Meyering  <meyering@redhat.com>
10986
10987         test-futimens: avoid a warning from gcc -Wshadow
10988         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10989         to avoid a shadowing warning.
10990
10991 2011-09-24  Bruno Haible  <bruno@clisp.org>
10992
10993         fdopen: Support for MSVC 9.
10994         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10995         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10996         * lib/fdopen.c: Include msvc-inval.h.
10997         (fdopen_nothrow): New function.
10998         (rpl_fdopen): Use it.
10999         * modules/fdopen (Depends-on): Add msvc-inval.
11000         * modules/fclose-tests (Depends-on): Add fdopen.
11001         * modules/fflush-tests (Depends-on): Likewise.
11002         * modules/fgetc-tests (Depends-on): Likewise.
11003         * modules/fputc-tests (Depends-on): Likewise.
11004         * modules/fread-tests (Depends-on): Likewise.
11005         * modules/freopen-tests (Depends-on): Likewise.
11006         * modules/fseeko-tests (Depends-on): Likewise.
11007         * modules/ftello-tests (Depends-on): Likewise.
11008         * modules/fwrite-tests  (Depends-on): Likewise.
11009         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11010
11011 2011-09-24  Bruno Haible  <bruno@clisp.org>
11012
11013         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11014         * modules/fgetc-tests (Depends-on): Add unistd.
11015         * modules/fputc-tests (Depends-on): Likewise.
11016         * modules/fread-tests (Depends-on): Likewise.
11017         * modules/fwrite-tests (Depends-on): Likewise.
11018
11019 2011-09-24  Bruno Haible  <bruno@clisp.org>
11020
11021         dup: Simplify autoconf test.
11022         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11023         on gl_MSVC_INVAL's result.
11024
11025 2011-09-24  Bruno Haible  <bruno@clisp.org>
11026
11027         Tests for function fwrite().
11028         * modules/fwrite-tests: New file.
11029         * tests/test-fwrite.c: New file.
11030         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11031
11032         Tests for function fread().
11033         * modules/fread-tests: New file.
11034         * tests/test-fread.c: New file.
11035         * modules/stdio-tests (Depends-on): Add fread-tests.
11036
11037         Activate fputc tests.
11038         * modules/stdio-tests (Depends-on): Add fputc-tests.
11039
11040         Enhance fgetc, fputc tests.
11041         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11042         * tests/test-fputc.c (main): Likewise.
11043
11044 2011-09-24  Bruno Haible  <bruno@clisp.org>
11045
11046         write: Support for MSVC 9.
11047         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11048         is not 1.
11049         * lib/write.c (write_nothrow): New function.
11050         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11051         not 1. Use write_nothrow.
11052         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11053         invalid parameter handler.
11054         (gl_PREREQ_WRITE): New macro.
11055         * modules/write (Depends-on): Add msvc-inval.
11056         (configure.ac): Invoke gl_PREREQ_WRITE.
11057         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11058
11059 2011-09-24  Bruno Haible  <bruno@clisp.org>
11060
11061         read: Fix last commit.
11062         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11063
11064 2011-09-24  Bruno Haible  <bruno@clisp.org>
11065
11066         dup2: Fix last commit.
11067         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11068         (rpl_dup2): Disable fcntl workaround on native Windows.
11069
11070         sigprocmask: Make code safer.
11071         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11072         section that changes macro definitions for this compilation unit.
11073
11074 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11075
11076         dup2: clarify by coalescing Windows-specific material
11077         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11078         "msvc-nothrow.h"' to the Windows-specific section, so that the
11079         Emacs source need not contain these include files.
11080         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11081         Windows-specific fixes into this function rather than just the
11082         nothrow fix, as this shortens and clarifies the code.  Always
11083         define as a function, as that's a bit cleaner than having it be
11084         sometimes a function and sometimes a macro.
11085         (rpl_dup2): Move the Windows-specific stuff out of here and into
11086         ms_windows_dup2.  Don't protect the Haiku-related fix with
11087         "#if !defined __linux__", as the same code also works around
11088         a Linux kernel bug, and it doesn't add any system calls on any
11089         platform.  Add comment about FreeBSD 6.1.
11090
11091         sigprocmask: move #include directive
11092         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11093         Windows-specific section, so that the Emacs source need not
11094         contain msvc-inval.h.
11095
11096 2011-09-23  Bruno Haible  <bruno@clisp.org>
11097
11098         read: Support for MSVC 9.
11099         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11100         is not 1.
11101         * lib/read.c (read_nothrow): New function.
11102         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11103         read_nothrow.
11104         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11105         invalid parameter handler.
11106         (gl_PREREQ_READ): New macro.
11107         * modules/read (Depends-on): Add msvc-inval.
11108         (configure.ac): Invoke gl_PREREQ_READ.
11109         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11110
11111 2011-09-23  Bruno Haible  <bruno@clisp.org>
11112
11113         close: Support for MSVC 9.
11114         * lib/close.c: Include <errno.h>, msvc-inval.h.
11115         (close_nothrow): New function.
11116         (rpl_close): Use it.
11117         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11118         invalid parameter handler.
11119         * modules/close (Depends-on): Add msvc-inval.
11120         * modules/dup2-tests (Depends-on): Add close.
11121         * modules/dup3-tests (Depends-on): Likewise.
11122         * modules/fcntl-tests (Depends-on): Likewise.
11123         * modules/spawn-pipe-tests (Depends-on): Likewise.
11124         * modules/unistd-safer-tests (Depends-on): Likewise.
11125         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11126
11127 2011-09-23  Bruno Haible  <bruno@clisp.org>
11128
11129         New module 'dup'.
11130         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11131         Allow replacement.
11132         * lib/dup.c: New file.
11133         * lib/fchdir.c (rpl_dup): Remove function.
11134         * m4/dup.m4: New file.
11135         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11136         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11137         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11138         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11139         * modules/dup: New file.
11140         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11141         'dup' module is in use.
11142         * modules/fdopendir (Depends-on): Add dup.
11143         * modules/fdutimensat-tests (Depends-on): Likewise.
11144         * modules/fts (Depends-on): Likewise.
11145         * modules/futimens-tests (Depends-on): Likewise.
11146         * modules/posix_spawnp-tests (Depends-on): Likewise.
11147         * modules/unistd-safer-tests (Depends-on): Likewise.
11148         * modules/utimens-tests (Depends-on): Likewise.
11149         * doc/posix-functions/dup.texi: Mention the new module and the problem
11150         on MSVC.
11151
11152 2011-09-23  Bruno Haible  <bruno@clisp.org>
11153
11154         getdtablesize: Support for MSVC 9.
11155         * lib/getdtablesize.c: Include msvc-inval.h.
11156         (_setmaxstdio_nothrow): New function.
11157         (_setmaxstdio): Redefine it.
11158         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11159         * modules/getdtablesize (Depends-on): Add msvc-inval.
11160         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11161
11162 2011-09-23  Bruno Haible  <bruno@clisp.org>
11163
11164         signal-h: Rename from signal.
11165         * modules/signal-h: Renamed from modules/signal.
11166         * modules/pthread_sigmask (Depends-on): Update.
11167         * modules/raise (Depends-on): Likewise.
11168         * modules/sigaction (Depends-on): Likewise.
11169         * modules/sigpipe (Depends-on): Likewise.
11170         * modules/sigprocmask (Depends-on): Likewise.
11171         * modules/sys_select (Depends-on): Likewise.
11172         * modules/signal-h-tests: Renamed from modules/signal-tests.
11173         (Files, Depends-on, Makefile.am): Update.
11174         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11175         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11176         (Files, Makefile.am): Update.
11177         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11178         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11179         * modules/signal: New placeholder file.
11180         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11181         * doc/posix-headers/signal.texi: Update.
11182         * NEWS: Mention the change.
11183
11184 2011-09-23  Bruno Haible  <bruno@clisp.org>
11185
11186         sigprocmask: Avoid crashes through signal() on MSVC 9.
11187         * lib/sigprocmask.c: Include msvc-inval.h.
11188         (signal_nothrow): New function.
11189         (signal): Redefine it.
11190         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11191         * modules/sigprocmask (Depends-on): Add msvc-inval.
11192         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11193
11194 2011-09-23  Bruno Haible  <bruno@clisp.org>
11195
11196         Tests for module 'raise'.
11197         * modules/raise-tests: New file.
11198         * tests/test-raise.c: New file.
11199
11200         raise: Support for MSVC.
11201         * lib/signal.in.h (raise): New declaration.
11202         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11203         for native Windows platforms.
11204         * m4/raise.m4: New file.
11205         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11206         HAVE_RAISE, REPLACE_RAISE.
11207         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11208         REPLACE_RAISE.
11209         * modules/raise (Status, Notice): Remove fields.
11210         (Files): Add m4/raise.m4.
11211         (Depends-on): Add signal, msvc-inval.
11212         (configure.ac): Use the common idioms.
11213         (Maintainer): Add me.
11214         * tests/test-signal-c++.cc: Check the signature of raise.
11215         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11216
11217 2011-09-23  Bruno Haible  <bruno@clisp.org>
11218
11219         pipe2: Fix compilation on pre-C99 compilers.
11220         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11221
11222 2011-09-23  Bruno Haible  <bruno@clisp.org>
11223
11224         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11225         * lib/msvc-nothrow.h: New file.
11226         * lib/msvc-nothrow.c: New file.
11227         * m4/msvc-nothrow.m4: New file.
11228         * modules/msvc-nothrow: New file.
11229         * lib/dup2.c: Include msvc-nothrow.h.
11230         (rpl_dup2): No need to protect _get_osfhandle call here.
11231         * lib/accept4.c: Include msvc-nothrow.h.
11232         * lib/error.c: Likewise.
11233         * lib/fcntl.c: Likewise.
11234         * lib/lseek.c: Likewise.
11235         * lib/nonblocking.c: Likewise.
11236         * lib/poll.c: Likewise.
11237         * lib/read.c: Likewise.
11238         * lib/select.c: Likewise.
11239         * lib/sockets.h: Likewise.
11240         * lib/sockets.c: Likewise.
11241         * lib/stdio-read.c: Likewise.
11242         * lib/stdio-write.c: Likewise.
11243         * lib/write.c: Likewise.
11244         * lib/w32sock.h: Likewise.
11245         * lib/w32spawn.h: Likewise.
11246         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11247         * lib/fsync.c: Likewise.
11248         * lib/isapipe.c: Likewise.
11249         * modules/dup2 (Depends-on): Add msvc-nothrow.
11250         * modules/accept4 (Depends-on): Likewise.
11251         * modules/error (Depends-on): Likewise.
11252         * modules/fcntl (Depends-on): Likewise.
11253         * modules/lseek (Depends-on): Likewise.
11254         * modules/nonblocking (Depends-on): Likewise.
11255         * modules/poll (Depends-on): Likewise.
11256         * modules/read (Depends-on): Likewise.
11257         * modules/select (Depends-on): Likewise.
11258         * modules/sockets (Depends-on): Likewise.
11259         * modules/sigpipe (Depends-on): Likewise.
11260         * modules/write (Depends-on): Likewise.
11261         * modules/accept (Depends-on): Likewise.
11262         * modules/bind (Depends-on): Likewise.
11263         * modules/connect (Depends-on): Likewise.
11264         * modules/gethostname (Depends-on): Likewise.
11265         * modules/getpeername (Depends-on): Likewise.
11266         * modules/getsockname (Depends-on): Likewise.
11267         * modules/getsockopt (Depends-on): Likewise.
11268         * modules/ioctl (Depends-on): Likewise.
11269         * modules/listen (Depends-on): Likewise.
11270         * modules/recv (Depends-on): Likewise.
11271         * modules/recvfrom (Depends-on): Likewise.
11272         * modules/send (Depends-on): Likewise.
11273         * modules/sendto (Depends-on): Likewise.
11274         * modules/setsockopt (Depends-on): Likewise.
11275         * modules/shutdown (Depends-on): Likewise.
11276         * modules/socket (Depends-on): Likewise.
11277         * modules/execute (Depends-on): Likewise.
11278         * modules/spawn-pipe (Depends-on): Likewise.
11279         * modules/flock (Depends-on): Likewise.
11280         * modules/fsync (Depends-on): Likewise.
11281         * modules/isapipe (Depends-on): Likewise.
11282         * tests/test-cloexec.c: Include msvc-nothrow.h.
11283         * tests/test-dup-safer.c: Likewise.
11284         * tests/test-dup2.c: Likewise.
11285         * tests/test-dup3.c: Likewise.
11286         * tests/test-fcntl.c: Likewise.
11287         * tests/test-pipe.c: Likewise.
11288         * tests/test-pipe2.c: Likewise.
11289         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11290         * modules/unistd-safer-tests (Depends-on): Likewise.
11291         * modules/dup2-tests (Depends-on): Likewise.
11292         * modules/dup3-tests (Depends-on): Likewise.
11293         * modules/fcntl-tests (Depends-on): Likewise.
11294         * modules/pipe-posix-tests (Depends-on): Likewise.
11295         * modules/pipe2-tests (Depends-on): Likewise.
11296
11297 2011-09-23  Bruno Haible  <bruno@clisp.org>
11298
11299         dup2: Make code more maintainable.
11300         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11301         (rpl_dup2): Use it.
11302         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11303         * modules/dup2 (configure.ac): Invoke it.
11304         Reported by Paul Eggert.
11305
11306 2011-09-23  Bruno Haible  <bruno@clisp.org>
11307
11308         msvc-inval: Fix compilation error.
11309         * lib/msvc-inval.h: Include <excpt.h>.
11310
11311 2011-09-23  Bruno Haible  <bruno@clisp.org>
11312
11313         mkdir: Tweak for MSVC 9.
11314         * lib/sys_stat.in.h: Update comments.
11315         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11316
11317         Tests for module 'chdir'.
11318         * modules/chdir-tests: New file.
11319         * tests/test-chdir.c: New file.
11320
11321         New module 'chdir'.
11322         * modules/chdir: New file.
11323         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11324         (chdir): New declaration.
11325         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11326         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11327         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11328         * tests/test-unistd-c++.cc: Check signature of chdir.
11329         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11330         * modules/chdir-long (Depends-on): Add chdir.
11331         * modules/fchdir (Depends-on): Likewise.
11332         * modules/rename (Depends-on): Likewise.
11333         * modules/savewd (Depends-on): Likewise.
11334
11335         rmdir: Support for mingw, MSVC 9.
11336         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11337         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11338
11339         getcwd: Tweak for MSVC 9.
11340         * lib/unistd.in.h: Update comments.
11341         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11342
11343 2011-09-22  Bruno Haible  <bruno@clisp.org>
11344
11345         strerror_r-posix: Avoid a link error on MSVC.
11346         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11347         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11348
11349 2011-09-22  Bruno Haible  <bruno@clisp.org>
11350
11351         select: Avoid link errors on MSVC.
11352         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11353         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11354         * modules/pselect (Link): Likewise.
11355         * NEWS: Mention the change.
11356         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11357         test-select-stdin against $(LIB_SELECT).
11358         * modules/pselect-tests (Makefile.am): Link test-pselect against
11359         $(LIB_SELECT).
11360
11361 2011-09-22  Bruno Haible  <bruno@clisp.org>
11362
11363         select: Avoid compilation error on MSVC.
11364         * lib/select.c: Don't include <stdbool.h>.
11365
11366 2011-09-21  Bruno Haible  <bruno@clisp.org>
11367
11368         Consolidate all uses of PATH_MAX in *.m4 files.
11369         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11370         macros.
11371         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11372         and gl_PATHMAX_SNIPPET.
11373         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11374         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11375         * modules/chdir-long (Files): Add m4/pathmax.m4.
11376         * modules/getcwd (Files): Likewise.
11377
11378 2011-09-21  Bruno Haible  <bruno@clisp.org>
11379
11380         ftruncate: Un-deprecate, concentrate on Win32 support.
11381         * modules/ftruncate (Status, Notice): Remove sections.
11382         (Depends-on): Add largefile.
11383         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11384         non-mingw platforms.
11385         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11386         include <io.h>.
11387         * modules/perror-tests (Depends-on): Add ftruncate.
11388         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11389         'ftruncate' module.
11390
11391 2011-09-21  Bruno Haible  <bruno@clisp.org>
11392
11393         Add dependencies to new dirent related modules.
11394         * modules/opendir (Depends-on): Add closedir.
11395         * modules/getcwd (Depends-on): Add opendir, closedir.
11396         * modules/dirent-safer-tests (Depends-on): Likewise.
11397         * modules/fdopendir-tests (Depends-on): Likewise.
11398         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11399         * modules/renameat-tests (Depends-on): Likewise.
11400
11401 2011-09-21  Bruno Haible  <bruno@clisp.org>
11402
11403         opendir: Avoid compilation error on mingw.
11404         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11405         * modules/opendir (Depends-on): Add unistd.
11406
11407 2011-09-21  Bruno Haible  <bruno@clisp.org>
11408
11409         ftruncate tests: Avoid a test failure on mingw.
11410         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11411
11412 2011-09-21  Bruno Haible  <bruno@clisp.org>
11413
11414         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11415         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11416         native Windows.
11417
11418 2011-09-21  Bruno Haible  <bruno@clisp.org>
11419
11420         New module 'fdopen'.
11421         * lib/stdio.in.h (fdopen): New declaration.
11422         * lib/fdopen.c: New file.
11423         * m4/fdopen.m4: New file.
11424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11425         REPLACE_FDOPEN.
11426         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11427         REPLACE_FDOPEN.
11428         * modules/fdopen: New file.
11429         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11430         * tests/test-stdio-c++.cc: Check signature of fdopen.
11431         * doc/posix-functions/fdopen.texi: Mention the new module.
11432
11433 2011-09-21  Bruno Haible  <bruno@clisp.org>
11434
11435         unlockpt tests: Avoid test failure on NetBSD 5.1.
11436         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11437         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11438
11439 2011-09-21  Bruno Haible  <bruno@clisp.org>
11440
11441         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11442         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11443         * tests/test-getlogin_r.c (main): Likewise.
11444
11445 2011-09-20  Bruno Haible  <bruno@clisp.org>
11446
11447         time tests: Don't require pid_t.
11448         * doc/posix-headers/time.texi: Revert last change.
11449         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11450         * tests/test-time.c: Comment out the check for pid_t.
11451
11452 2011-09-20  Bruno Haible  <bruno@clisp.org>
11453
11454         fsync tests: Avoid a test failure on mingw.
11455         * tests/test-fsync.c (main): Allow a failure with EIO.
11456
11457 2011-09-20  Bruno Haible  <bruno@clisp.org>
11458
11459         euidaccess: Update comments.
11460         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11461
11462 2011-09-20  Bruno Haible  <bruno@clisp.org>
11463
11464         Ensure EBADF returns for socket functions on mingw.
11465         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11466         descriptor is invalid.
11467         * lib/bind.c (rpl_bind): Likewise.
11468         * lib/connect.c (rpl_connect): Likewise.
11469         * lib/getpeername.c (rpl_getpeername): Likewise.
11470         * lib/getsockname.c (rpl_getsockname): Likewise.
11471         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11472         * lib/listen.c (rpl_listen): Likewise.
11473         * lib/recv.c (rpl_recv): Likewise.
11474         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11475         * lib/send.c (rpl_send): Likewise.
11476         * lib/sendto.c (rpl_sendto): Likewise.
11477         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11478         * lib/shutdown.c (rpl_shutdown): Likewise.
11479
11480 2011-09-20  Bruno Haible  <bruno@clisp.org>
11481
11482         select tests: EBADF tests.
11483         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11484         test_bad_fd): New functions.
11485         (test_function): Invoke also test_bad_fd.
11486
11487 2011-09-20  Bruno Haible  <bruno@clisp.org>
11488
11489         Tests for module 'posix_spawn_file_actions_addopen.
11490         * modules/posix_spawn_file_actions_addopen-tests: New file.
11491         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11492
11493         Tests for module 'posix_spawn_file_actions_adddup2'.
11494         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11495         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11496
11497         Tests for module 'posix_spawn_file_actions_addclose'.
11498         * modules/posix_spawn_file_actions_addclose-tests: New file.
11499         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11500
11501 2011-09-20  Bruno Haible  <bruno@clisp.org>
11502
11503         Tests for module 'unlockpt'.
11504         * modules/unlockpt-tests: New file.
11505         * tests/test-unlockpt.c: New file.
11506         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
11507
11508         Tests for module 'grantpt'.
11509         * modules/grantpt-tests: New file.
11510         * tests/test-grantpt.c: New file.
11511         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
11512
11513 2011-09-20  Bruno Haible  <bruno@clisp.org>
11514
11515         freopen tests: EBADF tests.
11516         * tests/test-freopen.c: Include errno.h, unistd.h.
11517         (main): Add tests for EBADF, commented out for the moment.
11518
11519         fclose tests: EBADF tests.
11520         * tests/test-fclose.c (main): Add tests for EBADF.
11521
11522         fflush tests: EBADF tests.
11523         * tests/test-fflush.c: Include errno.h, macros.h.
11524         (main): Add tests for EBADF.
11525
11526         ftello tests: EBADF tests.
11527         * tests/test-ftello4.sh: New file.
11528         * tests/test-ftello4.c: New file.
11529         * modules/ftello-tests (Files): Add them.
11530         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
11531
11532         fseeko tests: EBADF tests.
11533         * tests/test-fseeko4.sh: New file.
11534         * tests/test-fseeko4.c: New file.
11535         * modules/fseeko-tests (Files): Add them.
11536         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
11537
11538         Tests for function fputc().
11539         * modules/fputc-tests: New file.
11540         * tests/test-fputc.c: New file.
11541         * modules/stdio-tests (Depends-on): Add fputc-tests.
11542
11543         Tests for function fgetc().
11544         * modules/fgetc-tests: New file.
11545         * tests/test-fgetc.c: New file.
11546         * modules/stdio-tests (Depends-on): Add fgetc-tests.
11547
11548         Tests for function fdopen().
11549         * modules/fdopen-tests: New file.
11550         * tests/test-fdopen.c: New file.
11551         * modules/stdio-tests (Depends-on): Add fdopen-tests.
11552
11553         Tests for module 'vdprintf'.
11554         * modules/vdprintf-tests: New file.
11555         * tests/test-vdprintf.c: New file.
11556
11557         Tests for module 'dprintf'.
11558         * modules/dprintf-tests: New file.
11559         * tests/test-dprintf.c: New file.
11560
11561 2011-09-20  Bruno Haible  <bruno@clisp.org>
11562
11563         Tests for module 'ioctl'.
11564         * modules/ioctl-tests: New file.
11565         * tests/test-ioctl.c: New file.
11566
11567 2011-09-20  Bruno Haible  <bruno@clisp.org>
11568
11569         fcntl tests: EBADF tests.
11570         * tests/test-fcntl.c (main): Add more tests for EBADF.
11571
11572 2011-09-20  Bruno Haible  <bruno@clisp.org>
11573
11574         utimensat tests: EBADF tests.
11575         * tests/test-utimensat.c (main): Add tests for EBADF.
11576
11577         renameat tests: EBADF tests.
11578         * tests/test-renameat.c (main): Add tests for EBADF.
11579
11580         mkfifoat tests: EBADF tests.
11581         * tests/test-mkfifoat.c (main): Add tests for EBADF.
11582
11583         readlinkat tests: EBADF tests.
11584         * tests/test-readlinkat.c (main): Add tests for EBADF.
11585
11586         symlinkat tests: EBADF tests.
11587         * tests/test-symlinkat.c (main): Add tests for EBADF.
11588
11589         linkat tests: EBADF tests.
11590         * tests/test-linkat.c (main): Add tests for EBADF.
11591
11592         Tests for module 'faccessat'.
11593         * modules/faccessat-tests: New file.
11594         * tests/test-faccessat.c: New file.
11595
11596         fdopendir tests: EBADF tests.
11597         * tests/test-fdopendir.c (main): Add more tests for EBADF.
11598
11599         openat tests: EBADF tests.
11600         * tests/test-fchownat.c (main): Add tests for EBADF.
11601         * tests/test-fstatat.c (main): Likewise.
11602         * tests/test-mkdirat.c (main): Likewise.
11603         * tests/test-openat.c (main): Likewise.
11604         * tests/test-unlinkat.c (main): Likewise.
11605         * tests/test-fchmodat.c: New file.
11606         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
11607         (Makefile.am): Also run 'test-fchmodat'.
11608
11609 2011-09-20  Bruno Haible  <bruno@clisp.org>
11610
11611         utimens, futimens, fdutimensat tests: EBADF tests.
11612         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
11613
11614         Tests for function fstat().
11615         * modules/fstat-tests: New file.
11616         * tests/test-fstat.c: New file.
11617         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
11618
11619 2011-09-20  Bruno Haible  <bruno@clisp.org>
11620
11621         test-ttyname_r tests: EBADF tests.
11622         * tests/test-ttyname_r.c (main): Add tests for EBADF.
11623
11624         Tests for module 'isatty'.
11625         * modules/isatty-tests: New file.
11626         * tests/test-isatty.c: New file.
11627
11628         Tests for module 'write'.
11629         * modules/write-tests: New file.
11630         * tests/test-write.c: New file.
11631
11632         Tests for module 'read'.
11633         * modules/read-tests: New file.
11634         * tests/test-read.c: New file.
11635
11636         pwrite tests: EBADF tests.
11637         * tests/test-pwrite.c (main): Add tests for EBADF.
11638
11639         pread tests: EBADF tests.
11640         * tests/test-pread.c (main): Add tests for EBADF.
11641
11642         lseek tests: EBADF tests.
11643         * tests/test-lseek.c (main): Add more tests for EBADF.
11644
11645         Tests for module 'ftruncate'.
11646         * modules/ftruncate-tests: New file.
11647         * tests/test-ftruncate.sh: New file.
11648         * tests/test-ftruncate.c: New file.
11649
11650         fsync tests: EBADF tests.
11651         * tests/test-fsync.c (main): Add more tests for EBADF.
11652
11653         fdatasync tests: EBADF tests.
11654         * tests/test-fdatasync.c (main): Add more tests for EBADF.
11655
11656         Tests for module 'fchown'.
11657         * modules/fchown-tests: New file.
11658         * tests/test-fchown.c: New file.
11659
11660         Tests for module 'fchmod'.
11661         * modules/fchmod-tests: New file.
11662         * tests/test-fchmod.c: New file.
11663
11664         fchdir tests: EBADF tests.
11665         * tests/test-fchdir.c (main): Add more tests for EBADF.
11666
11667         dup2 tests: EBADF tests.
11668         * tests/test-dup2.c (main): Add more tests for EBADF.
11669
11670         Tests for module 'dup'.
11671         * modules/dup-tests: New file.
11672         * tests/test-dup.c: New file.
11673
11674         Tests for module 'close'.
11675         * modules/close-tests: New file.
11676         * tests/test-close.c: New file.
11677
11678 2011-09-20  Bruno Haible  <bruno@clisp.org>
11679
11680         Tests for module 'shutdown'.
11681         * modules/shutdown-tests: New file.
11682         * tests/test-shutdown.c: New file.
11683
11684         Tests for module 'setsockopt'.
11685         * modules/setsockopt-tests: New file.
11686         * tests/test-setsockopt.c: New file.
11687
11688         Tests for module 'sendto'.
11689         * modules/sendto-tests: New file.
11690         * tests/test-sendto.c: New file.
11691
11692         Tests for module 'send'.
11693         * modules/send-tests: New file.
11694         * tests/test-send.c: New file.
11695
11696         Tests for module 'recvfrom'.
11697         * modules/recvfrom-tests: New file.
11698         * tests/test-recvfrom.c: New file.
11699
11700         Tests for module 'recv'.
11701         * modules/recv-tests: New file.
11702         * tests/test-recv.c: New file.
11703
11704         Tests for module 'listen'.
11705         * modules/listen-tests: New file.
11706         * tests/test-listen.c: New file.
11707
11708         Tests for module 'getsockopt'.
11709         * modules/getsockopt-tests: New file.
11710         * tests/test-getsockopt.c: New file.
11711
11712         Tests for module 'getsockname'.
11713         * modules/getsockname-tests: New file.
11714         * tests/test-getsockname.c: New file.
11715
11716         Tests for module 'getpeername'.
11717         * modules/getpeername-tests: New file.
11718         * tests/test-getpeername.c: New file.
11719
11720         Tests for module 'connect'.
11721         * modules/connect-tests: New file.
11722         * tests/test-connect.c: New file.
11723
11724         Tests for module 'bind'.
11725         * modules/bind-tests: New file.
11726         * tests/test-bind.c: New file.
11727
11728         accept4 tests: Fix for native Windows.
11729         * tests/test-accept4.c: Include sockets.h.
11730         (main): Invoke gl_sockets_startup.
11731         * modules/accept4-tests (Depends-on): Add sockets.
11732
11733         accept tests: Fix for native Windows.
11734         * tests/test-accept.c: Include sockets.h.
11735         (main): Invoke gl_sockets_startup.
11736         * modules/accept-tests (Depends-on): Add sockets.
11737
11738 2011-09-19  Bruno Haible  <bruno@clisp.org>
11739
11740         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
11741         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
11742         do...while(0).
11743         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
11744         Suggested by Paul Eggert.
11745
11746 2011-09-19  Bruno Haible  <bruno@clisp.org>
11747
11748         sched: Ensure pid_t is defined.
11749         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
11750         not define pid_t.
11751         * lib/sched.in.h: Include <sys/types.h>.
11752         * doc/posix-headers/sched.texi: Mention the pid_t problem.
11753         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11754
11755 2011-09-19  Bruno Haible  <bruno@clisp.org>
11756
11757         msvc-inval: Ensure the entire expansion is a single statement.
11758         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
11759         of braces.
11760
11761 2011-09-19  Jim Meyering  <meyering@redhat.com>
11762
11763         tests: use printf, not echo in init.sh's warn_ function
11764         * tests/init.sh (warn_): Use printf, not echo.  The latter would
11765         misbehave when given strings containing a backslash or starting
11766         with e.g., -n.  James Youngman suggested setting IFS.
11767
11768 2011-09-19  Eric Blake  <eblake@redhat.com>
11769
11770         futimens: enhance test
11771         * tests/test-futimens.h (test_futimens): Also check for EBADF on
11772         closed non-negative fd.
11773
11774         date: accept 'hence' as opposite of 'ago'
11775         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
11776         * tests/test-parse-datetime.c (main): Enhance test.
11777         Suggested by Jesse Wilson.
11778
11779 2011-09-19  Jim Meyering  <meyering@redhat.com>
11780
11781         getcwd: don't fail in a deep directory on a system without openat
11782         Before this change, getcwd would fail when called from a directory
11783         of depth PATH_MAX / 3 or greater.  That was due to the fact that
11784         the non-openat implementation used "..", "../..", "../../..", etc.
11785         to access ancestor directories.  With too many, that string would
11786         be longer than PATH_MAX.
11787         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
11788         using gnulib's openat replacement.
11789         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
11790         we're using the replacement function.
11791
11792 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
11793
11794         maint.mk: avoid warnings from perl about missing files
11795         * top/maint.mk (def_sym_regex): Ignore files listed in
11796         $(gl_other_headers_) that do not exist, say because a project
11797         does not use a corresponding module.
11798
11799 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
11800
11801         stat: use pathmax.h only if needed
11802         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
11803         This is better for Emacs, which does not have a mingw port and
11804         therefore can avoid the pathmax module.
11805
11806         utimens: remove dependency on dup2
11807         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
11808         to work around the Linux kernel bug.
11809         * modules/utimens (Depends-on): Remove dup2.
11810
11811 2011-09-18  Bruno Haible  <bruno@clisp.org>
11812
11813         inet_ntop, inet_pton: Look for it also in libresolv.
11814         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
11815         libnsl, search for it in libresolv.
11816         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11817         Needed on Solaris 7.
11818
11819 2011-09-18  Bruno Haible  <bruno@clisp.org>
11820
11821         accept, accept4 tests: Avoid link error on Solaris.
11822         * modules/accept-tests (Makefile.am): Link test-accept against
11823         $(LIBSOCKET).
11824         * modules/accept4-tests (Makefile.am): Link test-accept4 against
11825         $(LIBSOCKET).
11826
11827         accept4: Avoid link error on Solaris.
11828         * modules/accept4 (Link): New section.
11829
11830         socket functions: Avoid link errors on Solaris.
11831         * modules/accept (Depends-on): Add socketlib.
11832         (Link): New section.
11833         * modules/bind (Depends-on): Add socketlib.
11834         (Link): New section.
11835         * modules/connect (Depends-on): Add socketlib.
11836         (Link): New section.
11837         * modules/getpeername (Depends-on): Add socketlib.
11838         (Link): New section.
11839         * modules/getsockname (Depends-on): Add socketlib.
11840         (Link): New section.
11841         * modules/getsockopt (Depends-on): Add socketlib.
11842         (Link): New section.
11843         * modules/listen (Depends-on): Add socketlib.
11844         (Link): New section.
11845         * modules/recv (Depends-on): Add socketlib.
11846         (Link): New section.
11847         * modules/recvfrom (Depends-on): Add socketlib.
11848         (Link): New section.
11849         * modules/send (Depends-on): Add socketlib.
11850         (Link): New section.
11851         * modules/sendto (Depends-on): Add socketlib.
11852         (Link): New section.
11853         * modules/setsockopt (Depends-on): Add socketlib.
11854         (Link): New section.
11855         * modules/shutdown (Depends-on): Add socketlib.
11856         (Link): New section.
11857         * modules/socket (Depends-on): Add socketlib.
11858         (Link): New section.
11859
11860 2011-09-18  Bruno Haible  <bruno@clisp.org>
11861
11862         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
11863         * tests/test-ptsname.c (main): Terminate the test if it takes longer
11864         than 5 seconds.
11865         * modules/ptsname-tests (configure.ac): Test for alarm.
11866
11867 2011-09-18  Bruno Haible  <bruno@clisp.org>
11868
11869         posix_spawn_file_actions_add*: Fix module dependencies.
11870         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
11871         posix_spawn_file_actions_init.
11872         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
11873         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
11874
11875 2011-09-18  Bruno Haible  <bruno@clisp.org>
11876
11877         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
11878         * tests/test-rename.h (test_rename): Allow error code EEXIST.
11879         * tests/test-renameat.c (main): Likewise.
11880
11881 2011-09-18  Bruno Haible  <bruno@clisp.org>
11882
11883         Tests for module 'accept4'.
11884         * modules/accept4-tests: New file.
11885         * tests/test-accept4.c: New file.
11886
11887 2011-09-18  Bruno Haible  <bruno@clisp.org>
11888
11889         Tests for module 'accept'.
11890         * modules/accept-tests: New file.
11891         * tests/test-accept.c: New file.
11892
11893 2011-09-18  Bruno Haible  <bruno@clisp.org>
11894
11895         dup2: Support for MSVC.
11896         * lib/dup2.c: Include msvc-inval.h.
11897         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11898         _get_osfhandle calls.
11899         * modules/dup2 (Depends-on): Add msvc-inval.
11900         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11901
11902         New module 'msvc-inval'.
11903         * lib/msvc-inval.h: New file.
11904         * lib/msvc-inval.c: New file.
11905         * m4/msvc-inval.m4: New file.
11906         * modules/msvc-inval: New file.
11907
11908 2011-09-17  Bruno Haible  <bruno@clisp.org>
11909
11910         Tests for module 'pclose'.
11911         * modules/pclose-tests: New file.
11912
11913         New module 'pclose'.
11914         * lib/stdio.in.h (pclose): New declaration.
11915         * lib/pclose.c: New file.
11916         * m4/pclose.m4: New file.
11917         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11918         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11919         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11920         * modules/pclose: New file.
11921         * modules/popen-tests (Depends-on): Add pclose.
11922         * modules/popen-safer-tests (Depends-on): Likewise.
11923         * doc/posix-functions/pclose.texi: Mention the new module.
11924
11925 2011-09-17  Bruno Haible  <bruno@clisp.org>
11926
11927         popen: Support for MSVC.
11928         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
11929         * lib/popen.c (popen): Provide alternate definition for native Windows.
11930         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
11931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
11932         * modules/popen (Depends-on, configure.ac): Update condition.
11933         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
11934         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
11935         fixed.
11936
11937 2011-09-17  Bruno Haible  <bruno@clisp.org>
11938
11939         isnanl, isnand, isnanf: Work around MSVC bug.
11940         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
11941
11942 2011-09-17  Bruno Haible  <bruno@clisp.org>
11943
11944         sys_socket tests: Fix recent mistake.
11945         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
11946
11947 2011-09-17  Bruno Haible  <bruno@clisp.org>
11948
11949         putenv: Support for MSVC.
11950         * modules/putenv (Depends-on): Add environ.
11951         * lib/putenv.c (environ): Disable declaration.
11952         * lib/unistd.in.h: Update comment.
11953
11954 2011-09-17  Bruno Haible  <bruno@clisp.org>
11955
11956         math: Avoid macro redefinition warnings on MSVC.
11957         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
11958         Undefine before redefining.
11959
11960 2011-09-17  Bruno Haible  <bruno@clisp.org>
11961
11962         doc: Mention functions which are declared as macros.
11963         * doc/posix-functions/*[fl].texi: Mention that some functions are
11964         defined as macros with arguments only.
11965
11966 2011-09-17  Bruno Haible  <bruno@clisp.org>
11967
11968         Add dependencies to new dirent related modules.
11969         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
11970         * modules/fts (Depends-on): Likewise.
11971         * modules/glob (Depends-on): Likewise.
11972         * modules/savedir (Depends-on): Likewise.
11973         * modules/scandir (Depends-on): Likewise.
11974         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11975         * modules/fdopendir (Depends-on): Add opendir.
11976
11977 2011-09-17  Bruno Haible  <bruno@clisp.org>
11978
11979         inet_pton: Support for MSVC on Windows Vista or newer.
11980         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11981         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11982         HAVE_DECL_INET_PTON is defined.
11983         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11984         On platforms with <winsock2.h>, test whether inet_pton is declared in
11985         <ws2tcpip.h>. If so, arrange to replace it.
11986         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11987         REPLACE_INET_PTON.
11988         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11989         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11990         (Depends-on, configure.ac): Update condition.
11991         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11992
11993 2011-09-17  Bruno Haible  <bruno@clisp.org>
11994
11995         inet_ntop: Support for MSVC on Windows Vista or newer.
11996         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11997         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11998         HAVE_DECL_INET_NTOP is defined.
11999         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12000         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12001         <ws2tcpip.h>. If so, arrange to replace it.
12002         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12003         REPLACE_INET_NTOP.
12004         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12005         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12006         (Depends-on, configure.ac): Update condition.
12007         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12008
12009 2011-09-16  Eric Blake  <eblake@redhat.com>
12010
12011         test-fsync: yet another enhancement
12012         * tests/test-fsync.c (main): Also test behavior on read-only text
12013         file.
12014
12015 2011-09-16  Bruno Haible  <bruno@clisp.org>
12016
12017         Enhance fsync, fdatasync tests.
12018         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12019         * tests/test-fdatasync.c (main): Likewise.
12020
12021 2011-09-16  Bruno Haible  <bruno@clisp.org>
12022
12023         Support for MSVC compiler: Ensure mode_t gets defined.
12024         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12025         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12026         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12027         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12028         * tests/test-fcntl-h.c: Check that mode_t is defined.
12029         * tests/test-sys_stat.c: Likewise.
12030         * tests/test-sys_types.c: Likewise.
12031         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12032         * doc/posix-headers/sys_stat.texi: Likewise.
12033         * doc/posix-headers/sys_types.texi: Likewise.
12034
12035 2011-09-16  Bruno Haible  <bruno@clisp.org>
12036
12037         sys_stat: Support for MSVC.
12038         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12039         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12040         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12041         MSVC.
12042
12043 2011-09-16  Bruno Haible  <bruno@clisp.org>
12044
12045         Support for MSVC compiler: Ensure off_t gets defined.
12046         * lib/unistd.in.h: Include <sys/types.h>.
12047         * tests/test-fcntl-h.c: Check that off_t is defined.
12048         * tests/test-sys_stat.c: Likewise.
12049         * tests/test-sys_types.c: Likewise.
12050
12051 2011-09-16  Eric Blake  <eblake@redhat.com>
12052
12053         fdatasync: port to Solaris
12054         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12055         * modules/fdatasync (Link): Document it.
12056         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12057
12058         fdatasync: port to MacOS X 10.7
12059         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12060         declared.
12061         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12062         * modules/unistd (Makefile.am): Substitute it.
12063         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12064         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12065
12066         fdatasync: minor improvements
12067         * modules/fdatasync (Depends-on): Add condition for fsync.
12068         * lib/fdatasync.c (fdatasync): Add comment.
12069         * tests/test-unistd-c++.cc: Test fdatasync.
12070
12071         unistd: update refs to newer POSIX
12072         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12073         Suggested by Bruno Haible.
12074
12075         fdatasync: new module
12076         * modules/fsync (Description): Document difference to fdatasync.
12077         * modules/fdatasync: New module.
12078         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12079         * lib/fdatasync.c (fdatasync): Likewise.
12080         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12081         defaults.
12082         * modules/unistd (Makefile.am): Set witnesses.
12083         * lib/unistd.in.h (fdatasync): Declare.
12084         * MODULES.html.sh: Document it.
12085         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12086         * modules/fdatasync-tests: New test.
12087         * tests/test-fdatasync.c: Likewise.
12088
12089 2011-09-16  Eric Blake  <eblake@redhat.com>
12090
12091         test-fsync: enhance tests
12092         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12093         * tests/test-fsync.c (main): Enhance test.
12094
12095 2011-09-15  Bruno Haible  <bruno@clisp.org>
12096
12097         Support for MSVC compiler: Ensure ssize_t gets defined.
12098         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12099         * doc/posix-headers/stdio.texi: Likewise.
12100         * modules/stdio (Depends-on): Add ssize_t.
12101         * modules/sys_socket (Depends-on): Likewise.
12102         * modules/sys_types (Depends-on): Likewise.
12103         * modules/sys_uio (Depends-on): Likewise.
12104         * modules/unistd (Depends-on): Likewise.
12105         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12106         * tests/test-sys_types.c: Check that ssize_t is defined.
12107
12108 2011-09-14  Bruno Haible  <bruno@clisp.org>
12109
12110         Avoid using #, the m4 comment starter character, near brackets.
12111         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12112         delimiter character in sed expressions.
12113         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12114         Suggested by Eric Blake.
12115
12116         Properly quote AC_CHECK_DECLS' 4th argument.
12117         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12118         argument.
12119         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12120         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12121         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12122         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12123         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12124         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12125         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12126         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12127         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12128         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12129         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12130         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12131         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12132         * m4/isinf.m4 (gl_ISINF): Likewise.
12133         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12134         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12135         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12136         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12137         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12138         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12139         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12140         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12141         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12142         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12143         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12144         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12145         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12146         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12147         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12148         Reported by Eric Blake.
12149
12150         Properly quote AC_CHECK_DECL's 4th argument.
12151         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12152         argument.
12153         * m4/argp.m4 (gl_ARGP): Likewise.
12154         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12155         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12156         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12157         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12158         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12159         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12160         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12161         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12162         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12163         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12164         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12165         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12166         Reported by Eric Blake.
12167
12168 2011-09-14  Eric Blake  <eblake@redhat.com>
12169
12170         opendir: avoid compile warning
12171         * lib/opendir.c (includes): Always include errno.h.
12172         Reported by Tatsuro MATSUOKA.
12173
12174 2011-09-14  Jim Meyering  <meyering@redhat.com>
12175
12176         maint.mk: sc_tight_scope: propagate failure from sub-make
12177         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12178         Reported by Martin von Gagern.
12179
12180 2011-09-13  Bruno Haible  <bruno@clisp.org>
12181
12182         tempname: Support for MSVC.
12183         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12184         MSVC.
12185         * modules/tempname (Depends-on): Add fcntl-h.
12186
12187 2011-09-13  Bruno Haible  <bruno@clisp.org>
12188
12189         sys_time: Support for MSVC.
12190         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12191         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12192         include <winsock2.h>.
12193         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12194         function declarations that collide with POSIX.
12195         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12196         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12197
12198 2011-09-13  Bruno Haible  <bruno@clisp.org>
12199
12200         stat: Support for MSVC.
12201         * lib/stat.c: Include pathmax.h.
12202         * modules/stat (Depends-on): Add pathmax.
12203
12204         pathmax: Support for native Windows.
12205         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12206
12207 2011-09-12  Bruno Haible  <bruno@clisp.org>
12208
12209         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12210         * lib/dirent.in.h (struct dirent): New type.
12211         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12212         DT_WHT): New macros.
12213         (DIR): New type.
12214         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12215         (readdir, rewinddir): New declarations.
12216         * lib/dirent-private.h: New file.
12217         * lib/opendir.c: New file.
12218         * lib/readdir.c: New file.
12219         * lib/rewinddir.c: New file.
12220         * lib/closedir.c: New file.
12221         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12222         * m4/opendir.m4: New file.
12223         * m4/readdir.m4: New file.
12224         * m4/rewinddir.m4: New file.
12225         * m4/closedir.m4: New file.
12226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12227         REPLACE_CLOSEDIR here.
12228         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12229         readdir, rewinddir are declared.
12230         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12231         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12232         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12233         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12234         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12235         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12236         * modules/opendir: New file.
12237         * modules/readdir: New file.
12238         * modules/rewinddir: New file.
12239         * modules/closedir: New file.
12240         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12241         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12242         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12243         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12244         * NEWS: Mention the 'fchdir' change.
12245
12246 2011-09-11  Bruno Haible  <bruno@clisp.org>
12247
12248         asm-underscore.m4: Support for MSVC.
12249         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12250         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12251
12252 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12253
12254         Doc about crypt functions.
12255         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12256         needing for _GNU_SOURCE to get crypt.
12257         * doc/posix-functions/encrypt.texi: Likewise.
12258         * doc/posix-functions/setkey.texi: Likewise.
12259
12260 2011-09-11  Bruno Haible  <bruno@clisp.org>
12261
12262         doc: Update regarding MSVC 9.
12263         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12264         tested".
12265         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12266         * doc/posix-headers/*.texi: Likewise.
12267         * doc/pastposix-functions/*.texi: Likewise.
12268         * doc/glibc-functions/*.texi: Likewise.
12269         * doc/glibc-headers/*.texi: Likewise.
12270
12271 2011-09-11  Bruno Haible  <bruno@clisp.org>
12272
12273         unistd et al.: Don't assume <unistd.h> exists.
12274         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12275         does not exist.
12276         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12277         exist. But include <stdlib.h>.
12278         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12279         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12280         symlink() does not exist.
12281         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12282         include <io.h> instead.
12283         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12284         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12285         include <direct.h> instead.
12286         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12287         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12288         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12289         <io.h> instead.
12290         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12291         correctly if the system does not have hard links.
12292         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12293         <direct.h> instead.
12294         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12295         it when looking for function declarations.
12296         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12297         <direct.h> and <io.h> instead.
12298         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12299
12300 2011-09-11  Bruno Haible  <bruno@clisp.org>
12301
12302         strcase: Support for MSVC.
12303         * modules/strcase (Status, Notice): Remove obsoletion mark.
12304         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12305         * doc/posix-functions/strncasecmp.texi: Likewise.
12306
12307         strings: Don't assume <strings.h> exists.
12308         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12309         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12310         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12311         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12312
12313 2011-09-11  Bruno Haible  <bruno@clisp.org>
12314
12315         dirent: Don't assume <dirent.h> exists.
12316         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12317         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12318         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12319         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12320
12321 2011-09-11  Bruno Haible  <bruno@clisp.org>
12322
12323         Fix wint_t on MSVC.
12324         * lib/wchar.in.h (wint_t): On MSVC, override it.
12325         * lib/wctype.in.h (wint_t): Likewise.
12326         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12327         MSVC.
12328         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12329         * doc/posix-headers/wctype.texi: Likewise.
12330
12331 2011-09-11  Bruno Haible  <bruno@clisp.org>
12332
12333         sys_types: Fix typo.
12334         * lib/sys_types.in.h: Fix typo in comment.
12335         Reported by Paul Eggert.
12336
12337         Support for MSVC compiler: Ensure size_t gets defined.
12338         * modules/strings (Depends-on): Add 'sys_types'.
12339         * modules/sys_uio (Depends-on): Likewise.
12340         * lib/sys_uio.in.h: Update comment.
12341
12342         C++ tests for module 'sys_types'.
12343         * modules/sys_types-c++-tests: New file.
12344         * tests/test-sys_types-c++.cc: New file.
12345
12346         Tests for module 'sys_types'.
12347         * modules/sys_types-tests: New file.
12348         * tests/test-sys_types.c: New file.
12349
12350         New module 'sys_types'.
12351         * lib/sys_types.in.h: New file.
12352         * m4/sys_types_h.m4: New file.
12353         * modules/sys_types: New file.
12354         * doc/posix-headers/sys_types.texi: Mention the new module and the
12355         size_t problem on MSVC 9.
12356
12357 2011-09-11  Bruno Haible  <bruno@clisp.org>
12358
12359         Support for MSVC compiler: Avoid division by a literal 0.
12360         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12361         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12362         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12363         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12364         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12365         * tests/infinity.h: New file.
12366         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12367         on MSVC.
12368         * tests/test-ceilf1.c: Include infinity.h.
12369         (main): Use Infinityf.
12370         * tests/test-ceil1.c: Include infinity.h.
12371         (main): Use Infinityd.
12372         * tests/test-ceill.c: Include infinity.h.
12373         (main): Use Infinityl.
12374         * tests/test-dprintf-posix.c: Include infinity.h.
12375         (test_function): Use Infinityd.
12376         * tests/test-floorf1.c: Include infinity.h.
12377         (main): Use Infinityf.
12378         * tests/test-floor1.c: Include infinity.h.
12379         (main): Use Infinityd.
12380         * tests/test-floorl.c: Include infinity.h.
12381         (main): Use Infinityl.
12382         * tests/test-fprintf-posix.c: Include infinity.h.
12383         (test_function): Use Infinityd.
12384         * tests/test-frexp.c: Include infinity.h.
12385         (main): Use Infinityd.
12386         * tests/test-frexpl.c: Include infinity.h.
12387         (main): Use Infinityl.
12388         * tests/test-isfinite.c: Include infinity.h.
12389         (test_isfinitef): Use Infinityf.
12390         (test_isfinited): Use Infinityd.
12391         (test_isfinitel): Use Infinityl.
12392         * tests/test-isinf.c: Include infinity.h.
12393         (test_isinff): Use Infinityf.
12394         (test_isinfd): Use Infinityd.
12395         (test_isinfl): Use Infinityl.
12396         * tests/test-isnan.c: Include infinity.h.
12397         (test_float): Use Infinityf.
12398         (test_double): Use Infinityd.
12399         (test_long_double): Use Infinityl.
12400         * tests/test-isnanf.h: Include infinity.h.
12401         (main): Use Infinityf.
12402         * tests/test-isnand.h: Include infinity.h.
12403         (main): Use Infinityd.
12404         * tests/test-isnanl.h: Include infinity.h.
12405         (main): Use Infinityl.
12406         * tests/test-ldexpl.c: Include infinity.h.
12407         (main): Use Infinityl.
12408         * tests/test-printf-posix.h: Include infinity.h.
12409         (test_function): Use Infinityd.
12410         * tests/test-roundf1.c: Include infinity.h.
12411         (main): Use Infinityf.
12412         * tests/test-round1.c: Include infinity.h.
12413         (main): Use Infinityd.
12414         * tests/test-roundl.c: Include infinity.h.
12415         (main): Use Infinityl.
12416         * tests/test-signbit.c: Include infinity.h.
12417         (test_signbitf): Use Infinityf.
12418         (test_signbitd): Use Infinityd.
12419         (test_signbitl): Use Infinityl.
12420         * tests/test-snprintf-posix.h: Include infinity.h.
12421         (test_function): Use Infinityd, Infinityl.
12422         * tests/test-sprintf-posix.h: Include infinity.h.
12423         (test_function): Use Infinityd, Infinityl.
12424         * tests/test-truncf1.c: Include infinity.h.
12425         (main): Use Infinityf.
12426         * tests/test-trunc1.c: Include infinity.h.
12427         (main): Use Infinityd.
12428         * tests/test-truncl.c: Include infinity.h.
12429         (main): Use Infinityl.
12430         * tests/test-vasnprintf-posix.c: Include infinity.h.
12431         (test_function): Use Infinityd, Infinityl.
12432         * tests/test-vasprintf-posix.c: Include infinity.h.
12433         (test_function): Use Infinityd, Infinityl.
12434         * modules/ceilf-tests (Files): Add tests/infinity.h.
12435         * modules/ceil-tests (Files): Likewise.
12436         * modules/ceill-tests (Files): Likewise.
12437         * modules/dprintf-posix-tests (Files): Likewise.
12438         * modules/floorf-tests (Files): Likewise.
12439         * modules/floor-tests (Files): Likewise.
12440         * modules/floorl-tests (Files): Likewise.
12441         * modules/fprintf-posix-tests (Files): Likewise.
12442         * modules/frexp-tests (Files): Likewise.
12443         * modules/frexp-nolibm-tests (Files): Likewise.
12444         * modules/frexpl-tests (Files): Likewise.
12445         * modules/frexpl-nolibm-tests (Files): Likewise.
12446         * modules/isfinite-tests (Files): Likewise.
12447         * modules/isinf-tests (Files): Likewise.
12448         * modules/isnan-tests (Files): Likewise.
12449         * modules/isnanf-tests (Files): Likewise.
12450         * modules/isnanf-nolibm-tests (Files): Likewise.
12451         * modules/isnand-tests (Files): Likewise.
12452         * modules/isnand-nolibm-tests (Files): Likewise.
12453         * modules/isnanl-tests (Files): Likewise.
12454         * modules/isnanl-nolibm-tests (Files): Likewise.
12455         * modules/ldexpl-tests (Files): Likewise.
12456         * modules/printf-posix-tests (Files): Likewise.
12457         * modules/roundf-tests (Files): Likewise.
12458         * modules/round-tests (Files): Likewise.
12459         * modules/roundl-tests (Files): Likewise.
12460         * modules/signbit-tests (Files): Likewise.
12461         * modules/snprintf-posix-tests (Files): Likewise.
12462         * modules/sprintf-posix-tests (Files): Likewise.
12463         * modules/truncf-tests (Files): Likewise.
12464         * modules/trunc-tests (Files): Likewise.
12465         * modules/truncl-tests (Files): Likewise.
12466         * modules/vasnprintf-posix-tests (Files): Likewise.
12467         * modules/vasprintf-posix-tests (Files): Likewise.
12468         * modules/vdprintf-posix-tests (Files): Likewise.
12469         * modules/vfprintf-posix-tests (Files): Likewise.
12470         * modules/vprintf-posix-tests (Files): Likewise.
12471         * modules/vsnprintf-posix-tests (Files): Likewise.
12472         * modules/vsprintf-posix-tests (Files): Likewise.
12473         * modules/xprintf-posix-tests (Files): Likewise.
12474
12475 2011-09-11  Bruno Haible  <bruno@clisp.org>
12476
12477         Ensure pid_t gets defined.
12478         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12479         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12480         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12481         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12482         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12483         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12484         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12485         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12486         * tests/test-fcntl-h.c: Check that pid_t is defined.
12487         * tests/test-sched.c: Likewise.
12488         * tests/test-termios.c: Likewise.
12489         * tests/test-time.c: Likewise.
12490         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12491         * doc/posix-headers/signal.texi: Likewise.
12492         * doc/posix-headers/sys_types.texi: Likewise.
12493         * doc/posix-headers/time.texi: Likewise.
12494
12495 2011-09-11  Bruno Haible  <bruno@clisp.org>
12496
12497         acl: Fix compilation on Solaris 10 (older version).
12498         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12499         of ACE_EVERYONE.
12500         * lib/set-mode-acl.c (qset_acl): Likewise.
12501         Reported by Christian Jullien <eligis@orange.fr>.
12502
12503 2011-09-10  Bruno Haible  <bruno@clisp.org>
12504
12505         iconv, unsetenv: Add support for MSVC compiler.
12506         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
12507         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
12508
12509 2011-09-10  Bruno Haible  <bruno@clisp.org>
12510
12511         *printf: Add support for MSVC compiler.
12512         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
12513         handles the exception caused by the %n directive. When cross-compiling,
12514         guess no on native Windows.
12515         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
12516         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
12517         emulate it through vsnprintf.
12518         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
12519         * doc/posix-functions/dprintf.texi: Update documentation regarding
12520         MSVC 9.
12521         * doc/posix-functions/fprintf.texi: Likewise.
12522         * doc/posix-functions/printf.texi: Likewise.
12523         * doc/posix-functions/snprintf.texi: Likewise.
12524         * doc/posix-functions/sprintf.texi: Likewise.
12525         * doc/posix-functions/swprintf.texi: Likewise.
12526         * doc/posix-functions/vdprintf.texi: Likewise.
12527         * doc/posix-functions/vfprintf.texi: Likewise.
12528         * doc/posix-functions/vprintf.texi: Likewise.
12529         * doc/posix-functions/vsnprintf.texi: Likewise.
12530         * doc/posix-functions/vsprintf.texi: Likewise.
12531         * doc/glibc-functions/asprintf.texi: Likewise.
12532         * doc/glibc-functions/obstack_printf.texi: Likewise.
12533         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
12534         * doc/glibc-functions/vasprintf.texi: Likewise.
12535
12536 2011-09-10  Bruno Haible  <bruno@clisp.org>
12537
12538         nocrash: Add support for native Windows.
12539         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
12540
12541 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
12542             Bruno Haible  <bruno@clisp.org>
12543
12544         absolute-header, include-next: Add support for MSVC compiler.
12545         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
12546         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
12547         directory separator in #line directives.
12548         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
12549         recognize also backslash as directory separator in #line directives.
12550
12551 2011-09-08  Jim Meyering  <meyering@redhat.com>
12552
12553         maint.mk: mark the post-release commit log with "maint: " prefix
12554         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
12555         one-line commit-log summary.
12556
12557 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
12558             Bruno Haible  <bruno@clisp.org>
12559
12560         Doc about crypt functions.
12561         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
12562         systems.
12563         * doc/posix-functions/encrypt.texi: Likewise.
12564         * doc/posix-functions/setkey.texi: Likewise.
12565
12566 2011-09-08  Simon Josefsson  <simon@josefsson.org>
12567
12568         * lib/gc.h: Fix copyright header.
12569
12570 2011-09-07  Bruno Haible  <bruno@clisp.org>
12571
12572         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
12573         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
12574         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
12575
12576 2011-09-07  Bruno Haible  <bruno@clisp.org>
12577
12578         openat: Work around compilation error with OSF/1 5.1 DTK cc.
12579         * lib/fopen.c: Use different syntax for include of <stdio.h>.
12580         * lib/freopen.c: Likewise.
12581         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
12582         * lib/lstat.c: Likewise.
12583         * lib/stat.c: Likewise.
12584         * lib/open.c: Use different syntax for include of <fcntl.h>.
12585         * lib/openat.c: Include fcntl.h again, explicitly.
12586
12587 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
12588
12589         parse-datetime: document the newly accepted format
12590         * doc/parse-datetime.texi (Combined date and time of day items):
12591         New section.
12592
12593 2011-09-06  Bruno Haible  <bruno@clisp.org>
12594
12595         acl: Fix a test failure on newer Solaris 10 with ZFS.
12596         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
12597         ENOSYS as no ACL.
12598         Reported by Jim Meyering.
12599
12600 2011-09-06  Bruno Haible  <bruno@clisp.org>
12601
12602         acl: Update for AIX >= 5.3 with NFS.
12603         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
12604         ENOSYS as no ACL.
12605
12606         acl: Fix a test failure on AIX >= 5.3 with NFS.
12607         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
12608         as no ACL.
12609
12610 2011-09-06  Bruno Haible  <bruno@clisp.org>
12611
12612         acl: Fix a test failure on IRIX 6.5 with NFS.
12613         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
12614         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
12615         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
12616         * lib/copy-acl.c (qcopy_acl): Likewise.
12617
12618 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
12619
12620         openat: port to AIX 7.1 with large files
12621         AIX 7.1 does a "#define openat open64at" if large files are in use,
12622         so we can't simply #undef openat.  Use the orig_openat trick (similar
12623         to orig_open in lib/open.c) to work around the problem.  Problem
12624         reported by Kevin Brott for GNU tar, in the thread containing
12625         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
12626         * lib/openat.c (__need_system_fcntl_h): Define first.
12627         Include <fcntl.h> and <sys/types.h> before undefining.
12628         (orig_openat) [HAVE_OPENAT]: New inline function.
12629         (openat) [HAVE_OPENAT]: Do not undef.
12630         (rpl_openat): Use orig_openat, not openat.
12631
12632 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
12633             Bruno Haible  <bruno@clisp.org>
12634
12635         acl: Avoid errors on NonStop Kernel.
12636         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
12637         ENOTSUP errors.
12638
12639 2011-09-05  Bruno Haible  <bruno@clisp.org>
12640
12641         acl: Clean up Solaris code.
12642         * lib/acl-internal.h: Remove no-op #if.
12643         * lib/file-has-acl.c: Likewise.
12644         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
12645         * lib/copy-acl.c (qcopy_acl): Likewise.
12646
12647 2011-09-05  Bruno Haible  <bruno@clisp.org>
12648
12649         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
12650         binaries built on the original Solaris 10.
12651         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
12652         trivial.
12653
12654 2011-09-05  Bruno Haible  <bruno@clisp.org>
12655
12656         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12657         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
12658         10.
12659         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
12660         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
12661         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
12662         instead of acl_get, facl_get, acl_set, facl_set.
12663
12664 2011-09-05  Bruno Haible  <bruno@clisp.org>
12665
12666         copy-file: Try unit tests on more file systems.
12667         * tests/test-copy-file-1.sh: New file.
12668         * tests/test-copy-file-2.sh: New file.
12669         * modules/copy-file-tests (Files): Add them.
12670         (Makefile.am): Add them to TESTS.
12671
12672         acl: Try unit tests on more file systems.
12673         * tests/test-file-has-acl-1.sh: New file.
12674         * tests/test-file-has-acl-2.sh: New file.
12675         * tests/test-set-mode-acl-1.sh: New file.
12676         * tests/test-set-mode-acl-2.sh: New file.
12677         * tests/test-copy-acl-1.sh: New file.
12678         * tests/test-copy-acl-2.sh: New file.
12679         * modules/acl-tests (Files): Add them.
12680         (Makefile.am): Add them to TESTS.
12681
12682 2011-09-04  Bruno Haible  <bruno@clisp.org>
12683
12684         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
12685         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
12686         10.
12687         (OLD_ALLOW, OLD_DENY): New macros.
12688         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
12689         ACE_ACCESS_ALLOWED_ACE_TYPE.
12690         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
12691         ACE_ACCESS_DENIED_ACE_TYPE.
12692         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
12693         (NEW_ACE_EXECUTE): Fix value.
12694         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
12695         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
12696         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
12697         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
12698         NEW_ACE_SYNCHRONIZE): New macros.
12699         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
12700         instead of acl_fromtext, acl_set, facl_set.
12701         Fixes a coreutils/tests/cp/perm failure.
12702
12703 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
12704
12705         openat: test for fstatat (..., 0) bug
12706         Further testing with tar suggests that fstatat (..., 0)
12707         does not work in general, on AIX 7.1; see
12708         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
12709         So, give up entirely on AIX 7.1's fstatat, and fall back on our
12710         replacement fstatat (which is what older AIX releases were using
12711         anyway).
12712         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
12713         use is now changed to orig_fstatat.  This was probably the right
12714         thing to do anyway.
12715         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
12716         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
12717         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
12718         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
12719         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
12720         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
12721         if the bug is found.
12722
12723         openat: test for fstatat (AT_FDCWD, ..., 0) bug
12724         This tests for another fstatat bug on AIX 7.1:
12725         fstatat (AT_FDCWD, ..., 0) does not work.  See
12726         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
12727         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
12728         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
12729         (rpl_fstatat): Adjust so that it works around either (or both)
12730         bugs if present.
12731         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
12732
12733 2011-09-03  Karl Berry  <karl@gnu.org>
12734
12735         * doc/regex.texi (Character Class Operators): Avoid literal ":"
12736         in index entries.
12737
12738 2011-09-02  Bruno Haible  <bruno@clisp.org>
12739
12740         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
12741         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
12742         values of AR, ARFLAGS, RANLIB.
12743         Reported by John W. Eaton <jwe@gnu.org> for Octave.
12744
12745 2011-09-02  Bruno Haible  <bruno@clisp.org>
12746
12747         Find 'ar' program that fits with --host argument.
12748         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
12749
12750 2011-09-02  Bruno Haible  <bruno@clisp.org>
12751
12752         tests: init.sh: Support any non-GNU diff.
12753         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
12754         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
12755         Solaris 8.
12756
12757 2011-09-02  Bruno Haible  <bruno@clisp.org>
12758
12759         tests: init.sh: work also with any non-GNU diff that supports -u
12760         * tests/init.sh: Relax check for diff -u support.
12761         Rather than checking for GNU diff via --version, simply check
12762         for support for -u itself.  Useful at least on OpenBSD 4.9,
12763         AIX 7.1, IRIX 6.5, and Solaris 10.
12764
12765 2011-09-01  Bruno Haible  <bruno@clisp.org>
12766
12767         strtoimax, strtoumax: Document problem on HP-UX 11.
12768         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
12769         * doc/posix-functions/strtoumax.texi: Likewise.
12770
12771 2011-09-01  Bruno Haible  <bruno@clisp.org>
12772
12773         strtoumax: Avoid link error on OSF/1 with DTK cc.
12774         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
12775         defined as a function.
12776         * modules/strtoumax (Depends-on, configure.ac): Test only whether
12777         strtoumax is defined, not whether it is declared.
12778
12779 2011-09-01  Bruno Haible  <bruno@clisp.org>
12780
12781         strtoimax: Avoid link error on OSF/1 with DTK cc.
12782         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
12783         defined as a function.
12784         * modules/strtoimax (Depends-on, configure.ac): Test only whether
12785         strtoimax is defined, not whether it is declared.
12786
12787 2011-09-01  Bruno Haible  <bruno@clisp.org>
12788
12789         imaxdiv: Avoid link error on OSF/1 with DTK cc.
12790         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
12791         as a function.
12792         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
12793         whether it is declared.
12794
12795 2011-09-01  Bruno Haible  <bruno@clisp.org>
12796
12797         imaxabs: Avoid link error on OSF/1 with DTK cc.
12798         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
12799         as a function.
12800         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
12801         whether it is declared.
12802
12803 2011-09-01  Bruno Haible  <bruno@clisp.org>
12804
12805         Tests for module 'strtoumax'.
12806         * modules/strtoumax-tests: New file.
12807         * tests/test-strtoumax.c: New file.
12808
12809         Tests for module 'strtoimax'.
12810         * modules/strtoimax-tests: New file.
12811         * tests/test-strtoimax.c: New file.
12812
12813         Tests for module 'imaxdiv'.
12814         * modules/imaxdiv-tests: New file.
12815         * tests/test-imaxdiv.c: New file.
12816
12817         Tests for module 'imaxabs'.
12818         * modules/imaxabs-tests: New file.
12819         * tests/test-imaxabs.c: New file.
12820
12821 2011-09-01  Bruno Haible  <bruno@clisp.org>
12822
12823         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
12824         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
12825         pthread_create.
12826
12827 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12828
12829         openat: work around AIX 7.1 fstatat issue
12830         This should fix the problem that was not properly fixed
12831         in the previous change, dated 2011-08-30.
12832         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
12833         __need_system_stat_h defined.
12834         (orig_fstatat) [HAVE_FSTATAT]: New function.
12835         (rpl_fstatat): Go back to the old way of doing things,
12836         except call orig_fstatat instead of fstatat.
12837         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
12838         Remove unnecessary check whether fstatat fills in st_size etc.
12839
12840 2011-09-01  Bruno Haible  <bruno@clisp.org>
12841
12842         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
12843         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
12844         just include the system's header.
12845
12846 2011-08-31  Jim Meyering  <meyering@redhat.com>
12847
12848         tests: avoid spurious assertion failure in test-float.c on ppc64
12849         * tests/test-float.c (test_long_double): Comment out an assertion,
12850         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
12851         with gcc-4.4.4.
12852
12853         maint: indent with spaces, not TABs
12854         I need to get in the habit of running gnulib's "make check".
12855         Both of these would have been caught.
12856         * m4/largefile.m4: Indent with spaces, not TABs.
12857         * lib/parse-datetime.y (iso_8601_time): Likewise.
12858         Spotted by Pádraig Brady.
12859
12860         test-parse-datetime.c: accommodate a relatively strict gcc warning
12861         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
12862         to avoid a warning from gcc's -Werror=missing-declarations.
12863         Insert a few spaces-before-funcall-parenthesis.
12864
12865 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
12866
12867         parse-datetime: accept ISO 8601 date and time rep with "T" separator
12868         The parser now accepts ISO 8601 date-time strings with "T" as the
12869         separator.  It has long parsed dates like "2004-02-29 16:21:42"
12870         with a space between the date and time strings.  Now it also parses
12871         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
12872         variants like "2004-02-29T16:21:42.333-07:00"
12873         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
12874         of day representation using the 'T' separator character.
12875         * doc/parse-datetime.texi (General date syntax): replace use of
12876         deprecated --iso-8601 option with --rfc-3339 in example of date
12877         command output formats that can be parsed.
12878         * tests/test-parse-datetime.c (tm_diff): New function, taken from
12879         lib/parse-datetime.y.
12880         (gmt_offset): New function.
12881         (main): Add additional test cases to validate ISO8601 extended
12882         date and time of day parsing.
12883
12884 2011-08-31  Bruno Haible  <bruno@clisp.org>
12885
12886         freopen: Documentation.
12887         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
12888         name.
12889         Reported by Claudio Bley <claudio.bley@gmail.com>.
12890
12891 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
12892
12893         freopen: Don't crash if the filename argument is NULL.
12894         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
12895         NULL.
12896
12897 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12898
12899         openat: work around AIX 7.1 fstatat bug
12900         Problem reported by Kevin Brott for GNU tar, in the thread containing
12901         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12902         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12903         FSTATAT_ST_SIZE_ETC_BROKEN.
12904         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12905         rpl_fstatat.
12906         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12907         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12908         AC_CHECK_FUNCS_ONCE for fstatat.
12909         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12910         fchmodat, mkdirat, openat and unlinkat.
12911
12912 2011-08-30  Bruno Haible  <bruno@clisp.org>
12913
12914         Avoid endless recursions if config.h includes some header files.
12915         * lib/fopen.c (__need_FILE): Define already before including config.h.
12916         * lib/freopen.c (__need_FILE): Likewise.
12917         * lib/open.c (__need_system_fcntl_h): Likewise.
12918         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12919         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12920         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12921
12922 2011-08-25  Karl Berry  <karl@gnu.org>
12923
12924         * config/srclist.txt (ylwrap): new try.
12925         * build-aux/ylwrap: new file.
12926
12927 2011-08-23  Bruno Haible  <bruno@clisp.org>
12928
12929         tmpdir: Use a good default directory on native Windows.
12930         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
12931         (P_tmpdir): Default to _P_tmpdir on native Windows.
12932         (path_search): On native Windows, try the value returned by GetTempPath
12933         before trying P_tmpdir.
12934         * modules/tmpdir (Depends-on): Add pathmax.
12935         Suggested by John Darrington <john@darrington.wattle.id.au>.
12936
12937 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
12938
12939         doc: fix typo in README-release
12940         * top/README-release: Capitalize first word of a sentence.
12941
12942 2011-08-19  Jim Meyering  <meyering@redhat.com>
12943
12944         fts: do not exhaust memory when processing million-entry directories
12945         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
12946         directory would require about 256*N bytes of memory.  Thus, it was
12947         easy to construct a directory too large to be processed by any of
12948         those tools.  With this change, fts' maximum memory utilization is
12949         now limited to around 30MB.
12950         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
12951         (fts_read): When we've processed the final entry (i.e., when
12952         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
12953         using the parent entry to read any remaining entries.  Dispatch
12954         depending on what fts_build returns:
12955         - NULL+stop, aka failure: stop
12956         - NULL otherwise: move up in the dir hierarchy
12957         - non-NULL: handle this new entry
12958         (fts_build): Declare and use new local, continue_readdir.
12959         Prepare to be called from fts_read, when the entries
12960         from a partially-read directory have just been exhausted.
12961         In that case, we'll skip the opendir and instead use the parent's
12962         fts_dirp and derive dir_fd from that.
12963         Finally, in the readdir loop, if we read max_entries entries,
12964         exit the loop ensuring *not* to call closedir.  This is required
12965         so that fts_dirp can be reused on a subsequent call.
12966         Prompted by Ben England's report of memory exhaustion in find
12967         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
12968
12969         maint: fts: move decl of `dp' down into while loop; split a long line
12970         * lib/fts.c (fts_build): No semantic change.
12971
12972         fts: add/use new struct member, fts_dirp
12973         We are about to use this to manage any directory with
12974         too many entries to read all of them into memory at once.
12975         To do that, we'll need to save the DIR* pointer in each
12976         affected FTSENT struct.
12977         * lib/fts_.h: Include <dirent.h>.
12978         (struct FTSENT) [fts_dirp]: New member.
12979         * lib/fts.c (closedir_and_clear): Define.
12980         Use it in place of closedir so that we are sure to
12981         clear the new fts_dirp member when done with it.
12982         (fts_alloc): Initialize the new member.
12983         (fts_lfree): Free, if needed.
12984
12985         maint: fts: give __opendir2 a new parameter and rename
12986         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12987         than surreptitiously using sole caller's "dir_fd".
12988         (fts_opendir): Rename from __opendir2.
12989
12990         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12991         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12992
12993         maint: fts.c: correct off-by-one indentation
12994         * lib/fts.c (fts_build): Correct indentation, change style
12995         of a couple of block comments, and bracing style.
12996
12997         maint: fts.c: move __opendir2 #define "up" out of function body
12998         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12999
13000         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13001         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13002         out for a long time and besides was useful only on BSD systems.
13003
13004 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13005
13006         regex: port to Stratus OpenVOS
13007         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13008         define to empty, rather than attempting nonportable optimizations.
13009         Problem reported by Paul Green in:
13010         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13011         and fix suggested by Eric Blake in:
13012         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13013
13014 2011-08-17  Eric Blake  <eblake@redhat.com>
13015
13016         getcwd: fix test failures on mingw
13017         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13018         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13019         test if long directory cannot be created, and allow mingw errno.
13020
13021         getcwd-lgpl: fix m4 to match relaxed test for BSD
13022         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13023         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13024         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13025         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13026         signature problem.
13027
13028         getcwd: fix compilation on mingw64
13029         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13030         getcwd.
13031         Reported by Marc-André Lureau.
13032
13033         pipe2: silence compiler warning
13034         * lib/pipe2.c (pipe2): Hide label if it is not used.
13035
13036 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13037
13038         relocatable-prog: fix link error
13039         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13040         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13041         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13042         into modules/relocatable-lib without noticing that
13043         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13044         also needs to build relocatable.c.
13045
13046 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13047
13048         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13049         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13050         shell code: it contained a 'break' that was not in a loop.
13051         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13052         via a shell-language loop; this may have been true in old Autoconf
13053         versions, but it's not true in Autoconf 2.68.  I found this bug
13054         when testing coreutils git on Solaris 8, whose shell complains
13055         about the syntax error.
13056
13057 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13058
13059         * lib/base64.c: Fix comment to reference RFC 4648.
13060         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13061         <gvtulder@gmail.com>.
13062
13063 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13064
13065         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13066
13067         po/Makefile.in.in: fix make -q problem
13068         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13069         rule, since there's no file named 'check-macro-version' and its
13070         use as a file breaks make -q.
13071         (all): Don't depend on check-macro-version.
13072         (CHECK_MACRO_VERSION): New macro.
13073         (stamp-po): Use it.
13074
13075         configmake: fix make -q problem
13076         * modules/configmake (configmake.h): Update configmake.h's time stamp
13077         even if the file does not change.  Otherwise, 'make -q' fails.
13078         Problem reported by Simon Josefsson in
13079         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13080
13081 2011-08-11  Jim Meyering  <meyering@redhat.com>
13082
13083         git-version-gen: correct the advice in a comment
13084         * build-aux/git-version-gen: Correct comment.
13085         Don't recommend to list .tarball-version in .gitignore.
13086
13087 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13088
13089         base64: fix off-by-one buffer size bug
13090         Problem and (trivial) fix reported by Gijs van Tulder in
13091         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13092         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13093         * tests/test-base64.c (main): Catch the bug.
13094
13095 2011-08-10  Eric Blake  <eblake@redhat.com>
13096
13097         closein: correct comments
13098         * lib/closein.c (close_stdin): Improve comments.
13099
13100 2011-08-09  Bruno Haible  <bruno@clisp.org>
13101
13102         More tests for 'fseeko'.
13103         * tests/test-fseeko3.c: New file, from Eric Blake.
13104         * tests/test-fseeko3.sh: New file.
13105         * modules/fseeko-tests (Files): Add them.
13106         (TESTS): Add test-fseeko3.sh.
13107         (check_PROGRAMS): Add test-fseeko3.
13108
13109 2011-08-09  Eric Blake  <eblake@redhat.com>
13110
13111         fseeko: remove unneeded hack
13112         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13113
13114         fseeko: fix bug on glibc
13115         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13116         Reported by John W. Eaton.
13117
13118 2011-08-08  Bruno Haible  <bruno@clisp.org>
13119
13120         unictype/base: Fix interoperability with preinstalled libunistring.
13121         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13122         Reported by Simon Josefsson.
13123
13124 2011-08-08  Bruno Haible  <bruno@clisp.org>
13125
13126         iswblank: Detect declaration correctly.
13127         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13128         AC_CHECK_DECLS invocation.
13129
13130 2011-08-08  Bruno Haible  <bruno@clisp.org>
13131
13132         tcgetsid: Detect declaration correctly.
13133         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13134         AC_CHECK_DECLS invocation.
13135         Reported by Simon Josefsson.
13136
13137 2011-08-08  Eric Blake  <eblake@redhat.com>
13138
13139         largefile: fix typo that regressed large file support
13140         * modules/largefile (configure.ac-early): Fix section name.
13141
13142 2011-08-06  Karl Berry  <karl@gnu.org>
13143
13144         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13145         a separate module.
13146
13147 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13148
13149         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13150         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13151         get prototype for free.
13152
13153 2011-08-04  Bruno Haible  <bruno@clisp.org>
13154
13155         Tests for module 'pathmax'.
13156         * modules/pathmax-tests: New file.
13157         * tests/test-pathmax.c: New file.
13158
13159         canonicalize-lgpl: Support larger filenames on the Hurd.
13160         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13161         Reported by Paul Eggert.
13162
13163         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13164         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13165         * lib/chdir-long.h: Include pathmax.h.
13166         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13167         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13168         (PATH_MAX): Remove code that is done by pathmax.h.
13169         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13170         * lib/tmpfile.c: Add a comment.
13171         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13172         * modules/chdir-long (Depends-on): Add pathmax.
13173         * modules/getcwd (Depends-on): Add pathmax.
13174         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13175         is not defined.
13176         * doc/posix-headers/limits.texi: Mention the pathmax module.
13177         * NEWS: Mention the change.
13178
13179 2011-08-02  Bruno Haible  <bruno@clisp.org>
13180
13181         pthread_sigmask: Actually use results of gl_THREADLIB.
13182         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13183         gl_THREADLIB, not gl_[]THREADLIB.
13184         Reported by Eric Blake.
13185
13186 2011-08-02  Jim Meyering  <meyering@redhat.com>
13187
13188         maint.mk: relax the default _gl_TS_function_match regexp
13189         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13190         space between function name and "(" in an "extern" declaration.
13191         That would fail to match a decl with no space there: extern void foo();
13192
13193 2011-07-31  Iain Nicol  <iain@thenicols.net>
13194
13195         git-version-gen: document that EXTRA_DIST must include .version
13196         * build-aux/git-version-gen: In the how-to-use comment, document
13197         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13198         will fail when run from an unpacked distribution tarball.
13199
13200 2011-08-01  Bruno Haible  <bruno@clisp.org>
13201
13202         wctype-h: Fix last change.
13203         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13204         REPLACE_TOWLOWER to 0.
13205         Reported by Sam Steingold <sds@gnu.org>.
13206
13207 2011-07-31  Bruno Haible  <bruno@clisp.org>
13208
13209         frexpl: Update autoconf test.
13210         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13211         according to changes of 2011-06-20.
13212
13213 2011-07-31  Bruno Haible  <bruno@clisp.org>
13214
13215         sys_utsname: Add support for Minix.
13216         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13217         <sys/utsname.h>.
13218         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13219         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13220
13221 2011-07-31  Bruno Haible  <bruno@clisp.org>
13222
13223         strings: Add support for Minix.
13224         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13225         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13226         * doc/posix-headers/strings.texi: Document the Minix problem.
13227
13228 2011-07-31  Bruno Haible  <bruno@clisp.org>
13229
13230         wctype-h: Add support for Minix.
13231         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13232         REPLACE_TOWLOWER.
13233         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13234         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13235         REPLACE_ISWCNTRL.
13236
13237 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13238
13239         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13240         This is a performance improvement for 64-bit hosts: it causes the
13241         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13242
13243 2011-07-31  Bruno Haible  <bruno@clisp.org>
13244
13245         stdioext: Add support for Minix.
13246         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13247         * lib/fpurge.c (fpurge): Likewise.
13248         * lib/freadahead.c (freadahead): Likewise.
13249         * lib/freadable.c (freadable): Likewise.
13250         * lib/freading.c (freading): Likewise.
13251         * lib/freadptr.c (freadptr): Likewise.
13252         * lib/freadseek.c (freadptrinc): Likewise.
13253         * lib/fseeko.c (rpl_fseeko): Likewise.
13254         * lib/fseterr.c (fseterr): Likewise.
13255         * lib/fwritable.c (fwritable): Likewise.
13256         * lib/fwriting.c (fwriting): Likewise.
13257         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13258         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13259
13260 2011-07-31  Bruno Haible  <bruno@clisp.org>
13261
13262         errno: Port to Minix.
13263         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13264         ECONNABORTED are defined.
13265         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13266         GNULIB_defined_ECONNABORTED): New macros.
13267         * lib/strerror-override.h (strerror_override): Test also
13268         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13269         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13270         ECONNABORTED.
13271         * doc/posix-headers/errno.texi: Mention the Minix problem.
13272
13273 2011-07-31  Bruno Haible  <bruno@clisp.org>
13274
13275         Work around declaration collisions on Minix.
13276         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13277         defined, set REPLACE_MBSINIT.
13278         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13279         defined, set REPLACE_MBRTOWC.
13280         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13281         set REPLACE_MBRLEN.
13282         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13283         defined, set REPLACE_MBSRTOWCS.
13284         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13285         defined, set REPLACE_WCRTOMB.
13286         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13287         defined, set REPLACE_WCSRTOMBS.
13288
13289 2011-07-31  Bruno Haible  <bruno@clisp.org>
13290
13291         Add support for Minix with ACK compiler.
13292         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13293         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13294         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13295
13296 2011-07-31  Bruno Haible  <bruno@clisp.org>
13297
13298         Documentation about Minix.
13299         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13300         * doc/glibc-headers/*.texi: Likewise.
13301         * doc/posix-functions/*.texi: Likewise.
13302         * doc/glibc-functions/*.texi: Likewise.
13303
13304 2011-07-31  Bruno Haible  <bruno@clisp.org>
13305
13306         snippet/warn-on-use: Fix indentation.
13307         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13308
13309 2011-07-25  Jim Meyering  <meyering@redhat.com>
13310
13311         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13312         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13313         commands.
13314
13315 2011-07-27  Jim Meyering  <meyering@redhat.com>
13316
13317         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13318         * top/maint.mk (gl_extract_significant_defines_): Now that
13319         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13320         gnulib/lib/signal.in.h, and now that we recommend to
13321         define-if-undefined those two symbols in application code,
13322         we must filter them out of the "significant" list.
13323         This avoids a "make syntax-check" failure in coreutils.
13324
13325 2011-07-26  Eric Blake  <eblake@redhat.com>
13326
13327         warnings: add comments about previous patch
13328         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13329         * m4/include_next.m4: Likewise.
13330         * m4/warn-on-use.m4: Likewise.
13331         * m4/warnings.m4: Likewise, and simplify use.
13332         Suggested by Stefano Lattarini.
13333
13334         include-next, warnings: support older autoconf
13335         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13336         AS_VAR_PUSHDEF in a way that works with older autoconf.
13337         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13338         Reported by Daniel P. Berrange.
13339
13340 2011-07-25  Bruno Haible  <bruno@clisp.org>
13341
13342         fseek, ftell: Fix doc.
13343         * doc/posix-functions/fseek.texi: Reword statement about
13344         AC_SYS_LARGEFILE.
13345         * doc/posix-functions/ftell.texi: Likewise.
13346
13347 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13348             Bruno Haible  <bruno@clisp.org>
13349
13350         Add dependencies to the 'largefile' module.
13351         * modules/fopen (Depends-on): Add 'largefile'.
13352         * modules/freopen (Depends-on): Likewise.
13353         * modules/fseeko (Depends-on): Likewise.
13354         * modules/ftello (Depends-on): Likewise.
13355         * modules/glob (Depends-on): Likewise.
13356         * modules/lseek (Depends-on): Likewise.
13357         * modules/lstat (Depends-on): Likewise.
13358         * modules/mkostemp (Depends-on): Likewise.
13359         * modules/mkostemps (Depends-on): Likewise.
13360         * modules/mkstemp (Depends-on): Likewise.
13361         * modules/mkstemps (Depends-on): Likewise.
13362         * modules/open (Depends-on): Likewise.
13363         * modules/openat (Depends-on): Likewise.
13364         * modules/pread (Depends-on): Likewise.
13365         * modules/pwrite (Depends-on): Likewise.
13366         * modules/scandir (Depends-on): Likewise.
13367         * modules/stat (Depends-on): Likewise.
13368         * modules/tmpfile (Depends-on): Likewise.
13369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13370         since the containing module now depends on the largefile module.
13371         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13372         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13373         off_t is fixed by gnulib.
13374         * doc/posix-functions/freopen.texi: Likewise.
13375         * doc/posix-functions/fseeko.texi: Likewise.
13376         * doc/posix-functions/fstatat.texi: Likewise.
13377         * doc/posix-functions/ftello.texi: Likewise.
13378         * doc/posix-functions/glob.texi: Likewise.
13379         * doc/posix-functions/lseek.texi: Likewise.
13380         * doc/posix-functions/lstat.texi: Likewise.
13381         * doc/posix-functions/mkstemp.texi: Likewise.
13382         * doc/posix-functions/open.texi: Likewise.
13383         * doc/posix-functions/openat.texi: Likewise.
13384         * doc/posix-functions/pread.texi: Likewise.
13385         * doc/posix-functions/pwrite.texi: Likewise.
13386         * doc/posix-functions/scandir.texi: Likewise.
13387         * doc/posix-functions/stat.texi: Likewise.
13388         * doc/posix-functions/tmpfile.texi: Likewise.
13389         * doc/glibc-functions/mkostemp.texi: Likewise.
13390         * doc/glibc-functions/mkostemps.texi: Likewise.
13391         * doc/glibc-functions/mkstemps.texi: Likewise.
13392
13393 2011-07-25  Bruno Haible  <bruno@clisp.org>
13394
13395         fcntl: Move AC_LIBOBJ invocation to module description.
13396         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13397         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13398
13399         fcntl: Remove call-in from fchdir.m4.
13400         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13401         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13402
13403         dup3: Remove potential call-in from fchdir.m4.
13404         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13405         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13406
13407         dup2: Move AC_LIBOBJ invocation to module description.
13408         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13409         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13410         Don't invoke AC_LIBOBJ.
13411         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13412
13413         dup2: Remove call-in from fchdir.m4.
13414         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13415         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13416
13417         fclose: Move AC_LIBOBJ invocation to module description.
13418         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13419         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13420         to 1.
13421         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13422
13423         fclose: Remove call-in from close.m4.
13424         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13425         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13426
13427         close: Move AC_LIBOBJ invocation to module description.
13428         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13429         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13430         1.
13431         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13432
13433         close: Remove call-in from fchdir.m4.
13434         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13435         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13436
13437         open: Move AC_LIBOBJ invocation to module description.
13438         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13439         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13440         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13441
13442         open: Remove call-in from fchdir.m4.
13443         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13444         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13445
13446         fchdir: Start to remove gl_REPLACE_* idiom.
13447         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13448         (gl_FUNC_FCHDIR): Invoke it.
13449
13450 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13451
13452         * lib/ftell.c (ftell): Comment out cast.
13453
13454         close: use gl_REPLACE_FCLOSE only if defined
13455         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13456         is defined.  The close module doesn't depend on the fclose module
13457         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13458         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13459         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13460
13461 2011-07-24  Jim Meyering  <meyering@redhat.com>
13462
13463         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13464         * tests/test-select.h (test_function): Declare as "static".
13465
13466 2011-07-24  Bruno Haible  <bruno@clisp.org>
13467
13468         doc: Mention the effects of AC_SYS_LARGEFILE.
13469         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13470         on this function.
13471         * doc/posix-functions/aio_error.texi: Likewise.
13472         * doc/posix-functions/aio_fsync.texi: Likewise.
13473         * doc/posix-functions/aio_read.texi: Likewise.
13474         * doc/posix-functions/aio_return.texi: Likewise.
13475         * doc/posix-functions/aio_suspend.texi: Likewise.
13476         * doc/posix-functions/aio_write.texi: Likewise.
13477         * doc/posix-functions/fgetpos.texi: Likewise.
13478         * doc/posix-functions/fopen.texi: Likewise.
13479         * doc/posix-functions/freopen.texi: Likewise.
13480         * doc/posix-functions/fsetpos.texi: Likewise.
13481         * doc/posix-functions/fstatvfs.texi: Likewise.
13482         * doc/posix-functions/ftruncate.texi: Likewise.
13483         * doc/posix-functions/ftw.texi: Likewise.
13484         * doc/posix-functions/getrlimit.texi: Likewise.
13485         * doc/posix-functions/glob.texi: Likewise.
13486         * doc/posix-functions/lio_listio.texi: Likewise.
13487         * doc/posix-functions/lockf.texi: Likewise.
13488         * doc/posix-functions/mkstemp.texi: Likewise.
13489         * doc/posix-functions/mmap.texi: Likewise.
13490         * doc/posix-functions/nftw.texi: Likewise.
13491         * doc/posix-functions/openat.texi: Likewise.
13492         * doc/posix-functions/opendir.texi: Likewise.
13493         * doc/posix-functions/posix_fadvise.texi: Likewise.
13494         * doc/posix-functions/posix_fallocate.texi: Likewise.
13495         * doc/posix-functions/pread.texi: Likewise.
13496         * doc/posix-functions/pwrite.texi: Likewise.
13497         * doc/posix-functions/readdir.texi: Likewise.
13498         * doc/posix-functions/readdir_r.texi: Likewise.
13499         * doc/posix-functions/rewinddir.texi: Likewise.
13500         * doc/posix-functions/scandir.texi: Likewise.
13501         * doc/posix-functions/seekdir.texi: Likewise.
13502         * doc/posix-functions/setrlimit.texi: Likewise.
13503         * doc/posix-functions/statvfs.texi: Likewise.
13504         * doc/posix-functions/telldir.texi: Likewise.
13505         * doc/posix-functions/tmpfile.texi: Likewise.
13506         * doc/posix-functions/truncate.texi: Likewise.
13507         * doc/glibc-functions/fallocate.texi: Likewise.
13508         * doc/glibc-functions/fstatfs.texi: Likewise.
13509         * doc/glibc-functions/fts_children.texi: Likewise.
13510         * doc/glibc-functions/fts_read.texi: Likewise.
13511         * doc/glibc-functions/getdirentries.texi: Likewise.
13512         * doc/glibc-functions/mkostemp.texi: Likewise.
13513         * doc/glibc-functions/mkostemps.texi: Likewise.
13514         * doc/glibc-functions/mkstemps.texi: Likewise.
13515         * doc/glibc-functions/preadv.texi: Likewise.
13516         * doc/glibc-functions/pwritev.texi: Likewise.
13517         * doc/glibc-functions/sendfile.texi: Likewise.
13518         * doc/glibc-functions/statfs.texi: Likewise.
13519
13520 2011-07-24  Bruno Haible  <bruno@clisp.org>
13521
13522         doc: Fix typo.
13523         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
13524
13525 2011-07-24  Bruno Haible  <bruno@clisp.org>
13526
13527         doc: Mention fsusage.
13528         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
13529
13530 2011-07-24  Bruno Haible  <bruno@clisp.org>
13531
13532         doc: Mention new glibc headers and functions.
13533         * doc/glibc-headers/gshadow.texi: New file.
13534         * doc/glibc-functions/endsgent.texi: New file.
13535         * doc/glibc-functions/fgetsgent.texi: New file.
13536         * doc/glibc-functions/fgetsgent_r.texi: New file.
13537         * doc/glibc-functions/getsgent.texi: New file.
13538         * doc/glibc-functions/getsgent_r.texi: New file.
13539         * doc/glibc-functions/getsgnam.texi: New file.
13540         * doc/glibc-functions/getsgnam_r.texi: New file.
13541         * doc/glibc-functions/putsgent.texi: New file.
13542         * doc/glibc-functions/setsgent.texi: New file.
13543         * doc/glibc-functions/sgetsgent.texi: New file.
13544         * doc/glibc-functions/sgetsgent_r.texi: New file.
13545         * doc/glibc-functions/malloc_info.texi: New file.
13546         * doc/glibc-functions/preadv.texi: New file.
13547         * doc/glibc-functions/pwritev.texi: New file.
13548         * doc/glibc-functions/register_printf_modifier.texi: New file.
13549         * doc/glibc-functions/register_printf_specifier.texi: New file.
13550         * doc/glibc-functions/register_printf_type.texi: New file.
13551         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
13552         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
13553         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
13554         * doc/glibc-functions/pthread_getname_np.texi: New file.
13555         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
13556         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
13557         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
13558         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
13559         * doc/glibc-functions/pthread_setname_np.texi: New file.
13560         * doc/glibc-functions/pthread_sigqueue.texi: New file.
13561         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
13562         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
13563         * doc/glibc-functions/qsort_r.texi: New file.
13564         * doc/glibc-functions/quick_exit.texi: New file.
13565         * doc/glibc-functions/syncfs.texi: New file.
13566         * doc/gnulib.texi: Include them.
13567         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
13568         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
13569         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
13570         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13571         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13572         * doc/glibc-functions/execvpe.texi: Likewise.
13573
13574 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13575
13576         ftell: don't include <unistd.h>
13577         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
13578         guaranteed to define off_t, and the ftell module depends on the
13579         stdio module.
13580
13581         ftell: do not assume wraparound signed arithmetic
13582         * lib/ftell.c: Include <limits.h>.
13583         (ftell): Don't assume wraparound signed arithmetic.
13584
13585 2011-07-24  Bruno Haible  <bruno@clisp.org>
13586
13587         close: No longer depend on module 'fclose'.
13588         * modules/close (Depends-on): Remove fclose.
13589         * NEWS: Mention the change.
13590         Suggested by Sam Steingold <sds@gnu.org>.
13591
13592 2011-07-24  Bruno Haible  <bruno@clisp.org>
13593
13594         fsusage: Enable large volume support on AIX >= 5.2.
13595         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
13596         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
13597         instead of STAT_STATVFS.
13598         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
13599
13600         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
13601         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
13602         f_blocks field only on MacOS X.
13603
13604         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
13605         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
13606         * modules/fsusage (Depends-on): Add largefile.
13607
13608 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
13609
13610         * README: Modernize discussion of signed integers.
13611         Assuming overflow wraparound is no longer safe.
13612         Mention ones' complement and signed magnitude.
13613
13614 2011-07-22  Bruno Haible  <bruno@clisp.org>
13615
13616         select tests, pselect tests: Refactor.
13617         * tests/test-select.h: New file, extracted from tests/test-select.c.
13618         (select_fn): New type.
13619         (test, do_select, do_select_nowait, do_select_wait, test_tty,
13620         test_connect_first, test_accept_first, test_pair, test_socket_pair,
13621         test_pipe): Add my_select argument.
13622         (test_function): Renamed from main. Add my_select argument.
13623         * tests/test-select.c: Move most code to tests/test-select.h. Include
13624         test-select.h.
13625         * modules/select-tests (Files): Add tests/test-select.h.
13626         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
13627         (my_select, main): New functions.
13628         * modules/pselect-tests (Files): Add tests/test-select.h,
13629         tests/macros.h, tests/signature.h.
13630         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
13631         (configure.ac): Check for <sys/wait.h>.
13632
13633 2011-07-22  Bruno Haible  <bruno@clisp.org>
13634
13635         sys_select tests: Check the signature of FD_*.
13636         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
13637         signature tests from here...
13638         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
13639         here.
13640         * modules/sys_select-tests (Files): Add tests/signature.h.
13641
13642 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13643
13644         largefile: new module, replacing large-inode
13645         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
13646         * MODULES.html.sh: Add largefile, remove large-inode.
13647         * modules/largefile, m4/largefile.m4: New files.
13648         * modules/large-inode, m4/large-inode.m4: Remove.
13649
13650         fsusage: port to MacOS X 10.7 with 4 TiB file systems
13651         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
13652         implementations that use only 32 bits to count blocks.
13653         On typical hosts with 1024-byte blocks, this fails with file
13654         systems as small as 4 TiB.  Problem reported by Herb Wartens
13655         <http://debbugs.gnu.org/9140> and this should also fix a similar
13656         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
13657
13658         large-inode: New module
13659         * MODULES.html.sh: Add it.
13660         * modules/large-inode, m4/large-inode.m4: New files.
13661
13662         extensions: Enable extensions on MacOS X 10.5 and later.
13663         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
13664
13665 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
13666
13667         file-has-acl: use acl_extended_file_nofollow if available
13668         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
13669         (acl_extended_file): New macro.
13670         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
13671         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
13672
13673 2011-07-21  Bruno Haible  <bruno@clisp.org>
13674
13675         Declare system functions in a way that works with C++.
13676         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
13677         declare fdopendir as extern "C".
13678         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
13679         declare frexpl as extern "C".
13680         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
13681         declare gai_strerror as extern "C".
13682         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
13683         programs, declare gai_strerror as extern "C".
13684         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
13685         declare getlogin_r as extern "C".
13686         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
13687         as extern "C".
13688         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
13689         declare ldexpl as extern "C".
13690         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
13691         as extern "C".
13692         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
13693         program, declare getmntinfo as extern "C".
13694         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
13695         stpncpy as extern "C".
13696         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
13697         program, declare __xpg_strerror_r as extern "C".
13698         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
13699         strndup as extern "C".
13700         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
13701         declare memset and bzero as extern "C".
13702         Reported by Sam Steingold <sds@gnu.org>.
13703
13704 2011-07-12  Jim Meyering  <meyering@redhat.com>
13705
13706         maint.mk: prohibit inclusion of "verify.h" without use
13707         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
13708
13709 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13710
13711         timer-time: A new module to check for timer_settime()
13712         * m4/timer_time.m4: Check for the posix function.
13713         * modules/timer-time: Add the new module.
13714         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
13715         Mention it.
13716
13717 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
13718             Bruno Haible  <bruno@clisp.org>
13719
13720         pthread_sigmask: assume POSIX threads if --avoid=threadlib
13721         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
13722         not defined, assume POSIX threads and look for pthread_sigmask in
13723         $LIBS, without changing $CPPFLAGS.
13724
13725 2011-07-19  Bruno Haible  <bruno@clisp.org>
13726
13727         strstr: Update cross-compilation guess.
13728         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
13729         CPUs, guess no, in view of glibc
13730         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
13731         Suggested by Eric Blake. Reported by Reuben Thomas.
13732
13733 2011-07-19  Pádraig Brady  <P@draigBrady.com>
13734
13735         getopt-gnu: suppress core dumps from detection code
13736         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
13737         to suppress core dumps that may well occur on glibc systems.
13738         * modules/getopt-gnu: Depend on nocrash.
13739
13740 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
13741
13742         pthread_sigmask: ensure usleep is declared
13743         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
13744         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
13745
13746 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
13747
13748         doc: Document NonStop portability issues.
13749         * doc/posix-functions/sigaction.texi (sigaction):
13750         * doc/posix-headers/signal.texi (signal.h):
13751         Document NonStop.  See Joachim Schmitz in
13752         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
13753
13754 2011-07-15  Bruno Haible  <bruno@clisp.org>
13755
13756         ffsl, ffsll: Avoid unportable behaviour.
13757         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
13758
13759 2011-07-15  Bruno Haible  <bruno@clisp.org>
13760
13761         ffs: More tests.
13762         * tests/test-ffs.c (NBITS): New macro.
13763         (main): Add more tests.
13764         * tests/test-ffsl.c (NBITS): New macro.
13765         (main): Add more tests.
13766         * tests/test-ffsll.c (NBITS): New macro.
13767         (main): Add more tests.
13768
13769 2011-07-15  Eric Blake  <eblake@redhat.com>
13770
13771         ffsl, ffsll: new modules
13772         * modules/ffsl: New file.
13773         * modules/ffsll: Likewise.
13774         * m4/ffsl.m4: Likewise.
13775         * m4/ffsll.m4: Likewise.
13776         * lib/ffsl.c: Likewise.
13777         * lib/ffsl.h: Likewise.
13778         * lib/ffsll.c: Likewise.
13779         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
13780         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
13781         * modules/string (Makefile.am): Substitute witnesses.
13782         * lib/strings.in.h (ffsl, ffsll): Declare.
13783         * modules/ffsl-tests: New test file.
13784         * modules/ffsll-tests: Likewise.
13785         * tests/test-ffsl.c: Likewise.
13786         * tests/test-ffsll.c: Likewise.
13787         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13788         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
13789         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
13790
13791         ffs: fix m4 prerequisite
13792         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
13793
13794         ffs: avoid undefined behavior
13795         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
13796         * tests/test-ffs.c (naive, main): Avoid signed shifts.
13797         Reported by Bruno Haible.
13798
13799 2011-07-12  Bruno Haible  <bruno@clisp.org>
13800
13801         pthread_sigmask: Rely on module 'threadlib'.
13802         * modules/pthread_sigmask (Depends-on): Add threadlib.
13803         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
13804         is defined.
13805
13806 2011-07-12  Bruno Haible  <bruno@clisp.org>
13807
13808         regex: Depend on module 'strcase'.
13809         * modules/regex (Depends-on): Add strcase, for strcasecmp().
13810
13811 2011-07-12  Jim Meyering  <meyering@redhat.com>
13812
13813         warn-on-use: fix typo in file name
13814         * modules/snippet/warn-on-use (Files): Correct file name:
13815         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
13816
13817 2011-07-12  Bruno Haible  <bruno@clisp.org>
13818
13819         strings: Document module.
13820         * doc/posix-headers/strings.texi: Mention module 'strings'.
13821
13822 2011-07-12  Bruno Haible  <bruno@clisp.org>
13823
13824         Rename module '_Noreturn' to 'snippet/_Noreturn'.
13825         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
13826         (Files, Makefile.am): Update.
13827         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
13828         * modules/stdlib (Depends-on): Update.
13829
13830 2011-07-12  Bruno Haible  <bruno@clisp.org>
13831
13832         * NEWS: Mention the changes.
13833
13834         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
13835         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
13836         (Files, Makefile.am): Update.
13837         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
13838         * modules/arpa_inet (Depends-on): Update.
13839         * modules/ctype (Depends-on): Update.
13840         * modules/dirent (Depends-on): Update.
13841         * modules/fcntl-h (Depends-on): Update.
13842         * modules/glob (Depends-on): Update.
13843         * modules/iconv-h (Depends-on): Update.
13844         * modules/inttypes-incomplete (Depends-on): Update.
13845         * modules/langinfo (Depends-on): Update.
13846         * modules/locale (Depends-on): Update.
13847         * modules/math (Depends-on): Update.
13848         * modules/netdb (Depends-on): Update.
13849         * modules/poll-h (Depends-on): Update.
13850         * modules/pty (Depends-on): Update.
13851         * modules/search (Depends-on): Update.
13852         * modules/signal (Depends-on): Update.
13853         * modules/spawn (Depends-on): Update.
13854         * modules/stdio (Depends-on): Update.
13855         * modules/stdlib (Depends-on): Update.
13856         * modules/string (Depends-on): Update.
13857         * modules/strings (Depends-on): Update.
13858         * modules/sys_file (Depends-on): Update.
13859         * modules/sys_ioctl (Depends-on): Update.
13860         * modules/sys_select (Depends-on): Update.
13861         * modules/sys_socket (Depends-on): Update.
13862         * modules/sys_stat (Depends-on): Update.
13863         * modules/sys_time (Depends-on): Update.
13864         * modules/sys_times (Depends-on): Update.
13865         * modules/sys_utsname (Depends-on): Update.
13866         * modules/sys_wait (Depends-on): Update.
13867         * modules/termios (Depends-on): Update.
13868         * modules/time (Depends-on): Update.
13869         * modules/unistd (Depends-on): Update.
13870         * modules/wchar (Depends-on): Update.
13871         * modules/wctype-h (Depends-on): Update.
13872         * MODULES.html.sh (Support for building libraries and executables):
13873         Update.
13874
13875         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
13876         * modules/snippet/unused-parameter: Renamed from
13877         modules/unused-parameter.
13878         (Files, Makefile.am): Update.
13879         * build-aux/snippet/unused-parameter.h: Renamed from
13880         build-aux/unused-parameter.h.
13881         * modules/selinux-h (Depends-on): Update.
13882         * modules/unistr/base (Depends-on): Update.
13883         * MODULES.html.sh (Core language properties): Update.
13884
13885         Rename module 'link-warning' to 'snippet/link-warning'.
13886         * modules/snippet/link-warning: Renamed from modules/link-warning.
13887         (Files, Makefile.am): Update.
13888         * build-aux/snippet/link-warning.h: Renamed from
13889         build-aux/link-warning.h.
13890         * MODULES.html.sh (Support for building libraries and executables):
13891         Update.
13892
13893         Rename module 'c++defs' to 'snippet/c++defs'.
13894         * modules/snippet/c++defs: Renamed from modules/c++defs.
13895         (Files, Makefile.am): Update.
13896         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
13897         * modules/arpa_inet (Depends-on): Update.
13898         * modules/ctype (Depends-on): Update.
13899         * modules/dirent (Depends-on): Update.
13900         * modules/fcntl-h (Depends-on): Update.
13901         * modules/glob (Depends-on): Update.
13902         * modules/iconv-h (Depends-on): Update.
13903         * modules/langinfo (Depends-on): Update.
13904         * modules/locale (Depends-on): Update.
13905         * modules/math (Depends-on): Update.
13906         * modules/netdb (Depends-on): Update.
13907         * modules/poll-h (Depends-on): Update.
13908         * modules/pty (Depends-on): Update.
13909         * modules/search (Depends-on): Update.
13910         * modules/signal (Depends-on): Update.
13911         * modules/spawn (Depends-on): Update.
13912         * modules/stdio (Depends-on): Update.
13913         * modules/stdlib (Depends-on): Update.
13914         * modules/string (Depends-on): Update.
13915         * modules/strings (Depends-on): Update.
13916         * modules/sys_ioctl (Depends-on): Update.
13917         * modules/sys_select (Depends-on): Update.
13918         * modules/sys_socket (Depends-on): Update.
13919         * modules/sys_stat (Depends-on): Update.
13920         * modules/sys_time (Depends-on): Update.
13921         * modules/sys_wait (Depends-on): Update.
13922         * modules/termios (Depends-on): Update.
13923         * modules/time (Depends-on): Update.
13924         * modules/unistd (Depends-on): Update.
13925         * modules/wchar (Depends-on): Update.
13926         * modules/wctype-h (Depends-on): Update.
13927
13928         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
13929         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
13930         (Files, Makefile.am): Update.
13931         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
13932         * modules/argv-iter (Depends-on): Update.
13933         * modules/arpa_inet (Depends-on): Update.
13934         * modules/dirent (Depends-on): Update.
13935         * modules/fcntl-h (Depends-on): Update.
13936         * modules/fnmatch (Depends-on): Update.
13937         * modules/getopt-posix (Depends-on): Update.
13938         * modules/glob (Depends-on): Update.
13939         * modules/iconv-h (Depends-on): Update.
13940         * modules/inttypes-incomplete (Depends-on): Update.
13941         * modules/locale (Depends-on): Update.
13942         * modules/math (Depends-on): Update.
13943         * modules/netdb (Depends-on): Update.
13944         * modules/search (Depends-on): Update.
13945         * modules/signal (Depends-on): Update.
13946         * modules/spawn (Depends-on): Update.
13947         * modules/stdio (Depends-on): Update.
13948         * modules/stdlib (Depends-on): Update.
13949         * modules/string (Depends-on): Update.
13950         * modules/strings (Depends-on): Update.
13951         * modules/sys_socket (Depends-on): Update.
13952         * modules/sys_stat (Depends-on): Update.
13953         * modules/sys_time (Depends-on): Update.
13954         * modules/sys_times (Depends-on): Update.
13955         * modules/sys_utsname (Depends-on): Update.
13956         * modules/time (Depends-on): Update.
13957         * modules/unistd (Depends-on): Update.
13958         * modules/wchar (Depends-on): Update.
13959         * MODULES.html.sh (Support for building libraries and executables):
13960         Update.
13961
13962 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13963
13964         Improvements on _Noreturn and related modules.
13965
13966         modules/_Exit-tests: test _Noreturn too
13967         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
13968         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
13969         (main): Use them.
13970
13971         stdnoreturn, stdnoreturn-tests: remove modules
13972         They're not needed here and a bit premature for use elsewhere.  See
13973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
13974         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13975         * tests/test-stdnoreturn.c: Remove files.
13976         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13977         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13978         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13979         and using noreturn.
13980         * modules/openat, modules/sigpipe-die, modules/xalloc:
13981         * modules/xmemdup0, modules/xstrtol:
13982         Remove dependency on stdnoreturn.
13983
13984         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13985         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13986         Reparenthesize to avoid GCC warning.
13987         Support Microsoft's syntax.
13988         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13989
13990         _Noreturn-tests: remove module
13991         * modules/_Noreturn-tests: Remove.
13992         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13993         * tests/test-_Noreturn.c: Remove.
13994         * tests/test-stdnoreturn.c: Merge from the old
13995         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13996
13997 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13998
13999         _Noreturn, stdnoreturn, and related modules.
14000
14001         * top/maint.mk: Adjust to new noreturn support.
14002         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14003         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14004
14005         xalloc: use stdnoreturn.h
14006         * lib/xalloc.h: Include <stdnoreturn.h>.
14007         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14008         * modules/xalloc (Depends-on): Add stdnoreturn.
14009
14010         xstrtol: use stdnoreturn.h
14011         * lib/xstrtol.h: Include <stdnoreturn.h>.
14012         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14013         * modules/xstrtol (Depends-on): Add stdnoreturn.
14014
14015         xmemdup0: use stdnoreturn.h
14016         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14017         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14018         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14019
14020         sigpipe-die: use stdnoreturn.h
14021         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14022         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14023         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14024
14025         openat: use stdnoreturn.h
14026         * lib/openat.h: Include <stdnoreturn.h>.
14027         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14028         * modules/openat (Depends-on): Add stdnoreturn.
14029
14030         * lib/openat-die.c (openat_save_fail): Modernize comment.
14031
14032         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14033
14034         * lib/glthread/thread.h: Modernize comment.
14035
14036         obstack: use _Noreturn
14037         * lib/obstack.c (__attribute__): Remove macro.
14038         (print_and_abort): Use _Noreturn.
14039
14040         c-stack: use _Noreturn
14041         * lib/c-stack.c (die, overflow_handler, segv_handler):
14042         Use _Noreturn rather than __attribute__((noreturn)).
14043
14044         argmatch-tests, exclude_tests: use _Noreturn
14045         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14046         Remove.
14047         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14048
14049         stdlib: use _Noreturn
14050         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14051         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14052         * modules/stdlib (Depends-on): Add _Noreturn.
14053         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14054
14055         stdnoreturn-tests: new module
14056         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14057
14058         stdnoreturn: new module
14059         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14060         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14061
14062         _Noreturn-tests: new module
14063         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14064
14065         _Noreturn: new module
14066         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14067         New section, mentioning it.
14068         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14069
14070         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14071
14072 2011-07-11  Eric Blake  <eblake@redhat.com>
14073
14074         ffs: new module
14075         * modules/ffs: New file.
14076         * m4/ffs.m4: Likewise.
14077         * lib/ffs.c: Likewise.
14078         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14079         * modules/strings (Makefile.am): Substitute witness.
14080         (Depends-on): Add c++defs.
14081         * lib/strings.in.h (ffs): Declare.
14082         * modules/ffs-tests: New test file.
14083         * tests/test-ffs.c: Test new module.
14084         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14085         * doc/posix-functions/ffs.texi (ffs): Likewise.
14086
14087         regex: avoid compiler warning
14088         * lib/regex.c (includes): Include <strings.h>, for use of
14089         strcasecmp in regcomp.c.
14090         Reported by Joachim Schmitz.
14091
14092 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14093
14094         stdint: respect system's intmax_t if INTMAX_MAX
14095         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14096         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14097         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14098         long but int64_t is long long, and where we will clash with the
14099         system intmax_t if we override it.  See
14100         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14101         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14102         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14103         similarly for UINTMAX_C.
14104
14105 2011-07-08  Bruno Haible  <bruno@clisp.org>
14106
14107         pthread_sigmask tests: Avoid a compiler warning.
14108         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14109         non-zero.
14110
14111         sigprocmask tests: A better way to avoid a compiler warning.
14112         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14113         (main): Complain if system() returns non-zero.
14114         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14115
14116 2011-07-08  Bruno Haible  <bruno@clisp.org>
14117
14118         pthread_sigmask: Work around IRIX bug.
14119         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14120         bug.
14121         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14122         there may be unblocked pending signals.
14123         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14124
14125 2011-07-08  Bruno Haible  <bruno@clisp.org>
14126
14127         pthread_sigmask: Work around Cygwin bug.
14128         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14129         bug.
14130         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14131         the system's pthread_sigmask function.
14132         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14133
14134 2011-07-08  Bruno Haible  <bruno@clisp.org>
14135
14136         pthread_sigmask: Work around bug in single-threaded implementation.
14137         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14138         FreeBSD, HP-UX, Solaris bug.
14139         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14140         * lib/pthread_sigmask.c: Include <stddef.h>.
14141         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14142         the system's pthread_sigmask function.
14143         * modules/pthread_sigmask (configure.ac): Invoke
14144         gl_PREREQ_PTHREAD_SIGMASK.
14145         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14146         HP-UX, Solaris.
14147
14148 2011-07-08  Eric Blake  <eblake@redhat.com>
14149
14150         test-sigprocmask: avoid compiler warning
14151         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14152         * tests/test-sigprocmask.c (main): Use it to silence warning.
14153         Reported by Jim Meyering.
14154
14155         test-snprintf: avoid compiler warning
14156         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14157         * tests/test-vsnprintf.c (main): Likewise.
14158         Reported by Jim Meyering.
14159
14160 2011-07-08  Bruno Haible  <bruno@clisp.org>
14161
14162         Tests for module 'pthread_sigmask'.
14163         * modules/pthread_sigmask-tests: New file.
14164         * tests/test-pthread_sigmask1.c: New file, based on
14165         tests/test-sigprocmask.c.
14166         * tests/test-pthread_sigmask2.c: New file.
14167
14168 2011-07-08  Jim Meyering  <meyering@redhat.com>
14169
14170         test-getopt.h: avoid warning about an unused variable
14171         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14172
14173 2011-07-07  Jim Meyering  <meyering@redhat.com>
14174
14175         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14176         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14177         now that it no longer contains leading TABs.
14178         Remove unused "url=FIXME" statement.
14179
14180 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14181
14182         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14183         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14184         When gl_THREADLIB is not in use, assume that the POSIX sematics
14185         are desired.  This is better for Emacs, which uses POSIX semantics
14186         on GNUish and/or POSIXish platforms, and does not use threads at
14187         all otherwise.
14188
14189         pthread_sigmask: fix typo when testing for libraries
14190         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14191         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14192
14193 2011-07-08  Eric Blake  <eblake@redhat.com>
14194
14195         fts: introduce FTS_NOATIME
14196         * lib/fts_.h (FTS_NOATIME): New bit flag.
14197         (FTS_OPTIONMASK): Adjust.
14198         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14199         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14200
14201 2011-07-08  Bruno Haible  <bruno@clisp.org>
14202
14203         Tests for module 'thread'.
14204         * modules/thread-tests: New file.
14205         * tests/test-thread_self.c: New file.
14206         * tests/test-thread_create.cc: New file.
14207
14208 2011-07-08  Bruno Haible  <bruno@clisp.org>
14209
14210         thread: Avoid gcc warnings when using gl_thread_self().
14211         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14212         'void *'.
14213         (gl_thread_self_pointer): Update.
14214
14215 2011-07-07  Bruno Haible  <bruno@clisp.org>
14216
14217         signal-c++-tests: Check declaration of pthread_sigmask.
14218         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14219         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14220         $(LIB_PTHREAD_SIGMASK).
14221
14222 2011-07-07  Bruno Haible  <bruno@clisp.org>
14223
14224         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14225         * lib/signal.in.h (pthread_sigmask): Override if
14226         REPLACE_PTHREAD_SIGMASK is 1.
14227         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14228         REPLACE_PTHREAD_SIGMASK.
14229         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14230         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14231         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14232         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14233         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14234
14235 2011-07-07  Bruno Haible  <bruno@clisp.org>
14236
14237         pthread_sigmask: Ensure declaration in <signal.h>.
14238         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14239         include <pthread.h>.
14240         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14241         problem.
14242
14243 2011-07-07  Bruno Haible  <bruno@clisp.org>
14244
14245         pthread_sigmask: Document the module.
14246         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14247
14248 2011-07-07  Bruno Haible  <bruno@clisp.org>
14249
14250         pthread_sigmask: Follow gnulib conventions.
14251         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14252         gl_PTHREAD_SIGMASK.
14253         * modules/pthread_sigmask (configure.ac): Update.
14254
14255 2011-07-07  Bruno Haible  <bruno@clisp.org>
14256
14257         pthread_sigmask: Make declaration C++ safe.
14258         * lib/signal.in.h: In two special conditions, just do an #include_next.
14259         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14260         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14261         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14262         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14263         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14264         not REPLACE_PTHREAD_MASK.
14265         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14266         not REPLACE_PTHREAD_MASK.
14267         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14268
14269 2011-07-07  Bruno Haible  <bruno@clisp.org>
14270
14271         pthread_sigmask: Fix return value.
14272         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14273         * lib/pthread_sigmask.c: New file.
14274         * modules/pthread_sigmask (Files): Add it.
14275         (configure.ac): Invoke AC_LIBOBJ.
14276
14277 2011-07-07  Eric Blake  <eblake@redhat.com>
14278
14279         getopt: more portable argv creation
14280         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14281         const, use char arrays rather than strings.
14282         Suggested by Paul Eggert.
14283
14284 2011-07-07  Bruno Haible  <bruno@clisp.org>
14285
14286         Tests for module 'sigprocmask'.
14287         * modules/sigprocmask-tests: New file.
14288         * tests/test-sigprocmask.c: New file.
14289
14290 2011-07-07  Bruno Haible  <bruno@clisp.org>
14291
14292         float tests: Tweak.
14293         * tests/test-float.c (main): Tweak skip message.
14294
14295 2011-07-07  Eric Blake  <eblake@redhat.com>
14296
14297         getopt: avoid compiler warning during configure
14298         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14299         assigning string literals to non-const pointer.
14300
14301         getopt-gnu: avoid crash in glibc getopt
14302         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14303         * tests/test-getopt.h (test_getopt): Enhance test.
14304         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14305         * doc/posix-functions/getopt.texi (getopt): Document it.
14306         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14307         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14308         Likewise.
14309
14310 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14311
14312         getopt: handle W; without long options in getopt [BZ #12922]
14313         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14314         but no long options are defined, just return 'W'.
14315
14316 2011-07-07  Bruno Haible  <bruno@clisp.org>
14317
14318         Avoid literal tabs.
14319         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14320         variable containing a tab instead of a literal tab.
14321         Reported by Jim Meyering.
14322
14323 2011-07-07  Bruno Haible  <bruno@clisp.org>
14324
14325         Comments.
14326         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14327
14328 2011-07-06  Bruno Haible  <bruno@clisp.org>
14329
14330         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14331         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14332         <winsock2.h>.
14333         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14334         lib/sys_socket.in.h.
14335         (close, gethostname): Hide declarations from <winsock2.h>.
14336         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14337         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14338         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14339         (select): Don't override if gnulib's <sys/select.h> was already
14340         included.
14341         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14342         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14343         setsockopt, shutdown, select): Tweak indentation.
14344
14345 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14346
14347         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14348         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14349         in an application that does not use the sys_select module.
14350
14351 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14352
14353         poll: do not return 0 on timeout=-1
14354         * lib/poll.c: Loop with yield if no events occured
14355
14356 2011-07-06  Eric Blake  <eblake@redhat.com>
14357
14358         pthread_sigmask: always replace when not using pthread
14359         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14360         replacement when using some threading other than pthread.  Fix
14361         logic bug.
14362
14363 2011-07-06  Bruno Haible  <bruno@clisp.org>
14364
14365         Comments.
14366         * m4/printf.m4: Update comments about mingw.
14367
14368 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14369
14370         sys_select: define sigset_t more portably
14371         * lib/sys_select.in.h: Always include <sys/types.h>, since
14372         we now need sigset_t and mingw defines it there.
14373         Include <signal.h> before split inclusion guard, to avoid
14374         mishaps on Solaris, whose <signal.h> eventually includes us.
14375         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14376         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14377         which come from ...
14378         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14379         gl_CHECK_TYPE_SIGSET_T.
14380         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14381         does the real work.
14382         * modules/sys_select (Depends-on): Add 'signal'.
14383
14384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14385         Suggested by Bruno Haible.
14386
14387         pselect: Use pthread_sigmask, not sigprocmask.
14388         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14389         multithreaded apps better than sigprocmask does.
14390         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14391         sigprocmask directly.
14392
14393 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14394
14395         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14396         Don't #undef,  since we don't need any underlying pselect.
14397         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14398         (Depends-on): Add select.
14399         (Link): Add $(LIBSOCKET).
14400         These changes suggested by Bruno Haible.
14401
14402         pselect: document better
14403         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14404         * doc/posix-functions/pselect.texi (pselect): Document new module.
14405
14406         pthread_sigmask: new module
14407         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14408         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14409         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14410         This is done only as a macro; I don't know how well that'll
14411         work for C++.  Move <sys/types.h> include before the include_next,
14412         to avoid mishap on Solaris.
14413         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14414         * modules/signal (Makefile.am): Substitute the check's results.
14415         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14416
14417         test-pselect: new module
14418         * modules/pselect-tests, tests/test-pselect.c: New files.
14419         * tests/test-select.c, tests/test-sys_select-c++.cc:
14420         If TEST_PSELECT is defined, test pselect instead of testing select.
14421
14422         * tests/test-sys_select.c (sigset_t): Test for it, too.
14423         Suggested by Bruno Haible.
14424
14425 2011-07-05  Eric Blake  <eblake@redhat.com>
14426
14427         snprintf: guarantee %1$d, for libintl
14428         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14429         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14430         * doc/posix-functions/snprintf.texi (snprintf): Update.
14431         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14432         * tests/test-snprintf.c (main): Enhance test.
14433         * tests/test-vsnprintf.c (main): Likewise.
14434
14435 2011-07-05  Jim Meyering  <meyering@redhat.com>
14436
14437         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14438         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14439         per Bruno's request, to accommodate this idiom (no space after "#")
14440         even when the function is inside an #if block:
14441         char *
14442         gets (char *s)
14443         #undef gets
14444         {
14445           ...
14446         }
14447
14448 2011-07-04  Jim Meyering  <meyering@redhat.com>
14449
14450         maint: indent with spaces, not TABs, and add a rule to check this
14451         * tests/test-userspec.c: Indent with spaces, not TABs.
14452         * tests/test-argp.c: Likewise.
14453         * tests/test-c-stack2.sh: Likewise.
14454         * tests/test-parse-duration.sh: Likewise
14455         * m4/strtod.m4: Likewise.
14456         * m4/alloca.m4: Likewise.
14457         * m4/pselect.m4: Likewise.
14458         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14459
14460 2011-07-03  Jim Meyering  <meyering@redhat.com>
14461
14462         maint.mk: correct omissions in prohibit_argmatch_without_use check
14463         This rule would mistakenly report that argmatch.h is included without
14464         use even when both the argmatch and invalid_arg macro were used.
14465         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14466         of argmatch and invalid_arg.
14467
14468 2011-07-03  Bruno Haible  <bruno@clisp.org>
14469
14470         Comments about EINTR.
14471         * lib/safe-read.h: Explain the purpose of this module.
14472         * lib/safe-write.h: Likewise.
14473         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14474         module.
14475         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14476         module.
14477         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14478
14479 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14480
14481         xnanosleep: Rewrite to use new dtotimespec module.
14482         It has the conversion code that used to be in xnanosleep.
14483         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14484         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14485         (TIME_T_MAX): Remove.
14486         (xnanosleep): Rewrite in terms of dtotimespec.
14487         * modules/xnanosleep (Depends-on): Add dtotimespec.
14488         Remove intprops, stdbool.
14489
14490         timespec-add, timespec-sub: new modules
14491         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14492         * lib/timespec-add.c, lib/timespec-sub.c:
14493         * modules/timespec-add, modules/timespec-sub: New files.
14494
14495         dtotimespec: new module
14496         * lib/timespec.h (dtotimespec): New decl.
14497         * lib/dtotimespec.c, modules/dtotimespec: New files.
14498
14499         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14500
14501         pselect: new module
14502         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14503         (pselect): New decls.
14504         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14505         since the standard pselect decl uses 'restrict'.
14506         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
14507         HAVE_PSELECT, REPLACE_PSELECT.
14508         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
14509         HAVE_PSELECT, REPLACE_PSELECT.
14510         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
14511
14512         sys_select: don't depend on sys_socket
14513         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
14514         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
14515         This fix works on GNU and GNU-like platforms, but has not been tested
14516         on native Windows.
14517         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
14518         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
14519         gl_HEADER_SYS_SOCKET.
14520         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
14521         gl_PREREQ_SYS_H_WINSOCK2.
14522
14523 2011-06-29  Eric Blake  <eblake@redhat.com>
14524
14525         pipe2: fix C89 compile problem
14526         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
14527         Reported by Bruno Haible.
14528
14529         pipe, pipe2: don't corrupt fd on error
14530         * lib/pipe.c (pipe): Leave fd unchanged on error.
14531         * lib/pipe2.c (pipe2): Likewise.
14532         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
14533         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
14534
14535 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
14536
14537         mmap-anon: do not use regular expressions inadvertently
14538         * m4/mmap-anon.m4: Remove trailing period from strings sought
14539         in the output.
14540
14541 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
14542
14543         nanosleep: fix integer overflow problem
14544         * lib/nanosleep.c (my_usleep): Don't assume signed integer
14545         arithmetic wraps around on overflow.
14546
14547         nanosleep: simplify carrying
14548         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
14549         first call to the underyling nanosleep, not for the last one.
14550         This doesn't fix any bugs, but it simplifies the computation of
14551         the remaining delay.  Found while auditing integer overflow issues.
14552
14553         dup2: remove test for existence of fcntl
14554         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
14555         "#if HAVE_FCNTL", in the configure-time test program.
14556         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
14557         and therefore speeds up "configure" a bit.  Found while
14558         adding the dup2 module to Emacs.
14559
14560 2011-06-24  Eric Blake  <eblake@redhat.com>
14561
14562         maint.mk: enhance useless header checks
14563         * top/maint.mk (_sc_header_without_use): Check both include
14564         styles.
14565         (sc_prohibit_assert_without_use)
14566         (sc_prohibit_close_stream_without_use)
14567         (sc_prohibit_getopt_without_use)
14568         (sc_prohibit_quotearg_without_use)
14569         (sc_prohibit_quote_without_use)
14570         (sc_prohibit_long_options_without_use)
14571         (sc_prohibit_inttostr_without_use)
14572         (sc_prohibit_ignore_value_without_use)
14573         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
14574         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
14575         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
14576         (sc_prohibit_hash_pjw_without_use)
14577         (sc_prohibit_safe_read_without_use)
14578         (sc_prohibit_argmatch_without_use)
14579         (sc_prohibit_canonicalize_without_use)
14580         (sc_prohibit_root_dev_ino_without_use)
14581         (sc_prohibit_openat_without_use)
14582         (sc_prohibit_c_ctype_without_use)
14583         (sc_prohibit_signal_without_use)
14584         (sc_prohibit_stdio--_without_use)
14585         (sc_prohibit_stdio-safer_without_use)
14586         (sc_prohibit_strings_without_use)
14587         (sc_prohibit_intprops_without_use)
14588         (sc_prohibit_stddef_without_use)
14589         (sc_prohibit_xfreopen_without_use): Update clients.
14590
14591 2011-06-24  Jim Meyering  <meyering@redhat.com>
14592
14593         syntax-check: keep one maint.mk rule in sync with its header
14594         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
14595         of the bug Eric has just fixed, with today's commit 25e4c2ec.
14596         I prefer to avoid temporary files here, so use <(...), but that
14597         is not supported by /bin/sh, so...
14598         (SHELL): Define to /bin/bash.
14599
14600 2011-06-24  Eric Blake  <eblake@redhat.com>
14601
14602         maint.mk: update sc_prohibit_intprops_without_use
14603         * top/maint.mk (_intprops_names): Match recent changes.
14604
14605 2011-06-24  Bruno Haible  <bruno@clisp.org>
14606
14607         strerror-override: No-op tweak.
14608         * lib/strerror-override.h (strerror_override): Reorder conditions,
14609         for consistency with lib/strerror-override.c.
14610
14611 2011-06-23  Eric Blake  <eblake@redhat.com>
14612
14613         maint.mk: test further PATH_MAX issues
14614         * top/maint.mk (sc_prohibit_path_max_array): Rename...
14615         (sc_prohibit_path_max_allocation): ...and also test alloca.
14616         Suggested by Jim Meyering.
14617
14618 2011-06-22  Eric Blake  <eblake@redhat.com>
14619
14620         maint.mk: add syntax-check to avoid char[PATH_MAX]
14621         * top/maint.mk (sc_prohibit_path_max_array): New rule.
14622
14623         stat: be robust to PATH_MAX definition
14624         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
14625         * modules/stat (Depends-on): Add verify.
14626
14627         link: work around IRIX bug
14628         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
14629         * lib/link.c (rpl_link): Work around it.
14630         * tests/test-link.h (test_link): Enhance test.
14631         * doc/posix-functions/link.texi (link): Document the bug.
14632
14633         getopt: silence clang warning
14634         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
14635         dereference.
14636         Reported by Gustavo Martin Domato.
14637
14638 2011-06-22  Jim Meyering  <meyering@redhat.com>
14639
14640         bootstrap: do not insert a blank line into each .gitignore file
14641         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
14642
14643 2011-06-21  Eric Blake  <eblake@redhat.com>
14644
14645         perror: test for output mismatch
14646         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
14647         perror on IRIX.
14648
14649         strerror_r: fix OpenBSD behavior on out-of-range
14650         * lib/strerror_r.c (strerror_r): Always use maximal string.
14651         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
14652
14653         strerror_r: fix OpenBSD behavior on 0
14654         * lib/strerror-override.c (strerror_override): Also override 0
14655         when needed.
14656         * lib/strerror-override.h (strerror_override): Likewise.
14657         * lib/strerror.c (strerror): Simplify, now that 0 override is done
14658         earlier.
14659         * lib/strerror_r.c (strerror_r): Likewise.
14660         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
14661         behavior...
14662         (gl_FUNC_STRERROR_0): ...into new macro.
14663         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
14664         is overridden.
14665         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
14666         * modules/strerror-override (Files): Add strerror.m4.
14667         (configure.ac): Also provide override for 0 when needed.
14668         * doc/posix-functions/strerror.texi (strerror): Document this.
14669         * doc/posix-functions/perror.texi (perror): Likewise.
14670
14671         perror: adjust array size
14672         * modules/perror (Depends-on): Add strerror-override.
14673         * lib/perror.c (perror): Use it to avoid magic number.
14674
14675         strerror-override: reduce size
14676         * lib/strerror-override.c (strerror_override): Use fewer lines.
14677
14678 2011-06-20  Bruno Haible  <bruno@clisp.org>
14679
14680         pathmax: Ensure correct value for PATH_MAX on HP-UX.
14681         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
14682
14683 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14684
14685         alloca: port to compilers that can optimize like GCC 4.6.0
14686         * lib/alloca.c (find_stack_direction): New signature, taken from
14687         Autoconf git.  This works with GCC 4.6.0.  This code should never
14688         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
14689         be used with other compilers that optimize as well as GCC 4.6.0 does.
14690         (alloca): Adjust to new signature.
14691         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
14692         New macro, which patches Autoconf in a similar way.
14693
14694         c-stack: stop worrying about stack direction
14695         * lib/c-stack.c (find_stack_direction): Remove.
14696         (segv_handler): Don't worry about stack direction growth, as it's
14697         too much of a pain to configure this correctly, given how compilers
14698         are optimizing-away our stack-growth detection code.  Instead, assume
14699         that any access to just before or just after the stack is OK.
14700         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
14701         Don't require AC_FUNC_ALLOCA; no longer needed.
14702
14703 2011-06-20  Eric Blake  <eblake@redhat.com>
14704
14705         test-stat: don't allocate PATH_MAX bytes
14706         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
14707         PATH_MAX-sized buffer.
14708         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
14709         * modules/stat-tests (Depends-on): Likewise.
14710         * tests/test-fstatat.c (includes): Drop pathmax.h.
14711         * tests/test-stat.c (includes): Likewise.
14712         Reported by Bruno Haible.
14713
14714 2011-06-20  Bruno Haible  <bruno@clisp.org>
14715
14716         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
14717         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
14718         * lib/float.c: New file.
14719         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
14720         REPLACE_FLOAT_LDBL.
14721         * modules/float (Files): Add lib/float.c.
14722         (configure.ac): Invoke AC_LIBOBJ.
14723         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
14724
14725 2011-06-20  Bruno Haible  <bruno@clisp.org>
14726
14727         Tests for module 'float'.
14728         * modules/float-tests: New file.
14729         * tests/test-float.c: New file.
14730
14731 2011-06-19  Bruno Haible  <bruno@clisp.org>
14732
14733         isinf: Coding style.
14734         * lib/isinf.c: Use GNU coding style.
14735
14736 2011-06-19  Bruno Haible  <bruno@clisp.org>
14737
14738         linkat test: Avoid test failure on AIX 7.1.
14739         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
14740         * tests/test-link.h (test_link): Likewise.
14741
14742 2011-06-19  Bruno Haible  <bruno@clisp.org>
14743
14744         pread test: Avoid test failure on OpenBSD 4.9.
14745         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
14746
14747 2011-06-19  Bruno Haible  <bruno@clisp.org>
14748
14749         sprintf-posix: Fix test failure on AIX 7.1.
14750         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
14751         * doc/posix-functions/dprintf.texi: Mention limited precision problem
14752         on AIX.
14753         * doc/posix-functions/fprintf.texi: Likewise.
14754         * doc/posix-functions/printf.texi: Likewise.
14755         * doc/posix-functions/snprintf.texi: Likewise.
14756         * doc/posix-functions/sprintf.texi: Likewise.
14757         * doc/posix-functions/vdprintf.texi: Likewise.
14758         * doc/posix-functions/vfprintf.texi: Likewise.
14759         * doc/posix-functions/vprintf.texi: Likewise.
14760         * doc/posix-functions/vsnprintf.texi: Likewise.
14761         * doc/posix-functions/vsprintf.texi: Likewise.
14762
14763 2011-06-19  Bruno Haible  <bruno@clisp.org>
14764
14765         roundl-ieee: Fix test failure on AIX 7.1.
14766         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
14767         * doc/posix-functions/roundl.texi: Mention problem with negative
14768         arguments.
14769
14770 2011-06-19  Bruno Haible  <bruno@clisp.org>
14771
14772         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14773         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
14774         * doc/posix-functions/round.texi: Mention problem with negative
14775         arguments.
14776         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
14777
14778 2011-06-19  Bruno Haible  <bruno@clisp.org>
14779
14780         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
14781         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
14782         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
14783         * doc/posix-functions/roundf.texi: Mention problem with negative
14784         arguments.
14785         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
14786
14787 2011-06-19  Bruno Haible  <bruno@clisp.org>
14788
14789         ceilf-ieee: Work around bug on MacOS X 10.5.
14790         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
14791
14792         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
14793         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
14794         IEEE compliant, avoid compiler optimizations.
14795         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
14796         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
14797         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
14798         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
14799         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
14800         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
14801         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
14802         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
14803         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
14804         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
14805
14806 2011-06-19  Bruno Haible  <bruno@clisp.org>
14807
14808         ceilf-ieee: Work around bug on AIX 7.1.
14809         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
14810         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
14811
14812 2011-06-19  Bruno Haible  <bruno@clisp.org>
14813
14814         ceil-ieee: Work around bug on AIX 7.1.
14815         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
14816         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
14817
14818 2011-06-18  Bruno Haible  <bruno@clisp.org>
14819
14820         fsync test: Avoid test failure on MacOS X and AIX.
14821         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
14822         EINVAL.
14823
14824 2011-06-18  Bruno Haible  <bruno@clisp.org>
14825
14826         openat, fdopendir tests: Fix link errors.
14827         * modules/openat-tests (Depends-on): Add progname.
14828         * modules/fdopendir-tests (Depends-on): Likewise.
14829         * tests/test-fchownat.c: Include progname.h.
14830         (main): Call set_program_name.
14831         * tests/test-fstatat.c: Include progname.h.
14832         (main): Call set_program_name.
14833         * tests/test-mkdirat.c: Include progname.h.
14834         (main): Call set_program_name.
14835         * tests/test-openat.c: Include progname.h.
14836         (main): Call set_program_name.
14837         * tests/test-unlinkat.c: Include progname.h.
14838         (main): Call set_program_name.
14839         * tests/test-fdopendir.c: Include progname.h.
14840         (main): Call set_program_name.
14841
14842 2011-06-18  Bruno Haible  <bruno@clisp.org>
14843
14844         Doc update.
14845         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
14846         HP-UX.
14847         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
14848
14849 2011-06-18  Bruno Haible  <bruno@clisp.org>
14850
14851         getcwd tests: Avoid compilation error on HP-UX 11.31.
14852         * modules/getcwd-tests (Depends-on): Add pathmax.
14853         * tests/test-getcwd.c: Include pathmax.h.
14854
14855 2011-06-18  Bruno Haible  <bruno@clisp.org>
14856
14857         isfinite, isinf: Fix link error on AIX 6 and 7.
14858         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
14859         needed, also test the macro with a 'float' argument.
14860         * m4/isinf.m4 (gl_ISINF): Likewise.
14861
14862 2011-06-18  Bruno Haible  <bruno@clisp.org>
14863
14864         getloadavg: Don't clobber LIBS. Regression from previous commit.
14865         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
14866         AC_CHECK_LIB from here...
14867         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
14868         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
14869         gl_func_getloadavg_done.
14870         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14871
14872 2011-06-18  Bruno Haible  <bruno@clisp.org>
14873
14874         clean-temp: Improve documentation.
14875         * lib/clean-temp.h: Explain better how to use this module.
14876         Reported by John Darrington <john@darrington.wattle.id.au>.
14877
14878 2011-06-17  Bruno Haible  <bruno@clisp.org>
14879
14880         pread, pwrite: Avoid cc warning on AIX.
14881         * lib/unistd.in.h (pread): Undefine before defining as a macro.
14882         (pwrite): Likewise.
14883
14884 2011-06-17  Bruno Haible  <bruno@clisp.org>
14885
14886         spawn-pipe tests: Fix link error.
14887         * tests/test-spawn-pipe-child.c: Undefine fprintf.
14888         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14889
14890 2011-06-17  Bruno Haible  <bruno@clisp.org>
14891
14892         Tests: Remove unnecessary dependency.
14893         * modules/canonicalize-tests (Depends-on): Remove progname.
14894         * modules/chown-tests (Depends-on): Likewise.
14895         * modules/dirname-tests (Depends-on): Likewise.
14896         * modules/fdopendir-tests (Depends-on): Likewise.
14897         * modules/fdutimensat-tests (Depends-on): Likewise.
14898         * modules/hash-tests (Depends-on): Likewise.
14899         * modules/lchown-tests (Depends-on): Likewise.
14900         * modules/linkat-tests (Depends-on): Likewise.
14901         * modules/renameat-tests (Depends-on): Likewise.
14902         * modules/spawn-pipe-tests (Depends-on): Likewise.
14903         * modules/utimensat-tests (Depends-on): Likewise.
14904
14905 2011-06-17  Bruno Haible  <bruno@clisp.org>
14906
14907         spawn-pipe tests: Fix link error.
14908         * tests/test-spawn-pipe-child.c: Undefine fflush.
14909
14910 2011-06-17  Bruno Haible  <bruno@clisp.org>
14911
14912         Fix tests link errors.
14913         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14914         * modules/chown-tests (Makefile.am): Don't link test-chown with
14915         LIBINTL.
14916         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14917         LIBINTL.
14918         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14919         LIBINTL.
14920         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
14921         LIBINTL.
14922
14923 2011-06-16  Bruno Haible  <bruno@clisp.org>
14924
14925         crypto/gc-sha1: Fix recent regression.
14926         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
14927         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
14928
14929         crypto/gc-md5: Fix recent regression.
14930         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
14931
14932         crypto/gc-md4: Fix recent regression.
14933         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
14934         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
14935
14936         crypto/gc-arctwo: Fix recent regression.
14937         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
14938         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
14939
14940         crypto/gc-rijndael: Fix recent regression.
14941         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
14942         (configure.ac): Invoke AC_LIBOBJ here.
14943         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
14944         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14945
14946         crypto/gc-hmac-sha1: Fix recent regression.
14947         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
14948         (configure.ac): Invoke AC_LIBOBJ here.
14949         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
14950         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14951
14952         crypto/gc-hmac-md5: Fix recent regression.
14953         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
14954         (configure.ac): Invoke AC_LIBOBJ here.
14955         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
14956         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14957
14958         crypto/gc-des: Fix recent regression.
14959         * modules/crypto/gc-des (Files): Remove m4/des.m4.
14960         (configure.ac): Invoke AC_LIBOBJ here.
14961         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
14962         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14963
14964         crypto/gc-arcfour: Fix recent regression.
14965         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
14966         (configure.ac): Invoke AC_LIBOBJ here.
14967         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
14968         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14969
14970 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
14971
14972         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
14973         After the 2011-05-21 change, this macro requires
14974         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14975         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14976
14977 2011-06-16  Bruno Haible  <bruno@clisp.org>
14978
14979         fprintftime: Move AC_LIBOBJ invocations to module description.
14980         * m4/fprintftime.m4: Remove file.
14981         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14982         (configure.ac): Remove gl_FPRINTFTIME call.
14983         (Makefile.am): Augment lib_SOURCES.
14984         Reported by Jim Meyering.
14985
14986 2011-06-16  Bruno Haible  <bruno@clisp.org>
14987
14988         tmpfile-safer: Finish 2011-05-23 commit.
14989         * m4/stdio-safer.m4: Really remove file.
14990         Reported by Jim Meyering.
14991
14992 2011-06-16  Bruno Haible  <bruno@clisp.org>
14993
14994         syntax-check: Fix typo.
14995         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14996         printf-posix.m4.
14997         Reported by Jim Meyering.
14998
14999 2011-06-13  Jim Meyering  <meyering@redhat.com>
15000
15001         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15002         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15003
15004 2011-05-23  Bruno Haible  <bruno@clisp.org>
15005
15006         yesno: Move AC_LIBOBJ invocations to module description.
15007         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15008         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15009
15010 2011-05-23  Bruno Haible  <bruno@clisp.org>
15011
15012         xstrtol: Move AC_LIBOBJ invocations to module description.
15013         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15014         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15015
15016 2011-05-23  Bruno Haible  <bruno@clisp.org>
15017
15018         xstrtold: Move AC_LIBOBJ invocations to module description.
15019         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15020         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15021
15022 2011-05-23  Bruno Haible  <bruno@clisp.org>
15023
15024         xstrtod: Move AC_LIBOBJ invocations to module description.
15025         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15026         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15027
15028 2011-05-23  Bruno Haible  <bruno@clisp.org>
15029
15030         xnanosleep: Move AC_LIBOBJ invocations to module description.
15031         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15032         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15033
15034 2011-05-23  Bruno Haible  <bruno@clisp.org>
15035
15036         xgetcwd: Move AC_LIBOBJ invocations to module description.
15037         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15038         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15039
15040 2011-05-23  Bruno Haible  <bruno@clisp.org>
15041
15042         xalloc: Move AC_LIBOBJ invocations to module description.
15043         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15044         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15045
15046 2011-05-23  Bruno Haible  <bruno@clisp.org>
15047
15048         write-any-file: Move AC_LIBOBJ invocations to module description.
15049         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15050         invocation.
15051         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15052
15053 2011-05-23  Bruno Haible  <bruno@clisp.org>
15054
15055         utimens: Move AC_LIBOBJ invocations to module description.
15056         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15057         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15058
15059 2011-05-23  Bruno Haible  <bruno@clisp.org>
15060
15061         utimecmp: Move AC_LIBOBJ invocations to module description.
15062         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15063         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15064
15065 2011-05-23  Bruno Haible  <bruno@clisp.org>
15066
15067         userspec: Move AC_LIBOBJ invocations to module description.
15068         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15069         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15070
15071 2011-05-23  Bruno Haible  <bruno@clisp.org>
15072
15073         unlinkdir: Move AC_LIBOBJ invocations to module description.
15074         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15075         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15076
15077 2011-05-23  Bruno Haible  <bruno@clisp.org>
15078
15079         unistd-safer: Move AC_LIBOBJ invocations to module description.
15080         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15081         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15082
15083 2011-05-23  Bruno Haible  <bruno@clisp.org>
15084
15085         tempname: Move AC_LIBOBJ invocations to module description.
15086         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15087         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15088
15089 2011-05-23  Bruno Haible  <bruno@clisp.org>
15090
15091         strftime: Move AC_LIBOBJ invocations to module description.
15092         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15093         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15094
15095 2011-05-23  Bruno Haible  <bruno@clisp.org>
15096
15097         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15098         * m4/stdlib-safer.m4: Remove file.
15099         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15100         (configure.ac): Remove gl_STDLIB_SAFER call.
15101         (Makefile.am): Augment lib_SOURCES.
15102
15103 2011-05-23  Bruno Haible  <bruno@clisp.org>
15104
15105         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15106         * m4/stdio-safer.m4: Remove file.
15107         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15108         (configure.ac): Remove gl_TMPFILE_SAFER call.
15109         (Makefile.am): Augment lib_SOURCES.
15110
15111 2011-05-23  Bruno Haible  <bruno@clisp.org>
15112
15113         popen-safer: Move AC_LIBOBJ invocations to module description.
15114         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15115         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15116         (configure.ac): Remove gl_POPEN_SAFER call.
15117         (Makefile.am): Augment lib_SOURCES.
15118
15119 2011-05-23  Bruno Haible  <bruno@clisp.org>
15120
15121         freopen-safer: Move AC_LIBOBJ invocations to module description.
15122         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15123         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15124         (configure.ac): Remove gl_FREOPEN_SAFER call.
15125         (Makefile.am): Augment lib_SOURCES.
15126
15127 2011-05-23  Bruno Haible  <bruno@clisp.org>
15128
15129         fopen-safer: Move AC_LIBOBJ invocations to module description.
15130         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15131         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15132         (configure.ac): Remove gl_FOPEN_SAFER call.
15133         (Makefile.am): Augment lib_SOURCES.
15134
15135 2011-05-23  Bruno Haible  <bruno@clisp.org>
15136
15137         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15138         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15139         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15140
15141 2011-05-23  Bruno Haible  <bruno@clisp.org>
15142
15143         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15144         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15145         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15146
15147 2011-05-23  Bruno Haible  <bruno@clisp.org>
15148
15149         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15150         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15151         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15152
15153 2011-05-23  Bruno Haible  <bruno@clisp.org>
15154
15155         settime: Move AC_LIBOBJ invocations to module description.
15156         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15157         * modules/settime (Makefile.am): Augment lib_SOURCES.
15158
15159 2011-05-23  Bruno Haible  <bruno@clisp.org>
15160
15161         savedir: Move AC_LIBOBJ invocations to module description.
15162         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15163         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15164
15165 2011-05-23  Bruno Haible  <bruno@clisp.org>
15166
15167         save-cwd: Move AC_LIBOBJ invocations to module description.
15168         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15169         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15170
15171 2011-05-23  Bruno Haible  <bruno@clisp.org>
15172
15173         same: Move AC_LIBOBJ invocations to module description.
15174         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15175         * modules/same (Makefile.am): Augment lib_SOURCES.
15176
15177 2011-05-23  Bruno Haible  <bruno@clisp.org>
15178
15179         safe-write: Move AC_LIBOBJ invocations to module description.
15180         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15181         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15182         instead of gl_SAFE_WRITE.
15183         (Makefile.am): Augment lib_SOURCES.
15184
15185 2011-05-23  Bruno Haible  <bruno@clisp.org>
15186
15187         safe-read: Move AC_LIBOBJ invocations to module description.
15188         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15189         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15190         of gl_SAFE_READ.
15191         (Makefile.am): Augment lib_SOURCES.
15192
15193 2011-05-23  Bruno Haible  <bruno@clisp.org>
15194
15195         safe-alloc: Move AC_LIBOBJ invocations to module description.
15196         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15197         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15198
15199 2011-05-23  Bruno Haible  <bruno@clisp.org>
15200
15201         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15202         * m4/rijndael.m4: Remove file.
15203         * modules/crypto/rijndael (Files): Remove it.
15204         (configure.ac): Remove gl_RIJNDAEL call.
15205         (Makefile.am): Augment lib_SOURCES.
15206
15207 2011-05-23  Bruno Haible  <bruno@clisp.org>
15208
15209         readtokens: Move AC_LIBOBJ invocations to module description.
15210         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15211         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15212
15213 2011-05-23  Bruno Haible  <bruno@clisp.org>
15214
15215         read-file: Move AC_LIBOBJ invocations to module description.
15216         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15217         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15218         of gl_FUNC_READ_FILE.
15219         (Makefile.am): Augment lib_SOURCES.
15220
15221 2011-05-23  Bruno Haible  <bruno@clisp.org>
15222
15223         quotearg: Move AC_LIBOBJ invocations to module description.
15224         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15225         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15226
15227 2011-05-23  Bruno Haible  <bruno@clisp.org>
15228
15229         quote: Move AC_LIBOBJ invocations to module description.
15230         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15231         * modules/quote (Makefile.am): Augment lib_SOURCES.
15232
15233 2011-05-23  Bruno Haible  <bruno@clisp.org>
15234
15235         posixver: Move AC_LIBOBJ invocations to module description.
15236         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15237         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15238
15239 2011-05-23  Bruno Haible  <bruno@clisp.org>
15240
15241         posixtm: Move AC_LIBOBJ invocations to module description.
15242         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15243         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15244
15245 2011-05-23  Bruno Haible  <bruno@clisp.org>
15246
15247         physmem: Move AC_LIBOBJ invocations to module description.
15248         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15249         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15250
15251 2011-05-23  Bruno Haible  <bruno@clisp.org>
15252
15253         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15254         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15255         invocation.
15256         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15257
15258 2011-05-23  Bruno Haible  <bruno@clisp.org>
15259
15260         mpsort: Move AC_LIBOBJ invocations to module description.
15261         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15262         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15263
15264 2011-05-23  Bruno Haible  <bruno@clisp.org>
15265
15266         modechange: Move AC_LIBOBJ invocations to module description.
15267         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15268         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15269
15270 2011-05-23  Bruno Haible  <bruno@clisp.org>
15271
15272         mkdir-p: Move AC_LIBOBJ invocations to module description.
15273         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15274         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15275
15276 2011-05-23  Bruno Haible  <bruno@clisp.org>
15277
15278         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15279         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15280         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15281
15282 2011-05-23  Bruno Haible  <bruno@clisp.org>
15283
15284         mgetgroups: Move AC_LIBOBJ invocations to module description.
15285         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15286         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15287
15288 2011-05-23  Bruno Haible  <bruno@clisp.org>
15289
15290         memxor: Move AC_LIBOBJ invocations to module description.
15291         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15292         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15293
15294 2011-05-23  Bruno Haible  <bruno@clisp.org>
15295
15296         memcoll: Move AC_LIBOBJ invocations to module description.
15297         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15298         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15299
15300 2011-05-23  Bruno Haible  <bruno@clisp.org>
15301
15302         memcasecmp: Move AC_LIBOBJ invocations to module description.
15303         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15304         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15305
15306 2011-05-23  Bruno Haible  <bruno@clisp.org>
15307
15308         crypto/md5: Move AC_LIBOBJ invocations to module description.
15309         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15310         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15311
15312 2011-05-23  Bruno Haible  <bruno@clisp.org>
15313
15314         crypto/md4: Move AC_LIBOBJ invocations to module description.
15315         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15316         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15317
15318 2011-05-23  Bruno Haible  <bruno@clisp.org>
15319
15320         crypto/md2: Move AC_LIBOBJ invocations to module description.
15321         * m4/md2.m4: Remove file.
15322         * modules/crypto/md2 (Files): Remove it.
15323         (configure.ac): Remove gl_MD2 call.
15324         (Makefile.am): Augment lib_SOURCES.
15325
15326 2011-05-23  Bruno Haible  <bruno@clisp.org>
15327
15328         long-options: Move AC_LIBOBJ invocations to module description.
15329         * m4/long-options.m4: Remove file.
15330         * modules/long-options (Files): Remove it.
15331         (configure.ac): Remove gl_LONG_OPTIONS call.
15332         (Makefile.am): Augment lib_SOURCES.
15333
15334 2011-05-23  Bruno Haible  <bruno@clisp.org>
15335
15336         i-ring: Move AC_LIBOBJ invocations to module description.
15337         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15338         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15339
15340 2011-05-23  Bruno Haible  <bruno@clisp.org>
15341
15342         idcache: Move AC_LIBOBJ invocations to module description.
15343         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15344         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15345
15346 2011-05-23  Bruno Haible  <bruno@clisp.org>
15347
15348         human: Move AC_LIBOBJ invocations to module description.
15349         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15350         * modules/human (Makefile.am): Augment lib_SOURCES.
15351
15352 2011-05-23  Bruno Haible  <bruno@clisp.org>
15353
15354         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15355         * m4/hmac-sha1.m4: Remove file.
15356         * modules/crypto/hmac-sha1 (Files): Remove it.
15357         (configure.ac): Remove gl_HMAC_SHA1 call.
15358         (Makefile.am): Augment lib_SOURCES.
15359
15360 2011-05-23  Bruno Haible  <bruno@clisp.org>
15361
15362         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15363         * m4/hmac-md5.m4: Remove file.
15364         * modules/crypto/hmac-md5 (Files): Remove it.
15365         (configure.ac): Remove gl_HMAC_MD5 call.
15366         (Makefile.am): Augment lib_SOURCES.
15367
15368 2011-05-23  Bruno Haible  <bruno@clisp.org>
15369
15370         hash: Move AC_LIBOBJ invocations to module description.
15371         * m4/hash.m4: Remove file.
15372         * modules/hash (Files): Remove it.
15373         (configure.ac): Remove gl_HASH call.
15374         (Makefile.am): Augment lib_SOURCES.
15375
15376 2011-05-23  Bruno Haible  <bruno@clisp.org>
15377
15378         hard-locale: Move AC_LIBOBJ invocations to module description.
15379         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15380         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15381
15382 2011-05-23  Bruno Haible  <bruno@clisp.org>
15383
15384         getugroups: Move AC_LIBOBJ invocations to module description.
15385         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15386         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15387
15388 2011-05-23  Bruno Haible  <bruno@clisp.org>
15389
15390         gettime: Move AC_LIBOBJ invocations to module description.
15391         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15392         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15393
15394 2011-05-23  Bruno Haible  <bruno@clisp.org>
15395
15396         getndelim2: Move AC_LIBOBJ invocations to module description.
15397         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15398         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15399
15400 2011-05-23  Bruno Haible  <bruno@clisp.org>
15401
15402         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15403         * m4/gc-pbkdf2-sha1.m4: Remove file.
15404         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15405         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15406         (Makefile.am): Augment lib_SOURCES.
15407
15408 2011-05-23  Bruno Haible  <bruno@clisp.org>
15409
15410         fts: Move AC_LIBOBJ invocations to module description.
15411         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15412         * modules/fts (configure.ac): ... to here.
15413
15414 2011-05-23  Bruno Haible  <bruno@clisp.org>
15415
15416         file-type: Move AC_LIBOBJ invocations to module description.
15417         * m4/file-type.m4: Remove file.
15418         * modules/file-type (Files): Remove it.
15419         (configure.ac): Remove gl_FILE_TYPE call.
15420         (Makefile.am): Augment lib_SOURCES.
15421
15422 2011-05-23  Bruno Haible  <bruno@clisp.org>
15423
15424         filenamecat*: Respect rules for use of AC_LIBOBJ.
15425         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15426         Remove AC_LIBOBJ invocation.
15427         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15428         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15429
15430 2011-05-23  Bruno Haible  <bruno@clisp.org>
15431
15432         filemode: Move AC_LIBOBJ invocations to module description.
15433         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15434         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15435
15436 2011-05-23  Bruno Haible  <bruno@clisp.org>
15437
15438         openat-safer: Move AC_LIBOBJ invocations to module description.
15439         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15440         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15441
15442 2011-05-23  Bruno Haible  <bruno@clisp.org>
15443
15444         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15445         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15446         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15447
15448 2011-05-23  Bruno Haible  <bruno@clisp.org>
15449
15450         exclude: Move AC_LIBOBJ invocations to module description.
15451         * m4/exclude.m4: Remove file.
15452         * modules/exclude (Files): Remove it.
15453         (configure.ac): Remove gl_EXCLUDE call.
15454         (Makefile.am): Augment lib_SOURCES.
15455
15456 2011-05-23  Bruno Haible  <bruno@clisp.org>
15457
15458         dirname*: Respect rules for use of AC_LIBOBJ.
15459         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15460         invocations.
15461         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15462         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15463
15464 2011-05-23  Bruno Haible  <bruno@clisp.org>
15465
15466         dirent-safer: Move AC_LIBOBJ invocations to module description.
15467         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15468         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15469
15470 2011-05-23  Bruno Haible  <bruno@clisp.org>
15471
15472         crypto/des: Move AC_LIBOBJ invocations to module description.
15473         * m4/des.m4: Remove file.
15474         * modules/crypto/des (Files): Remove it.
15475         (configure.ac): Remove gl_DES call.
15476         (Makefile.am): Augment lib_SOURCES.
15477
15478 2011-05-23  Bruno Haible  <bruno@clisp.org>
15479
15480         cycle-check: Move AC_LIBOBJ invocations to module description.
15481         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15482         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15483
15484 2011-05-23  Bruno Haible  <bruno@clisp.org>
15485
15486         c-strtold: Move AC_LIBOBJ invocations to module description.
15487         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15488         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15489
15490 2011-05-23  Bruno Haible  <bruno@clisp.org>
15491
15492         c-strtod: Move AC_LIBOBJ invocations to module description.
15493         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15494         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15495
15496 2011-05-23  Bruno Haible  <bruno@clisp.org>
15497
15498         crc: Move AC_LIBOBJ invocations to module description.
15499         * m4/crc.m4: Remove file.
15500         * modules/crc (Files): Remove it.
15501         (configure.ac): Remove gl_CRC call.
15502         (Makefile.am): Augment lib_SOURCES.
15503
15504 2011-05-23  Bruno Haible  <bruno@clisp.org>
15505
15506         close-stream: Move AC_LIBOBJ invocations to module description.
15507         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
15508         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
15509
15510 2011-05-23  Bruno Haible  <bruno@clisp.org>
15511
15512         closeout: Move AC_LIBOBJ invocations to module description.
15513         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
15514         * modules/closeout (Makefile.am): Augment lib_SOURCES.
15515
15516 2011-05-23  Bruno Haible  <bruno@clisp.org>
15517
15518         closein: Move AC_LIBOBJ invocations to module description.
15519         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
15520         * modules/closein (Makefile.am): Augment lib_SOURCES.
15521
15522 2011-05-23  Bruno Haible  <bruno@clisp.org>
15523
15524         cloexec: Move AC_LIBOBJ invocations to module description.
15525         * m4/cloexec.m4: Remove file.
15526         * modules/cloexec (Files): Remove it.
15527         (configure.ac): Remove gl_CLOEXEC call.
15528         (Makefile.am): Augment lib_SOURCES.
15529
15530 2011-05-23  Bruno Haible  <bruno@clisp.org>
15531
15532         check-version: Move AC_LIBOBJ invocations to module description.
15533         * m4/check-version.m4: Remove file.
15534         * modules/check-version (Files): Remove it.
15535         (configure.ac): Remove gl_CHECK_VERSION call.
15536         (Makefile.am): Augment lib_SOURCES.
15537
15538 2011-05-23  Bruno Haible  <bruno@clisp.org>
15539
15540         chdir-safer: Move AC_LIBOBJ invocations to module description.
15541         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
15542         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
15543
15544 2011-05-23  Bruno Haible  <bruno@clisp.org>
15545
15546         canonicalize: Move AC_LIBOBJ invocations to module description.
15547         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
15548         AC_LIBOBJ invocation.
15549         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
15550
15551 2011-05-23  Bruno Haible  <bruno@clisp.org>
15552
15553         canon-host: Move AC_LIBOBJ invocations to module description.
15554         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
15555         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
15556         instead of gl_CANON_HOST.
15557         (Makefile.am): Augment lib_SOURCES.
15558
15559 2011-05-23  Bruno Haible  <bruno@clisp.org>
15560
15561         backupfile: Move AC_LIBOBJ invocations to module description.
15562         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
15563         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
15564
15565 2011-05-23  Bruno Haible  <bruno@clisp.org>
15566
15567         argmatch: Move AC_LIBOBJ invocations to module description.
15568         * m4/argmatch.m4: Remove file.
15569         * modules/argmatch (Files): Remove it.
15570         (configure.ac): Remove gl_ARGMATCH call.
15571         (Makefile.am): Augment lib_SOURCES.
15572
15573 2011-05-23  Bruno Haible  <bruno@clisp.org>
15574
15575         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
15576         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
15577         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
15578
15579 2011-05-23  Bruno Haible  <bruno@clisp.org>
15580
15581         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
15582         * m4/arcfour.m4: Remove file.
15583         * modules/crypto/arcfour (Files): Remove it.
15584         (configure.ac): Remove gl_ARCFOUR call.
15585         (Makefile.am): Augment lib_SOURCES.
15586
15587 2011-05-22  Bruno Haible  <bruno@clisp.org>
15588
15589         write: Move AC_LIBOBJ invocations to module description.
15590         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
15591         * modules/write (configure.ac): ... to here.
15592
15593 2011-05-22  Bruno Haible  <bruno@clisp.org>
15594
15595         wmemset: Move AC_LIBOBJ invocations to module description.
15596         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
15597         here...
15598         * modules/wmemset (configure.ac): ... to here.
15599
15600 2011-05-22  Bruno Haible  <bruno@clisp.org>
15601
15602         wmemmove: Move AC_LIBOBJ invocations to module description.
15603         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
15604         here...
15605         * modules/wmemmove (configure.ac): ... to here.
15606
15607 2011-05-22  Bruno Haible  <bruno@clisp.org>
15608
15609         wmemcpy: Move AC_LIBOBJ invocations to module description.
15610         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
15611         here...
15612         * modules/wmemcpy (configure.ac): ... to here.
15613
15614 2011-05-22  Bruno Haible  <bruno@clisp.org>
15615
15616         wmemcmp: Move AC_LIBOBJ invocations to module description.
15617         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
15618         here...
15619         * modules/wmemcmp (configure.ac): ... to here.
15620
15621 2011-05-22  Bruno Haible  <bruno@clisp.org>
15622
15623         wmemchr: Move AC_LIBOBJ invocations to module description.
15624         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
15625         here...
15626         * modules/wmemchr (configure.ac): ... to here.
15627
15628 2011-05-22  Bruno Haible  <bruno@clisp.org>
15629
15630         wcswidth: Move AC_LIBOBJ invocations to module description.
15631         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
15632         here...
15633         * modules/wcswidth (configure.ac): ... to here.
15634
15635 2011-05-22  Bruno Haible  <bruno@clisp.org>
15636
15637         wcwidth: Respect rules for use of AC_LIBOBJ.
15638         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
15639         invocation from here...
15640         * modules/wcwidth (configure.ac): ... to here.
15641         (Depends-on): Update conditions.
15642
15643 2011-05-22  Bruno Haible  <bruno@clisp.org>
15644
15645         wctype: Move AC_LIBOBJ invocations to module description.
15646         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
15647         invocation from here...
15648         * modules/wctype (configure.ac): ... to here.
15649         (Depends-on): Update conditions.
15650
15651 2011-05-22  Bruno Haible  <bruno@clisp.org>
15652
15653         wctrans: Move AC_LIBOBJ invocations to module description.
15654         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
15655         invocation from here...
15656         * modules/wctrans (configure.ac): ... to here.
15657
15658 2011-05-22  Bruno Haible  <bruno@clisp.org>
15659
15660         wctomb: Move AC_LIBOBJ invocations to module description.
15661         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
15662         invocations from here...
15663         * modules/wctomb (configure.ac): ... to here.
15664
15665 2011-05-22  Bruno Haible  <bruno@clisp.org>
15666
15667         wctob: Move AC_LIBOBJ invocations to module description.
15668         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
15669         gl_PREREQ_WCTOB invocations from here...
15670         * modules/wctob (configure.ac): ... to here.
15671         (Depends-on): Update conditions.
15672
15673 2011-05-22  Bruno Haible  <bruno@clisp.org>
15674
15675         wcsxfrm: Move AC_LIBOBJ invocations to module description.
15676         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
15677         here...
15678         * modules/wcsxfrm (configure.ac): ... to here.
15679
15680 2011-05-22  Bruno Haible  <bruno@clisp.org>
15681
15682         wcstok: Move AC_LIBOBJ invocations to module description.
15683         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
15684         * modules/wcstok (configure.ac): ... to here.
15685
15686 2011-05-22  Bruno Haible  <bruno@clisp.org>
15687
15688         wcsstr: Move AC_LIBOBJ invocations to module description.
15689         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
15690         * modules/wcsstr (configure.ac): ... to here.
15691
15692 2011-05-22  Bruno Haible  <bruno@clisp.org>
15693
15694         wcsspn: Move AC_LIBOBJ invocations to module description.
15695         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
15696         * modules/wcsspn (configure.ac): ... to here.
15697
15698 2011-05-22  Bruno Haible  <bruno@clisp.org>
15699
15700         wcsrtombs: Move AC_LIBOBJ invocations to module description.
15701         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
15702         gl_PREREQ_WCSRTOMBS invocations from here...
15703         * modules/wcsrtombs (configure.ac): ... to here.
15704
15705 2011-05-22  Bruno Haible  <bruno@clisp.org>
15706
15707         wcsrchr: Move AC_LIBOBJ invocations to module description.
15708         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
15709         here...
15710         * modules/wcsrchr (configure.ac): ... to here.
15711
15712 2011-05-22  Bruno Haible  <bruno@clisp.org>
15713
15714         wcspbrk: Move AC_LIBOBJ invocations to module description.
15715         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
15716         here...
15717         * modules/wcspbrk (configure.ac): ... to here.
15718
15719 2011-05-22  Bruno Haible  <bruno@clisp.org>
15720
15721         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
15722         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
15723         gl_PREREQ_WCSNRTOMBS invocations from here...
15724         * modules/wcsnrtombs (configure.ac): ... to here.
15725
15726 2011-05-22  Bruno Haible  <bruno@clisp.org>
15727
15728         wcsnlen: Move AC_LIBOBJ invocations to module description.
15729         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
15730         here...
15731         * modules/wcsnlen (configure.ac): ... to here.
15732
15733 2011-05-22  Bruno Haible  <bruno@clisp.org>
15734
15735         wcsncpy: Move AC_LIBOBJ invocations to module description.
15736         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
15737         here...
15738         * modules/wcsncpy (configure.ac): ... to here.
15739
15740 2011-05-22  Bruno Haible  <bruno@clisp.org>
15741
15742         wcsncmp: Move AC_LIBOBJ invocations to module description.
15743         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
15744         here...
15745         * modules/wcsncmp (configure.ac): ... to here.
15746
15747 2011-05-22  Bruno Haible  <bruno@clisp.org>
15748
15749         wcsncat: Move AC_LIBOBJ invocations to module description.
15750         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
15751         here...
15752         * modules/wcsncat (configure.ac): ... to here.
15753
15754 2011-05-22  Bruno Haible  <bruno@clisp.org>
15755
15756         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
15757         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
15758         from here...
15759         * modules/wcsncasecmp (configure.ac): ... to here.
15760
15761 2011-05-22  Bruno Haible  <bruno@clisp.org>
15762
15763         wcslen: Move AC_LIBOBJ invocations to module description.
15764         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
15765         * modules/wcslen (configure.ac): ... to here.
15766
15767 2011-05-22  Bruno Haible  <bruno@clisp.org>
15768
15769         wcsdup: Move AC_LIBOBJ invocations to module description.
15770         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
15771         * modules/wcsdup (configure.ac): ... to here.
15772
15773 2011-05-22  Bruno Haible  <bruno@clisp.org>
15774
15775         wcscspn: Move AC_LIBOBJ invocations to module description.
15776         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
15777         here...
15778         * modules/wcscspn (configure.ac): ... to here.
15779
15780 2011-05-22  Bruno Haible  <bruno@clisp.org>
15781
15782         wcscpy: Move AC_LIBOBJ invocations to module description.
15783         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
15784         * modules/wcscpy (configure.ac): ... to here.
15785
15786 2011-05-22  Bruno Haible  <bruno@clisp.org>
15787
15788         wcscoll: Move AC_LIBOBJ invocations to module description.
15789         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
15790         here...
15791         * modules/wcscoll (configure.ac): ... to here.
15792
15793 2011-05-22  Bruno Haible  <bruno@clisp.org>
15794
15795         wcscmp: Move AC_LIBOBJ invocations to module description.
15796         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
15797         * modules/wcscmp (configure.ac): ... to here.
15798
15799 2011-05-22  Bruno Haible  <bruno@clisp.org>
15800
15801         wcschr: Move AC_LIBOBJ invocations to module description.
15802         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
15803         * modules/wcschr (configure.ac): ... to here.
15804
15805 2011-05-22  Bruno Haible  <bruno@clisp.org>
15806
15807         wcscat: Move AC_LIBOBJ invocations to module description.
15808         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
15809         * modules/wcscat (configure.ac): ... to here.
15810
15811 2011-05-22  Bruno Haible  <bruno@clisp.org>
15812
15813         wcscasecmp: Move AC_LIBOBJ invocations to module description.
15814         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
15815         here...
15816         * modules/wcscasecmp (configure.ac): ... to here.
15817
15818 2011-05-22  Bruno Haible  <bruno@clisp.org>
15819
15820         wcrtomb: Move AC_LIBOBJ invocations to module description.
15821         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
15822         invocations from here...
15823         * modules/wcrtomb (configure.ac): ... to here.
15824
15825 2011-05-22  Bruno Haible  <bruno@clisp.org>
15826
15827         wcpncpy: Move AC_LIBOBJ invocations to module description.
15828         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
15829         here...
15830         * modules/wcpncpy (configure.ac): ... to here.
15831
15832 2011-05-22  Bruno Haible  <bruno@clisp.org>
15833
15834         wcpcpy: Move AC_LIBOBJ invocations to module description.
15835         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
15836         * modules/wcpcpy (configure.ac): ... to here.
15837
15838 2011-05-22  Bruno Haible  <bruno@clisp.org>
15839
15840         waitpid: Move AC_LIBOBJ invocations to module description.
15841         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
15842         invocation from here...
15843         * modules/waitpid (configure.ac): ... to here.
15844
15845 2011-05-22  Bruno Haible  <bruno@clisp.org>
15846
15847         utimensat: Move AC_LIBOBJ invocations to module description.
15848         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
15849         here...
15850         * modules/utimensat (configure.ac): ... to here.
15851
15852 2011-05-22  Bruno Haible  <bruno@clisp.org>
15853
15854         usleep: Move AC_LIBOBJ invocations to module description.
15855         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
15856         here...
15857         * modules/usleep (configure.ac): ... to here.
15858
15859 2011-05-22  Bruno Haible  <bruno@clisp.org>
15860
15861         unlockpt: Move AC_LIBOBJ invocations to module description.
15862         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
15863         gl_PREREQ_UNLOCKPT invocations from here...
15864         * modules/unlockpt (configure.ac): ... to here.
15865
15866 2011-05-22  Bruno Haible  <bruno@clisp.org>
15867
15868         unlink: Respect rules for use of AC_LIBOBJ.
15869         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
15870         * modules/unlink (configure.ac): ... to here.
15871
15872 2011-05-22  Bruno Haible  <bruno@clisp.org>
15873
15874         uname: Move AC_LIBOBJ invocations to module description.
15875         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
15876         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
15877         here...
15878         * modules/uname (configure.ac): ... to here.
15879
15880 2011-05-22  Bruno Haible  <bruno@clisp.org>
15881
15882         ttyname_r: Move AC_LIBOBJ invocations to module description.
15883         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
15884         gl_PREREQ_TTYNAME_R invocations from here...
15885         * modules/ttyname_r (configure.ac): ... to here.
15886
15887 2011-05-22  Bruno Haible  <bruno@clisp.org>
15888
15889         tsearch: Move AC_LIBOBJ invocations to module description.
15890         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
15891         invocations from here...
15892         * modules/tsearch (configure.ac): ... to here.
15893
15894 2011-05-22  Bruno Haible  <bruno@clisp.org>
15895
15896         towctrans: Move AC_LIBOBJ invocations to module description.
15897         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15898         AC_LIBOBJ invocation from here...
15899         * modules/towctrans (configure.ac): ... to here.
15900
15901 2011-05-22  Bruno Haible  <bruno@clisp.org>
15902
15903         tmpfile: Move AC_LIBOBJ invocations to module description.
15904         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15905         invocations from here...
15906         * modules/tmpfile (configure.ac): ... to here.
15907
15908 2011-05-22  Bruno Haible  <bruno@clisp.org>
15909
15910         times: Move AC_LIBOBJ invocations to module description.
15911         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15912         * modules/times (configure.ac): ... to here.
15913
15914 2011-05-22  Bruno Haible  <bruno@clisp.org>
15915
15916         time_r: Move AC_LIBOBJ invocations to module description.
15917         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15918         invocations from here...
15919         * modules/time_r (configure.ac): ... to here.
15920
15921 2011-05-22  Bruno Haible  <bruno@clisp.org>
15922
15923         timegm: Move AC_LIBOBJ invocations to module description.
15924         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
15925         invocations from here...
15926         * modules/timegm (configure.ac): ... to here.
15927
15928 2011-05-22  Bruno Haible  <bruno@clisp.org>
15929
15930         tcgetsid: Move AC_LIBOBJ invocations to module description.
15931         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
15932         and gl_PREREQ_TCGETSID invocations from here...
15933         * modules/tcgetsid (configure.ac): ... to here.
15934         (Depends-on): Update conditions.
15935
15936 2011-05-22  Bruno Haible  <bruno@clisp.org>
15937
15938         symlinkat: Move AC_LIBOBJ invocations to module description.
15939         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
15940         here...
15941         * modules/symlinkat (configure.ac): ... to here.
15942
15943 2011-05-22  Bruno Haible  <bruno@clisp.org>
15944
15945         symlink: Move AC_LIBOBJ invocations to module description.
15946         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
15947         here...
15948         * modules/symlink (configure.ac): ... to here.
15949
15950 2011-05-22  Bruno Haible  <bruno@clisp.org>
15951
15952         strverscmp: Move AC_LIBOBJ invocations to module description.
15953         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
15954         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
15955         from here...
15956         * modules/strverscmp (configure.ac): ... to here.
15957
15958 2011-05-22  Bruno Haible  <bruno@clisp.org>
15959
15960         strtok_r: Move AC_LIBOBJ invocations to module description.
15961         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
15962         and gl_PREREQ_STRTOK_R invocations from here...
15963         * modules/strtok_r (configure.ac): ... to here.
15964         (Depends-on): Update conditions.
15965
15966 2011-05-22  Bruno Haible  <bruno@clisp.org>
15967
15968         strtoumax: Move AC_LIBOBJ invocations to module description.
15969         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
15970         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
15971         from here...
15972         * modules/strtoumax (configure.ac): ... to here.
15973
15974 2011-05-22  Bruno Haible  <bruno@clisp.org>
15975
15976         strtoimax: Move AC_LIBOBJ invocations to module description.
15977         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15978         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15979         from here...
15980         * modules/strtoimax (configure.ac): ... to here.
15981
15982 2011-05-22  Bruno Haible  <bruno@clisp.org>
15983
15984         strtoull: Move AC_LIBOBJ invocations to module description.
15985         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15986         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15987         from here...
15988         * modules/strtoull (configure.ac): ... to here.
15989
15990 2011-05-22  Bruno Haible  <bruno@clisp.org>
15991
15992         strtoll: Move AC_LIBOBJ invocations to module description.
15993         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15994         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15995         here...
15996         * modules/strtoll (configure.ac): ... to here.
15997
15998 2011-05-22  Bruno Haible  <bruno@clisp.org>
15999
16000         strtoul: Move AC_LIBOBJ invocations to module description.
16001         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16002         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16003         * modules/strtoul (configure.ac): ... to here.
16004
16005 2011-05-22  Bruno Haible  <bruno@clisp.org>
16006
16007         strtol: Move AC_LIBOBJ invocations to module description.
16008         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16009         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16010         * modules/strtol (configure.ac): ... to here.
16011
16012 2011-05-22  Bruno Haible  <bruno@clisp.org>
16013
16014         strtod: Move AC_LIBOBJ invocations to module description.
16015         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16016         invocations from here...
16017         * modules/strtod (configure.ac): ... to here.
16018
16019 2011-05-22  Bruno Haible  <bruno@clisp.org>
16020
16021         strstr*: Move AC_LIBOBJ invocations to module description.
16022         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16023         invocations from here...
16024         * modules/strstr-simple (configure.ac): ... to here.
16025         * modules/strstr (configure.ac): ... and here.
16026
16027 2011-05-22  Bruno Haible  <bruno@clisp.org>
16028
16029         strsignal: Move AC_LIBOBJ invocations to module description.
16030         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16031         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16032         * modules/strsignal (configure.ac): ... to here.
16033         (Depends-on): Update conditions.
16034
16035 2011-05-22  Bruno Haible  <bruno@clisp.org>
16036
16037         strsep: Move AC_LIBOBJ invocations to module description.
16038         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16039         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16040         here...
16041         * modules/strsep (configure.ac): ... to here.
16042
16043 2011-05-22  Bruno Haible  <bruno@clisp.org>
16044
16045         strptime: Move AC_LIBOBJ invocations to module description.
16046         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16047         gl_PREREQ_STRPTIME invocations from here...
16048         * modules/strptime (configure.ac): ... to here.
16049
16050 2011-05-22  Bruno Haible  <bruno@clisp.org>
16051
16052         strpbrk: Move AC_LIBOBJ invocations to module description.
16053         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16055         here...
16056         * modules/strpbrk (configure.ac): ... to here.
16057
16058 2011-05-22  Bruno Haible  <bruno@clisp.org>
16059
16060         strnlen: Move AC_LIBOBJ invocations to module description.
16061         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16062         invocations from here...
16063         * modules/strnlen (configure.ac): ... to here.
16064
16065 2011-05-22  Bruno Haible  <bruno@clisp.org>
16066
16067         strndup: Move AC_LIBOBJ invocations to module description.
16068         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16069         invocations from here...
16070         * modules/strndup (configure.ac): ... to here.
16071         (Depends-on): Update conditions.
16072
16073 2011-05-22  Bruno Haible  <bruno@clisp.org>
16074
16075         strncat: Move AC_LIBOBJ invocations to module description.
16076         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16077         invocations from here...
16078         * modules/strncat (configure.ac): ... to here.
16079
16080 2011-05-22  Bruno Haible  <bruno@clisp.org>
16081
16082         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16083         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16084         invocations from here...
16085         * modules/strdup (configure.ac): ... to here.
16086         * modules/strdup-posix (configure.ac): ... and here.
16087
16088 2011-05-22  Bruno Haible  <bruno@clisp.org>
16089
16090         strcspn: Move AC_LIBOBJ invocations to module description.
16091         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16092         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16093         here...
16094         * modules/strcspn (configure.ac): ... to here.
16095
16096 2011-05-22  Bruno Haible  <bruno@clisp.org>
16097
16098         strchrnul: Move AC_LIBOBJ invocations to module description.
16099         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16100         gl_PREREQ_STRCHRNUL invocations from here...
16101         * modules/strchrnul (configure.ac): ... to here.
16102
16103 2011-05-22  Bruno Haible  <bruno@clisp.org>
16104
16105         strcasestr*: Move AC_LIBOBJ invocations to module description.
16106         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16107         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16108         * modules/strcasestr-simple (configure.ac): ... to here.
16109         * modules/strcasestr (configure.ac): ... and here.
16110
16111 2011-05-22  Bruno Haible  <bruno@clisp.org>
16112
16113         strcase: Move AC_LIBOBJ invocations to module description.
16114         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16115         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16116         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16117         gl_PREREQ_STRNCASECMP invocations from here...
16118         * modules/strcase (configure.ac): ... to here.
16119
16120 2011-05-22  Bruno Haible  <bruno@clisp.org>
16121
16122         stpncpy: Move AC_LIBOBJ invocations to module description.
16123         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16124         here...
16125         * modules/stpncpy (configure.ac): ... to here.
16126
16127 2011-05-22  Bruno Haible  <bruno@clisp.org>
16128
16129         stpcpy: Move AC_LIBOBJ invocations to module description.
16130         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16131         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16132         here...
16133         * modules/stpcpy (configure.ac): ... to here.
16134
16135 2011-05-21  Bruno Haible  <bruno@clisp.org>
16136
16137         stat: Move AC_LIBOBJ invocations to module description.
16138         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16139         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16140         here...
16141         * modules/stat (configure.ac): ... to here.
16142
16143 2011-05-21  Bruno Haible  <bruno@clisp.org>
16144
16145         sleep: Move AC_LIBOBJ invocations to module description.
16146         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16147         * modules/sleep (configure.ac): ... to here.
16148
16149 2011-05-21  Bruno Haible  <bruno@clisp.org>
16150
16151         signbit: Move AC_LIBOBJ invocations to module description.
16152         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16153         * modules/signbit (configure.ac): ... to here.
16154
16155 2011-05-21  Bruno Haible  <bruno@clisp.org>
16156
16157         sigprocmask: Move AC_LIBOBJ invocations to module description.
16158         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16159         gl_PREREQ_SIGPROMASK invocations from here...
16160         * modules/sigprocmask (configure.ac): ... to here.
16161
16162 2011-05-21  Bruno Haible  <bruno@clisp.org>
16163
16164         sigaction: Move AC_LIBOBJ invocations to module description.
16165         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16166         gl_PREREQ_SIGACTION invocations from here...
16167         * modules/sigaction (configure.ac): ... to here.
16168
16169 2011-05-21  Bruno Haible  <bruno@clisp.org>
16170
16171         sig2str: Move AC_LIBOBJ invocations to module description.
16172         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16173         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16174         here...
16175         * modules/sig2str (configure.ac): ... to here.
16176
16177 2011-05-21  Bruno Haible  <bruno@clisp.org>
16178
16179         setlocale: Move AC_LIBOBJ invocations to module description.
16180         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16181         gl_PREREQ_SETLOCALE invocations from here...
16182         * modules/setlocale (configure.ac): ... to here.
16183
16184 2011-05-21  Bruno Haible  <bruno@clisp.org>
16185
16186         unsetenv: Move AC_LIBOBJ invocations to module description.
16187         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16188         and gl_PREREQ_UNSETENV invocations from here...
16189         * modules/unsetenv (configure.ac): ... to here.
16190         (Depends-on): Update.
16191
16192 2011-05-21  Bruno Haible  <bruno@clisp.org>
16193
16194         setenv: Move AC_LIBOBJ invocations to module description.
16195         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16196         here...
16197         * modules/setenv (configure.ac): ... to here.
16198
16199 2011-05-21  Bruno Haible  <bruno@clisp.org>
16200
16201         selinux-h: Move AC_LIBOBJ invocations to module description.
16202         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16203         AC_LIBOBJ invocation from here...
16204         * modules/selinux-h (configure.ac): ... to here.
16205
16206 2011-05-21  Bruno Haible  <bruno@clisp.org>
16207
16208         select: Respect rules for use of AC_LIBOBJ.
16209         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16210         here...
16211         * modules/select (configure.ac): ... to here.
16212
16213 2011-05-21  Bruno Haible  <bruno@clisp.org>
16214
16215         scandir: Move AC_LIBOBJ invocations to module description.
16216         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16217         invocations from here...
16218         * modules/scandir (configure.ac): ... to here.
16219
16220 2011-05-21  Bruno Haible  <bruno@clisp.org>
16221
16222         rpmatch: Move AC_LIBOBJ invocations to module description.
16223         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16224         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16225         here...
16226         * modules/rpmatch (configure.ac): ... to here.
16227
16228 2011-05-21  Bruno Haible  <bruno@clisp.org>
16229
16230         rmdir: Respect rules for use of AC_LIBOBJ.
16231         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16232         * modules/rmdir (configure.ac): ... to here.
16233
16234 2011-05-21  Bruno Haible  <bruno@clisp.org>
16235
16236         renameat: Move AC_LIBOBJ invocations to module description.
16237         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16238         here...
16239         * modules/renameat (configure.ac): ... to here.
16240
16241 2011-05-21  Bruno Haible  <bruno@clisp.org>
16242
16243         rename: Respect rules for use of AC_LIBOBJ.
16244         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16245         here...
16246         * modules/rename (configure.ac): ... to here.
16247
16248 2011-05-21  Bruno Haible  <bruno@clisp.org>
16249
16250         remove: Move AC_LIBOBJ invocations to module description.
16251         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16252         here...
16253         * modules/remove (configure.ac): ... to here.
16254
16255 2011-05-21  Bruno Haible  <bruno@clisp.org>
16256
16257         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16258         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16259         macro.
16260         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16261         * modules/relocatable-lib (configure.ac): ... to here.
16262         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16263         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16264
16265 2011-05-21  Bruno Haible  <bruno@clisp.org>
16266
16267         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16268         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16269         here...
16270         * modules/relocatable-prog (configure.ac): ... to here.
16271
16272 2011-05-21  Bruno Haible  <bruno@clisp.org>
16273
16274         regex: Move AC_LIBOBJ invocations to module description.
16275         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16276         invocations from here...
16277         * modules/regex (configure.ac): ... to here.
16278
16279 2011-05-21  Bruno Haible  <bruno@clisp.org>
16280
16281         realloc-*: Move AC_LIBOBJ invocations to module description.
16282         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16283         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16284         AC_LIBOBJ invocations from here...
16285         * modules/realloc-gnu (configure.ac): ... to here.
16286         * modules/realloc-posix (configure.ac): ... and here.
16287
16288 2011-05-21  Bruno Haible  <bruno@clisp.org>
16289
16290         readutmp: Move AC_LIBOBJ invocations to module description.
16291         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16292         * modules/readutmp (configure.ac): ... to here.
16293
16294 2011-05-21  Bruno Haible  <bruno@clisp.org>
16295
16296         readlinkat: Move AC_LIBOBJ invocations to module description.
16297         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16298         here...
16299         * modules/readlinkat (configure.ac): ... to here.
16300
16301 2011-05-21  Bruno Haible  <bruno@clisp.org>
16302
16303         readlink: Move AC_LIBOBJ invocations to module description.
16304         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16305         gl_PREREQ_READLINK invocations from here...
16306         * modules/readlink (configure.ac): ... to here.
16307
16308 2011-05-21  Bruno Haible  <bruno@clisp.org>
16309
16310         readline: Move AC_LIBOBJ invocations to module description.
16311         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16312         gl_PREREQ_READLINE invocations from here...
16313         * modules/readline (configure.ac): ... to here.
16314
16315 2011-05-21  Bruno Haible  <bruno@clisp.org>
16316
16317         read: Move AC_LIBOBJ invocations to module description.
16318         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16319         * modules/read (configure.ac): ... to here.
16320
16321 2011-05-21  Bruno Haible  <bruno@clisp.org>
16322
16323         rawmemchr: Move AC_LIBOBJ invocations to module description.
16324         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16326         from here...
16327         * modules/rawmemchr (configure.ac): ... to here.
16328
16329 2011-05-21  Bruno Haible  <bruno@clisp.org>
16330
16331         random_r: Move AC_LIBOBJ invocations to module description.
16332         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16333         gl_PREREQ_RANDOM_R invocations from here...
16334         * modules/random_r (configure.ac): ... to here.
16335
16336 2011-05-21  Bruno Haible  <bruno@clisp.org>
16337
16338         pwrite: Move AC_LIBOBJ invocations to module description.
16339         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16340         * modules/pwrite (configure.ac): ... to here.
16341
16342 2011-05-21  Bruno Haible  <bruno@clisp.org>
16343
16344         putenv: Move AC_LIBOBJ invocations to module description.
16345         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16346         * modules/putenv (configure.ac): ... to here.
16347
16348 2011-05-21  Bruno Haible  <bruno@clisp.org>
16349
16350         login_tty: Move AC_LIBOBJ invocations to module description.
16351         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16352         * modules/login_tty (configure.ac): ... to here.
16353
16354 2011-05-21  Bruno Haible  <bruno@clisp.org>
16355
16356         openpty: Move AC_LIBOBJ invocations to module description.
16357         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16358         * modules/openpty (configure.ac): ... to here.
16359
16360 2011-05-21  Bruno Haible  <bruno@clisp.org>
16361
16362         forkpty: Move AC_LIBOBJ invocations to module description.
16363         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16364         * modules/forkpty (configure.ac): ... to here.
16365
16366 2011-05-21  Bruno Haible  <bruno@clisp.org>
16367
16368         ptsname: Move AC_LIBOBJ invocations to module description.
16369         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16370         invocations from here...
16371         * modules/ptsname (configure.ac): ... to here.
16372
16373 2011-05-21  Bruno Haible  <bruno@clisp.org>
16374
16375         pread: Move AC_LIBOBJ invocations to module description.
16376         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16377         * modules/pread (configure.ac): ... to here.
16378
16379 2011-05-21  Bruno Haible  <bruno@clisp.org>
16380
16381         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16382         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16383         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16384         * modules/posix_spawn (configure.ac): ... to here.
16385         * modules/posix_spawnp (configure.ac): ... and here.
16386
16387 2011-05-21  Bruno Haible  <bruno@clisp.org>
16388
16389         popen: Move AC_LIBOBJ invocations to module description.
16390         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16391         invocations from here...
16392         * modules/popen (configure.ac): ... to here.
16393
16394 2011-05-21  Bruno Haible  <bruno@clisp.org>
16395
16396         poll: Move AC_LIBOBJ invocations to module description.
16397         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16398         invocations from here...
16399         * modules/poll (configure.ac): ... to here.
16400
16401 2011-05-21  Bruno Haible  <bruno@clisp.org>
16402
16403         pipe-posix: Move AC_LIBOBJ invocations to module description.
16404         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16405         * modules/pipe-posix (configure.ac): ... to here.
16406
16407 2011-05-21  Bruno Haible  <bruno@clisp.org>
16408
16409         openat: Respect rules for use of AC_LIBOBJ.
16410         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16411         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16412         * modules/openat (configure.ac): ... to here.
16413
16414 2011-05-21  Bruno Haible  <bruno@clisp.org>
16415
16416         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16417         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16418         invocation from here...
16419         * modules/obstack-printf (configure.ac): ... to here.
16420         * modules/obstack-printf-posix (configure.ac): ... and here.
16421
16422 2011-05-21  Bruno Haible  <bruno@clisp.org>
16423
16424         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16425         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16426         from here...
16427         * modules/nl_langinfo (configure.ac): ... to here.
16428
16429 2011-05-21  Bruno Haible  <bruno@clisp.org>
16430
16431         nanosleep: Move AC_LIBOBJ invocations to module description.
16432         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16433         gl_PREREQ_NANOSLEEP invocations from here...
16434         * modules/nanosleep (configure.ac): ... to here.
16435
16436 2011-05-21  Bruno Haible  <bruno@clisp.org>
16437
16438         mountlist: Move AC_LIBOBJ invocations to module description.
16439         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16440         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16441         * modules/mountlist (configure.ac): ... to here.
16442
16443 2011-05-21  Bruno Haible  <bruno@clisp.org>
16444
16445         mktime: Respect rules for use of AC_LIBOBJ.
16446         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16447         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16448         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16449         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16450         * modules/mktime (configure.ac): ... to here.
16451         * modules/mktime-internal (configure.ac): ... and here.
16452         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16453
16454 2011-05-21  Bruno Haible  <bruno@clisp.org>
16455
16456         mkstemps: Move AC_LIBOBJ invocations to module description.
16457         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16458         here...
16459         * modules/mkstemps (configure.ac): ... to here.
16460
16461 2011-05-21  Bruno Haible  <bruno@clisp.org>
16462
16463         mkstemp: Move AC_LIBOBJ invocations to module description.
16464         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16465         gl_PREREQ_MKSTEMP invocations from here...
16466         * modules/mkstemp (configure.ac): ... to here.
16467
16468 2011-05-21  Bruno Haible  <bruno@clisp.org>
16469
16470         mkostemps: Move AC_LIBOBJ invocations to module description.
16471         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16472         here...
16473         * modules/mkostemps (configure.ac): ... to here.
16474
16475 2011-05-21  Bruno Haible  <bruno@clisp.org>
16476
16477         mkostemp: Move AC_LIBOBJ invocations to module description.
16478         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16479         gl_PREREQ_MKOSTEMP invocations from here...
16480         * modules/mkostemp (configure.ac): ... to here.
16481
16482 2011-05-21  Bruno Haible  <bruno@clisp.org>
16483
16484         mknod: Move AC_LIBOBJ invocations to module description.
16485         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16486         * modules/mknod (configure.ac): ... to here.
16487
16488 2011-05-21  Bruno Haible  <bruno@clisp.org>
16489
16490         mkfifoat: Move AC_LIBOBJ invocations to module description.
16491         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16492         here...
16493         * modules/mkfifoat (configure.ac): ... to here.
16494
16495 2011-05-21  Bruno Haible  <bruno@clisp.org>
16496
16497         mkfifo: Respect rules for use of AC_LIBOBJ.
16498         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16499         here...
16500         * modules/mkfifo (configure.ac): ... to here.
16501
16502 2011-05-21  Bruno Haible  <bruno@clisp.org>
16503
16504         mkdtemp: Move AC_LIBOBJ invocations to module description.
16505         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16506         invocations from here...
16507         * modules/mkdtemp (configure.ac): ... to here.
16508
16509 2011-05-21  Bruno Haible  <bruno@clisp.org>
16510
16511         mkdir: Move AC_LIBOBJ invocations to module description.
16512         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
16513         * modules/mkdir (configure.ac): ... to here.
16514
16515 2011-05-21  Bruno Haible  <bruno@clisp.org>
16516
16517         memset: Move AC_LIBOBJ invocations to module description.
16518         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
16519         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
16520         here...
16521         * modules/memset (configure.ac): ... to here.
16522
16523 2011-05-21  Bruno Haible  <bruno@clisp.org>
16524
16525         memrchr: Move AC_LIBOBJ invocations to module description.
16526         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
16527         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
16528         here...
16529         * modules/memrchr (configure.ac): ... to here.
16530
16531 2011-05-21  Bruno Haible  <bruno@clisp.org>
16532
16533         mempcpy: Move AC_LIBOBJ invocations to module description.
16534         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
16535         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
16536         here...
16537         * modules/mempcpy (configure.ac): ... to here.
16538
16539 2011-05-21  Bruno Haible  <bruno@clisp.org>
16540
16541         memmove: Move AC_LIBOBJ invocations to module description.
16542         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
16543         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
16544         here...
16545         * modules/memmove (configure.ac): ... to here.
16546
16547 2011-05-21  Bruno Haible  <bruno@clisp.org>
16548
16549         memmem*: Move AC_LIBOBJ invocations to module description.
16550         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
16551         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
16552         here...
16553         (gl_FUNC_MEMMEM): ... and here...
16554         * modules/memmem-simple (configure.ac): ... to here.
16555         * modules/memmem (configure.ac): ... and here.
16556
16557 2011-05-21  Bruno Haible  <bruno@clisp.org>
16558
16559         memcpy: Move AC_LIBOBJ invocations to module description.
16560         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
16561         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
16562         here...
16563         * modules/memcpy (configure.ac): ... to here.
16564
16565 2011-05-21  Bruno Haible  <bruno@clisp.org>
16566
16567         memcmp: Simplify autoconf macro.
16568         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
16569         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
16570         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
16571
16572 2011-05-21  Bruno Haible  <bruno@clisp.org>
16573
16574         memcmp: Move AC_LIBOBJ invocations to module description.
16575         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
16576         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
16577         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
16578         * modules/memcmp (configure.ac): ... to here.
16579         (Depends-on): Update conditions.
16580
16581 2011-05-21  Bruno Haible  <bruno@clisp.org>
16582
16583         memchr: Respect rules for use of AC_LIBOBJ.
16584         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
16585         invocations from here...
16586         * modules/memchr (configure.ac): ... to here.
16587
16588 2011-05-21  Bruno Haible  <bruno@clisp.org>
16589
16590         mbtowc: Move AC_LIBOBJ invocations to module description.
16591         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
16592         invocations from here...
16593         * modules/mbtowc (configure.ac): ... to here.
16594
16595 2011-05-21  Bruno Haible  <bruno@clisp.org>
16596
16597         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
16598         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
16599         gl_PREREQ_MBSRTOWCS invocations from here...
16600         * modules/mbsrtowcs (configure.ac): ... to here.
16601
16602 2011-05-21  Bruno Haible  <bruno@clisp.org>
16603
16604         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
16605         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
16606         gl_PREREQ_MBSNRTOWCS invocations from here...
16607         * modules/mbsnrtowcs (configure.ac): ... to here.
16608
16609 2011-05-21  Bruno Haible  <bruno@clisp.org>
16610
16611         mbsinit: Move AC_LIBOBJ invocations to module description.
16612         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
16613         invocations from here...
16614         * modules/mbsinit (configure.ac): ... to here.
16615
16616 2011-05-21  Bruno Haible  <bruno@clisp.org>
16617
16618         mbrlen: Move AC_LIBOBJ invocations to module description.
16619         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
16620         invocations from here...
16621         * modules/mbrlen (configure.ac): ... to here.
16622
16623 2011-05-21  Bruno Haible  <bruno@clisp.org>
16624
16625         mbrtowc: Respect rules for use of AC_LIBOBJ.
16626         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
16627         invocations from here...
16628         * modules/mbrtowc (configure.ac): ... to here.
16629
16630 2011-05-21  Bruno Haible  <bruno@clisp.org>
16631
16632         malloc-*: Move AC_LIBOBJ invocations to module description.
16633         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
16634         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
16635         AC_LIBOBJ invocations from here...
16636         * modules/malloc-gnu (configure.ac): ... to here.
16637         * modules/malloc-posix (configure.ac): ... and here.
16638
16639 2011-05-21  Bruno Haible  <bruno@clisp.org>
16640
16641         lstat, openat: Respect rules for use of AC_LIBOBJ.
16642         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
16643         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
16644         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
16645         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
16646         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
16647         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
16648         here.
16649         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
16650
16651 2011-05-21  Bruno Haible  <bruno@clisp.org>
16652
16653         lseek: Move AC_LIBOBJ invocations to module description.
16654         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
16655         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16656         * modules/lseek (configure.ac): ... to here.
16657
16658 2011-05-21  Bruno Haible  <bruno@clisp.org>
16659
16660         linkat: Move AC_LIBOBJ invocations to module description.
16661         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
16662         here...
16663         * modules/linkat (configure.ac): ... to here.
16664
16665 2011-05-21  Bruno Haible  <bruno@clisp.org>
16666
16667         link: Respect rules for use of AC_LIBOBJ.
16668         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
16669         * modules/link (configure.ac): ... to here.
16670
16671 2011-05-21  Bruno Haible  <bruno@clisp.org>
16672
16673         lchown: Move AC_LIBOBJ invocations to module description.
16674         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16675         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16676         * modules/lchown (configure.ac): ... to here.
16677
16678 2011-05-21  Bruno Haible  <bruno@clisp.org>
16679
16680         iswctype: Move AC_LIBOBJ invocations to module description.
16681         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
16682         here...
16683         * modules/iswctype (configure.ac): ... to here.
16684
16685 2011-05-21  Bruno Haible  <bruno@clisp.org>
16686
16687         iswblank: Move AC_LIBOBJ invocations to module description.
16688         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
16689         here...
16690         * modules/iswblank (configure.ac): ... to here.
16691
16692 2011-05-21  Bruno Haible  <bruno@clisp.org>
16693
16694         atanl: Move AC_LIBOBJ invocations to module description.
16695         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
16696         * modules/atanl (configure.ac): ... to here.
16697
16698 2011-05-21  Bruno Haible  <bruno@clisp.org>
16699
16700         acosl: Move AC_LIBOBJ invocations to module description.
16701         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
16702         * modules/acosl (configure.ac): ... to here.
16703
16704 2011-05-21  Bruno Haible  <bruno@clisp.org>
16705
16706         asinl: Respect rules for use of AC_LIBOBJ.
16707         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
16708         * modules/asinl (configure.ac): ... to here.
16709
16710 2011-05-21  Bruno Haible  <bruno@clisp.org>
16711
16712         tanl: Move AC_LIBOBJ invocations to module description.
16713         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
16714         * modules/tanl (configure.ac): ... to here.
16715
16716 2011-05-21  Bruno Haible  <bruno@clisp.org>
16717
16718         cosl: Move AC_LIBOBJ invocations to module description.
16719         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
16720         * modules/cosl (configure.ac): ... to here.
16721
16722 2011-05-21  Bruno Haible  <bruno@clisp.org>
16723
16724         sinl: Move AC_LIBOBJ invocations to module description.
16725         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
16726         * modules/sinl (configure.ac): ... to here.
16727
16728 2011-05-21  Bruno Haible  <bruno@clisp.org>
16729
16730         logl: Move AC_LIBOBJ invocations to module description.
16731         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
16732         * modules/logl (configure.ac): ... to here.
16733
16734 2011-05-21  Bruno Haible  <bruno@clisp.org>
16735
16736         expl: Move AC_LIBOBJ invocations to module description.
16737         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
16738         * modules/expl (configure.ac): ... to here.
16739
16740 2011-05-21  Bruno Haible  <bruno@clisp.org>
16741
16742         roundl: Move AC_LIBOBJ invocations to module description.
16743         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
16744         * modules/roundl (configure.ac): ... to here.
16745
16746 2011-05-21  Bruno Haible  <bruno@clisp.org>
16747
16748         round: Move AC_LIBOBJ invocations to module description.
16749         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
16750         * modules/round (configure.ac): ... to here.
16751
16752 2011-05-21  Bruno Haible  <bruno@clisp.org>
16753
16754         roundf: Move AC_LIBOBJ invocations to module description.
16755         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
16756         * modules/roundf (configure.ac): ... to here.
16757
16758 2011-05-21  Bruno Haible  <bruno@clisp.org>
16759
16760         truncl: Move AC_LIBOBJ invocations to module description.
16761         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
16762         * modules/truncl (configure.ac): ... to here.
16763
16764 2011-05-21  Bruno Haible  <bruno@clisp.org>
16765
16766         trunc: Move AC_LIBOBJ invocations to module description.
16767         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
16768         * modules/trunc (configure.ac): ... to here.
16769
16770 2011-05-21  Bruno Haible  <bruno@clisp.org>
16771
16772         truncf: Move AC_LIBOBJ invocations to module description.
16773         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
16774         * modules/truncf (configure.ac): ... to here.
16775
16776 2011-05-21  Bruno Haible  <bruno@clisp.org>
16777
16778         ceill: Move AC_LIBOBJ invocations to module description.
16779         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
16780         * modules/ceill (configure.ac): ... to here.
16781
16782 2011-05-21  Bruno Haible  <bruno@clisp.org>
16783
16784         ceil: Move AC_LIBOBJ invocations to module description.
16785         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
16786         * modules/ceil (configure.ac): ... to here.
16787
16788 2011-05-21  Bruno Haible  <bruno@clisp.org>
16789
16790         ceilf: Move AC_LIBOBJ invocations to module description.
16791         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
16792         * modules/ceilf (configure.ac): ... to here.
16793
16794 2011-05-21  Bruno Haible  <bruno@clisp.org>
16795
16796         floorl: Respect rules for use of AC_LIBOBJ.
16797         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
16798         * modules/floorl (configure.ac): ... to here.
16799
16800 2011-05-21  Bruno Haible  <bruno@clisp.org>
16801
16802         floor: Respect rules for use of AC_LIBOBJ.
16803         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
16804         * modules/floor (configure.ac): ... to here.
16805
16806 2011-05-21  Bruno Haible  <bruno@clisp.org>
16807
16808         floorf: Move AC_LIBOBJ invocations to module description.
16809         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
16810         * modules/floorf (configure.ac): ... to here.
16811
16812 2011-05-20  Bruno Haible  <bruno@clisp.org>
16813
16814         sqrtl: Respect rules for use of AC_LIBOBJ.
16815         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
16816         * modules/sqrtl (configure.ac): ... to here.
16817
16818 2011-05-20  Bruno Haible  <bruno@clisp.org>
16819
16820         ldexpl: Respect rules for use of AC_LIBOBJ.
16821         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
16822         * modules/ldexpl (configure.ac): ... to here.
16823
16824 2011-05-20  Bruno Haible  <bruno@clisp.org>
16825
16826         frexpl*: Respect rules for use of AC_LIBOBJ.
16827         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
16828         invocation from here...
16829         * modules/frexpl (configure.ac): ... to here.
16830         * modules/frexpl-nolibm (configure.ac): ... and here.
16831
16832 2011-05-20  Bruno Haible  <bruno@clisp.org>
16833
16834         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
16835         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
16836         invocation from here...
16837         * modules/frexp (configure.ac): ... to here.
16838         * modules/frexp-nolibm (configure.ac): ... and here.
16839
16840 2011-05-20  Bruno Haible  <bruno@clisp.org>
16841
16842         isnan: Respect rules for use of AC_LIBOBJ.
16843         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
16844         invocations here.
16845         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
16846         REPLACE_ISNAN.
16847         * modules/isnand (configure.ac): Likewise.
16848         * modules/isnanl (configure.ac): Likewise.
16849
16850 2011-05-20  Bruno Haible  <bruno@clisp.org>
16851
16852         isnanl*: Respect rules for use of AC_LIBOBJ.
16853         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
16854         invocation from here...
16855         * modules/isnanl (configure.ac): ... to here.
16856         * modules/isnanl-nolibm (configure.ac): ... and here.
16857
16858 2011-05-20  Bruno Haible  <bruno@clisp.org>
16859
16860         isnand*: Move AC_LIBOBJ invocations to module description.
16861         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
16862         invocation from here...
16863         * modules/isnand (configure.ac): ... to here.
16864         * modules/isnand-nolibm (configure.ac): ... and here.
16865
16866 2011-05-20  Bruno Haible  <bruno@clisp.org>
16867
16868         isnanf*: Move AC_LIBOBJ invocations to module description.
16869         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
16870         invocation from here...
16871         * modules/isnanf (configure.ac): ... to here.
16872         * modules/isnanf-nolibm (configure.ac): ... and here.
16873
16874 2011-05-20  Bruno Haible  <bruno@clisp.org>
16875
16876         isnan*: Separate the AC_LIBOBJ invocations.
16877         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
16878         AC_LIBOBJ invocation.
16879         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
16880         here.
16881         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
16882         AC_LIBOBJ invocation.
16883         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
16884         here.
16885         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
16886         AC_LIBOBJ invocation.
16887         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
16888         here.
16889         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
16890
16891 2011-05-08  Bruno Haible  <bruno@clisp.org>
16892
16893         isinf: Move AC_LIBOBJ invocations to module description.
16894         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
16895         * modules/isinf (configure.ac): ... to here.
16896
16897 2011-05-08  Bruno Haible  <bruno@clisp.org>
16898
16899         isfinite: Move AC_LIBOBJ invocations to module description.
16900         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16901         * modules/isfinite (configure.ac): ... to here.
16902
16903 2011-05-08  Bruno Haible  <bruno@clisp.org>
16904
16905         isblank: Move AC_LIBOBJ invocations to module description.
16906         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16907         here...
16908         * modules/isblank (configure.ac): ... to here.
16909
16910 2011-05-08  Bruno Haible  <bruno@clisp.org>
16911
16912         isapipe: Move AC_LIBOBJ invocations to module description.
16913         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16914         gl_PREREQ_ISAPIPE invocations from here...
16915         * modules/isapipe (configure.ac): ... to here.
16916         (Depends-on): Update condition.
16917
16918 2011-05-08  Bruno Haible  <bruno@clisp.org>
16919
16920         ioctl: Move AC_LIBOBJ invocations to module description.
16921         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
16922         invocations from here...
16923         * modules/ioctl (configure.ac): ... to here.
16924         (Depends-on): Update condition.
16925
16926 2011-05-08  Bruno Haible  <bruno@clisp.org>
16927
16928         imaxdiv: Move AC_LIBOBJ invocations to module description.
16929         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
16930         invocations from here...
16931         * modules/imaxdiv (configure.ac): ... to here.
16932
16933 2011-05-08  Bruno Haible  <bruno@clisp.org>
16934
16935         imaxabs: Move AC_LIBOBJ invocations to module description.
16936         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
16937         invocations from here...
16938         * modules/imaxabs (configure.ac): ... to here.
16939
16940 2011-05-08  Bruno Haible  <bruno@clisp.org>
16941
16942         getaddrinfo: Move AC_LIBOBJ invocations to module description.
16943         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
16944         AC_LIBOBJ invocations from here...
16945         * modules/getaddrinfo (configure.ac): ... to here.
16946         (Depends-on): Add conditions.
16947
16948 2011-05-08  Bruno Haible  <bruno@clisp.org>
16949
16950         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16951         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
16952         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16953         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
16954         (gl_PREREQ_INET_PTON): ... from here.
16955         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
16956         gl_PREREQ_INET_PTON here.
16957         (Depends-on): Update condition.
16958
16959 2011-05-08  Bruno Haible  <bruno@clisp.org>
16960
16961         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16962         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
16963         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16964         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
16965         (gl_PREREQ_INET_NTOP): ... from here.
16966         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
16967         gl_PREREQ_INET_NTOP here.
16968         (Depends-on): Update condition.
16969
16970 2011-05-08  Bruno Haible  <bruno@clisp.org>
16971
16972         iconv_open: Move AC_LIBOBJ invocations to module description.
16973         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
16974         AC_LIBOBJ invocations from here...
16975         * modules/iconv_open (configure.ac): ... to here.
16976
16977 2011-05-08  Bruno Haible  <bruno@clisp.org>
16978
16979         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16980         If module 'iconv_open' is among the main modules and module
16981         'iconv_open-utf' is among the tests dependencies, then
16982         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16983         return the special iconv_t values. Therefore iconv() and iconv_close()
16984         must support these special iconv_t values, already in lib, not only in
16985         tests.
16986         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16987         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16988         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16989         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16990         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16991         (Depends-on): Add the dependencies of iconv_open-utf.
16992         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16993         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16994         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16995
16996 2011-05-08  Bruno Haible  <bruno@clisp.org>
16997
16998         group-member: Move AC_LIBOBJ invocations to module description.
16999         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17000         gl_PREREQ_GROUP_MEMBER invocations from here...
17001         * modules/group-member (configure.ac): ... to here.
17002
17003 2011-05-08  Bruno Haible  <bruno@clisp.org>
17004
17005         grantpt: Move AC_LIBOBJ invocations to module description.
17006         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17007         invocations from here...
17008         * modules/grantpt (configure.ac): ... to here.
17009
17010 2011-05-08  Bruno Haible  <bruno@clisp.org>
17011
17012         glob: Move AC_LIBOBJ invocations to module description.
17013         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17014         from here...
17015         * modules/glob (configure.ac): ... to here.
17016
17017 2011-05-08  Bruno Haible  <bruno@clisp.org>
17018
17019         getusershell: Move AC_LIBOBJ invocations to module description.
17020         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17021         Move AC_LIBOBJ invocation from here...
17022         * modules/getusershell (configure.ac): ... to here.
17023         (Depends-on): Update condition.
17024
17025 2011-05-08  Bruno Haible  <bruno@clisp.org>
17026
17027         gettimeofday: Move AC_LIBOBJ invocations to module description.
17028         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17029         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17030         gl_PREREQ_GETTIMEOFDAY invocations from here...
17031         * modules/gettimeofday (configure.ac): ... to here.
17032
17033 2011-05-08  Bruno Haible  <bruno@clisp.org>
17034
17035         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17036         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17037         just gl_FUNC_TZSET.
17038         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17039         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17040         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17041         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17042
17043 2011-05-08  Bruno Haible  <bruno@clisp.org>
17044
17045         getsubopt: Move AC_LIBOBJ invocations to module description.
17046         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17047         gl_PREREQ_GETSUBOPT invocations from here...
17048         * modules/getsubopt (configure.ac): ... to here.
17049
17050 2011-05-08  Bruno Haible  <bruno@clisp.org>
17051
17052         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17053         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17054         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17055         * modules/getpass-gnu (configure.ac): ... to here.
17056
17057 2011-05-08  Bruno Haible  <bruno@clisp.org>
17058
17059         getpass: Move AC_LIBOBJ invocations to module description.
17060         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17061         gl_PREREQ_GETPASS invocations from here...
17062         * modules/getpass (configure.ac): ... to here.
17063
17064 2011-05-08  Bruno Haible  <bruno@clisp.org>
17065
17066         getpagesize: Move AC_LIBOBJ invocations to module description.
17067         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17068         from here...
17069         * modules/getpagesize (configure.ac): ... to here.
17070
17071 2011-05-08  Bruno Haible  <bruno@clisp.org>
17072
17073         getopt: Move AC_LIBOBJ invocations to module description.
17074         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17075         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17076         invocations from here...
17077         * modules/getopt-gnu (configure.ac): ... to here.
17078         * modules/getopt-posix (configure.ac): ... and here.
17079         (Depends-on): Update condition.
17080
17081 2011-05-08  Bruno Haible  <bruno@clisp.org>
17082
17083         getopt, argp: Respect rules for use of AC_LIBOBJ.
17084         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17085         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17086         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17087         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17088
17089 2011-05-08  Bruno Haible  <bruno@clisp.org>
17090
17091         getlogin_r: Move AC_LIBOBJ invocations to module description.
17092         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17093         gl_PREREQ_GETLOGIN_R invocations from here...
17094         * modules/getlogin_r (configure.ac): ... to here.
17095
17096 2011-05-08  Bruno Haible  <bruno@clisp.org>
17097
17098         getlogin: Move AC_LIBOBJ invocations to module description.
17099         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17100         here...
17101         * modules/getlogin (configure.ac): ... to here.
17102
17103 2011-05-08  Bruno Haible  <bruno@clisp.org>
17104
17105         getloadavg: Move AC_LIBOBJ invocations to module description.
17106         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17107         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17108         * modules/getloadavg (configure.ac): ... to here.
17109
17110 2011-05-08  Bruno Haible  <bruno@clisp.org>
17111
17112         gethrxtime: Move AC_LIBOBJ invocations to module description.
17113         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17114         LIB_GETHRXTIME from here...
17115         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17116         invocations from here...
17117         * modules/gethrxtime (configure.ac): ... to here.
17118
17119 2011-05-08  Bruno Haible  <bruno@clisp.org>
17120
17121         gethostname: Move AC_LIBOBJ invocations to module description.
17122         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17123         gl_PREREQ_GETHOSTNAME invocations from here...
17124         * modules/gethostname (configure.ac): ... to here.
17125
17126 2011-05-08  Bruno Haible  <bruno@clisp.org>
17127
17128         getgroups: Move AC_LIBOBJ invocations to module description.
17129         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17130         here...
17131         * modules/getgroups (configure.ac): ... to here.
17132
17133 2011-05-08  Bruno Haible  <bruno@clisp.org>
17134
17135         getdtablesize: Move AC_LIBOBJ invocations to module description.
17136         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17137         invocation from here...
17138         * modules/getdtablesize (configure.ac): ... to here.
17139
17140 2011-05-08  Bruno Haible  <bruno@clisp.org>
17141
17142         getdomainname: Move AC_LIBOBJ invocations to module description.
17143         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17144         gl_PREREQ_GETDOMAINNAME invocations from here...
17145         * modules/getdomainname (configure.ac): ... to here.
17146
17147 2011-05-08  Bruno Haible  <bruno@clisp.org>
17148
17149         getline: Move AC_LIBOBJ invocations to module description.
17150         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17151         invocations from here...
17152         * modules/getline (configure.ac): ... to here.
17153
17154 2011-05-08  Bruno Haible  <bruno@clisp.org>
17155
17156         getline: Simplify.
17157         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17158         It's already handled through the module dependency.
17159
17160 2011-05-08  Bruno Haible  <bruno@clisp.org>
17161
17162         getdelim: Move AC_LIBOBJ invocations to module description.
17163         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17164         and gl_PREREQ_GETDELIM invocations from here...
17165         * modules/getdelim (configure.ac): ... to here.
17166         (Depends-on): Fix condition.
17167
17168 2011-05-08  Bruno Haible  <bruno@clisp.org>
17169
17170         getcwd: Move AC_LIBOBJ invocations to module description.
17171         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17172         invocations from here...
17173         * modules/getcwd (configure.ac): ... to here.
17174
17175 2011-05-08  Bruno Haible  <bruno@clisp.org>
17176
17177         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17178         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17179         here...
17180         * modules/getcwd-lgpl (configure.ac): ... to here.
17181
17182 2011-05-07  Bruno Haible  <bruno@clisp.org>
17183
17184         crypto/gc: Move AC_LIBOBJ invocations to module description.
17185         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17186         * modules/crypto/gc (configure.ac): ... to here.
17187
17188 2011-05-07  Bruno Haible  <bruno@clisp.org>
17189
17190         fwriting: Move AC_LIBOBJ invocations to module description.
17191         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17192         here...
17193         * modules/fwriting (configure.ac): ... to here.
17194
17195 2011-05-07  Bruno Haible  <bruno@clisp.org>
17196
17197         fwritable: Move AC_LIBOBJ invocations to module description.
17198         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17199         here...
17200         * modules/fwritable (configure.ac): ... to here.
17201
17202 2011-05-07  Bruno Haible  <bruno@clisp.org>
17203
17204         futimens: Move AC_LIBOBJ invocations to module description.
17205         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17206         here...
17207         * modules/futimens (configure.ac): ... to here.
17208
17209 2011-05-07  Bruno Haible  <bruno@clisp.org>
17210
17211         ftruncate: Move AC_LIBOBJ invocations to module description.
17212         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17213         gl_PREREQ_FTRUNCATE invocations from here...
17214         * modules/ftruncate (configure.ac): ... to here.
17215
17216 2011-05-07  Bruno Haible  <bruno@clisp.org>
17217
17218         fsync: Move AC_LIBOBJ invocations to module description.
17219         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17220         invocations from here...
17221         * modules/fsync (configure.ac): ... to here.
17222
17223 2011-05-07  Bruno Haible  <bruno@clisp.org>
17224
17225         fsusage: Move AC_LIBOBJ invocations to module description.
17226         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17227         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17228         * modules/fsusage (configure.ac): ... to here.
17229
17230 2011-05-07  Bruno Haible  <bruno@clisp.org>
17231
17232         freopen: Move AC_LIBOBJ invocations to module description.
17233         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17234         invocations from here...
17235         * modules/freopen (configure.ac): ... to here.
17236
17237 2011-05-07  Bruno Haible  <bruno@clisp.org>
17238
17239         free: Move AC_LIBOBJ invocations to module description.
17240         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17241         invocations from here...
17242         * modules/free (configure.ac): ... to here.
17243
17244 2011-05-07  Bruno Haible  <bruno@clisp.org>
17245
17246         freadable: Move AC_LIBOBJ invocations to module description.
17247         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17248         here...
17249         * modules/freadable (configure.ac): ... to here.
17250
17251 2011-05-07  Bruno Haible  <bruno@clisp.org>
17252
17253         fpurge: Move AC_LIBOBJ invocations to module description.
17254         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17255         invocations from here...
17256         * modules/fpurge (configure.ac): ... to here.
17257
17258 2011-05-07  Bruno Haible  <bruno@clisp.org>
17259
17260         fpending: Move AC_LIBOBJ invocations to module description.
17261         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17262         gl_FUNC_FPENDING.
17263         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17264         invocations from here...
17265         * modules/fpending (configure.ac): ... to here.
17266
17267 2011-05-07  Bruno Haible  <bruno@clisp.org>
17268
17269         fopen: Move AC_LIBOBJ invocations to module description.
17270         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17271         invocations from here...
17272         * modules/fopen (configure.ac): ... to here.
17273
17274 2011-05-07  Bruno Haible  <bruno@clisp.org>
17275
17276         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17277         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17278         gl_FUNC_FNMATCH_POSIX.
17279         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17280         invocations from here...
17281         * modules/fnmatch (configure.ac): ... to here.
17282         * modules/fnmatch-gnu (configure.ac): ... and here.
17283
17284 2011-05-07  Bruno Haible  <bruno@clisp.org>
17285
17286         flock: Move AC_LIBOBJ invocations to module description.
17287         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17288         invocations from here...
17289         * modules/flock (configure.ac): ... to here.
17290
17291 2011-05-07  Bruno Haible  <bruno@clisp.org>
17292
17293         fileblocks: Move AC_LIBOBJ invocations to module description.
17294         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17295         gl_PREREQ_FILEBLOCKS invocations from here...
17296         * modules/fileblocks (configure.ac): ... to here.
17297
17298 2011-05-06  Bruno Haible  <bruno@clisp.org>
17299
17300         fflush: Move AC_LIBOBJ invocations to module description.
17301         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17302         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17303         invocations from here...
17304         * modules/fflush (configure.ac): ... to here.
17305
17306 2011-05-06  Bruno Haible  <bruno@clisp.org>
17307
17308         fdopendir: Move AC_LIBOBJ invocations to module description.
17309         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17310         here...
17311         * modules/fdopendir (configure.ac): ... to here.
17312         (Depends-on): Improve conditions.
17313
17314 2011-05-06  Bruno Haible  <bruno@clisp.org>
17315
17316         _Exit: Move AC_LIBOBJ invocations to module description.
17317         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17318         invocations from here...
17319         * modules/_Exit (configure.ac): ... to here.
17320
17321 2011-05-21  Bruno Haible  <bruno@clisp.org>
17322
17323         euidaccess: Respect rules for use of AC_LIBOBJ.
17324         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17325         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17326         from here...
17327         * modules/euidaccess (configure.ac): ... to here.
17328
17329 2011-05-06  Bruno Haible  <bruno@clisp.org>
17330
17331         error: Move AC_LIBOBJ invocations to module description.
17332         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17333         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17334         invocations from here...
17335         * modules/error (configure.ac): ... to here.
17336
17337 2011-05-06  Bruno Haible  <bruno@clisp.org>
17338
17339         duplocale: Move AC_LIBOBJ invocations to module description.
17340         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17341         gl_PREREQ_DUPLOCALE invocations from here...
17342         * modules/duplocale (configure.ac): ... to here.
17343
17344 2011-05-05  Bruno Haible  <bruno@clisp.org>
17345
17346         dirfd: Move AC_LIBOBJ invocations to module description.
17347         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17348         gl_FUNC_DIRFD.
17349         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17350         here...
17351         * modules/dirfd (configure.ac): ... to here.
17352         (Depends-on): Fix condition.
17353
17354 2011-05-05  Bruno Haible  <bruno@clisp.org>
17355
17356         chown: Respect rules for use of AC_LIBOBJ.
17357         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17358         * modules/chown (configure.ac): ... to here.
17359
17360 2011-05-05  Bruno Haible  <bruno@clisp.org>
17361
17362         chdir-long: Move AC_LIBOBJ invocations to module description.
17363         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17364         gl_PREREQ_CHDIR_LONG invocations from here...
17365         * modules/chdir-long (configure.ac): ... to here.
17366
17367 2011-05-05  Bruno Haible  <bruno@clisp.org>
17368
17369         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17370         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17371         from here...
17372         * modules/canonicalize-lgpl (configure.ac): ... to here.
17373
17374 2011-05-05  Bruno Haible  <bruno@clisp.org>
17375
17376         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17377         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17378         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17379         REPLACE_CALLOC.
17380         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17381         * modules/calloc-gnu (configure.ac): Likewise.
17382
17383 2011-05-05  Bruno Haible  <bruno@clisp.org>
17384
17385         btowc: Move AC_LIBOBJ invocations to module description.
17386         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17387         invocations from here...
17388         * modules/btowc (configure.ac): ... to here.
17389
17390 2011-05-21  Bruno Haible  <bruno@clisp.org>
17391
17392         atexit: Move AC_LIBOBJ invocations to module description.
17393         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17394         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17395         here...
17396         * modules/atexit (configure.ac): ... to here.
17397
17398 2011-05-05  Bruno Haible  <bruno@clisp.org>
17399
17400         atoll: Move AC_LIBOBJ invocations to module description.
17401         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17402         invocations from here...
17403         * modules/atoll (configure.ac): ... to here.
17404
17405 2011-05-05  Bruno Haible  <bruno@clisp.org>
17406
17407         argz: Move AC_LIBOBJ invocations to module description.
17408         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17409         * modules/argz (configure.ac): ... to here.
17410
17411 2011-05-05  Bruno Haible  <bruno@clisp.org>
17412
17413         alphasort: Move AC_LIBOBJ invocations to module description.
17414         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17415         gl_PREREQ_ALPHASORT invocations from here...
17416         * modules/alphasort (configure.ac): ... to here.
17417
17418 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17419
17420         verify: new macro verify_expr; verify_true deprecated
17421         * NEWS: Mention this.
17422         * doc/verify.texi (Compile-time Assertions): Document this.
17423         * lib/verify.h (verify_true): Deprecate.
17424         (verify_expr): New macro.
17425         * tests/test-verify.c (function): Test verify_expr.
17426
17427 2011-06-14  Jim Meyering  <meyering@redhat.com>
17428
17429         init.sh: give more portable redirection-related advice in a comment
17430         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17431         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17432         for lots of discussion.  Stefano Lattarini suggested the solution
17433         of putting "9>&2" after the command.  Reported by Bruno Haible.
17434
17435 2011-06-13  Bruno Haible  <bruno@clisp.org>
17436
17437         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17438         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17439         'none'.
17440
17441 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17442
17443         ftoastr: use strtof only if HAVE_STRTOF
17444         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17445         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17446         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17447         * modules/ftoastr (configure.ac): Check for strtof.
17448
17449 2011-06-13  Bruno Haible  <bruno@clisp.org>
17450
17451         gnulib-tool: Addendum to 2011-06-08 commit.
17452         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17453         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17454
17455 2011-06-13  Bruno Haible  <bruno@clisp.org>
17456
17457         fseeko: Provide a non-inline replacement of fseek().
17458         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17459         * modules/fseeko (Depends-on): Add fseek.
17460         * modules/fseek (License): Change to LGPLv2+.
17461
17462 2011-06-13  Bruno Haible  <bruno@clisp.org>
17463
17464         ftello: Provide a non-inline replacement of ftell().
17465         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17466         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17467         not have ftello() (such as on mingw).
17468         * modules/ftello (Depends-on): Add ftell.
17469         * modules/ftell (License): Change to LGPLv2+.
17470
17471 2011-05-07  Bruno Haible  <bruno@clisp.org>
17472
17473         ftell: Move AC_LIBOBJ invocations to module description.
17474         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17475         * modules/ftell (configure.ac): ... to here.
17476
17477 2011-05-07  Bruno Haible  <bruno@clisp.org>
17478
17479         ftello: Respect rules for use of AC_LIBOBJ.
17480         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17481         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17482         here...
17483         * modules/ftello (configure.ac): ... to here.
17484
17485 2011-05-07  Bruno Haible  <bruno@clisp.org>
17486
17487         fseeko: Simplify.
17488         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17489         (gl_FUNC_FSEEKO): Inline it here.
17490
17491 2011-05-07  Bruno Haible  <bruno@clisp.org>
17492
17493         fseek: Move AC_LIBOBJ invocations to module description.
17494         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17495         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17496         * modules/fseek (configure.ac): ... to here.
17497
17498 2011-05-07  Bruno Haible  <bruno@clisp.org>
17499
17500         fseek: Respect rules for use of AC_LIBOBJ.
17501         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17502         here...
17503         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17504
17505 2011-05-07  Bruno Haible  <bruno@clisp.org>
17506
17507         fseeko: Respect rules for use of AC_LIBOBJ.
17508         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
17509         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
17510         here...
17511         * modules/fseeko (configure.ac): ... to here.
17512
17513 2011-06-13  Bruno Haible  <bruno@clisp.org>
17514
17515         gnulib-tool: Allow comments in the 'Depends-on' section.
17516         * doc/gnulib.texi (Module description): Mention comment syntax in the
17517         Depends-on section.
17518         * gnulib-tool (func_get_dependencies): Filter out comment lines.
17519
17520 2011-06-13  Bruno Haible  <bruno@clisp.org>
17521
17522         file-set.h: guard __attibute__ use, now that it's not always defined
17523         * lib/file-set.h (record_file): Use __attribute__ only with compiler
17524         versions that support it.  This fixes a coreutils build failure with
17525         the vendor cc on HP-UX 11.31.
17526
17527 2011-06-12  Bruno Haible  <bruno@clisp.org>
17528
17529         acl: Add support for HP-UX >= 11.11 JFS ACLs.
17530         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
17531         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
17532         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
17533         (acl, aclsort): New declarations.
17534         (aclv_nontrivial): New declaration.
17535         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
17536         (file_has_acl): Read also the second kind of HP-UX ACLs.
17537         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
17538         kind of HP-UX ACLs if the first kind fails.
17539         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
17540         second kind of HP-UX ACLs.
17541         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
17542         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
17543         agree.
17544         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17545         hpuxjfs.
17546         Handle hpuxjfs.
17547         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
17548         hpuxjfs.
17549         Handle hpuxjfs.
17550         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17551         (func_test_same_acls): Use both lsacl and getacl.
17552         Handle hpuxjfs.
17553         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
17554         (func_test_same_acls): Use both lsacl and getacl.
17555         Handle hpuxjfs.
17556
17557 2011-06-12  Bruno Haible  <bruno@clisp.org>
17558
17559         acl: Complete the 2010-08-10 fix.
17560         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
17561         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
17562         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
17563         explicitly.
17564         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
17565         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
17566
17567 2011-06-12  Bruno Haible  <bruno@clisp.org>
17568
17569         spawn-pipe tests: Comments.
17570         * tests/test-spawn-pipe-child.c (main): Update comment.
17571         Reported by James Youngman <jay@gnu.org>.
17572
17573 2011-06-11  James Youngman  <jay@gnu.org>
17574
17575         New module 'stat-size'.
17576         * modules/stat-size: New module.  Provides macros for accessing
17577         file size information in instances of struct stat.  Depends on the
17578         fileblocks module because it calls st_blocks.
17579         * lib/stat-size.h: New file, adapted from coreutils' system.h.
17580         * doc/gnulib.texi: Include stat-size.texi.
17581         * doc/stat-size.texi: Documentation for this module.
17582         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
17583         * m4/fileblocks.m4: Mention that stat-size depends on the call to
17584         AC_STRUCT_ST_BLOCKS.
17585
17586 2011-06-09  Bruno Haible  <bruno@clisp.org>
17587
17588         thread: Support pthreads-win32.
17589         * lib/glthread/thread.h (gl_thread_self): Define differently on
17590         pthreads-win32.
17591         (gl_null_thread): New declaration.
17592         (gl_thread_self_pointer): New macro.
17593         * lib/glthread/thread.c (gl_null_thread): New constant.
17594         * tests/test-lock.c: Use gl_thread_self_pointer instead of
17595         gl_thread_self.
17596         * tests/test-tls.c: Likewise.
17597         Suggested by Paul Eggert. Reported by Eric Blake.
17598
17599 2011-06-09  Bruno Haible  <bruno@clisp.org>
17600
17601         thread: Fix confusion between NULL and 0.
17602         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
17603         Reported by Paul Eggert.
17604
17605 2011-06-09  Bruno Haible  <bruno@clisp.org>
17606
17607         spawn-pipe tests: Avoid test failure on HP-UX 11.
17608         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
17609         is closed.
17610
17611 2011-06-09  Bruno Haible  <bruno@clisp.org>
17612
17613         acl tests: Fix compilation error on HP-UX 11.
17614         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
17615
17616 2011-06-09  Bruno Haible  <bruno@clisp.org>
17617
17618         rmdir: Avoid test failure on HP-UX 10.20.
17619         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
17620         EEXIST.
17621
17622 2011-06-08  Eric Blake  <eblake@redhat.com>
17623
17624         perror: fix test on mingw
17625         * modules/perror-tests (Depends-on): Add dup2.
17626
17627         strerror_r-posix: fix on MacOS
17628         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
17629         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
17630         logic bug.
17631         * lib/strerror_r.c (strerror_r): Fix the bug.
17632         * lib/strerror.c (strerror): Likewise.
17633         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17634         problem.
17635         * doc/posix-functions/strerror.texi (strerror): Likewise.
17636         * doc/posix-functions/perror.texi (perror): Likewise.
17637         * tests/test-strerror.c (main): Enhance test.
17638         * tests/test-strerror_r.c (main): Likewise.
17639
17640 2011-06-08  Bruno Haible  <bruno@clisp.org>
17641
17642         gnulib-tool: Better isolation between different gnulib-tool invocations.
17643         * gnulib-tool: New option --witness-c-macro.
17644         (witness_c_macro): New variable.
17645         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
17646         AM_CPPFLAGS define it as a C macro.
17647         (func_emit_tests_Makefile_am): Likewise.
17648         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
17649         read it from there.
17650         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
17651         m4_define, not AC_DEFUN.
17652         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
17653         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
17654         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
17655         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
17656         s|...|...|, to substitute the values of the GNULIB_* module indicator
17657         variables.
17658         * modules/dirent (Makefile.am): Likewise.
17659         * modules/fcntl-h (Makefile.am): Likewise.
17660         * modules/iconv-h (Makefile.am): Likewise.
17661         * modules/langinfo (Makefile.am): Likewise.
17662         * modules/locale (Makefile.am): Likewise.
17663         * modules/math (Makefile.am): Likewise.
17664         * modules/netdb (Makefile.am): Likewise.
17665         * modules/poll-h (Makefile.am): Likewise.
17666         * modules/pty (Makefile.am): Likewise.
17667         * modules/search (Makefile.am): Likewise.
17668         * modules/signal (Makefile.am): Likewise.
17669         * modules/spawn (Makefile.am): Likewise.
17670         * modules/stdio (Makefile.am): Likewise.
17671         * modules/stdlib (Makefile.am): Likewise.
17672         * modules/string (Makefile.am): Likewise.
17673         * modules/sys_ioctl (Makefile.am): Likewise.
17674         * modules/sys_select (Makefile.am): Likewise.
17675         * modules/sys_socket (Makefile.am): Likewise.
17676         * modules/sys_stat (Makefile.am): Likewise.
17677         * modules/sys_times (Makefile.am): Likewise.
17678         * modules/sys_utsname (Makefile.am): Likewise.
17679         * modules/sys_wait (Makefile.am): Likewise.
17680         * modules/termios (Makefile.am): Likewise.
17681         * modules/time (Makefile.am): Likewise.
17682         * modules/unistd (Makefile.am): Likewise.
17683         * modules/wchar (Makefile.am): Likewise.
17684
17685 2011-06-08  Eric Blake  <eblake@redhat.com>
17686
17687         strerror: simplify replacement
17688         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
17689         * modules/strerror (configure.ac): No prereqs needed here...
17690         * modules/strerror-override (configure.ac): ...but this needs it.
17691         (Files): Add file for needed prereq macro.
17692
17693 2011-06-08  Bruno Haible  <bruno@clisp.org>
17694
17695         strerror_r-posix: Tweaks.
17696         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
17697         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
17698         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
17699         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
17700         (gl_FUNC_STRERROR_R): ... to here.
17701         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
17702
17703 2011-06-07  Eric Blake  <eblake@redhat.com>
17704
17705         perror: document fixed bugs
17706         * doc/posix-functions/perror.texi (perror): Document recent
17707         patches.
17708
17709 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
17710
17711         stat-time: get_stat_birthtime failure is better-defined
17712         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
17713         return a timestamp whose tv_sec and tv_nsec values are both -1.
17714         Previously, the spec said only that the tv_nsec value was negative.
17715         This upward-compatible change simplifies GNU tar a bit.
17716
17717 2011-06-07  Eric Blake  <eblake@redhat.com>
17718
17719         strerror_r-posix: work around cygwin 1.7.9
17720         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
17721         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
17722         bug without replacing strerror_r.
17723         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
17724         strerror_r is buggy, but without requiring strerror_r compilation.
17725         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
17726
17727         test-perror: relax test to ignore cygwin bug
17728         * tests/test-perror2.c (main): Relax test on requiring detection
17729         of stream errors, and use unbuffered stream.
17730         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
17731         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17732         * doc/posix-functions/fputc.texi (fputc): Likewise.
17733         * doc/posix-functions/fputs.texi (fputs): Likewise.
17734         * doc/posix-functions/fputws.texi (fputws): Likewise.
17735         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17736         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
17737         * doc/posix-functions/getopt.texi (getopt): Likewise.
17738         * doc/posix-functions/perror.texi (perror): Likewise.
17739         * doc/posix-functions/printf.texi (printf): Likewise.
17740         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
17741         * doc/posix-functions/psignal.texi (psignal): Likewise.
17742         * doc/posix-functions/putc.texi (putc): Likewise.
17743         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
17744         Likewise.
17745         * doc/posix-functions/putchar.texi (putchar): Likewise.
17746         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
17747         Likewise.
17748         * doc/posix-functions/puts.texi (puts): Likewise.
17749         * doc/posix-functions/putwc.texi (putwc): Likewise.
17750         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
17751         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17752         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17753         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17754         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17755         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17756         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
17757         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17758
17759 2011-05-22  Bruno Haible  <bruno@clisp.org>
17760
17761         strerror: Move AC_LIBOBJ invocations to module description.
17762         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
17763         gl_PREREQ_STRERROR invocations from here...
17764         * modules/strerror (configure.ac): ... to here.
17765
17766 2011-05-21  Bruno Haible  <bruno@clisp.org>
17767
17768         perror: Use common idiom.
17769         * modules/perror (configure.ac): Reorder statements.
17770
17771 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17772
17773         tests: fix usage message in 'mktempd_'
17774         * tests/init.sh (mktempd_): In the usage message, use literal
17775         'mktempd_', not '$ME' (which is even undefined), as the name of
17776         the subroutine.
17777
17778 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
17779
17780         tests init: new function 'fatal_', for hard errors
17781         Before this patch, the only way offered by tests/init.sh to
17782         properly signal a hard error was the `framework_failure_'
17783         function.  But the error message issued by that function,
17784         as its name would suggest, refers to a set-up failure in the
17785         testsuite, while hard errors can obviously also be due to
17786         other reasons.  The best way to fix this inconsistency is to
17787         introduce a new function with a more general error message.
17788         * tests/init.sh (fatal_): New function.
17789
17790 2011-06-06  Eric Blake  <eblake@redhat.com>
17791
17792         canonicalize-lgpl: use common idiom
17793         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
17794         over newer POSIX -Rf.
17795         Reported by Bruno Haible.
17796
17797         canonicalize-lgpl: work around AIX realpath bug
17798         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
17799         * doc/posix-functions/realpath.texi (realpath): Document it.
17800         Reported by Bruno Haible.
17801
17802         strerror: work around FreeBSD bug
17803         * lib/strerror.c (strerror): Special case 0.
17804         Reported by Bruno Haible.
17805
17806         strerror-override: avoid bloating errno module
17807         * modules/errno (Files, configure.ac): Move replacement strings...
17808         * modules/strerror-override: ...to new module.
17809         * modules/strerror (Depends-on): Add strerror-override.
17810         * modules/strerror_r-posix (Depends-on): Likewise.
17811         * MODULES.html.sh: Document new module.
17812         Reported by Bruno Haible.
17813
17814 2011-06-06  Bruno Haible  <bruno@clisp.org>
17815
17816         spawn-pipe tests: Rename program.
17817         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
17818         * tests/test-spawn-pipe-child.c: Update comment.
17819         * tests/test-spawn-pipe.sh: Update.
17820         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
17821
17822         spawn-pipe tests: Link the child program only against libc.
17823         * tests/test-spawn-pipe-child.c: New file, extracted from
17824         tests/test-spawn-pipe.c.
17825         (main): Expect only one argument.
17826         (is_open): New function, copied from tests/test-pipe.c.
17827         * tests/test-spawn-pipe.c: Don't include <errno.h>.
17828         (child_main): Remove function.
17829         (test_pipe): Pass only one argument to the child program.
17830         (main): Remove child process code. Expect the child program's name as
17831         first argument.
17832         * tests/test-spawn-pipe.sh: Pass the child program's name as first
17833         argument.
17834         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
17835         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
17836         test-spawn-pipe-child against no libraries.
17837
17838 2011-06-06  Bruno Haible  <bruno@clisp.org>
17839
17840         careadlinkat: Avoid mismatch between ssize_t and int.
17841         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
17842         * lib/careadlinkat.c (careadlinkatcwd): Define always.
17843
17844 2011-06-06  Jim Meyering  <meyering@redhat.com>
17845
17846         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
17847         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
17848         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
17849
17850 2011-06-05  Bruno Haible  <bruno@clisp.org>
17851
17852         ansi-c++-opt: Interoperability with libtool.
17853         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
17854         set the variable to "no", not to ":".
17855         * NEWS: Mention the change.
17856
17857 2011-06-05  Bruno Haible  <bruno@clisp.org>
17858
17859         acl: Fix test failure on AIX 7.
17860         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
17861         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
17862
17863 2011-06-05  Bruno Haible  <bruno@clisp.org>
17864
17865         pipe-filter-ii: Fix test failure on AIX and IRIX.
17866         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
17867         with EAGAIN, retry with a smaller buffer size.
17868
17869 2011-06-05  Bruno Haible  <bruno@clisp.org>
17870
17871         localename: Fix link dependencies.
17872         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
17873         * modules/localename-tests (Makefile.am): Link test-localename with
17874         $(LIBTHREAD).
17875
17876 2011-06-05  Bruno Haible  <bruno@clisp.org>
17877
17878         error: Avoid gcc warning.
17879         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
17880
17881 2011-06-05  Bruno Haible  <bruno@clisp.org>
17882
17883         unsetenv: Avoid gcc warning.
17884         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
17885
17886 2011-06-05  Bruno Haible  <bruno@clisp.org>
17887
17888         setenv: Avoid gcc warning.
17889         * lib/setenv.c (setenv): Provide declaration if system lacks it.
17890
17891 2011-06-05  Bruno Haible  <bruno@clisp.org>
17892
17893         sys_select: Ensure memset is declared also on AIX 7.
17894         * lib/sys_select.in.h: Include <string.h> also on AIX.
17895         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
17896         self-contained also on AIX 7.1.
17897
17898 2011-06-04  Jim Meyering  <meyering@redhat.com>
17899
17900         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17901         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17902         function name, "error".
17903         (_gl_translatable_diag_func_re): New configurable variable.
17904
17905 2011-06-04  Bruno Haible  <bruno@clisp.org>
17906
17907         getopt: Avoid gcc warning.
17908         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17909
17910 2011-06-04  Bruno Haible  <bruno@clisp.org>
17911
17912         strerror_r: Fix comments.
17913         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17914         commit.
17915
17916 2011-06-04  Bruno Haible  <bruno@clisp.org>
17917
17918         perror: Fix compilation error.
17919         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17920         Undefine fprintf, not sprintf.
17921         * modules/perror (Depends-on): Remove intprops, verify.
17922
17923 2011-06-04  Bruno Haible  <bruno@clisp.org>
17924
17925         setlocale: Enable replacement on Cygwin 1.5.
17926         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
17927         Cygwin 1.5.x.
17928         * doc/posix-functions/setlocale.texi: Mention that the problem with the
17929         LC_CTYPE category also exists on Cygwin 1.5.x.
17930
17931 2011-06-04  Bruno Haible  <bruno@clisp.org>
17932
17933         strerror-override: Don't disable symbol renamings.
17934         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
17935         * lib/strerror-override.c: Include config.h.
17936         (strerror_override): Don't undefine.
17937
17938 2011-06-03  Bruno Haible  <bruno@clisp.org>
17939
17940         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
17941         * lib/localename.h: Update copyright header.
17942         * lib/localename.c: Likewise.
17943         * lib/relocatable.h: Likewise.
17944         * lib/relocatable.c: Likewise.
17945
17946 2011-06-02  Bruno Haible  <bruno@clisp.org>
17947
17948         doc: Fix a module name.
17949         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
17950
17951 2011-06-02  Bruno Haible  <bruno@clisp.org>
17952
17953         pipe2: Remove dependency on 'nonblocking' module.
17954         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
17955         O_NONBLOCK is defined by gnulib.
17956         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
17957         is zero.
17958         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
17959         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
17960         defined by gnulib.
17961         (get_nonblocking_flag): New function.
17962         (main): Test O_NONBLOCK flag only if it is nonzero.
17963         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
17964
17965 2011-06-03  Jim Meyering  <meyering@redhat.com>
17966
17967         maint: three new prohibit-header-without-use rules
17968         Prohibit use of cloexec.h, posixver.h, same.h without use.
17969         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
17970         (sc_prohibit_posixver_without_use): Likewise.
17971         (sc_prohibit_same_without_use): Likewise.
17972
17973 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17974
17975         allocator: 'die' routine is now given requested size
17976         * lib/allocator.h (struct allocator.die): New size arg.
17977         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17978         If the actual problem is an ssize_t limitation, not a size_t or
17979         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17980
17981 2011-06-01  Eric Blake  <eblake@redhat.com>
17982
17983         strerror: drop strerror_r dependency
17984         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17985         * lib/strerror-override.c (strerror_override): ...to new file.
17986         * lib/strerror-override.h: Add prototype.
17987         * lib/strerror-impl.h: Delete.
17988         * lib/strerror.c (strerror): New implementation.
17989         * modules/errno (Files): Add new files.
17990         (configure.ac): Compile new file as appropriate.
17991         * modules/strerror (Files): Drop unused file.
17992         (Depends-on): Drop strerror_r-posix.
17993         * MODULES.html.sh: Document strerror_r-posix.
17994         Requested by Sam Steingold.
17995
17996         perror: call strerror_r directly
17997         * modules/perror (Files): Drop strerror-impl.h.
17998         * lib/perror.c (perror): Use our own stack buffer, rather than
17999         calling a wrapper that uses static storage.
18000         * doc/posix-functions/perror.texi (perror): Document a limitation
18001         of our replacement.
18002
18003         strerror_r: fix includes for FreeBSD
18004         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18005         since we use abort on some platforms.
18006         Reported by Matthias Bolte.
18007
18008 2011-05-31  Bruno Haible  <bruno@clisp.org>
18009
18010         Fix link errors in tests: openat-die uses gettext-h.
18011         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18012         against $(LIBINTL).
18013         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18014         against $(LIBINTL).
18015         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18016         $(LIBINTL).
18017         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18018         against $(LIBINTL).
18019         * modules/linkat-tests (Makefile.am): Link test-linkat against
18020         $(LIBINTL).
18021         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18022         $(LIBINTL).
18023         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18024         against $(LIBINTL).
18025         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18026         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18027         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18028         $(LIBINTL).
18029         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18030         $(LIBINTL).
18031         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18032         $(LIBINTL).
18033         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18034
18035 2011-05-31  Bruno Haible  <bruno@clisp.org>
18036
18037         Fix link errors in tests: wait-process uses gettext-h.
18038         * modules/nonblocking-pipe-tests (Makefile.am): Set
18039         test_nonblocking_pipe_main_LDADD.
18040         * modules/nonblocking-socket-tests (Makefile.am): Link
18041         test-nonblocking-socket-main against $(LIBINTL).
18042         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18043
18044 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18045
18046         assert-h: work around 'verify' incompatibility
18047         * lib/verify.h: Use @...@ directives, not ifdef.
18048         * modules/assert-h (assert.h): Implement the directives.
18049         (assert.h): Substitute the symbol-prefix more consistently.
18050
18051 2011-05-29  Jim Meyering  <meyering@redhat.com>
18052
18053         trim: remove three superfluous assignments
18054         * lib/trim.c (trim2): Remove three superfluous assignments
18055         and correct brace positioning.
18056
18057 2011-05-29  Bruno Haible  <bruno@clisp.org>
18058
18059         wctype-h: Avoid namespace pollution on Solaris 2.6.
18060         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18061         identifiers.
18062         * doc/posix-headers/wctype.texi: Mention the problem.
18063         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18064
18065 2011-05-28  Jim Meyering  <meyering@redhat.com>
18066
18067         parse-datetime.y: accommodate -Wstrict-overflow
18068         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18069         placate -Wstrict-overflow.
18070
18071         trim: avoid a warning from -O2 -Wstrict-overflow
18072         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18073
18074 2011-05-29  Bruno Haible  <bruno@clisp.org>
18075
18076         gnulib-tool: Fix bug in yesterday's commit.
18077         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18078         twice.
18079
18080 2011-05-29  Bruno Haible  <bruno@clisp.org>
18081
18082         Allow multiple gnulib generated include files to be combined.
18083         * gnulib-tool (func_compute_include_guard_prefix): New function.
18084         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18085         ${gl_include_guard_prefix} references.
18086         (func_import, func_create_testdir): Invoke
18087         func_compute_include_guard_prefix.
18088         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18089         * lib/ctype.in.h: Likewise.
18090         * lib/dirent.in.h: Likewise.
18091         * lib/errno.in.h: Likewise.
18092         * lib/fcntl.in.h: Likewise.
18093         * lib/float.in.h: Likewise.
18094         * lib/getopt.in.h: Likewise.
18095         * lib/iconv.in.h: Likewise.
18096         * lib/langinfo.in.h: Likewise.
18097         * lib/locale.in.h: Likewise.
18098         * lib/math.in.h: Likewise.
18099         * lib/netdb.in.h: Likewise.
18100         * lib/netinet_in.in.h: Likewise.
18101         * lib/poll.in.h: Likewise.
18102         * lib/pthread.in.h: Likewise.
18103         * lib/pty.in.h: Likewise.
18104         * lib/sched.in.h: Likewise.
18105         * lib/se-selinux.in.h: Likewise.
18106         * lib/search.in.h: Likewise.
18107         * lib/signal.in.h: Likewise.
18108         * lib/spawn.in.h: Likewise.
18109         * lib/stdarg.in.h: Likewise.
18110         * lib/stddef.in.h: Likewise.
18111         * lib/stdint.in.h: Likewise.
18112         * lib/stdio.in.h: Likewise.
18113         * lib/stdlib.in.h: Likewise.
18114         * lib/string.in.h: Likewise.
18115         * lib/strings.in.h: Likewise.
18116         * lib/sys_file.in.h: Likewise.
18117         * lib/sys_ioctl.in.h: Likewise.
18118         * lib/sys_select.in.h: Likewise.
18119         * lib/sys_socket.in.h: Likewise.
18120         * lib/sys_stat.in.h: Likewise.
18121         * lib/sys_time.in.h: Likewise.
18122         * lib/sys_times.in.h: Likewise.
18123         * lib/sys_uio.in.h: Likewise.
18124         * lib/sys_utsname.in.h: Likewise.
18125         * lib/sys_wait.in.h: Likewise.
18126         * lib/sysexits.in.h: Likewise.
18127         * lib/termios.in.h: Likewise.
18128         * lib/time.in.h: Likewise.
18129         * lib/unistd.in.h: Likewise.
18130         * lib/wchar.in.h: Likewise.
18131         * lib/wctype.in.h: Likewise.
18132         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18133         * modules/ctype (Makefile.am): Likewise.
18134         * modules/dirent (Makefile.am): Likewise.
18135         * modules/errno (Makefile.am): Likewise.
18136         * modules/fcntl-h (Makefile.am): Likewise.
18137         * modules/float (Makefile.am): Likewise.
18138         * modules/getopt-posix (Makefile.am): Likewise.
18139         * modules/iconv-h (Makefile.am): Likewise.
18140         * modules/langinfo (Makefile.am): Likewise.
18141         * modules/locale (Makefile.am): Likewise.
18142         * modules/math (Makefile.am): Likewise.
18143         * modules/netdb (Makefile.am): Likewise.
18144         * modules/netinet_in (Makefile.am): Likewise.
18145         * modules/poll-h (Makefile.am): Likewise.
18146         * modules/pthread (Makefile.am): Likewise.
18147         * modules/pty (Makefile.am): Likewise.
18148         * modules/sched (Makefile.am): Likewise.
18149         * modules/search (Makefile.am): Likewise.
18150         * modules/selinux-h (Makefile.am): Likewise.
18151         * modules/signal (Makefile.am): Likewise.
18152         * modules/spawn (Makefile.am): Likewise.
18153         * modules/stdarg (Makefile.am): Likewise.
18154         * modules/stddef (Makefile.am): Likewise.
18155         * modules/stdint (Makefile.am): Likewise.
18156         * modules/stdio (Makefile.am): Likewise.
18157         * modules/stdlib (Makefile.am): Likewise.
18158         * modules/string (Makefile.am): Likewise.
18159         * modules/strings (Makefile.am): Likewise.
18160         * modules/sys_file (Makefile.am): Likewise.
18161         * modules/sys_ioctl (Makefile.am): Likewise.
18162         * modules/sys_select (Makefile.am): Likewise.
18163         * modules/sys_socket (Makefile.am): Likewise.
18164         * modules/sys_stat (Makefile.am): Likewise.
18165         * modules/sys_time (Makefile.am): Likewise.
18166         * modules/sys_times (Makefile.am): Likewise.
18167         * modules/sys_uio (Makefile.am): Likewise.
18168         * modules/sys_utsname (Makefile.am): Likewise.
18169         * modules/sys_wait (Makefile.am): Likewise.
18170         * modules/sysexits (Makefile.am): Likewise.
18171         * modules/termios (Makefile.am): Likewise.
18172         * modules/time (Makefile.am): Likewise.
18173         * modules/unistd (Makefile.am): Likewise.
18174         * modules/wchar (Makefile.am): Likewise.
18175         * modules/wctype-h (Makefile.am): Likewise.
18176         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18177
18178 2011-05-29  Bruno Haible  <bruno@clisp.org>
18179
18180         assert-h: Allow multiple gnulib generated replacements to coexist.
18181         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18182
18183 2011-05-29  Bruno Haible  <bruno@clisp.org>
18184
18185         argp: Allow coexistence with strerror_r-posix module.
18186         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18187         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18188         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18189         not the glibc signature.
18190
18191 2011-05-28  Bruno Haible  <bruno@clisp.org>
18192
18193         gnulib-tool: Alternative structure of testdirs, similar to --import.
18194         * gnulib-tool: New option --single-configure.
18195         (func_usage): Document it.
18196         (single_configure): New variable.
18197         (func_modules_transitive_closure_separately,
18198         func_modules_transitive_closure_separately,
18199         func_determine_use_libtests, func_modules_add_dummy_separately,
18200         func_modules_to_filelist_separately): New functions, extracted from
18201         func_import.
18202         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18203         (func_import): Use the new functions.
18204         (func_create_testdir): Set final_modules. Handle $single_configure =
18205         true case.
18206
18207 2011-05-28  Bruno Haible  <bruno@clisp.org>
18208
18209         getloadavg: Remove an unreliable safety check.
18210         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18211         getloadavg.c is in place.
18212         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18213         Reported by Sam Steingold <sds@gnu.org>.
18214
18215 2011-05-28  Bruno Haible  <bruno@clisp.org>
18216
18217         doc: Cleanup yet another file produced by texinfo.tex.
18218         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18219
18220 2011-05-28  Bruno Haible  <bruno@clisp.org>
18221
18222         Finish the conditional dependencies mechanism.
18223         * gnulib-tool: New option --no-conditional-dependencies.
18224         (func_usage): Document it. Don't mark --conditional-dependencies as
18225         experimental.
18226         (cond_dependencies): The possible values can now be true, false, empty.
18227         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18228         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18229         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18230
18231 2011-05-28  Bruno Haible  <bruno@clisp.org>
18232
18233         doc: Use a recent texinfo.tex.
18234         * doc/Makefile (tex_opts): New variable.
18235         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18236
18237 2011-05-28  Jim Meyering  <meyering@redhat.com>
18238
18239         intprops.h: adjust comment to match code change
18240         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18241         only once, it *may* have side effects.  Also fix an unrelated typo.
18242         (_GL_INT_SIGNED): Likewise.
18243
18244 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18245
18246         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18247
18248 2011-05-26  Bruno Haible  <bruno@clisp.org>
18249
18250         mbsrchr: Avoid collision with system function on Interix.
18251         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18252         Reported by Markus Duft <mduft@gentoo.org>.
18253
18254 2011-05-15  James Youngman  <jay@gnu.org>
18255
18256         getopt: for ambiguous options, enumerate the possibilities.
18257         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18258         the ambiguous options when an ambiguous prefix is given. This was
18259         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18260         glibc change was
18261         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18262
18263 2011-05-25  Eric Blake  <eblake@redhat.com>
18264
18265         getcwd: work around mingw bug
18266         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18267         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18268         Reported by Matthias Bolte.
18269
18270 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18271
18272         test-intprops: disable -Wtype-limits diagnostics
18273         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18274         diagnostics.  Otherwise, the integer overflow macros generate many
18275         diagnostics.  Reported by Jim Meyering in
18276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18277
18278         intprops: shorten, to pacify gcc -Woverlength-strings
18279         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18280         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18281         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18282         likely to run afoul of C compiler limits for string constant lengths.
18283         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18284
18285 2011-05-24  Eric Blake  <eblake@redhat.com>
18286
18287         docs: document recently fixed glibc printf bug
18288         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18289         * doc/posix-functions/printf.texi (printf): Likewise.
18290         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18291         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18292
18293         closein-tests: convert to init.sh
18294         * modules/closein-tests (Files): Add init.sh
18295         * tests/test-closein.sh Use it.
18296
18297         yesno-tests: convert to init.sh
18298         * modules/yesno-tests (Files): Add init.sh.
18299         * tests/test-yesno.sh: Use it.
18300
18301         atexit-tests: ensure reliable exit status
18302         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18303         Reported by Bruno Haible.
18304
18305 2011-05-24  Bruno Haible  <bruno@clisp.org>
18306
18307         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18308         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18309         gl_PREREQ_STRERROR_R invocations from here...
18310         * modules/strerror_r-posix (configure.ac): ... to here.
18311
18312 2011-05-24  Eric Blake  <eblake@redhat.com>
18313
18314         strerror_r: fix missing header
18315         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18316
18317         strerror_r: fix AIX test failures
18318         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18319         ERANGE failure.
18320
18321         strerror_r: fix Solaris test failures
18322         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18323         failures.
18324         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18325
18326         strerror_r: enforce POSIX recommendations
18327         * lib/strerror_r.c (safe_copy): New helper method.
18328         (strerror_r): Guarantee a non-empty string.
18329         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18330         recent POSIX rulings and to match our strerror guarantees.
18331         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18332
18333 2011-05-24  Jim Meyering  <meyering@redhat.com>
18334
18335         test-perror2.c: avoid warning about unused variable
18336         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18337
18338 2011-05-24  Eric Blake  <eblake@redhat.com>
18339
18340         perror: avoid spurious test failure on HP-UX
18341         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18342
18343         tests: fix logic bug in init.sh
18344         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18345         shell.
18346
18347 2011-05-24  Jim Meyering  <meyering@redhat.com>
18348
18349         utimensat: do not reference an out-of-scope buffer
18350         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18351         declared in an inner scope, yet "times" would be dereferenced outside
18352         the scope in which "ts" was valid.
18353         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18354         of ts[2] "out/up", so that the use of aliased "times" (via
18355         "times = ts;") does not end up referencing an out-of-scope "ts"
18356
18357         opendir-safer.c: don't clobber errno; don't close negative FD
18358         * lib/opendir-safer.c (opendir_safer):
18359         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18360         file descriptor, and more importantly, don't clobber the
18361         offending errno value with EINVAL.  Before, upon failure
18362         of dup_safer, we would pass the negative file descriptor to
18363         fdopendir, which would clobber errno.
18364
18365 2011-05-23  Bruno Haible  <bruno@clisp.org>
18366
18367         idcache: Fix module description.
18368         * modules/idcache (Include): Set to "idcache.h".
18369
18370 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18371
18372         gnulib-tool: fix portability problem with MacOS sed
18373         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18374         before the "}".  Problem reported by Leo in
18375         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18376         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18377         sed_extract_condition1, sed_extract_condition2.
18378
18379 2011-05-23  Bruno Haible  <bruno@clisp.org>
18380
18381         hash: Simplify autoconf macro.
18382         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18383
18384 2011-05-23  Bruno Haible  <bruno@clisp.org>
18385
18386         getugroups: Fix module description.
18387         * modules/getugroups (Include): Set to "getugroups.h".
18388
18389 2011-05-23  Bruno Haible  <bruno@clisp.org>
18390
18391         linkat: Simplify autoconf macro.
18392         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18393
18394 2011-05-23  Bruno Haible  <bruno@clisp.org>
18395             Eric Blake  <eblake@redhat.com>
18396
18397         linkat, renameat: Update dependencies.
18398         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18399         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18400         symlinkat.
18401
18402 2011-05-23  Jim Meyering  <meyering@redhat.com>
18403
18404         maint.mk: more tight_scope improvements
18405         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18406         (_gl_TS_headers): Define only in if-0'd block.
18407         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18408         sometimes we must *not* use it.  Adjust uses accordingly.
18409         (sc_tight_scope): Use much simpler grep-based test to determine
18410         whether we skip this rule.
18411
18412         maint.mk: generalize/improve the tight-scope rule
18413         * top/maint.mk: Emit a warning when the test is skipped.
18414         (_gl_TS_dir): Add $(srcdir)/ prefix.
18415         (_gl_TS_function_match): Simplify, rather than trying
18416         to enumerate common types.  Otherwise, it would fail to match an
18417         "extern unsigned char const *" declaration in idutils.
18418         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18419         a way to support use of that type of macro.
18420         (_gl_TS_var_match): Simplify regexp.
18421         (_gl_TS_obj_files): New configurable variable.
18422         (_gl_TS_headers): Likewise.
18423
18424 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18425
18426         verify: fix bug when gnulib <assert.h> is also included
18427         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18428         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18429         Perhaps there's a better way, but this fixes the immediate problem.
18430         Problem reported by Bruno Haible in
18431         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18432
18433 2011-05-22  Bruno Haible  <bruno@clisp.org>
18434
18435         xgetcwd: Simplify autoconf macro.
18436         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18437
18438 2011-05-22  Bruno Haible  <bruno@clisp.org>
18439
18440         New module 'mktime-internal'.
18441         * modules/mktime-internal: New file.
18442         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18443         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18444         mktime_internal as a C macro if libc has __mktime_internal.
18445         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18446         conditions.
18447         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18448
18449 2011-05-22  Bruno Haible  <bruno@clisp.org>
18450
18451         timegm: Correct mktime replacement statements.
18452         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18453         defining mktime as a C macro. This completes a 2009-07-28 commit.
18454
18455 2011-05-22  Bruno Haible  <bruno@clisp.org>
18456
18457         timegm: Simplify autoconf macro.
18458         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18459
18460 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18461
18462         clock-time: change to LGPLv2+.
18463         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18464         BSD-like but we have no mark for that; this is good enough for now.
18465
18466 2011-05-21  Bruno Haible  <bruno@clisp.org>
18467
18468         strerror_r: Fix comments.
18469         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18470
18471 2011-05-21  Bruno Haible  <bruno@clisp.org>
18472
18473         relocatable-prog-wrapper: Fix possible link error.
18474         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18475         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18476         (gl_FUNC_SETENV): ... to here.
18477         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18478         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18479
18480 2011-05-21  Bruno Haible  <bruno@clisp.org>
18481
18482         relocatable-prog-wrapper: Assume strerror() exists.
18483         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18484         m4/strerror.m4.
18485         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18486         * lib/relocwrapper.c: Remove mention of strerror module.
18487         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18488         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18489         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18490         C macro.
18491
18492 2011-05-21  Bruno Haible  <bruno@clisp.org>
18493
18494         select: Simplify replacement idiom.
18495         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18496         Win32 platforms.
18497         * lib/sys_select.in.h (select): Simplify accordingly.
18498         * modules/select (Depends-on): Likewise.
18499
18500 2011-05-21  Bruno Haible  <bruno@clisp.org>
18501
18502         mkdir-p: Simplify autoconf macro.
18503         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18504         gl_FUNC_LCHOWN.
18505
18506 2011-05-21  Eric Blake  <eblake@redhat.com>
18507
18508         strerror_r: avoid clobbering strerror on cygwin
18509         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
18510         fall back instead to sys_errlist.
18511         * modules/strerror (configure.ac): Add witness.
18512         * tests/test-strerror_r.c (main): Enhance test.
18513         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18514         * tests/test-perror2.c (main): Free memory before exit.
18515
18516 2011-05-21  Bruno Haible  <bruno@clisp.org>
18517
18518         mkdtemp: Use gnulib naming conventions.
18519         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
18520         * modules/mkdtemp (configure.ac): Update.
18521
18522 2011-05-20  Eric Blake  <eblake@redhat.com>
18523
18524         strerror_r: avoid corrupting errno on Solaris
18525         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
18526         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
18527
18528         strerror_r: avoid compiler warning
18529         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
18530
18531         strerror_r: simplify AIX code
18532         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
18533
18534         test-perror: avoid spurious failure on FreeBSD
18535         * modules/perror-tests (Depends-on): Add strerror, now that
18536         strerror_r no longer pulls it in.
18537
18538 2011-05-20  Bruno Haible  <bruno@clisp.org>
18539
18540         strerror_r-posix: Remove unused dependencies.
18541         * modules/strerror_r-posix (Depends-on): Remove strerror.
18542         Reported by Eric Blake.
18543
18544 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
18545
18546         intprops: remove assumption about A|B representation
18547         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
18548         is a valid integer if both A and B are.  Although this is true for
18549         all known practical hosts, the C standard doesn't guarantee it,
18550         and the code need not assume it.  Also, this change may work around
18551         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
18552         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
18553
18554 2011-05-20  Eric Blake  <eblake@redhat.com>
18555
18556         perror: work around FreeBSD bug
18557         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
18558         is broken.  Move AC_LIBOBJ...
18559         * modules/perror (configure.ac): Here.
18560         * doc/posix-functions/perror.texi (perror): Document this.
18561         * tests/test-perror2.c (main): Enhance test.
18562
18563         test-perror: check for strerror interactions
18564         * tests/macros.h (STREQ): Add macro.
18565         * modules/perror-tests (Files): Add second test.
18566         * tests/test-perror2.c (main): New file.
18567         * doc/posix-functions/perror.texi (perror): Document glibc bug.
18568
18569         test-perror: rewrite to use init script
18570         * modules/perror-tests (Files): Add init.sh.
18571         * tests/test-perror.sh: Use temporary directory.
18572
18573 2011-05-20  Jim Meyering  <meyering@redhat.com>
18574
18575         maint: replace misused "a" with "an"
18576         * doc/intprops.texi: "a integer"
18577         * doc/regex.texi: "a explanation"
18578         * lib/alignof.h: "a object"
18579         * lib/argmatch.h: "a explanation"
18580         * lib/argp-help.c: "a option" and "a OPTION_DOC"
18581         * lib/stdint.in.h: "a integer"
18582         * lib/userspec.c: "a owner"
18583         * doc/gnulib.texi: Fix "a idea", and reword.
18584
18585 2011-05-19  Jim Meyering  <meyering@redhat.com>
18586
18587         maint: correct misuse of "a" and "an"
18588         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
18589         * lib/argp-help.c: "an docum...": s/an/a/
18590         * lib/argp-parse.c: "An vector": s/An/A/
18591         * lib/execute.c: "an native": s/an/a/
18592         * lib/spawn-pipe.c: Likewise.
18593         * lib/gc.h: "an Gc_rc": s/an/a/
18594         * lib/unigbrk.in.h: "an grapheme": s/an/a/
18595         * lib/fts.c: "an stat.st_dev": s/an/a/
18596
18597 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18598
18599         intprops-tests: work around HP-UX 11.23 cc bug with constants
18600         * tests/test-intprops.c (VERIFY): New macro.
18601         (main): Use it, instead of verify, to work around the compiler bug; see
18602         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18603
18604         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
18605         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
18606         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
18607         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
18608         (_GL_REMAINDER_OVERFLOW): Use it.
18609
18610         intprops-tests: revert unsigned part of previous change
18611         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
18612         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
18613         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
18614         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
18615
18616 2011-05-19  Bruno Haible  <bruno@clisp.org>
18617
18618         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
18619         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
18620         strerror_r() returned without filling the buffer.
18621         Reported by Eric Blake.
18622
18623 2011-05-19  Eric Blake  <eblake@redhat.com>
18624
18625         strerror_r: guarantee unchanged errno
18626         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
18627         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
18628         failure.
18629         * tests/test-strerror_r.c (main): Enhance test.
18630
18631 2011-05-19  Bruno Haible  <bruno@clisp.org>
18632
18633         strerror_r: Reorder #if blocks.
18634         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
18635         for consistency with the previous commit.
18636
18637 2011-05-19  Bruno Haible  <bruno@clisp.org>
18638
18639         perror: Avoid clobbering the strerror buffer when possible.
18640         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
18641         * lib/strerror.c: Include it.
18642         * modules/strerror (Files): Add lib/strerror-impl.h.
18643         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
18644         (my_strerror): New function, defined through lib/strerror-impl.h.
18645         (perror): Use it instead of strerror.
18646         * modules/perror (Files): Add lib/strerror-impl.h.
18647         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
18648
18649 2011-05-19  Eric Blake  <eblake@redhat.com>
18650
18651         strerror_r: fix on newer cygwin
18652         * lib/strerror_r.c (strerror_r): Cygwin now has
18653         __xpg_strerror_r, use it.
18654
18655 2011-05-19  Bruno Haible  <bruno@clisp.org>
18656
18657         strerror_r: Avoid clobbering the strerror buffer when possible.
18658         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
18659         (sys_nerr, sys_errlist): New declarations.
18660         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
18661         HP-UX, native Win32, IRIX, and 32-bit Solaris.
18662         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
18663
18664 2011-05-19  Bruno Haible  <bruno@clisp.org>
18665
18666         strerror_r: Fix test failure on mingw.
18667         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
18668         EXTEND_STRERROR_R.
18669         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
18670         macros from errno.in.h instead.
18671
18672 2011-05-19  Eric Blake  <eblake@redhat.com>
18673
18674         strerror: relax test for Solaris
18675         * tests/test-strerror.c (main): Permit Solaris behavior.
18676         * tests/test-strerror_r.c (main): Likewise.
18677
18678         strerror: enforce POSIX ruling on strerror(0)
18679         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
18680         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
18681         * lib/strerror_r.c (rpl_strerror_r): Work around it.
18682         * doc/posix-functions/strerror.texi (strerror): Document it.
18683         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
18684         * tests/test-strerror.c (main): Strengthen test.
18685         * tests/test-strerror_r.c (main): Likewise.
18686
18687 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
18688
18689         intprop-tests: port to older and more-pedantic compilers
18690         * modules/intprops-tests (Files): Add tests/macros.h.
18691         * tests/test-intprops.c: Include macros.h.
18692         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
18693         it's no longer documented to expand to an integer constant expression.
18694         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
18695         argument is floating point, as it's no longer documented to expand
18696         to an integer constant expression in that case.
18697         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
18698         compiler bugs reported by Bruno Haible.  See
18699         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18700         (U0, U1): New constants, to work around the same bugs.  Also,
18701         in tests, use e.g., "(unsigned int) 39" rather than "39u".
18702
18703         intprops: work around C compiler bugs
18704         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
18705         bug in Sun C 5.11 2010/08/13 and other compilers; see
18706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
18707
18708         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
18709         * doc/intprops.texi (Integer Type Determination): Fix
18710         documentation for TYPE_IS_INTEGER: it returns an constant
18711         expression, not an integer constant expression.  Fix doc for
18712         TYPE_SIGNED: it returns an integer constant expression only if its
18713         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
18714         hardly worth documented that way....)
18715
18716 2011-05-18  Bruno Haible  <bruno@clisp.org>
18717
18718         strerror_r: Avoid clobbering the strerror buffer when possible.
18719         * lib/strerror_r.c (strerror_r): Merge the three implementations.
18720         Handle gnulib defined errno values here. When strerror() returns NULL
18721         or an empty string, return EINVAL.
18722         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
18723         gnulib defined errno values here.
18724         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
18725
18726 2011-05-18  Eric Blake  <eblake@redhat.com>
18727
18728         fnmatch: avoid compiler warning
18729         * lib/fnmatch_loop.c (FCT): Use correct type.
18730         Reported by Matthias Bolte.
18731
18732 2011-05-13  Jim Meyering  <meyering@redhat.com>
18733
18734         maint.mk: three new prohibit_<HDR>_without_use rules
18735         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
18736         (sc_prohibit_stdio-safer_without_use): Likewise.
18737         (sc_prohibit_xfreopen_without_use): Likewise.
18738
18739 2011-05-17  Jim Meyering  <meyering@redhat.com>
18740
18741         announce-gen: fail if the NEWS delta is empty
18742         If there's nothing noteworthy in NEWS, then either you forgot
18743         or you shouldn't be releasing.
18744         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
18745
18746 2011-05-17  Pádraig Brady <P@draigBrady.com>
18747
18748         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
18749         reserved symbols starting with double underscore from the check.
18750
18751 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
18752
18753         intprops: add doc
18754         * doc/intprops.texi: New file, documenting intprops.
18755         * doc/gnulib.texi (Particular Modules): Include it.
18756
18757         verify: add doc to gnulib manual and fix example
18758         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
18759         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
18760         (Compile-time Assertions): Fix example so it can't overflow.
18761
18762 2011-05-17  Jim Meyering  <meyering@redhat.com>
18763
18764         warnings.m4: don't usurp save_CPPFLAGS variable name
18765         * m4/warnings.m4: Prefix local temporary variable name with gl_.
18766
18767         doc: fix typo
18768         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
18769
18770 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18771             Bruno Haible  <bruno@clisp.org>
18772
18773         doc: Tweak recent change.
18774         * README (Portability guidelines): Tweak new text.
18775         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
18776         Interix 6.1.
18777
18778 2011-05-16  Eric Blake  <eblake@redhat.com>
18779
18780         inttypes: avoid autoconf warning
18781         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
18782         * m4/stdint.m4 (gl_STDINT_H): Likewise.
18783
18784 2011-05-16  Sam Steingold <sds@gnu.org>
18785         and Eric Blake  <eblake@redhat.com>
18786
18787         vc-list-files: accept multiple directory operands
18788         * build-aux/vc-list-files: Iterate over all remaining operands.
18789
18790 2011-05-16  Bruno Haible  <bruno@clisp.org>
18791
18792         Fix confusion regarding deprecated modules.
18793         * modules/calloc (Status, Notice): Mark module as deprecated, not
18794         obsolete.
18795         * modules/fnmatch-posix (Status, Notice): Likewise.
18796         * modules/getdate (Status, Notice): Likewise.
18797         * modules/getopt (Status, Notice): Likewise.
18798         * modules/malloc (Status, Notice): Likewise.
18799         * modules/pipe (Status, Notice): Likewise.
18800         * modules/realloc (Status, Notice): Likewise.
18801         * modules/rename-dest-slash (Status, Notice): Likewise.
18802         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
18803         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
18804         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
18805         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
18806         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
18807
18808 2011-05-16  Bruno Haible  <bruno@clisp.org>
18809
18810         doc: List the target platforms.
18811         * doc/gnulib-intro.texi (Target Platforms): New section.
18812         * doc/gnulib.texi (Introduction): Update menu.
18813         * README (Portability guidelines): Refer to the new section. Update
18814         statement about oldest supported environment. Remove rationale why
18815         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
18816         unportable C89 function.
18817         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
18818         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
18819
18820 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
18821
18822         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
18823
18824 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18825
18826         intprops-tests: new module
18827         * modules/intprops-tests, tests/test-intprops.c: New files.
18828
18829         intprops: add safe, portable integer overflow checking
18830         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
18831         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
18832         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
18833         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
18834         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
18835         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
18836         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
18837         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
18838         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18839         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
18840         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
18841
18842 2011-05-12  James Youngman  <jay@gnu.org>
18843
18844         Add a test for glibc's Bugzilla bug #12378.
18845         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
18846         doesn't allow the literal matching of a lone "[" (which is
18847         required by POSIX).
18848         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
18849
18850 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18851
18852         Sync glibc change fixing Bugzilla bug #12378.
18853         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
18854         beginning and fall back to matching as normal character if the
18855         string ends before the matching ']' is found.  This is what POSIX
18856         requires.
18857
18858 2011-05-13  Eric Blake  <eblake@redhat.com>
18859
18860         getcwd-lgpl: relax test for FreeBSD
18861         * doc/posix-functions/getcwd.texi (getcwd): Document portability
18862         issue.
18863         * tests/test-getcwd-lgpl.c (main): Relax test.
18864         Reported by Matthias Bolte.
18865
18866 2011-05-11  Eric Blake  <eblake@redhat.com>
18867
18868         test-fflush: silence compiler warning
18869         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
18870
18871 2011-05-11  Bruno Haible  <bruno@clisp.org>
18872
18873         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
18874         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
18875         * modules/canonicalize (Depends-on): Add 'nocrash'.
18876         * modules/canonicalize-lgpl (Depends-on): Likewise.
18877         * doc/posix-functions/realpath.texi: Update platforms list.
18878         Reported by Ryan Schmidt <ryandesign@macports.org>.
18879
18880 2011-05-11  Bruno Haible  <bruno@clisp.org>
18881
18882         group-member: Declare function in <unistd.h>.
18883         * lib/unistd.in.h (group_member): New declaration.
18884         * lib/group-member.h: Remove file.
18885         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
18886         * tests/test-unistd-c++.cc: Check signature of group_member.
18887         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
18888         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
18889         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
18890         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
18891         HAVE_GROUP_MEMBER.
18892         * modules/group-member (Files): Remove lib/group-member.h.
18893         (Depends-on): Add unistd. Specify conditions.
18894         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18895         (Include): Change to <unistd.h>.
18896         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
18897         HAVE_GROUP_MEMBER.
18898         * NEWS: Mention the change.
18899         * lib/euidaccess.c: Don't include group-member.h.
18900
18901 2011-05-11  Bruno Haible  <bruno@clisp.org>
18902
18903         group-member: Document module.
18904         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18905         module.
18906
18907 2011-05-11  Bruno Haible  <bruno@clisp.org>
18908
18909         fclose: Fix mistake earlier today.
18910         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18911
18912 2011-05-11  Eric Blake  <eblake@redhat.com>
18913
18914         fclose: preserve fflush errors
18915         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18916         Reported by Jim Meyering.
18917
18918         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18919         * build-aux/bootstrap (check_versions): When no specific version
18920         is required, merely check that the app produces an exit status
18921         that indicates its existence.
18922
18923         maint.mk: drop redundant check
18924         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
18925         the same but better.
18926
18927 2011-05-11  Bruno Haible  <bruno@clisp.org>
18928
18929         fclose: Fix possible link error.
18930         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
18931         unregister_shadow_fd. Improve comments.
18932         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
18933         Eric Blake.
18934
18935 2011-05-11  Jim Meyering  <meyering@redhat.com>
18936
18937         maint.mk: improve "can not" detection and generalize rule name
18938         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
18939         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
18940         Use the same technique as in sc_prohibit_doubled_word, so that
18941         we recognize "can not" also when the words are separated by a newline.
18942         Suggested by Eric Blake.
18943         (perl_filename_lineno_text_): Define.  Factored out of...
18944         (prohibit_doubled_word_): ...here.  Use the new definition.
18945         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
18946         (prohibit_undesirable_word_seq_RE_): New overridable variable.
18947         (ignore_undesirable_word_sequence_RE_): New overridable variable.
18948
18949 2011-05-10  Eric Blake  <eblake@redhat.com>
18950
18951         fclose: avoid double close race when possible
18952         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18953         all but WINDOWS_SOCKETS.
18954
18955 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
18956
18957         openat: correct new comment
18958         * lib/openat-proc.c (openat_proc_name): Correct the comment.
18959
18960 2011-05-10  Jim Meyering  <meyering@redhat.com>
18961
18962         openat: add comments
18963         * lib/openat-proc.c (openat_proc_name): Add comments,
18964         mostly from Eric Blake.
18965
18966 2011-05-09  Eric Blake  <eblake@redhat.com>
18967
18968         openat: reduce syscalls in first probe of /proc
18969         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
18970         be a directory.  Simplify the probe for .. bugs.
18971         * modules/openat (Depends-on): Drop same-inode.
18972         Reported by Bastien ROUCARIES.
18973
18974 2011-05-09  Jim Meyering  <meyering@redhat.com>
18975
18976         maint.mk: change semantics/name of tight_scope variables
18977         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18978         Rename variables to align with semantics that make them more useful.
18979
18980         maint.mk: tweak new rule's name not to impinge
18981         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18982         (sc_tight_scope): Use new rule name rather than $@-0.
18983
18984         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18985         * top/maint.mk (sc_tight_scope): New rule.
18986         (sc_tight_scope-0): New rule, ifdef'd out.
18987         (_gl_TS_dir): Default.
18988         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18989         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18990
18991 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18992
18993         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18994         Haible <bruno@clisp.org>.
18995
18996 2011-05-08  Bruno Haible  <bruno@clisp.org>
18997
18998         Comments.
18999         * m4/isnanf.m4: Add comment.
19000         * m4/isnanl.m4: Likewise.
19001
19002 2011-05-08  Bruno Haible  <bruno@clisp.org>
19003
19004         glob: Remove obsolete macro.
19005         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19006
19007 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19008
19009         intprops: Sun C 5.11 supports __typeof__
19010         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19011         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19012         which is new.
19013         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19014
19015         intprops: switch to usual gnulib indenting and naming
19016         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19017         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19018
19019         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19020
19021 2011-05-08  Jim Meyering  <meyering@redhat.com>
19022
19023         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19024         * top/maint.mk (release-prep): Use make's --no-print-directory
19025         option when generating the announcement.  This eliminates the
19026         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19027         generated announcement template.
19028
19029 2011-05-08  Bruno Haible  <bruno@clisp.org>
19030
19031         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19032         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19033         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19034
19035 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19036
19037         ignore-value, verify: Omit include files from lib_SOURCES.
19038         * modules/ignore-value, modules/verify (Makefile.am):
19039         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19040         that leads Automake to duplicate use of am__objects_... variables
19041         in Makefile.in.  See
19042         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19043
19044 2011-05-07  Bruno Haible  <bruno@clisp.org>
19045
19046         fclose: Simplify autoconf macro.
19047         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19048         defined.
19049
19050 2011-05-07  Bruno Haible  <bruno@clisp.org>
19051
19052         canonicalize-lgpl: Fix autoconf macro ordering bug.
19053         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19054         gl_STDLIB_H_DEFAULTS.
19055
19056 2011-05-06  Eric Blake  <eblake@redhat.com>
19057
19058         maintainer-makefile: make sc_po_check easier to tune
19059         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19060         to probe for strings, such as an alternate location for gnulib.
19061
19062         fclose: guarantee behavior on seekable stdin
19063         * modules/fclose (Depends-on): Add fflush.
19064         * doc/posix-functions/fclose.texi (fclose): Document this.
19065         * tests/test-fclose.c (main): Make test for this unconditional.
19066
19067 2011-05-06  Bruno Haible  <bruno@clisp.org>
19068
19069         fflush, fpurge: Relicense under LGPLv2+.
19070         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19071         * modules/fpurge (License): Likewise.
19072         With permission from Eric Blake and Jim Meyering.
19073         Suggested by Eric Blake.
19074
19075 2011-05-06  Karl Berry  <karl@gnu.org>
19076
19077         * MODULES.html.sh (func_all_modules): remove exit.
19078
19079 2011-05-06  Jim Meyering  <meyering@redhat.com>
19080
19081         maint.mk: use info-gnu@ as the default only for a stable release
19082         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19083         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19084         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19085         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19086
19087 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19088
19089         assert-h: new module, which supports C1X-style static_assert
19090         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19091         * lib/verify.h: Revamp so that this can be copied into assert.h,
19092         while retaining the ability to use it standalone as before.
19093         Rename private identifiers so as not to encroach on the
19094         standard C namespace, since this is now used by assert.h.
19095         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19096         the old verify_true.
19097         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19098         the old verify_true.  Use _GL_VERIFY_TYPE.
19099         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19100         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19101         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19102         defined when this file is copied into the replacement assert.h.
19103         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19104         and _Static_assert is not built in.
19105         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19106         defined, and use the new macros mentioned above.
19107         * doc/posix-headers/assert.texi: Document this.
19108
19109 2011-05-05  Bruno Haible  <bruno@clisp.org>
19110
19111         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19112         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19113         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19114         gl_REPLACE_FCLOSE here.
19115         * modules/fflush (Depends-on): Remove fclose.
19116         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19117         combination with module 'fclose'.
19118
19119 2011-05-05  Bruno Haible  <bruno@clisp.org>
19120
19121         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19122         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19123         gl_FUNC_FFLUSH.
19124         (gl_FUNC_FFLUSH): Use it.
19125         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19126         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19127         gl_REPLACE_FSEEKO here.
19128
19129 2011-05-05  Bruno Haible  <bruno@clisp.org>
19130
19131         tzset: Relicense under LGPL.
19132         * modules/tzset (License): Change to LGPL.
19133         No agreement needed; it's a no-op.
19134
19135         strtoimax, strtoumax: Relicense under LGPL.
19136         * modules/strtoimax (License): Change to LGPL.
19137         * modules/strtoumax (License): Likewise.
19138         With permission from Jim Meyering, Paul Eggert:
19139         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19141
19142         getgroups: Relicense under LGPL.
19143         * modules/getgroups (License): Change to LGPL.
19144         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19145         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19146         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19147         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19148
19149         nanosleep: Relicense under LGPL.
19150         * modules/nanosleep (License): Change to LGPL.
19151         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19152         Haible:
19153         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19155         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19156         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19157
19158         futimens: Relicense under LGPL.
19159         * modules/futimens (License): Change to LGPL.
19160         With permission from Eric Blake:
19161         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19162
19163         fflush: Relicense under LGPL.
19164         * modules/fflush (License): Change to LGPL.
19165         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19166         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19167         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19168         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19169
19170         tmpfile: Relicense under LGPL.
19171         * modules/tmpfile (License): Change to LGPL.
19172         With permission from Ben Pfaff:
19173         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19174
19175         isfinite: Relicense under LGPL.
19176         * modules/isfinite (License): Change to LGPL.
19177         With permission from Ben Pfaff, Bruno Haible:
19178         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19179         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19180
19181         acosl..tanl: Relicense under LGPL.
19182         * modules/acosl (License): Change to LGPL.
19183         * modules/asinl (License): Likewise.
19184         * modules/atanl (License): Likewise.
19185         * modules/cosl (License): Likewise.
19186         * modules/expl (License): Likewise.
19187         * modules/logl (License): Likewise.
19188         * modules/sinl (License): Likewise.
19189         * modules/sqrtl (License): Likewise.
19190         * modules/tanl (License): Likewise.
19191         Source code originally from glibc and Paolo Bonzini. Agreements:
19192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19193         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19194
19195 2011-05-05  Bruno Haible  <bruno@clisp.org>
19196
19197         signal: Define sighandler_t.
19198         * lib/signal.in.h (sighandler_t): New type.
19199         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19200         whether sighandler_t is defined.
19201         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19202         * modules/signal (Depends-on): Add extensions.
19203         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19204         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19205         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19206
19207 2011-05-05  Eric Blake  <eblake@redhat.com>
19208
19209         maint: remove useless REPLACE_*_H macros
19210         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19211         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19212         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19213         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19214         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19215         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19216         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19217         * m4/btowc.m4: Update callers.
19218         * m4/dirfd.m4: Likewise.
19219         * m4/duplocale.m4: Likewise.
19220         * m4/fchdir.m4: Likewise.
19221         * m4/fdopendir.m4: Likewise.
19222         * m4/inet_ntop.m4: Likewise.
19223         * m4/inet_pton.m4: Likewise.
19224         * m4/ioctl.m4: Likewise.
19225         * m4/mbrlen.m4: Likewise.
19226         * m4/mbrtowc.m4: Likewise.
19227         * m4/mbsinit.m4: Likewise.
19228         * m4/mbsnrtowcs.m4: Likewise.
19229         * m4/mbsrtowcs.m4: Likewise.
19230         * m4/poll.m4: Likewise.
19231         * m4/setlocale.m4: Likewise.
19232         * m4/wcrtomb.m4: Likewise.
19233         * m4/wcsnrtombs.m4: Likewise.
19234         * m4/wcsrtombs.m4: Likewise.
19235         * m4/wctob.m4: Likewise.
19236         * m4/wcwidth.m4: Likewise.
19237         * modules/posix_spawn: Likewise.
19238         * modules/posix_spawn_file_actions_addclose: Likewise.
19239         * modules/posix_spawn_file_actions_adddup2: Likewise.
19240         * modules/posix_spawn_file_actions_addopen: Likewise.
19241         * modules/posix_spawn_file_actions_destroy: Likewise.
19242         * modules/posix_spawn_file_actions_init: Likewise.
19243         * modules/posix_spawnattr_destroy: Likewise.
19244         * modules/posix_spawnattr_getflags: Likewise.
19245         * modules/posix_spawnattr_getpgroup: Likewise.
19246         * modules/posix_spawnattr_getschedparam: Likewise.
19247         * modules/posix_spawnattr_getschedpolicy: Likewise.
19248         * modules/posix_spawnattr_getsigdefault: Likewise.
19249         * modules/posix_spawnattr_getsigmask: Likewise.
19250         * modules/posix_spawnattr_init: Likewise.
19251         * modules/posix_spawnattr_setflags: Likewise.
19252         * modules/posix_spawnattr_setpgroup: Likewise.
19253         * modules/posix_spawnattr_setschedparam: Likewise.
19254         * modules/posix_spawnattr_setschedpolicy: Likewise.
19255         * modules/posix_spawnattr_setsigdefault: Likewise.
19256         * modules/posix_spawnattr_setsigmask: Likewise.
19257         * modules/posix_spawnp: Likewise.
19258
19259 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19260
19261         Add option to do-release-commit-and-tag to specify branch.
19262         * build-aux/do-release-commit-and-tag: Add --branch.
19263
19264 2011-05-03  Bruno Haible  <bruno@clisp.org>
19265
19266         Avoid unnecessary compilation units, through conditional dependencies.
19267         * modules/accept (Depends-on): Add conditions to the dependencies.
19268         * modules/acosl (Depends-on): Likewise.
19269         * modules/argz (Depends-on): Likewise.
19270         * modules/asinl (Depends-on): Likewise.
19271         * modules/atanl (Depends-on): Likewise.
19272         * modules/atoll (Depends-on): Likewise.
19273         * modules/bind (Depends-on): Likewise.
19274         * modules/btowc (Depends-on): Likewise.
19275         * modules/canonicalize-lgpl (Depends-on): Likewise.
19276         * modules/ceil (Depends-on): Likewise.
19277         * modules/ceilf (Depends-on): Likewise.
19278         * modules/ceill (Depends-on): Likewise.
19279         * modules/chdir-long (Depends-on): Likewise.
19280         * modules/chown (Depends-on): Likewise.
19281         * modules/close (Depends-on): Likewise.
19282         * modules/connect (Depends-on): Likewise.
19283         * modules/cosl (Depends-on): Likewise.
19284         * modules/dirfd (Depends-on): Likewise.
19285         * modules/dprintf (Depends-on): Likewise.
19286         * modules/dprintf-posix (Depends-on): Likewise.
19287         * modules/error (Depends-on): Likewise.
19288         * modules/euidaccess (Depends-on): Likewise.
19289         * modules/expl (Depends-on): Likewise.
19290         * modules/faccessat (Depends-on): Likewise.
19291         * modules/fchdir (Depends-on): Likewise.
19292         * modules/fclose (Depends-on): Likewise.
19293         * modules/fcntl (Depends-on): Likewise.
19294         * modules/fdopendir (Depends-on): Likewise.
19295         * modules/fflush (Depends-on): Likewise.
19296         * modules/floor (Depends-on): Likewise.
19297         * modules/floorf (Depends-on): Likewise.
19298         * modules/floorl (Depends-on): Likewise.
19299         * modules/fnmatch (Depends-on): Likewise.
19300         * modules/fopen (Depends-on): Likewise.
19301         * modules/fprintf-posix (Depends-on): Likewise.
19302         * modules/frexp (Depends-on): Likewise.
19303         * modules/frexp-nolibm (Depends-on): Likewise.
19304         * modules/frexpl (Depends-on): Likewise.
19305         * modules/frexpl-nolibm (Depends-on): Likewise.
19306         * modules/fseek (Depends-on): Likewise.
19307         * modules/fsusage (Depends-on): Likewise.
19308         * modules/ftell (Depends-on): Likewise.
19309         * modules/ftello (Depends-on): Likewise.
19310         * modules/futimens (Depends-on): Likewise.
19311         * modules/getcwd (Depends-on): Likewise.
19312         * modules/getcwd-lgpl (Depends-on): Likewise.
19313         * modules/getdelim (Depends-on): Likewise.
19314         * modules/getdomainname (Depends-on): Likewise.
19315         * modules/getgroups (Depends-on): Likewise.
19316         * modules/gethostname (Depends-on): Likewise.
19317         * modules/getline (Depends-on): Likewise.
19318         * modules/getlogin_r (Depends-on): Likewise.
19319         * modules/getopt-posix (Depends-on): Likewise.
19320         * modules/getpeername (Depends-on): Likewise.
19321         * modules/getsockname (Depends-on): Likewise.
19322         * modules/getsockopt (Depends-on): Likewise.
19323         * modules/getsubopt (Depends-on): Likewise.
19324         * modules/getusershell (Depends-on): Likewise.
19325         * modules/glob (Depends-on): Likewise.
19326         * modules/grantpt (Depends-on): Likewise.
19327         * modules/iconv_open (Depends-on): Likewise.
19328         * modules/iconv_open-utf (Depends-on): Likewise.
19329         * modules/inet_ntop (Depends-on): Likewise.
19330         * modules/inet_pton (Depends-on): Likewise.
19331         * modules/ioctl (Depends-on): Likewise.
19332         * modules/isapipe (Depends-on): Likewise.
19333         * modules/isfinite (Depends-on): Likewise.
19334         * modules/isinf (Depends-on): Likewise.
19335         * modules/lchown (Depends-on): Likewise.
19336         * modules/ldexpl (Depends-on): Likewise.
19337         * modules/link (Depends-on): Likewise.
19338         * modules/linkat (Depends-on): Likewise.
19339         * modules/listen (Depends-on): Likewise.
19340         * modules/logl (Depends-on): Likewise.
19341         * modules/lstat (Depends-on): Likewise.
19342         * modules/mbrlen (Depends-on): Likewise.
19343         * modules/mbrtowc (Depends-on): Likewise.
19344         * modules/mbsinit (Depends-on): Likewise.
19345         * modules/mbsnrtowcs (Depends-on): Likewise.
19346         * modules/mbsrtowcs (Depends-on): Likewise.
19347         * modules/mbtowc (Depends-on): Likewise.
19348         * modules/memcmp (Depends-on): Likewise.
19349         * modules/mkdir (Depends-on): Likewise.
19350         * modules/mkdtemp (Depends-on): Likewise.
19351         * modules/mkfifo (Depends-on): Likewise.
19352         * modules/mkfifoat (Depends-on): Likewise.
19353         * modules/mknod (Depends-on): Likewise.
19354         * modules/mkostemp (Depends-on): Likewise.
19355         * modules/mkostemps (Depends-on): Likewise.
19356         * modules/mkstemp (Depends-on): Likewise.
19357         * modules/mkstemps (Depends-on): Likewise.
19358         * modules/mktime (Depends-on): Likewise.
19359         * modules/nanosleep (Depends-on): Likewise.
19360         * modules/open (Depends-on): Likewise.
19361         * modules/openat (Depends-on): Likewise.
19362         * modules/perror (Depends-on): Likewise.
19363         * modules/poll (Depends-on): Likewise.
19364         * modules/popen (Depends-on): Likewise.
19365         * modules/posix_spawn (Depends-on): Likewise.
19366         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19367         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19368         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19369         * modules/posix_spawnp (Depends-on): Likewise.
19370         * modules/pread (Depends-on): Likewise.
19371         * modules/printf-posix (Depends-on): Likewise.
19372         * modules/ptsname (Depends-on): Likewise.
19373         * modules/putenv (Depends-on): Likewise.
19374         * modules/pwrite (Depends-on): Likewise.
19375         * modules/readline (Depends-on): Likewise.
19376         * modules/readlink (Depends-on): Likewise.
19377         * modules/readlinkat (Depends-on): Likewise.
19378         * modules/recv (Depends-on): Likewise.
19379         * modules/recvfrom (Depends-on): Likewise.
19380         * modules/regex (Depends-on): Likewise.
19381         * modules/remove (Depends-on): Likewise.
19382         * modules/rename (Depends-on): Likewise.
19383         * modules/renameat (Depends-on): Likewise.
19384         * modules/rmdir (Depends-on): Likewise.
19385         * modules/round (Depends-on): Likewise.
19386         * modules/roundf (Depends-on): Likewise.
19387         * modules/roundl (Depends-on): Likewise.
19388         * modules/rpmatch (Depends-on): Likewise.
19389         * modules/select (Depends-on): Likewise.
19390         * modules/send (Depends-on): Likewise.
19391         * modules/sendto (Depends-on): Likewise.
19392         * modules/setenv (Depends-on): Likewise.
19393         * modules/setlocale (Depends-on): Likewise.
19394         * modules/setsockopt (Depends-on): Likewise.
19395         * modules/shutdown (Depends-on): Likewise.
19396         * modules/sigaction (Depends-on): Likewise.
19397         * modules/signbit (Depends-on): Likewise.
19398         * modules/sigprocmask (Depends-on): Likewise.
19399         * modules/sinl (Depends-on): Likewise.
19400         * modules/sleep (Depends-on): Likewise.
19401         * modules/snprintf (Depends-on): Likewise.
19402         * modules/snprintf-posix (Depends-on): Likewise.
19403         * modules/socket (Depends-on): Likewise.
19404         * modules/sprintf-posix (Depends-on): Likewise.
19405         * modules/sqrtl (Depends-on): Likewise.
19406         * modules/stat (Depends-on): Likewise.
19407         * modules/strchrnul (Depends-on): Likewise.
19408         * modules/strdup-posix (Depends-on): Likewise.
19409         * modules/strerror (Depends-on): Likewise.
19410         * modules/strerror_r-posix (Depends-on): Likewise.
19411         * modules/strndup (Depends-on): Likewise.
19412         * modules/strnlen (Depends-on): Likewise.
19413         * modules/strptime (Depends-on): Likewise.
19414         * modules/strsep (Depends-on): Likewise.
19415         * modules/strsignal (Depends-on): Likewise.
19416         * modules/strstr-simple (Depends-on): Likewise.
19417         * modules/strtod (Depends-on): Likewise.
19418         * modules/strtoimax (Depends-on): Likewise.
19419         * modules/strtok_r (Depends-on): Likewise.
19420         * modules/strtoumax (Depends-on): Likewise.
19421         * modules/symlink (Depends-on): Likewise.
19422         * modules/symlinkat (Depends-on): Likewise.
19423         * modules/tanl (Depends-on): Likewise.
19424         * modules/tcgetsid (Depends-on): Likewise.
19425         * modules/tmpfile (Depends-on): Likewise.
19426         * modules/trunc (Depends-on): Likewise.
19427         * modules/truncf (Depends-on): Likewise.
19428         * modules/truncl (Depends-on): Likewise.
19429         * modules/uname (Depends-on): Likewise.
19430         * modules/unlink (Depends-on): Likewise.
19431         * modules/unlockpt (Depends-on): Likewise.
19432         * modules/unsetenv (Depends-on): Likewise.
19433         * modules/usleep (Depends-on): Likewise.
19434         * modules/utimensat (Depends-on): Likewise.
19435         * modules/vasprintf (Depends-on): Likewise.
19436         * modules/vdprintf (Depends-on): Likewise.
19437         * modules/vdprintf-posix (Depends-on): Likewise.
19438         * modules/vfprintf-posix (Depends-on): Likewise.
19439         * modules/vprintf-posix (Depends-on): Likewise.
19440         * modules/vsnprintf (Depends-on): Likewise.
19441         * modules/vsnprintf-posix (Depends-on): Likewise.
19442         * modules/vsprintf-posix (Depends-on): Likewise.
19443         * modules/wcrtomb (Depends-on): Likewise.
19444         * modules/wcscasecmp (Depends-on): Likewise.
19445         * modules/wcscspn (Depends-on): Likewise.
19446         * modules/wcsdup (Depends-on): Likewise.
19447         * modules/wcsncasecmp (Depends-on): Likewise.
19448         * modules/wcsnrtombs (Depends-on): Likewise.
19449         * modules/wcspbrk (Depends-on): Likewise.
19450         * modules/wcsrtombs (Depends-on): Likewise.
19451         * modules/wcsspn (Depends-on): Likewise.
19452         * modules/wcsstr (Depends-on): Likewise.
19453         * modules/wcstok (Depends-on): Likewise.
19454         * modules/wcswidth (Depends-on): Likewise.
19455         * modules/wctob (Depends-on): Likewise.
19456         * modules/wctomb (Depends-on): Likewise.
19457         * modules/wctype (Depends-on): Likewise.
19458         * modules/wcwidth (Depends-on): Likewise.
19459         * modules/write (Depends-on): Likewise.
19460
19461 2011-05-03  Bruno Haible  <bruno@clisp.org>
19462
19463         Support for conditional dependencies.
19464         * doc/gnulib.texi (Module description): Document the syntax of
19465         conditional dependencies.
19466         * gnulib-tool: New option --conditional-dependencies.
19467         (func_usage): Document it.
19468         (cond_dependencies): New variable.
19469         (func_get_automake_snippet_conditional,
19470         func_get_automake_snippet_unconditional): New functions, extracted from
19471         func_get_automake_snippet.
19472         (func_get_automake_snippet): Use them.
19473         (sed_first_32_chars): New variable.
19474         (func_module_shellfunc_name): New function.
19475         (func_module_shellvar_name): New function.
19476         (func_module_conditional_name): New function.
19477         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19478         func_cond_module_condition): New functions.
19479         (func_modules_transitive_closure): Add support for conditional
19480         dependencies.
19481         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19482         conditional automake snippet in an automake conditional.
19483         (func_emit_autoconf_snippets): Emit shell functions that contain the
19484         code for conditional modules.
19485         (func_import, func_create_testdir): Update specification.
19486
19487 2011-05-03  Eric Blake  <eblake@redhat.com>
19488
19489         test-getaddrinfo: report error information
19490         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19491
19492 2011-05-03  Jim Meyering  <meyering@redhat.com>
19493
19494         bootstrap: avoid build failure when $GZIP is set
19495         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19496         program name.  If defined at all, it is supposed to list gzip options.
19497         Reported by Alan Curry in http://debbugs.gnu.org/8609
19498
19499 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19500
19501         readme-release: new module with release instructions
19502         * modules/readme-release: New module.
19503         * top/README-release: New file, from coreutils, grep, diffutils.
19504         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19505
19506 2011-05-02  Eric Blake  <eblake@redhat.com>
19507
19508         fflush: also replace fclose when fixing fflush
19509         * modules/fflush (Depends-on): Add fclose.
19510         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
19511         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
19512         memstreams with no backing fd.
19513         * doc/posix-functions/fclose.texi (fclose): Document the use of
19514         fflush module to fix the bug.
19515         * tests/test-fclose.c (main): Relax test when fclose is used in
19516         isolation.
19517
19518         fclose: add some tests
19519         * modules/fclose-tests: New test module.
19520         * tests/test-fclose.c: New file.
19521         * doc/posix-functions/fclose.texi (fclose): Document the bug.
19522
19523         fclose: reduced dependencies
19524         * modules/fclose (Depends-on): Switch from fflush/fseeko to
19525         simpler lseek.
19526         * lib/fclose.c (rpl_fclose): Likewise.
19527         Reported by Simon Josefsson.
19528
19529         exit: drop remaining clients
19530         * modules/argmatch (Depends-on): Replace exit with stdlib.
19531         * modules/copy-file (Depends-on): Likewise.
19532         * modules/execute (Depends-on): Likewise.
19533         * modules/exitfail (Depends-on): Likewise.
19534         * modules/obstack (Depends-on): Likewise.
19535         * modules/pagealign_alloc (Depends-on): Likewise.
19536         * modules/pipe-filter-gi (Depends-on): Likewise.
19537         * modules/pipe-filter-ii (Depends-on): Likewise.
19538         * modules/savewd (Depends-on): Likewise.
19539         * modules/spawn-pipe (Depends-on): Likewise.
19540         * modules/wait-process (Depends-on): Likewise.
19541         * modules/xsetenv (Depends-on): Likewise.
19542         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
19543         * modules/git-merge-changelog (Depends-on): Likewise.
19544         * modules/long-options (Depends-on): Likewise.
19545         * modules/pt_chown (Depends-on): Likewise.
19546         * modules/sysexits (Depends-on): Likewise.
19547
19548         freading: relax license from LGPLv3+ to LGPLv2+
19549         * modules/freading (License): Relax LGPL version.
19550
19551 2011-05-02  Bruno Haible  <bruno@clisp.org>
19552
19553         fchdir: Remove unused dependencies.
19554         * modules/fchdir (Depends-on): Remove include_next.
19555
19556 2011-05-02  Bruno Haible  <bruno@clisp.org>
19557
19558         gnulib-tool: Refactor.
19559         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
19560         from func_emit_autoconf_snippets.
19561         (func_emit_autoconf_snippets): Use it.
19562
19563 2011-05-02  Simon Josefsson  <simon@josefsson.org>
19564
19565         * NEWS: Document removal of 'exit'.
19566         * modules/exit: Remove file.
19567
19568 2011-05-01  Bruno Haible  <bruno@clisp.org>
19569
19570         Update DEPENDENCIES.
19571         * DEPENDENCIES (gettext): Recommend the newest release.
19572         Reported by Simon Josefsson.
19573
19574 2011-05-01  Bruno Haible  <bruno@clisp.org>
19575
19576         gnulib-tool: Reduce code duplication.
19577         * gnulib-tool (func_emit_autoconf_snippets): New function.
19578         (func_import, func_create_testdir): Use it.
19579
19580 2011-04-30  Eric Blake  <eblake@redhat.com>
19581
19582         fclose: don't fail on non-seekable input stream
19583         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
19584         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
19585         since fflush is allowed to fail in that case.
19586
19587 2011-04-30  Bruno Haible  <bruno@clisp.org>
19588
19589         dup3: cleanup
19590         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
19591
19592 2011-04-30  Bruno Haible  <bruno@clisp.org>
19593
19594         netdb: Make it work in C++ mode.
19595         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
19596         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
19597         module.
19598         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
19599         gl_MODULE_INDICATOR_FOR_TESTS.
19600         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
19601         * modules/netdb-c++-tests: New file.
19602         * tests/test-netdb-c++.cc: New file.
19603
19604 2011-04-30  Bruno Haible  <bruno@clisp.org>
19605
19606         New modules 'vfscanf', 'vscanf'.
19607         * modules/vfscanf: New file.
19608         * modules/vscanf: New file.
19609         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
19610         here.
19611         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
19612         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
19613
19614 2011-04-30  Bruno Haible  <bruno@clisp.org>
19615
19616         passfd: Add comments.
19617         * lib/passfd.c: Add comments about platforms.
19618
19619 2011-04-30  Bruno Haible  <bruno@clisp.org>
19620
19621         sys_uio: Make <sys/uio.h> self-contained.
19622         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
19623         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
19624
19625 2011-04-30  Bruno Haible  <bruno@clisp.org>
19626
19627         sys_socket: Ensure 'struct iovec' definition.
19628         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
19629         <sys/socket.h>.
19630         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
19631
19632 2011-04-30  Bruno Haible  <bruno@clisp.org>
19633
19634         sys_uio: Protect definition of 'struct iovec'.
19635         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
19636         it as a C struct.
19637
19638 2011-04-30  Bruno Haible  <bruno@clisp.org>
19639
19640         manywarnings: fix indentation
19641         * m4/manywarnings.m4: Indent by 2 spaces consistently.
19642
19643 2011-04-30  Pádraig Brady <P@draigBrady.com>
19644
19645         manywarnings: add -Wno-missing-field-initializers if needed.
19646         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
19647         option if it's needed to allow initialization with { 0, }
19648
19649 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
19650
19651         announce-gen: cosmetic improvement
19652         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
19653
19654 2011-04-29  Jim Meyering  <meyering@redhat.com>
19655
19656         vc-list-files: indent with spaces, not TABs
19657         * build-aux/vc-list-files: Convert leading TABs to spaces,
19658         to match the style of most other files in gnulib.
19659
19660         announce-gen: indent with spaces, not TABs
19661         * build-aux/announce-gen: Convert all TABs to spaces, to match
19662         the style of most other files in gnulib.
19663
19664 2011-04-29  Eric Blake  <eblake@redhat.com>
19665
19666         quotearg: avoid uninitialized variable use
19667         * lib/quotearg.c (quoting_options_from_style): Initialize
19668         remaining fields, and ensure that custom styles are only used via
19669         quoting_options rather than quoting_style.
19670
19671 2011-04-29  Jim Meyering  <meyering@redhat.com>
19672
19673         maint.mk: remove unused VC-tag variable
19674         * top/maint.mk (VC-tag): Remove unused variable.
19675
19676 2011-04-29  Bruno Haible  <bruno@clisp.org>
19677
19678         netdb: fix gai_strerror replacements
19679         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
19680         * modules/netdb: Substitute it.
19681
19682 2011-04-29  Jim Meyering  <meyering@redhat.com>
19683
19684         test-getcwd.c: avoid new set-but-not-used warning
19685         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
19686         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
19687         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
19688         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
19689
19690         test-hash.c: avoid a new shadowing warning
19691         * tests/test-hash.c (main): Don't shadow "dup".
19692
19693 2011-04-28  Eric Blake  <eblake@redhat.com>
19694
19695         getaddrinfo: fix gai_strerror signature
19696         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
19697         and work around mingw with UNICODE defined.
19698         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
19699         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
19700         * modules/netdb (Makefile.am): Substitute it.
19701         * lib/netdb.in.h (gai_strerror): Declare replacement.
19702         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
19703         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
19704         the fix.
19705
19706         getsockopt: avoid compiler warning
19707         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
19708         Reported by Matthias Bolte.
19709
19710         tests: drop unused link dependency
19711         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
19712         * modules/dirent-safer-tests (Makefile.am): Likewise.
19713         * modules/fdopendir-tests (Makefile.am): Likewise.
19714         * modules/mkfifoat-tests (Makefile.am): Likewise.
19715         * modules/openat-safer-tests (Makefile.am): Likewise.
19716         * modules/openat-tests (Makefile.am): Likewise.
19717         * modules/readlinkat-tests (Makefile.am): Likewise.
19718         * modules/symlinkat-tests (Makefile.am): Likewise.
19719         * modules/linkat-tests (Makefile.am): Likewise.
19720         (Depends-on): Switch to filenamecat-lgpl.
19721         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
19722         LIBINTL.
19723         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
19724         * tests/test-linkat.c (main): Don't require xalloc.
19725
19726         hash, mgetgroups: drop xalloc dependency
19727         * lib/hash.c (includes): Adjust includes.
19728         * lib/mgetgroups.c (includes): Likewise.
19729         (xgetgroups): Move...
19730         * lib/xgetgroups.c: ...to new file.
19731         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
19732         * modules/xgetgroups: New file, split from...
19733         * modules/mgetgroups: ...here.
19734         (Depends-on): Add xalloc-oversized.
19735         * modules/hash (Depends-on): Likewise.
19736         * modules/hash-tests (Depends-on): Drop xalloc.
19737         (test_hash_LDADD): Drop unused library.
19738         * tests/test-hash.c (main): Break xalloc dependency.
19739         (includes): Drop unused include.
19740
19741         xalloc-oversized: new module
19742         * modules/xalloc-oversized: New module.
19743         * modules/xalloc (Depends-on): Add it.
19744         * lib/xalloc.h (xalloc_oversized): Move...
19745         * lib/xalloc-oversized.h: ...into new file.
19746
19747         utimecmp: drop dependency on xmalloc
19748         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
19749         due to memory pressure.
19750         * modules/utimecmp (Depends-on): Drop xalloc.
19751
19752 2011-04-27  Eric Blake  <eblake@redhat.com>
19753
19754         getcwd: fix mingw bugs
19755         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
19756         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
19757         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
19758
19759 2011-04-27  Bruno Haible  <bruno@clisp.org>
19760
19761         mkstemps: Ensure declaration on MacOS X 10.5.
19762         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
19763         * doc/glibc-functions/mkstemps.texi: Document header file problem on
19764         MacOS X.
19765
19766 2011-04-27  Bruno Haible  <bruno@clisp.org>
19767
19768         mkstemp: More documentation.
19769         * doc/posix-functions/mkstemp.texi: Document header file problem on
19770         MacOS X.
19771
19772 2011-04-27  Bruno Haible  <bruno@clisp.org>
19773
19774         mkstemp: Tweak configure message when cross-compiling.
19775         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
19776         result as a guess.
19777
19778 2011-04-27  Bruno Haible  <bruno@clisp.org>
19779
19780         clean-temp: Clarify what it does.
19781         * lib/clean-temp.h: Add more comments.
19782         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
19783         module.
19784         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
19785         * doc/glibc-functions/mkstemps.texi: Likewise.
19786         * doc/glibc-functions/mkostemps.texi: Likewise.
19787
19788 2011-04-27  Eric Blake  <eblake@redhat.com>
19789
19790         fchdir: avoid extra chdir and fix test
19791         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
19792         getcwd-lgpl.
19793         * lib/fchdir.c (get_name): Any absolute name will do; it does not
19794         have to be canonical.
19795         (canonicalize_file_name): Drop unused macro.
19796         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
19797
19798         filenamecat-lgpl: fix licence
19799         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
19800         when it was first created.
19801
19802         linkat, renameat: add missing dependency
19803         * modules/linkat (Depends-on): Require getcwd-lgpl.
19804         * modules/renameat (Depends-on): Likewise.
19805
19806         tests: reduce dependencies
19807         * tests/test-linkat.c (main): Use lighter-weight getcwd.
19808         * tests/test-renameat.c (main): Likewise.
19809         * modules/linkat-tests (Depends-on): Relax dependency.
19810         * modules/renameat-tests (Depends-on): Likewise.
19811         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
19812         dependency explicit.
19813
19814         save-cwd: reduce default dependency
19815         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
19816         * lib/save-cwd.c: Update comments.
19817         * NEWS: Document the semantic change.
19818
19819         getcwd: enhance tests
19820         * tests/test-getcwd-lgpl.c: New file, taken from...
19821         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
19822         repeat long path stress tests from m4 probe.
19823         * modules/getcwd-lgpl-tests: New module.
19824         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
19825         * m4/getcwd-abort-bug.m4: Update comment.
19826         * m4/getcwd-path-max.m4: Likewise.
19827
19828         getcwd-lgpl: new module
19829         * modules/getcwd-lgpl: New module.
19830         * lib/getcwd-lgpl.c: New file.
19831         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19832         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19833         * modules/getcwd (configure.ac): Set C witness.
19834         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
19835
19836         getcwd: tweak comments
19837         * m4/getcwd-abort-bug.m4: Fix comments.
19838         * m4/getcwd-path-max.m4: Likewise.
19839         * m4/getcwd.m4: Likewise.
19840
19841 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19842         and Eric Blake  <eblake@redhat.com>
19843
19844         mkstemp: replace if system version uses wrong permissions
19845         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
19846         read/write mode bits set in file created by mkstemp.
19847         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
19848
19849 2011-04-27  Eric Blake  <eblake@redhat.com>
19850
19851         passfd: avoid compiler warning
19852         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
19853         Reported by Laine Stump.
19854
19855 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
19856
19857         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
19858         required by the NetBSD (and perhaps other 4.4BSD derived) join.
19859
19860 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19861         and Eric Blake  <eblake@redhat.com>
19862
19863         mkstemp: mention clean-temp module
19864         * lib/mkstemp.c: Add comment.
19865         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
19866
19867 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19868
19869         inttypes: also provide default values for 32-bit tests
19870         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
19871         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
19872
19873 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19874
19875         strtoumax: remove dependency on strtoimax
19876         This is like the strtoull change of yesterday.
19877         * modules/strtoumax (Files): Add lib/strtoimax.c.
19878         (Depends-on): Remove strtoimax and add verify.
19879
19880         inttypes-incomplete: new module
19881         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
19882         all but the PRI* and SCN* parts of gl_INTTYPES_H.
19883         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
19884         of gl_INTTYPES_H.
19885         (gl_INTTYPES_H): Rewrite in terms of these new macros.
19886         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
19887         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
19888         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
19889         * modules/strtoumax, modules/xstrtol (Depends-on):
19890         Depend on inttypes-incomplete, not inttypes.
19891         * modules/inttypes-incomplete: New module, containing the contents
19892         of the old modules/inttypes module, except that the Files: section
19893         omits m4/inttypes-pri.m4, and the configure.ac section invokes
19894         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
19895         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
19896         (Depends-on): Depend only on inttypes-incomplete.
19897         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19898
19899         inttypes: omit now-redundant strtoimax and strtoumax work
19900         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19901         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19902
19903         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19904         This supports apps that need pointers to strtoimax and strtoumax,
19905         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19906         nonexistent functions.  See
19907         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19908         et seq.
19909         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19910         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19911         a macro.
19912         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19913
19914 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19915
19916         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19917
19918 2011-04-25  Bruno Haible  <bruno@clisp.org>
19919
19920         strtol, strtoul: Mark modules as obsolete.
19921         * modules/strtol (Status, Notice): New sections.
19922         * modules/strtoul (Status, Notice): New sections.
19923
19924 2011-04-25  Bruno Haible  <bruno@clisp.org>
19925
19926         strtod: Remove check for strtod, unless supporting old platforms.
19927         * modules/strtod-obsolete: New file.
19928         * m4/strtod-obsolete.m4: New file.
19929         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
19930         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
19931         * modules/strtod (Depends-on): Add strtod-obsolete.
19932         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
19933
19934 2011-04-25  Bruno Haible  <bruno@clisp.org>
19935
19936         strcase: Make module obsolete.
19937         * modules/strcase (Status, Notice): New sections.
19938
19939 2011-04-25  Bruno Haible  <bruno@clisp.org>
19940
19941         dup2: Remove check for dup2, unless supporting old obsolete platforms.
19942         * modules/dup2-obsolete: New file.
19943         * m4/dup2-obsolete.m4: New file.
19944         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
19945         gl_FUNC_DUP2_OBSOLETE is not also defined.
19946         * modules/dup2 (Depends-on): Add dup2-obsolete.
19947         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
19948
19949 2011-04-25  Bruno Haible  <bruno@clisp.org>
19950
19951         strnlen: Avoid memchr related link error on old obsolete platforms.
19952         * modules/memchr-obsolete: New file.
19953         * m4/memchr-obsolete.m4: New file.
19954         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
19955         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
19956         * modules/memchr (Depends-on): Add memchr-obsolete.
19957         * modules/strnlen (Depends-on): Likewise.
19958         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
19959
19960 2011-04-25  Jim Meyering  <meyering@redhat.com>
19961
19962         maint.mk: makefile_at_at_check extend and clean up
19963         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
19964         in addition to */Makefile.am.
19965         Exempt legitimate uses of @VAR@ notation, e.g.,
19966         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
19967         Remove obsolete coreutils-specific comment.
19968         Prompted by discussion here:
19969         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
19970
19971 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19972
19973         strtoul: remove dependency on strtol
19974         This is so that 'configure' need not check for strtol merely because
19975         the application needs strtoul.
19976         * modules/strtoul (Files): Add lib/strtol.c.
19977         (Depends-on): Remove strtol.
19978
19979         strtoull: remove dependency on strtoul
19980         This is like the strtoll change.
19981         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19982         (Depends-on): Remove strtoul.
19983
19984         strtoll: remove dependency on strtol
19985         This is so that 'configure' need not check for strtol merely because
19986         the application needs strtoll.
19987         * modules/strtoll (Files): Add lib/strtol.c.
19988         (Depends-on): Remove strtol.
19989
19990 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19991
19992         inttypes: Move some configure check to module 'imaxdiv'.
19993         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19994         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19995         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19996
19997 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19998
19999         inttypes: Move some configure check to module 'imaxabs'.
20000         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20001         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20002         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20003
20004 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20005
20006         inttypes: Remove configure tests that are not needed since 2009-12-31.
20007         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20008         gl_cv_header_working_inttypes_h.
20009
20010 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20011
20012         * modules/strnlen (Depends-on): Remove memchr.
20013         The strnlen implementation doesn't need the memchr module's fixes; see
20014         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20015
20016         strtol: remove dependency on wchar
20017         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20018         * modules/strtol (Depends-on): Remove wchar.
20019
20020 2011-04-21  Eric Blake  <eblake@redhat.com>
20021
20022         passfd: fix test regression on Linux
20023         * modules/passfd-tests (configure.ac): Correct socketpair check.
20024
20025         passfd: speed up configure and drop unused code
20026         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20027         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20028         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20029         Instead of probing at configure for unix_scm_rights_bsd44_way,
20030         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20031         check to a struct member probe.
20032         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20033         (sendfd, recvfd): Update preprocessor checks.
20034         * modules/passfd (Files): Reflect rename, and drop unused file.
20035         (Depends-on): Drop unused dependency.
20036
20037         passfd: allow compilation on mingw
20038         * modules/sys_socket (Depends-on): Add sys_uio.
20039         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20040         iovec and a minimal struct msghdr.
20041         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20042         * tests/test-sys_socket.c (main): Enhance test.
20043         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20044         guaranteed to provide what we need.
20045         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20046         * modules/passfd-tests (Depends-on): Add sys_wait.
20047         * tests/test-passfd.c (main): Skip test on mingw, for now.
20048         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20049         partial 'struct msghdr' implementation.
20050
20051         sys_uio: new module
20052         * modules/sys_uio: New module.
20053         * modules/sys_uio-tests: Likewise.
20054         * lib/sys_uio.in.h: New file.
20055         * m4/sys_uio_h.m4: Likewise.
20056         * tests/test-sys_uio.c: Likewise.
20057         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20058         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20059
20060 2011-04-20  Jim Meyering  <meyering@redhat.com>
20061
20062         useless-if-before-free: avoid false-positive
20063         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20064         disjunct so that it too requires a terminating ";".  Without that,
20065         this script would identify as useless one statement from gcc that
20066         was not:
20067           if (aligned_ptr)
20068             free (((void **) aligned_ptr) [-1]);
20069
20070 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20071
20072         doc: update users.txt.
20073         * users.txt: Add barcode.
20074
20075 2011-04-19  Bruno Haible  <bruno@clisp.org>
20076
20077         ioctl: Remove link dependency on native Windows.
20078         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20079         (gl_close_fn, gl_ioctl_fn): New types.
20080         (struct fd_hook): Renamed from struct close_hook. Change type of
20081         private_close_fn field. Add private_ioctl_fn field.
20082         (close_hook_fn): Add parameter for primary close method.
20083         (execute_close_hooks, execute_all_close_hooks): Likewise.
20084         (ioctl_hook_fn): New type.
20085         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20086         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20087         argument.
20088         (unregister_fd_hook): Renamed from unregister_close_hook.
20089         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20090         Don't include <unistd.h>.
20091         (close): Remove undef.
20092         (anchor): Update.
20093         (execute_close_hooks): Add argument for primary close method.
20094         (execute_all_close_hooks): Likewise.
20095         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20096         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20097         argument. Allow each argument to be NULL.
20098         (unregister_fd_hook): Renamed from unregister_close_hook.
20099         * lib/close.c (rpl_close): Pass 'close' function pointer to
20100         execute_all_close_hooks.
20101         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20102         (primary_ioctl): New function.
20103         (ioctl): Don't call ioctlsocket here. Instead, call
20104         execute_all_ioctl_hooks.
20105         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20106         close method.
20107         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20108         (fd_sockets_hook): Renamed from close_sockets_hook.
20109         (gl_sockets_startup, gl_sockets_cleanup): Update.
20110         * modules/fd-hook: Renamed from modules/close-hook. Update.
20111         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20112         * modules/sockets (Depends-on): Likewise.
20113         * modules/ioctl (Depends-on): Add fd-hook.
20114         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20115         GNULIB_SOCKET.
20116
20117 2011-04-19  Bruno Haible  <bruno@clisp.org>
20118
20119         Move the support of O_NONBLOCK in open() to the 'open' module.
20120         * modules/nonblocking (Depends-on): Remove 'open'.
20121         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20122         gl_cv_have_open_O_NONBLOCK.
20123         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20124         O_NONBLOCK support.
20125         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20126
20127 2011-04-17  Bruno Haible  <bruno@clisp.org>
20128
20129         pipe2: Simplify code.
20130         * lib/pipe2.c (pipe2): Reduce code duplication.
20131
20132 2011-04-17  Bruno Haible  <bruno@clisp.org>
20133
20134         nonblocking: Add comment.
20135         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20136
20137 2011-04-17  Bruno Haible  <bruno@clisp.org>
20138
20139         nonblocking: Add tests for sockets.
20140         * tests/test-nonblocking-socket.sh: New file.
20141         * tests/test-nonblocking-socket-main.c: New file.
20142         * tests/test-nonblocking-socket-child.c: New file.
20143         * tests/test-nonblocking-socket.h: New file.
20144         * tests/socket-server.h: New file.
20145         * tests/socket-client.h: New file.
20146         * modules/nonblocking-socket-tests: New file.
20147         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20148
20149 2011-04-17  Bruno Haible  <bruno@clisp.org>
20150
20151         nonblocking: Add tests for pipes.
20152         * tests/test-nonblocking-pipe.sh: New file.
20153         * tests/test-nonblocking-pipe-main.c: New file.
20154         * tests/test-nonblocking-pipe-child.c: New file.
20155         * tests/test-nonblocking-pipe.h: New file.
20156         * tests/test-nonblocking-writer.h: New file.
20157         * tests/test-nonblocking-reader.h: New file.
20158         * tests/test-nonblocking-misc.h: New file.
20159         * modules/nonblocking-pipe-tests: New file.
20160         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20161
20162 2011-04-16  Bruno Haible  <bruno@clisp.org>
20163
20164         gettext: Clarify the needed programmer actions.
20165         * modules/gettext (Notice): New field.
20166         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20167
20168 2011-04-16  Bruno Haible  <bruno@clisp.org>
20169
20170         strchrnul: Tweak last commit.
20171         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20172         bug.
20173         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20174         as in _GL_FUNCDECL_SYS.
20175         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20176         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20177
20178 2011-04-15  Eric Blake  <eblake@redhat.com>
20179
20180         strchrnul: work around cygwin bug
20181         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20182         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20183         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20184         * modules/string (Makefile.am): Substitute it.
20185         * lib/string.in.h (strchrnul): Use it.
20186
20187 2011-04-15  Bruno Haible  <bruno@clisp.org>
20188
20189         Don't require lib/stdio-write.c when only module 'stdio' is used.
20190         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20191         invocation.
20192         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20193
20194 2011-04-14  Bruno Haible  <bruno@clisp.org>
20195
20196         Support non-blocking pipe I/O in read() on native Windows.
20197         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20198         (read): New declaration.
20199         * lib/read.c: New file.
20200         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20201         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20202         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20203         vscanf): New declarations.
20204         * lib/stdio-read.c: New file.
20205         * m4/read.m4: New file.
20206         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20207         REPLACE_READ.
20208         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20209         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20210         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20211         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20212         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20213         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20214         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20215         * modules/read: New file.
20216         * modules/nonblocking (Files): Add lib/stdio-read.c.
20217         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20218         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20219         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20220         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20221         * modules/pread (Depends-on): Add read.
20222         * modules/safe-read (Depends-on): Likewise.
20223         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20224         gets, scanf, vfscanf, vscanf): Verify signatures.
20225         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20226         problem with non-blocking pipes.
20227         * doc/posix-functions/fgetc.texi: Likewise.
20228         * doc/posix-functions/fgets.texi: Likewise.
20229         * doc/posix-functions/fread.texi: Likewise.
20230         * doc/posix-functions/fscanf.texi: Likewise.
20231         * doc/posix-functions/getc.texi: Likewise.
20232         * doc/posix-functions/getchar.texi: Likewise.
20233         * doc/posix-functions/gets.texi: Likewise.
20234         * doc/posix-functions/scanf.texi: Likewise.
20235         * doc/posix-functions/vfscanf.texi: Likewise.
20236         * doc/posix-functions/vscanf.texi: Likewise.
20237
20238 2011-04-14  Bruno Haible  <bruno@clisp.org>
20239
20240         Support non-blocking pipe I/O in write() on native Windows.
20241         * lib/write.c (rpl_write): Split a write request that failed merely
20242         because the byte count was larger than the pipe buffer's size.
20243         * doc/posix-functions/write.texi: Mention the problem with large byte
20244         counts.
20245
20246 2011-04-14  Bruno Haible  <bruno@clisp.org>
20247
20248         wchar: Ensure that wchar_t gets defined on uClibc.
20249         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20250         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20251
20252 2011-04-13  Bruno Haible  <bruno@clisp.org>
20253
20254         safe-write, full-read: Avoid unnecessary compilation units.
20255         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20256         (Depends-on): Remove safe-read. Add ssize_t.
20257         * modules/full-read (Files): Add lib/full-write.c.
20258         (Depends-on): Add full-write.
20259
20260 2011-04-13  Bruno Haible  <bruno@clisp.org>
20261
20262         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20263         * modules/pwrite (Depends-on): Add 'write'.
20264
20265 2011-04-13  Bruno Haible  <bruno@clisp.org>
20266
20267         Support non-blocking pipe I/O in write() on native Windows.
20268         * lib/unistd.in.h (write): Enable replacement also if
20269         GNULIB_UNISTD_H_NONBLOCKING is 1.
20270         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20271         (rpl_write): When failing to write on a non-blocking pipe, change
20272         errno from ENOSPC to EAGAIN.
20273         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20274         putchar, puts, vfprintf, vprintf): Enable replacement also if
20275         GNULIB_STDIO_H_NONBLOCKING is 1.
20276         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20277         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20278         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20279         CALL_WITH_SIGPIPE_EMULATION.
20280         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20281         * m4/nonblocking.m4: New file.
20282         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20283         for non-blocking I/O support.
20284         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20285         GNULIB_UNISTD_H_NONBLOCKING.
20286         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20287         required for non-blocking I/O support.
20288         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20289         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20290         lib/stdio-write.c, m4/asm-underscore.m4.
20291         (Depends-on): Add stdio, unistd.
20292         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20293         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20294         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20295         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20296         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20297         problem with non-blocking pipes.
20298         * doc/posix-functions/fputc.texi: Likewise.
20299         * doc/posix-functions/fputs.texi: Likewise.
20300         * doc/posix-functions/fwrite.texi: Likewise.
20301         * doc/posix-functions/printf.texi: Likewise.
20302         * doc/posix-functions/putc.texi: Likewise.
20303         * doc/posix-functions/putchar.texi: Likewise.
20304         * doc/posix-functions/puts.texi: Likewise.
20305         * doc/posix-functions/vfprintf.texi: Likewise.
20306         * doc/posix-functions/vprintf.texi: Likewise.
20307         * doc/posix-functions/write.texi: Likewise.
20308
20309 2011-04-10  Jim Meyering  <meyering@redhat.com>
20310
20311         maint.mk: prohibit doubled words
20312         Detect them also when they're separated by a newline.
20313         There are 3 ways to customize it:
20314           - disable the test on a per file basis, as usual with rules using
20315             $(VC_LIST_EXCEPT)
20316           - replace the default doubled-word-selecting regexp (affects all files)
20317           - ignore a particular file-vs-doubled-word match
20318         I nearly used that last one to ignore the "is is" match in
20319         coreutils' NEWS file, since the text was "ls -is is ..."
20320         To do that, I would have added this line to cfg.mk:
20321           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20322         but it would have ignored any "is is" match in NEWS.
20323         Low probability, but still...
20324         Instead, I changed the text, slightly:
20325           -  ls -is is now consistent with ls -lis in ignoring values returned
20326           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20327         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20328         (prohibit_doubled_word_): Define.
20329         (sc_prohibit_doubled_word): New rule.
20330         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20331
20332 2011-04-10  Jim Meyering  <meyering@redhat.com>
20333
20334         maint: fix doubled-word typo in comment
20335         * m4/gethostname.m4: s/is is/it is/
20336         * m4/getdomainname.m4: Likewise.
20337
20338 2011-04-10  Jim Meyering  <meyering@redhat.com>
20339
20340         maint: remove doubled word: s/it it/it/
20341         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20342
20343 2011-04-10  Jim Meyering  <meyering@redhat.com>
20344
20345         maint.mk: remove useless semicolon and backslash
20346         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20347         semicolon and backslash.
20348
20349 2011-04-10  Bruno Haible  <bruno@clisp.org>
20350
20351         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20352         * modules/stdint-tests (Depends-on): Add wchar.
20353
20354 2011-04-10  Jim Meyering  <meyering@redhat.com>
20355
20356         maint: remove doubled words in comments, e.g., s/a a/a/
20357         * lib/strptime.c (day_of_the_week): s/the the/the/
20358         * tests/test-chown.h (test_chown): s/a a/a/
20359
20360         test-chown.h: correct a cast
20361         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20362         when the destination is a stat.st_gid.
20363
20364 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20365
20366         getaddrinfo: Fix test for sa_len member.
20367         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20368         include <sys/types.h> before <sys/socket.h>.
20369
20370 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20371
20372         maint: change "can not" to "cannot"
20373         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20374         boundaries.
20375
20376 2011-04-09  Jim Meyering  <meyering@redhat.com>
20377
20378         maint: change "a a" to "a"
20379         * tests/test-lchown.h (test_lchown): s/a a/a/
20380
20381         maint.mk: prohibit \<the the\>
20382         * top/maint.mk (sc_prohibit_the_the): New rule.
20383
20384         maint: fix "the the" in comment
20385         * lib/count-one-bits.h: s/the the/the/
20386
20387         maint: change "can not" to "cannot"
20388         But do not change the occurrences in maintain.texi or in
20389         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20390         * doc/gnulib-tool.texi: s/can not/cannot/
20391         * doc/posix-functions/accept.texi (accept): Likewise.
20392         * doc/posix-functions/socket.texi (socket): Likewise.
20393         * lib/mbrtowc.c: Likewise.
20394
20395         maint.mk: prohibit use of "can not"
20396         * top/maint.mk (sc_prohibit_can_not): New rule.
20397         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20398
20399 2011-04-09  Bruno Haible  <bruno@clisp.org>
20400
20401         careadlinkat: Guard against misuse of careadlinkatcwd.
20402         * lib/careadlinkat.c: Include <stdlib.h>.
20403         (careadlinkatcwd): Check that the fd argument is as expected.
20404
20405 2011-04-09  Bruno Haible  <bruno@clisp.org>
20406
20407         careadlinkat: Use common coding style.
20408         * lib/careadlinkat.c: Move gnulib includes after system includes.
20409
20410 2011-04-09  Bruno Haible  <bruno@clisp.org>
20411
20412         careadlinkat: Clarify specification.
20413         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20414         (careadlinkatcwd): Add comment.
20415         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20416
20417 2011-04-09  Bruno Haible  <bruno@clisp.org>
20418
20419         areadlinkat: Avoid link error on many platforms.
20420         * modules/areadlinkat (Depends-on): Add areadlink.
20421
20422 2011-04-09  Bruno Haible  <bruno@clisp.org>
20423
20424         allocator, careadlinkat: Fix double-inclusion guard.
20425         * lib/allocator.h: Fix double-inclusion guard.
20426         * lib/careadlinkat.h: Likewise.
20427
20428 2011-04-09  Bruno Haible  <bruno@clisp.org>
20429
20430         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20431         * lib/relocwrapper.c: Update dependencies hierarchy.
20432         * build-aux/install-reloc: Update list of files to be compiled.
20433         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20434         lib/allocator.[hc].
20435
20436 2011-04-08  Eric Blake  <eblake@redhat.com>
20437
20438         strftime: silence gnulib-tool warning
20439         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20440
20441 2011-04-08  Bruno Haible  <bruno@clisp.org>
20442
20443         verify: Fix syntax error with GCC 4.6 in C++ mode.
20444         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20445         (HAVE_STATIC_ASSERT): New macro.
20446         (verify_true, verify): Use 'static_assert' if it is supported and
20447         '_Static_assert' is not supported.
20448
20449 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20450
20451         allocator: New module.
20452         * modules/allocator, lib/allocator.c: New files.
20453         * lib/allocator.h (stdlib_allocator): New decl.
20454         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20455         Remove.  Do not include <stdlib.h>.
20456         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20457         * modules/careadlinkat (Files): Remove lib/allocator.h.
20458         (Depends-on): Add allocator.
20459
20460         stdlib: let modules use system malloc, realloc
20461         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20462         if !_GL_USE_STDLIB_ALLOC.
20463         (malloc, realloc): Limit this change to a smaller scope.
20464
20465         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20466         (malloc, realloc): Don't #undef; no longer needed.
20467         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20468         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20469         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20470         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20471         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20472         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20473         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20474         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20475
20476         careadlinkat: rename members to avoid problem
20477         * lib/allocator.h (struct allocator): Rename members from
20478         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20479         and realloc are #define'd.  Reported by Eric Blake in
20480         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20481         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20482
20483 2011-04-08  Eric Blake  <eblake@redhat.com>
20484
20485         nonblocking: reduce dependency
20486         * tests/test-nonblocking.c: Only test sockets when in use.
20487         * modules/nonblocking-tests (Depends-on): Drop socket.
20488         (Makefile.am): Link even if sockets are not present.
20489         * modules/pipe2-tests (Makefile.am): Likewise.
20490         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20491
20492         pipe2: fix O_NONBLOCK support on mingw
20493         * modules/pipe2 (Depends-on): Add nonblocking.
20494         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20495         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20496         * tests/test-nonblocking.c (main): Likewise.
20497         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20498
20499         fcntl-h: fix O_ACCMODE on cygwin
20500         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20501         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20502
20503         pipe-filter: drop O_NONBLOCK workarounds
20504         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20505         * modules/pipe-filter-ii (Depends-on): Likewise.
20506         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
20507
20508         nonblocking: provide O_NONBLOCK for mingw
20509         * modules/nonblocking (Depends-on): Add open.
20510         (configure.ac): Set new witness macro.
20511         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
20512         * modules/fcntl-h (Makefile.am): Substitute it.
20513         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
20514         nonblocking module is in use.
20515         * lib/nonblocking.c: Adjust portability test.
20516         * lib/open.c (open): Don't let native open see gnulib flag.
20517         * tests/test-fcntl-h.c (main): Enhance test.
20518         * tests/test-open.h (test_open): Likewise.
20519         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
20520
20521         careadlinkat: fix compilation error on mingw
20522         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
20523         within struct allocator.
20524
20525 2011-04-06  Eric Blake  <eblake@redhat.com>
20526
20527         binary-io: relicense under LGPLv2+
20528         * modules/binary-io (License): Relax to LGPLv2+.
20529         Requested for libvirt, and required by pipe2.
20530
20531 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
20532
20533         verify: use _Static_assert if available
20534         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
20535         (verify_true, verify): Use it if available.  This generates better
20536         diagnostics with GCC 4.6.0 and later.
20537
20538 2011-04-05  Bruno Haible  <bruno@clisp.org>
20539
20540         Remove leftover generated .h files after config.status changed.
20541
20542         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
20543         GL_GENERATE_ALLOCA_H.
20544         * modules/alloca-opt (Makefile.am): Remove alloca.h if
20545         GL_GENERATE_ALLOCA_H evaluates to false.
20546
20547         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
20548         GL_GENERATE_ARGZ_H.
20549         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
20550         evaluates to false.
20551
20552         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
20553         GL_GENERATE_BYTESWAP_H.
20554         * modules/byteswap (Makefile.am): Remove byteswap.h if
20555         GL_GENERATE_BYTESWAP_H evaluates to false.
20556
20557         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
20558         GL_GENERATE_ERRNO_H.
20559         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
20560         evaluates to false.
20561
20562         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
20563         GL_GENERATE_FLOAT_H.
20564         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
20565         evaluates to false.
20566
20567         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
20568         GL_GENERATE_FNMATCH_H.
20569         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
20570         GL_GENERATE_FNMATCH_H evaluates to false.
20571
20572         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
20573         GL_GENERATE_GLOB_H.
20574         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
20575         evaluates to false.
20576
20577         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
20578         automake conditional GL_GENERATE_ICONV_H.
20579         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
20580         evaluates to false.
20581
20582         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
20583         GL_GENERATE_NETINET_IN_H.
20584         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
20585         GL_GENERATE_NETINET_IN_H evaluates to false.
20586
20587         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
20588         conditional GL_GENERATE_PTHREAD_H.
20589         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
20590         * modules/pthread (Makefile.am): Remove pthread.h if
20591         GL_GENERATE_PTHREAD_H evaluates to false.
20592
20593         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
20594         GL_GENERATE_SCHED_H.
20595         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
20596         evaluates to false.
20597
20598         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
20599         conditional GL_GENERATE_SELINUX_CONTEXT_H.
20600         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
20601         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
20602
20603         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
20604         GL_GENERATE_STDARG_H.
20605         * modules/stdarg (Makefile.am): Remove stdarg.h if
20606         GL_GENERATE_STDARG_H evaluates to false.
20607
20608         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
20609         GL_GENERATE_STDBOOL_H.
20610         * modules/stdbool (Makefile.am): Remove stdbool.h if
20611         GL_GENERATE_STDBOOL_H evaluates to false.
20612
20613         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
20614         conditional GL_GENERATE_STDDEF_H.
20615         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
20616         * modules/stddef (Makefile.am): Remove stddef.h if
20617         GL_GENERATE_STDDEF_H evaluates to false.
20618
20619         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
20620         GL_GENERATE_STDINT_H.
20621         * modules/stdint (Makefile.am): Remove stdint.h if
20622         GL_GENERATE_STDINT_H evaluates to false.
20623
20624         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
20625         GL_GENERATE_SYSEXITS_H.
20626         * modules/sysexits (Makefile.am): Remove sysexits.h if
20627         GL_GENERATE_SYSEXITS_H evaluates to false.
20628
20629         Reported by Karl Berry and Ralf Wildenhues.
20630
20631 2011-04-05  Bruno Haible  <bruno@clisp.org>
20632
20633         Ensure to rebuild generated .h files when config.status has changed.
20634         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
20635         config.status.
20636         * modules/ctype (Makefile.am): Likewise.
20637         * modules/dirent (Makefile.am): Likewise.
20638         * modules/errno (Makefile.am): Likewise.
20639         * modules/fcntl-h (Makefile.am): Likewise.
20640         * modules/float (Makefile.am): Likewise.
20641         * modules/getopt-posix (Makefile.am): Likewise.
20642         * modules/glob (Makefile.am): Likewise.
20643         * modules/iconv-h (Makefile.am): Likewise.
20644         * modules/inttypes (Makefile.am): Likewise.
20645         * modules/langinfo (Makefile.am): Likewise.
20646         * modules/locale (Makefile.am): Likewise.
20647         * modules/math (Makefile.am): Likewise.
20648         * modules/netdb (Makefile.am): Likewise.
20649         * modules/netinet_in (Makefile.am): Likewise.
20650         * modules/poll-h (Makefile.am): Likewise.
20651         * modules/pthread (Makefile.am): Likewise.
20652         * modules/pty (Makefile.am): Likewise.
20653         * modules/sched (Makefile.am): Likewise.
20654         * modules/search (Makefile.am): Likewise.
20655         * modules/selinux-h (Makefile.am): Likewise.
20656         * modules/signal (Makefile.am): Likewise.
20657         * modules/spawn (Makefile.am): Likewise.
20658         * modules/stdarg (Makefile.am): Likewise.
20659         * modules/stdbool (Makefile.am): Likewise.
20660         * modules/stddef (Makefile.am): Likewise.
20661         * modules/stdint (Makefile.am): Likewise.
20662         * modules/stdio (Makefile.am): Likewise.
20663         * modules/stdlib (Makefile.am): Likewise.
20664         * modules/string (Makefile.am): Likewise.
20665         * modules/strings (Makefile.am): Likewise.
20666         * modules/sys_file (Makefile.am): Likewise.
20667         * modules/sys_ioctl (Makefile.am): Likewise.
20668         * modules/sys_select (Makefile.am): Likewise.
20669         * modules/sys_socket (Makefile.am): Likewise.
20670         * modules/sys_stat (Makefile.am): Likewise.
20671         * modules/sys_time (Makefile.am): Likewise.
20672         * modules/sys_times (Makefile.am): Likewise.
20673         * modules/sys_utsname (Makefile.am): Likewise.
20674         * modules/sys_wait (Makefile.am): Likewise.
20675         * modules/sysexits (Makefile.am): Likewise.
20676         * modules/termios (Makefile.am): Likewise.
20677         * modules/time (Makefile.am): Likewise.
20678         * modules/unistd (Makefile.am): Likewise.
20679         * modules/wchar (Makefile.am): Likewise.
20680         * modules/wctype-h (Makefile.am): Likewise.
20681         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
20682
20683 2011-04-05  Bruno Haible  <bruno@clisp.org>
20684
20685         pipe2: Relicense under LGPLv2+.
20686         * modules/pipe2 (License): Change to LGPLv2+.
20687         Requested by Eric Blake, for libvirt.
20688
20689 2011-04-05  Bruce Korb  <bkorb@gnu.org>
20690
20691         bootstrap: compute gnulib_extra_files after updating build_aux
20692         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
20693         change build_aux or also supply gnulib_extra_files.  Handle correctly.
20694
20695 2011-04-05  Eric Blake  <eblake@redhat.com>
20696
20697         bootstrap: preserve git whitelist item sorting
20698         * build-aux/bootstrap (sort_patterns): New function.
20699         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
20700
20701 2011-04-05  Simon Josefsson  <simon@josefsson.org>
20702
20703         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
20704         sc_space_tab check.
20705
20706 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20707
20708         areadlink, areadlinkat: rewrite in terms of careadlinkat
20709         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
20710         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
20711         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
20712         (malloc, realloc): Remove #undefs.
20713         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
20714         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
20715         readlink, ssize_t, stdint, unistd.
20716         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
20717         areadlink, stdint.
20718
20719         careadlinkat: new module
20720         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
20721         * modules/careadlinkat: New files, written by me with
20722         a review and feedback from Ben Pfaff in
20723         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
20724
20725 2011-04-01  Bruno Haible  <bruno@clisp.org>
20726
20727         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
20728         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
20729         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
20730         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
20731         Reported by Bruce Korb <bruce.korb@gmail.com>.
20732
20733 2011-04-01  Bruno Haible  <bruno@clisp.org>
20734
20735         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
20736         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
20737         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
20738         * modules/wcpcpy (Depends-on): Add extensions.
20739         * modules/wcpncpy (Depends-on): Likewise.
20740         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
20741         systems.
20742         * doc/posix-functions/wcpncpy.texi: Likewise.
20743         * doc/posix-functions/wcwidth.texi: Likewise.
20744
20745 2011-03-31  Eric Blake  <eblake@redhat.com>
20746
20747         nonblocking: fix mingw test failures
20748         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
20749         non-blocking flag on regular file.
20750         (get_nonblocking_flag): Set errno on invalid fd.
20751         * tests/test-nonblocking.c (main): Avoid test failure on
20752         directories if fchdir is not active.
20753         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
20754
20755 2011-03-31  Bruno Haible  <bruno@clisp.org>
20756
20757         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
20758         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
20759         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
20760         Reported by Simon Josefsson <simon@josefsson.org>.
20761
20762 2011-03-31  Bruno Haible  <bruno@clisp.org>
20763         and Eric Blake  <eblake@redhat.com>
20764
20765         nonblocking: new module
20766         * modules/nonblocking: New module.
20767         * modules/nonblocking-tests: Likewise.
20768         * lib/nonblocking.h: New file.
20769         * lib/nonblocking.c: Likewise.
20770         * tests/test-nonblocking.c: New test.
20771         * lib/ioctl.c (ioctl) [mingw]: Update comment.
20772
20773 2011-03-30  Bruno Haible  <bruno@clisp.org>
20774
20775         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
20776         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
20777         instead of 'printf' format for GCC >= 4.4.
20778         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
20779         (fprintf, printf, vfprintf, vprintf): Declare with
20780         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
20781         the system's vfprintf() function.
20782         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
20783
20784 2011-03-30  Eric Blake  <eblake@redhat.com>
20785
20786         passfd: fix scoping bug
20787         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
20788         before sendmsg/recvmsg.
20789
20790         passfd: standardize coding conventions
20791         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
20792         can be learned at compile time.
20793         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
20794         ifdefs.
20795         (sendfd, recvfd): Follow gnulib code conventions.
20796
20797         passfd: fix incorrect sendmsg arguments
20798         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
20799         incorrect msg_controllen value.
20800         * modules/passfd-tests (Depends-on): Check for alarm.
20801         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
20802         Reported by Bastien ROUCARIES.
20803
20804 2011-03-30  Bruno Haible  <bruno@clisp.org>
20805
20806         c-strcasestr: Relicense under LGPLv2+.
20807         * modules/c-strcasestr (License): Change to LGPLv2+.
20808         Requested by Eric Blake, for libvirt.
20809
20810 2011-03-30  Simon Josefsson  <simon@josefsson.org>
20811
20812         * users.txt: Add libidn2.  Fix libtasn1 link.
20813
20814 2011-03-30  Jim Meyering  <meyering@redhat.com>
20815
20816         tests: readlink* ("",... fails with EINVAL on newer kernels
20817         readlink and readlinkat have typically failed with ENOENT for
20818         the invalid, empty file name,  "".  However, with the advent
20819         of linux-2.6.39, they fail with EINVAL.
20820         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
20821         when operating on the empty file name.
20822         * tests/test-readlink.h (test_readlink): Likewise.
20823
20824 2011-03-29  Bruno Haible  <bruno@clisp.org>
20825
20826         Relicense some modules under LGPLv2+, for libidn2.
20827         * modules/array-mergesort (License): Change to LGPLv2+.
20828         * modules/c-strcaseeq (License): Likewise.
20829         * modules/striconveh (License): Likewise.
20830         * modules/striconveha (License): Likewise.
20831         * modules/uniconv/base (License): Likewise.
20832         * modules/uniconv/u8-conv-from-enc (License): Likewise.
20833         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
20834         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
20835         * modules/unictype/base (License): Likewise.
20836         * modules/unictype/bidiclass-of (License): Likewise.
20837         * modules/unictype/category-M (License): Likewise.
20838         * modules/unictype/category-none (License): Likewise.
20839         * modules/unictype/category-of (License): Likewise.
20840         * modules/unictype/category-test (License): Likewise.
20841         * modules/unictype/category-test-withtable (License): Likewise.
20842         * modules/unictype/combining-class (License): Likewise.
20843         * modules/unictype/joiningtype-of (License): Likewise.
20844         * modules/unictype/scripts (License): Likewise.
20845         * modules/uninorm/base (License): Likewise.
20846         * modules/uninorm/canonical-decomposition (License): Likewise.
20847         * modules/uninorm/composition (License): Likewise.
20848         * modules/uninorm/decompose-internal (License): Likewise.
20849         * modules/uninorm/decomposition-table (License): Likewise.
20850         * modules/uninorm/nfc (License): Likewise.
20851         * modules/uninorm/nfd (License): Likewise.
20852         * modules/uninorm/u32-normalize (License): Likewise.
20853         * modules/unistr/base (License): Likewise.
20854         * modules/unistr/u32-cpy (License): Likewise.
20855         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
20856         * modules/unistr/u32-to-u8 (License): Likewise.
20857         * modules/unistr/u32-uctomb (License): Likewise.
20858         * modules/unistr/u8-check (License): Likewise.
20859         * modules/unistr/u8-mblen (License): Likewise.
20860         * modules/unistr/u8-mbtouc (License): Likewise.
20861         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
20862         * modules/unistr/u8-mbtoucr (License): Likewise.
20863         * modules/unistr/u8-prev (License): Likewise.
20864         * modules/unistr/u8-strlen (License): Likewise.
20865         * modules/unistr/u8-to-u32 (License): Likewise.
20866         * modules/unistr/u8-uctomb (License): Likewise.
20867         * modules/unitypes (License): Likewise.
20868         Requested by Simon Josefsson.
20869
20870 2011-03-29  Simon Josefsson  <simon@josefsson.org>
20871
20872         lib-symbol-visibility: Add a notice.
20873         * modules/lib-symbol-visibility (Notice): New field.
20874
20875 2011-03-29  Bruno Haible  <bruno@clisp.org>
20876
20877         getaddrinfo: Doc fix.
20878         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
20879         section "fixed in Gnulib".
20880
20881 2011-03-28  Simon Josefsson  <simon@josefsson.org>
20882
20883         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
20884         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
20885
20886 2011-03-26  Bruno Haible  <bruno@clisp.org>
20887
20888         unictype/property-byname: Reduce the number of load-time relocations.
20889         * lib/unictype/pr_byname.c: Include <stdlib.h>.
20890         (UC_PROPERTY_INDEX_*): New enumeration values.
20891         (uc_property_byname): Convert an index from the lookup table to an
20892         uc_property_t.
20893         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
20894         values.
20895
20896 2011-03-26  Bruno Haible  <bruno@clisp.org>
20897
20898         unictype/property-byname: Allow omitted word separators and aliases.
20899         * lib/unictype/pr_byname.gperf: Add property names without word
20900         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20901         for 'space'.
20902
20903 2011-03-26  Bruno Haible  <bruno@clisp.org>
20904
20905         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20906         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20907         also hyphens to space.
20908         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20909         without spaces.
20910         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20911
20912 2011-03-26  Bruno Haible  <bruno@clisp.org>
20913
20914         unictype/joiningtype-byname: Recognize long names as well.
20915         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20916         a long name.
20917         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20918         unictype/joiningtype_byname.h.
20919         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20920         * lib/unictype/joiningtype_byname.gperf: New file.
20921         * modules/unictype/joiningtype-byname (Files): Add
20922         lib/unictype/joiningtype_byname.gperf.
20923         (Depends-on): Add gperf.
20924         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
20925         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
20926         long names.
20927
20928         Tests for module 'unictype/joiningtype-longname'.
20929         * modules/unictype/joiningtype-longname-tests: New file.
20930         * tests/unictype/test-joiningtype_longname.c: New file.
20931
20932         New module 'unictype/joiningtype-longname'.
20933         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
20934         * lib/unictype/joiningtype_longname.c: New file.
20935         * modules/unictype/joiningtype-longname: New file.
20936         * modules/unictype/joiningtype-all (Depends-on): Add
20937         unictype/joiningtype-longname.
20938
20939 2011-03-26  Bruno Haible  <bruno@clisp.org>
20940
20941         unictype/bidiclass-byname: Recognize long names as well.
20942         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
20943         name.
20944         * lib/unictype/bidi_byname.c: Include <string.h>,
20945         unictype/bidi_byname.h.
20946         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
20947         * lib/unictype/bidi_byname.gperf: New file.
20948         * modules/unictype/bidiclass-byname (Files): Add
20949         lib/unictype/bidi_byname.gperf.
20950         (Depends-on): Add gperf.
20951         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
20952         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
20953         long names.
20954
20955         Tests for module 'unictype/bidiclass-longname'.
20956         * modules/unictype/bidiclass-longname-tests: New file.
20957         * tests/unictype/test-bidi_longname.c: New file.
20958
20959         New module 'unictype/bidiclass-longname'.
20960         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
20961         * lib/unictype/bidi_longname.c: New file.
20962         * modules/unictype/bidiclass-longname: New file.
20963         * modules/unictype/bidiclass-all (Depends-on): Add
20964         unictype/bidiclass-longname.
20965
20966 2011-03-26  Bruno Haible  <bruno@clisp.org>
20967
20968         unictype/bidi*: Rename modules.
20969         * modules/unictype/bidiclass-all: Renamed from
20970         modules/unictype/bidicategory-all.
20971         * modules/unictype/bidiclass-name: Renamed from
20972         modules/unictype/bidiclass-name.
20973         (Description): Update.
20974         * modules/unictype/bidiclass-name-tests: Renamed from
20975         modules/unictype/bidicategory-name-tests.
20976         * modules/unictype/bidiclass-byname: Renamed from
20977         modules/unictype/bidicategory-byname.
20978         (Description): Update.
20979         * modules/unictype/bidiclass-byname-tests: Renamed from
20980         modules/unictype/bidicategory-byname-tests.
20981         * modules/unictype/bidiclass-of: Renamed from
20982         modules/unictype/bidicategory-of.
20983         (Description): Update.
20984         * modules/unictype/bidiclass-of-tests: Renamed from
20985         modules/unictype/bidicategory-of-tests.
20986         * modules/unictype/bidiclass-test: Renamed from
20987         modules/unictype/bidicategory-test.
20988         (Description): Update.
20989         * modules/unictype/bidiclass-test-tests: Renamed from
20990         modules/unictype/bidicategory-test-tests.
20991         * modules/unictype/bidicategory-all: New file, a simple redirection.
20992         * modules/unictype/bidicategory-name: Likewise.
20993         * modules/unictype/bidicategory-byname: Likewise.
20994         * modules/unictype/bidicategory-of: Likewise.
20995         * modules/unictype/bidicategory-test: Likewise.
20996         * modules/unictype/property-bidi-* (Dependencies): Update.
20997         * lib/unictype/bidi_*.c: Update comment.
20998
20999 2011-03-26  Bruno Haible  <bruno@clisp.org>
21000
21001         unictype/bidi*: Rename functions, part 2.
21002         * modules/unictype/bidicategory-name (configure.ac): Update required
21003         libunistring version.
21004         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21005
21006 2011-03-25  Bruno Haible  <bruno@clisp.org>
21007
21008         New module 'unictype/combining-class-all'.
21009         * modules/unictype/combining-class-all: New file.
21010
21011         Tests for module 'unictype/combining-class-byname'.
21012         * modules/unictype/combining-class-byname-tests: New file.
21013         * tests/unictype/test-combiningclass_byname.c: New file.
21014
21015         New module 'unictype/combining-class-byname'.
21016         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21017         * lib/unictype/combiningclass_byname.c: New file.
21018         * lib/unictype/combiningclass_byname.gperf: New file.
21019         * modules/unictype/combining-class-byname: New file.
21020
21021         Tests for module 'unictype/combining-class-longname'.
21022         * modules/unictype/combining-class-longname-tests: New file.
21023         * tests/unictype/test-combiningclass_longname.c: New file.
21024
21025         New module 'unictype/combining-class-longname'.
21026         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21027         * lib/unictype/combiningclass_longname.c: New file.
21028         * modules/unictype/combining-class-longname: New file.
21029
21030         Tests for module 'unictype/combining-class-name'.
21031         * modules/unictype/combining-class-name-tests: New file.
21032         * tests/unictype/test-combiningclass_name.c: New file.
21033
21034         New module 'unictype/combining-class-name'.
21035         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21036         * lib/unictype/combiningclass_name.c: New file.
21037         * modules/unictype/combining-class-name: New file.
21038
21039 2011-03-25  Bruno Haible  <bruno@clisp.org>
21040
21041         unictype/combining-class: Rename source files.
21042         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21043         of unictype/combining.h.
21044         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21045         Update.
21046         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21047         * modules/unictype/combining-class (Description): Fix.
21048         (Files, Makefile.am): Update.
21049         * tests/unictype/test-combiningclass.c: Renamed from
21050         tests/unictype/test-combining.c.
21051         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21052
21053 2011-03-25  Bruno Haible  <bruno@clisp.org>
21054
21055         unictype: Update list of canonical combining classes.
21056         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21057
21058 2011-03-25  Bruno Haible  <bruno@clisp.org>
21059
21060         unictype/category-byname: Recognize long names as well.
21061         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21062         a long name.
21063         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21064         unictype/categ_byname.h.
21065         (UC_CATEGORY_INDEX_*): New enumeration values.
21066         (uc_general_category_byname): Use uc_general_category_lookup and
21067         convert from index to value.
21068         * lib/unictype/categ_byname.gperf: New file.
21069         * modules/unictype/category-byname (Files): Add
21070         lib/unictype/categ_byname.gperf.
21071         (Depends-on): Add gperf.
21072         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21073         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21074         long names.
21075
21076         Tests for module 'unictype/category-longname'.
21077         * modules/unictype/category-longname-tests: New file.
21078         * tests/unictype/test-categ_longname.c: New file.
21079
21080         New module 'unictype/category-longname'.
21081         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21082         * lib/unictype/categ_longname.c: New file.
21083         * modules/unictype/category-longname: New file.
21084         * modules/unictype/category-all (Depends-on): Add it.
21085
21086 2011-03-25  Bruno Haible  <bruno@clisp.org>
21087
21088         Tests for module 'unictype/category-LC'.
21089         * modules/unictype/category-LC-tests: New file.
21090         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21091
21092         New module 'unictype/category-LC'.
21093         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21094         (UC_CATEGORY_LC): New declaration.
21095         (UC_CASED_LETTER): New macro.
21096         * lib/gen-uni-tables.c (is_category_LC): New function.
21097         (output_categories): Also handle category LC.
21098         (UC_CATEGORY_MASK_LC): New enumeration value.
21099         (general_category_byname): Also handle category LC.
21100         * lib/unictype/categ_LC.c: New file.
21101         * lib/unictype/categ_LC.h: New file, automatically generated.
21102         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21103         category LC.
21104         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21105         * modules/unictype/category-LC: New file.
21106         * modules/unictype/category-byname (Depends-on): Add
21107         unictype/category-LC.
21108         * modules/unictype/category-all (Depends-on): Likewise.
21109
21110 2011-03-25  Eric Blake  <eblake@redhat.com>
21111
21112         xmalloc: revert yesterday's regression
21113         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21114         realloc's underlying behavior (allowing allocation of zero-size
21115         objects, especially if malloc-gnu is also in use).
21116
21117 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21118
21119         maint.mk: add missing version to VC-tag
21120         * top/maint.mk: git tag was missing actual tag name; add it.
21121
21122         valgrind: do leak checking, and exit with code 1 on error (not 0)
21123         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21124         to VALGRIND.
21125
21126 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21127
21128         posix-modules: say what it does.
21129         * posix-modules: Add a line to the --help output saying what it does.
21130
21131 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21132
21133         xmalloc: Do not leak if underlying realloc is C99 compatible.
21134         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21135         This avoids a leak on C99-based systems.  See
21136         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21137
21138 2011-03-24  Eric Blake  <eblake@redhat.com>
21139
21140         realloc: document portability problem
21141         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21142         passing 0 size to realloc.
21143
21144 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21145
21146         doc: update users.txt
21147         * users.txt: Add cvsps, tmpwatch
21148
21149 2011-03-23  Matt Rice  <ratmice@gmail.com>
21150
21151         doc: update users.txt
21152         * users.txt: Add gdb.
21153
21154 2011-03-23  Jim Meyering  <meyering@redhat.com>
21155
21156         doc: update users.txt
21157         Looking through matches up to the following URL (there are still
21158         several more pages), I found several projects that use gnulib:
21159         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21160         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21161         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21162
21163 2011-03-22  Bruno Haible  <bruno@clisp.org>
21164
21165         unictype/bidi*: Rename functions.
21166         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21167         uc_bidi_class, uc_is_bidi_class): New declarations.
21168         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21169         uc_bidi_category_byname.
21170         (uc_bidi_category_byname): New function.
21171         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21172         u_bidi_category_name.
21173         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21174         (uc_bidi_category_name): New function.
21175         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21176         uc_bidi_category.
21177         (uc_bidi_category): New function.
21178         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21179         uc_is_bidi_category. Invoke uc_bidi_class.
21180         (uc_is_bidi_category): New function.
21181         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21182         instead of uc_bidi_category_byname.
21183         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21184         instead of uc_bidi_category_name.
21185         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21186         uc_bidi_category.
21187         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21188         instead of uc_is_bidi_category.
21189
21190 2011-03-21  Bruno Haible  <bruno@clisp.org>
21191
21192         New module 'unictype/joininggroup-all'.
21193         * modules/unictype/joininggroup-all: New file.
21194
21195         Tests for module 'unictype/joininggroup-of'.
21196         * modules/unictype/joininggroup-of-tests: New file.
21197         * tests/unictype/test-joininggroup_of.c: New file.
21198         * tests/unictype/test-joininggroup_of.h: New file, automatically
21199         generated by gen-uni-tables.
21200
21201         New module 'unictype/joininggroup-of'.
21202         * modules/unictype/joininggroup-of: New file.
21203         * lib/unictype/joininggroup_of.c: New file.
21204         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21205         gen-uni-tables.
21206
21207         Tests for module 'unictype/joininggroup-byname'.
21208         * modules/unictype/joininggroup-byname-tests: New file.
21209         * tests/unictype/test-joininggroup_byname.c: New file.
21210
21211         New module 'unictype/joininggroup-byname'.
21212         * modules/unictype/joininggroup-byname: New file.
21213         * lib/unictype/joininggroup_byname.c: New file.
21214         * lib/unictype/joininggroup_byname.gperf: New file.
21215
21216         Tests for module 'unictype/joininggroup-name'.
21217         * modules/unictype/joininggroup-name-tests: New file.
21218         * tests/unictype/test-joininggroup_name.c: New file.
21219
21220         New module 'unictype/joininggroup-name'.
21221         * modules/unictype/joininggroup-name: New file.
21222         * lib/unictype/joininggroup_name.c: New file.
21223         * lib/unictype/joininggroup_name.h: New file.
21224
21225         New module 'unictype/joiningtype-all'.
21226         * modules/unictype/joiningtype-all: New file.
21227
21228         Tests for module 'unictype/joiningtype-of'.
21229         * modules/unictype/joiningtype-of-tests: New file.
21230         * tests/unictype/test-joiningtype_of.c: New file.
21231         * tests/unictype/test-joiningtype_of.h: New file, automatically
21232         generated by gen-uni-tables.
21233
21234         New module 'unictype/joiningtype-of'.
21235         * modules/unictype/joiningtype-of: New file.
21236         * lib/unictype/joiningtype_of.c: New file.
21237         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21238         gen-uni-tables.
21239
21240         Tests for module 'unictype/joiningtype-byname'.
21241         * modules/unictype/joiningtype-byname-tests: New file.
21242         * tests/unictype/test-joiningtype_byname.c: New file.
21243
21244         New module 'unictype/joiningtype-byname'.
21245         * modules/unictype/joiningtype-byname: New file.
21246         * lib/unictype/joiningtype_byname.c: New file.
21247
21248         Tests for module 'unictype/joiningtype-name'.
21249         * modules/unictype/joiningtype-name-tests: New file.
21250         * tests/unictype/test-joiningtype_name.c: New file.
21251
21252         New module 'unictype/joiningtype-name'.
21253         * modules/unictype/joiningtype-name: New file.
21254         * lib/unictype/joiningtype_name.c: New file.
21255
21256         unictype: Add support for Arabic shaping properties.
21257         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21258         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21259         declarations.
21260         (UC_JOINING_GROUP_*): New enumeration values.
21261         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21262         declarations.
21263         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21264         (unicode_joining_type): New variable.
21265         (UC_JOINING_GROUP_*): New enumeration values.
21266         (unicode_joining_group): New variable.
21267         (fill_arabicshaping, joining_type_as_c_identifier,
21268         output_joining_type_test, output_joining_type,
21269         joining_group_as_c_identifier, output_joining_group_test,
21270         output_joining_group): New functions.
21271         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21272         fill_arabicshaping and output_joining_type_test, output_joining_type,
21273         output_joining_group_test, output_joining_group.
21274         Reported by Simon Josefsson.
21275
21276 2011-03-21  Jim Meyering  <meyering@redhat.com>
21277
21278         strftime: fix a bug in yesterday's change
21279         * lib/strftime.c (add): Accommodate width's initial value of -1.
21280         Otherwise, nstrftime would copy uninitialized data into
21281         the result buffer.
21282
21283 2011-03-21  Jim Meyering  <meyering@redhat.com>
21284
21285         tests: add strftime-tests module
21286         * tests/test-strftime.c: New file.
21287         * modules/strftime-tests: New module.
21288
21289 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21290
21291         strftime: don't assume a byte count fits in 'int'
21292         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21293         found this problem by static analysis, using gcc -Wstrict-overflow
21294         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21295         on an integer overflow having undefined behavior, but it turns out
21296         that the argument is a size, which might not fit in 'int' anyway,
21297
21298 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21299
21300         stdio: don't require ignore_value around fwrite
21301
21302         This patch works around libc bug 11959
21303         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21304         Without this patch, applications must often write
21305         ignore_value (fwrite (...)) even though the ignore_value is
21306         not helpful here.  It's common to write many objects, using
21307         fwrite/printf/etc., and then use ferror to detect output error.
21308
21309         I considered making this patch optional, but decided against it,
21310         because libc is obviously being inconsistent here: there is no
21311         reason libc should insist that user code must inspect fwrite
21312         return's value without also insisting that it inspect printf's,
21313         putchar's, etc.  If user code wants to have a strict style where
21314         all these functions' values are checked (so that ferror need not
21315         be checked), we could add support for that style in a new gnulib
21316         module, but in the meantime it's better to be consistent and to
21317         support common usage.
21318
21319         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21320         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21321         that we are compiling in checking mode, and if not C++, and
21322         if not already wrapping fwrite for some other reason.
21323         (fwrite): #define to rpl_fwrite if the latter is defined.
21324
21325 2011-03-20  Bruno Haible  <bruno@clisp.org>
21326
21327         verror: Fix compilation error introduced on 2011-02-13.
21328         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21329         instead of __attribute__.
21330         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21331
21332 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21333             Bruno Haible  <bruno@clisp.org>
21334
21335         socklen: do not depend on sys_socket
21336         While trying to modify Emacs to use gnulib's socklen module,
21337         I discovered a circular dependency: socklen depends on sys_socket
21338         and vice versa.  Emacs can use socklen, but it does not need
21339         sys_socket because it has its own substitute for sys/socket.h.
21340         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21341         gl_TYPE_SOCKLEN_T.
21342         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21343         gl_PREREQ_SYS_H_SOCKET.
21344         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21345         gl_PREREQ_SYS_H_SOCKET.
21346         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21347         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21348         * modules/socklen (Depends-on): Do not depend on sys_socket.
21349         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21350
21351 2011-03-20  Jim Meyering  <meyering@redhat.com>
21352
21353         maint.mk: sort file names *after* new transformation
21354         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21355         prefix would have led to an unwarranted failure in GNU parted.
21356         Sort after that transformation.
21357
21358 2011-03-19  Jim Meyering  <meyering@redhat.com>
21359
21360         maint.mk: fix po-file syntax-check rule
21361         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21362         Patch by Bruno Haible.
21363
21364 2011-03-19  Bruno Haible  <bruno@clisp.org>
21365
21366         socklen: Update comment.
21367         * m4/socklen.m4: Update comment about platforms.
21368
21369 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21370             Bruno Haible  <bruno@clisp.org>
21371
21372         inet_ntop, inet_pton: Simplify.
21373         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21374         documented to provide socklen_t and we already depend on sys_socket.
21375         * modules/inet_pton (Depends-on): Likewise.
21376         * lib/arpa_inet.in.h: Adjust comment.
21377
21378 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21379             Bruno Haible  <bruno@clisp.org>
21380
21381         netdb: Simplify.
21382         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21383         documented to provide socklen_t and we already depend on sys_socket.
21384         * lib/netdb.in.h: Adjust comment.
21385
21386 2011-03-19  Bruno Haible  <bruno@clisp.org>
21387
21388         sys_socket, netdb: Document problem with socklen_t.
21389         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21390         platforms.
21391         * doc/posix-headers/netdb.texi: Likewise.
21392
21393 2011-03-18  Eric Blake  <eblake@redhat.com>
21394
21395         maint.mk: let po check work in VPATH build
21396         * top/maint.mk (po_file): Allow cfg.mk override.
21397         (sc_po_check): Allow VPATH use.
21398         Reported by Jiri Denemark.
21399
21400 2011-03-16  Jim Meyering  <meyering@redhat.com>
21401
21402         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21403         Before, you would have had to create one .x-sc_ file per rule in order
21404         to exempt offending files.  Now, you may instead use a Make variable --
21405         usually defined in cfg.mk -- whose name identifies the affected rule.
21406         * top/maint.mk (_sc_excl): Define.
21407         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21408         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21409
21410 2011-03-13  Bruno Haible  <bruno@clisp.org>
21411
21412         ignore-value tests: Avoid warnings.
21413         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21414         empty for gcc < 3.4.
21415
21416 2011-03-13  Bruno Haible  <bruno@clisp.org>
21417
21418         passfd: Fix link error on Solaris.
21419         * modules/passfd (Description): Correct.
21420         (Depends-on): Add socketlib.
21421         (Link): New section.
21422         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21423
21424 2011-03-13  Bruno Haible  <bruno@clisp.org>
21425
21426         passfd: Fix link error on AIX 5.2.
21427         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21428
21429 2011-03-13  Bruno Haible  <bruno@clisp.org>
21430
21431         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21432         * lib/sys_socket.in.h: Include <stddef.h>.
21433         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21434         CMSG_FIRSTHDR. Remove unused variable.
21435
21436 2011-03-13  Bruno Haible  <bruno@clisp.org>
21437
21438         passfd: Fix compilation error on OpenBSD.
21439         * lib/passfd.c: Include <sys/uio.h>.
21440
21441 2011-03-13  Bruno Haible  <bruno@clisp.org>
21442
21443         passfd test: Fix warnings.
21444         * tests/test-passfd.c: Include <sys/wait.h>.
21445         (main): Fix typo.
21446
21447 2011-03-13  Bruno Haible  <bruno@clisp.org>
21448
21449         passfd module, part 4, tweaks.
21450         * tests/test-passfd.c: Reorder includes.
21451         (main): Fix perror and printf calls.
21452
21453 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21454
21455         passfd module, part 4.
21456         * modules/passfd-tests: New file.
21457         * tests/test-passfd.c: New file.
21458
21459 2011-03-13  Jim Meyering  <meyering@redhat.com>
21460
21461         Makefile: rely on GNU make; derive syntax-check rule names
21462         Rather than requiring that each sc_ rule be listed as a dependent
21463         of "check", use features of GNU make to derive the list.
21464         * Makefile (syntax-check-rules): Define.
21465         (check): Depend on the new variable, not the hard-coded list.
21466
21467 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21468             Bruno Haible  <bruno@clisp.org>
21469
21470         passfd module, part 3.
21471         * lib/passfd.h (recvfd): Add a flags argument.
21472         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21473         (recvfd): Add a flags argument.
21474         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21475         exists.
21476         * modules/passfd (Depends-on): Add cloexec.
21477         Suggested by Eric Blake.
21478
21479 2011-03-13  Bruno Haible  <bruno@clisp.org>
21480
21481         passfd module, part 2, tweaks.
21482         * modules/passfd (Files): Reorder.
21483         (Depends-on): Remove errno.
21484         (Include): Remove <sys/socket.h>, <sys/un.h>.
21485         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21486         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21487         specification header. Include <sys/socket.h> always. Don't include
21488         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21489         (sendfd): Clarify that it sets errno when it fails.
21490         (recvfd): Fix specification.
21491
21492 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21493
21494         passfd module, part 2.
21495         * modules/passfd: New file.
21496         * lib/passfd.h: New file.
21497         * lib/passfd.c: New file.
21498
21499 2011-03-12  Bruno Haible  <bruno@clisp.org>
21500
21501         wcswidth, mbswidth: Avoid integer overflow.
21502         * lib/wcswidth.c: Include <limits.h>.
21503         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21504         * lib/mbswidth.c: Include <limits.h>.
21505         (mbsnwidth): Avoid 'int' overflow.
21506         Reported by Jim Meyering.
21507
21508 2011-03-12  Bruno Haible  <bruno@clisp.org>
21509
21510         futimens, utimensat: Avoid endless recursion on Solaris 10.
21511         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
21512         Solaris.
21513         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
21514         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
21515
21516 2011-03-11  Jim Meyering  <meyering@redhat.com>
21517
21518         maint.mk: relax a regexp to accommodate other formatting styles
21519         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
21520         between "ngettext" and the following "(".
21521
21522 2011-03-11  Pádraig Brady <P@draigBrady.com>
21523
21524         maint.mk: suppress a false positive warning
21525         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
21526         diagnostics are marked with ngettext.
21527
21528 2011-03-10  Eric Blake  <eblake@redhat.com>
21529
21530         wchar: add explicit dependencies, for Tru64
21531         * modules/mbmemcasecoll (Depends-on): Add wchar.
21532         * modules/mbtowc (Depends-on): Likewise.
21533         * modules/vasnprintf (Depends-on): Likewise.
21534         * modules/unistdio/u-printf-args (Depends-on): Likewise.
21535         * modules/wctomb (Depends-on): Likewise.
21536         Reported by Peter O'Gorman.
21537
21538 2011-03-08  Bruno Haible  <bruno@clisp.org>
21539
21540         passfd module, part 1, tweaks.
21541         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
21542         Improve indentation. Improve AC_MSG_CHECKING messages.
21543         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
21544         gl_SOCKET_FAMILIES.
21545
21546 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21547
21548         passfd module, part 1.
21549         * m4/afunix.m4: New file.
21550         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
21551         sockets.
21552
21553 2011-03-08  Bruno Haible  <bruno@clisp.org>
21554
21555         regex-quote: New API.
21556         * lib/regex-quote.h: Include <stdbool.h>.
21557         (struct regex_quote_spec): New type.
21558         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21559         New declarations.
21560         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21561         'const struct regex_quote_spec *' argument.
21562         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
21563         (pcre_special): New constant.
21564         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
21565         New functions.
21566         (regex_quote_length, regex_quote_copy, regex_quote): Take a
21567         'const struct regex_quote_spec *' argument.
21568         * modules/regex-quote (Depends-on): Add stdbool.
21569         * tests/test-regex-quote.c (check): Update for new API. Add test for
21570         anchored results.
21571         * NEWS: Mention the API change.
21572         Reported by Reuben Thomas and Eric Blake.
21573
21574 2011-03-06  Bruno Haible  <bruno@clisp.org>
21575
21576         regex-quote: Fix creation of POSIX extended regular expressions.
21577         * lib/regex-quote.c (ere_special): Add grouping and alternation
21578         operators.
21579
21580 2011-03-05  Bruno Haible  <bruno@clisp.org>
21581
21582         doc: Improve doc regarding autopoint vs. gnulib.
21583         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
21584         disable autopoint while running autoreconf.
21585         Suggested by Ralf Wildenhues.
21586
21587 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21588
21589         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
21590         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
21591
21592 2011-03-03  Bruce Korb  <bkorb@gnu.org>
21593
21594         parse-duration: remove xalloc.h dependency
21595         * lib/parse-duration.c (parse_period): handle NULL return from
21596         strdup instead of calling xstrdup().
21597         * modules/parse-duration: remove "xalloc" dependency
21598
21599 2011-03-03  Matthew Booth  <mbooth@redhat.com>
21600
21601         bootstrap: honor m4_base when running aclocal
21602         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
21603
21604 2011-03-02  Jim Meyering  <meyering@redhat.com>
21605
21606         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
21607         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
21608         on request from Matt Booth.
21609
21610 2011-03-01  Eric Blake  <eblake@redhat.com>
21611
21612         test-link: work on Hurd
21613         * tests/test-link.h (test_link): Hurd rejects linking directories
21614         with EISDIR instead of the POSIX-mandated EPERM.
21615
21616 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
21617
21618         stdio: simplify by moving files to printf-posix, sigpipe
21619         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
21620         since this symbol is needed only if printf is replaced.
21621         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
21622         Require gl_ASM_SYMBOL_PREFIX.
21623         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
21624         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
21625         (Depends-on): Add 'raise'.
21626         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
21627         * modules/stdio (Files): Remove lib/stdio-write.c,
21628         m4/asm-underscore.m4.
21629         (Depends-on): Remove 'raise'.
21630
21631         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
21632         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
21633         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
21634         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
21635
21636 2011-02-28  Bruno Haible  <bruno@clisp.org>
21637
21638         localcharset: Assume ANSI C behaviour of free().
21639         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
21640         calling free().
21641         Suggested by Simon Josefsson <simon@josefsson.org>.
21642
21643 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
21644             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
21645             Bruno Haible  <bruno@clisp.org>  (tiny change)
21646
21647         On Cygwin, use /proc file system instead of win32 API.
21648         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
21649         Win32 file names.
21650         (DllMain): Simplify by removing Cygwin specific code.
21651         (find_shared_library_fullname): Use Linux specific implementation also
21652         for Cygwin.
21653         (get_shared_library_fullname): Update accordingly.
21654         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
21655         Win32 file names.
21656         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
21657         Cygwin specific code.
21658
21659 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
21660             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
21661
21662         Fix OpenMP flag detection for various Fortran compilers.
21663         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
21664         OpenMP-conditional compilation construct, to force compile
21665         failure with missing OpenMP flag.
21666         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
21667
21668 2011-02-25  Eric Blake  <eblake@redhat.com>
21669
21670         strstr: expand test coverage
21671         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
21672         compilation.
21673         * tests/test-memmem.c (main): Duplicate tests.
21674         * tests/test-strcasestr.c (main): Likewise.
21675         * tests/test-c-strcasestr.c (main): Likewise.
21676
21677 2011-02-25  Jim Meyering  <meyering@redhat.com>
21678
21679         maint.mk: detect missing-NL-at-EOF, too
21680         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
21681         it also detects when a file lacks a newline at EOF.
21682         (require_exactly_one_NL_at_EOF_): Renamed from
21683         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
21684         since people may well have .x-sc_... file names tied to the
21685         existing name.  Suggested by Eric Blake.
21686
21687 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
21688
21689         dirname: move m4/dos.m4 functionality into lib/dosname.h
21690
21691         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
21692         extracts symbols from it, puts them into config.h; but it's much
21693         easier to use the symbols directly.  filename.h already does this,
21694         but it disagrees with dos.m4 in some respects.  This patch
21695         introduces a different include file dosname.h that packages up
21696         dos.m4, and then later we can work on merging filename.h and
21697         dosname.h.  Applications that need only the easy-to-configure
21698         symbols should consider including dosname.h rather than dirname.h.
21699         * NEWS: Mention incompatible changes.
21700         * m4/dos.m4: Remove.
21701         * lib/dosname.h, modules/dosname: New files.
21702         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
21703         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
21704         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
21705         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
21706         Include dosname.h, not dirname.h.
21707         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
21708         Include dosname.h, for definitions of symbols like ISSLASH
21709         that used to be in config.h.
21710         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
21711         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
21712         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
21713         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
21714         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
21715         * modules/rmdir (Files): Likewise.
21716         * modules/stat (Files): Likewise.
21717         * modules/unlink (Files): Likewise.
21718         * modules/dirname-lgpl (Depends-on): Add dosname.
21719         * modules/lstat (Depends-on): Likewise.
21720         * modules/openat (Depends-on): Likewise.
21721         * modules/rmdir (Depends-on): Likewise.
21722         * modules/savewd (Depends-on): Likewise.
21723         * modules/stat (Depends-on): Likewise.
21724         * modules/unlink (Depends-on): Likewise.
21725         * modules/openat (Depends-on): Remove dirname-lgpl.
21726         * modules/savewd (Depends-on): Likewise.
21727         * tests/test-dirname.c: Do not use removed symbols like
21728         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
21729         the remaining symbols, e.g., ISSLASH ('\\').
21730
21731 2011-02-25  Eric Blake  <eblake@redhat.com>
21732
21733         strstr: revert patches that introduced bug and pessimization
21734         * lib/str-two-way.h: Add another reference.
21735         (two_way_short_needle, two_way_long_needle): Revert changes from
21736         2011-02-24; they pessimize search speed.
21737         (critical_factorization): Partially revert changes from
21738         2010-06-22; they violate the requirement that the left half of the
21739         needle be smaller than the period of the needle.
21740
21741 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
21742
21743         filenamecat: remove unnecessary dependency on dirname-lgpl
21744         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
21745         is no direct dependency, just an indirect one via filenamecat-lgpl.
21746
21747         remove: remove unnecessary use of m4/dos.m4
21748         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
21749         * modules/remove (FILES): Remove m4/dos.m4.
21750
21751         * lib/openat-proc.c: Don't include dirname.h; not needed.
21752
21753         backupfile: remove unnecessary use of m4/dos.m4
21754         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
21755         of its symbols are used by the backupfile code.  backupfile.c does
21756         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
21757         for the rare case of programs that want all their backup file
21758         names to live within 8+3 limits, and dos.m4 doesn't address that.
21759         * modules/backupfile (Files): Remove m4/dos.m4.
21760
21761 2011-02-24  Jim Meyering  <meyering@redhat.com>
21762
21763         strstr: fix a bug whereby strstr would mistakenly return NULL
21764         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
21765         in period calculation.
21766         (two_way_long_needle): Likewise.
21767         The original problem was reported by Mike Stump in
21768         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
21769         Ralf Wildenhues provided the short needle and haystack.
21770         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
21771         Add a more involved test to trigger the bug in two_way_long_needle.
21772
21773 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
21774
21775         gnulib-tool: remove use of bold display in help screen
21776         * gnulib-tool (func_usage): Do not use bold display anymore in the
21777         help screen.  That was just meant to be a temporary emphasis for a
21778         backward-incompatible change.
21779
21780 2011-02-23  Bruno Haible  <bruno@clisp.org>
21781
21782         Fix misindentation of preprocessor directives.
21783         * lib/argp-namefrob.h: Reindent preprocessor directives.
21784         * lib/getopt_int.h (struct _getopt_data): Likewise.
21785         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
21786         * lib/vasnprintf.c (decode_long_double): Likewise.
21787         * tests/test-argmatch.c: Insert blank lines, for clarity.
21788         * tests/test-exclude.c: Likewise.
21789
21790 2011-02-22  Bruno Haible  <bruno@clisp.org>
21791
21792         ioctl: Fix for MacOS X in 64-bit mode.
21793         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
21794         value.
21795         Suggested by Eric Blake.
21796         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
21797
21798 2011-02-22  Jim Meyering  <meyering@redhat.com>
21799
21800         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
21801         * Makefile (sc_cpp_indent_check): Don't limit the check to files
21802         in lib/.
21803
21804 2011-02-22  Eric Blake  <eblake@redhat.com>
21805
21806         maint: avoid any CDPATH issue
21807         * Makefile (sc_cpp_indent_check): Anchor cd argument.
21808
21809         maint: adjust cpp indentation for my modules, as well
21810         * Makefile (sc_cpp_indent_check): Add my name.
21811         * lib/fbufmode.c: Filter through cppi.
21812         * lib/fpurge.c: Likewise.
21813         * lib/freadable.c: Likewise.
21814         * lib/freading.c: Likewise.
21815         * lib/fwritable.c: Likewise.
21816         * lib/fwriting.c: Likewise.
21817         * lib/sigaction.c: Likewise.
21818
21819 2011-02-22  Jim Meyering  <meyering@redhat.com>
21820
21821         maint: adjust cpp indentation to reflect nesting depth
21822         I.e., in a block of code that begins with an unnested "#if",
21823         put one space between the "#" in column 1 and following token.
21824         For example,
21825         -#include <sys/vfs.h>
21826         +# include <sys/vfs.h>
21827         Do this only in .c files that are part of a module I maintain.
21828         * lib/linkat.c: Filter through cppi.
21829         * lib/nanosleep.c: Likewise.
21830         * lib/openat.c: Likewise.
21831         * lib/openat-die.c: Likewise.
21832         * lib/dup3.c: Likewise.
21833         * lib/fchownat.c: Likewise.
21834         * lib/flock.c: Likewise.
21835         * lib/fsync.c: Likewise.
21836         * lib/fts.c: Likewise.
21837         * lib/getpass.c: Likewise.
21838         * lib/gettimeofday.c: Likewise.
21839         * lib/userspec.c: Likewise.
21840         * Makefile (sc_cpp_indent_check): New rule, to check this.
21841
21842 2011-02-22  Bruno Haible  <bruno@clisp.org>
21843
21844         New module 'wctomb'.
21845         * lib/stdlib.in.h (wctomb): New declaration.
21846         * lib/wctomb.c: New file.
21847         * lib/wctomb-impl.h: New file.
21848         * m4/wctomb.m4: New file.
21849         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
21850         REPLACE_WCTOMB.
21851         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
21852         REPLACE_WCTOMB.
21853         * modules/wctomb: New file.
21854         * tests/test-stdlib-c++.cc: Test signature of wctomb.
21855         * doc/posix-functions/wctomb.texi: Mention the new module.
21856         * modules/wctob (Depends-on): Add wctomb.
21857
21858 2011-02-22  Bruno Haible  <bruno@clisp.org>
21859
21860         New module 'mbtowc'.
21861         * lib/stdlib.in.h (mbtowc): New declaration.
21862         * lib/mbtowc.c: New file.
21863         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
21864         * m4/mbtowc.m4: New file.
21865         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
21866         REPLACE_MBTOWC.
21867         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
21868         REPLACE_MBTOWC.
21869         * modules/mbtowc: New file.
21870         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
21871         * doc/posix-functions/mbtowc.texi: Mention the new module.
21872         * modules/btowc (Depends-on): Add mbtowc.
21873
21874 2011-02-22  Bruno Haible  <bruno@clisp.org>
21875
21876         wcrtomb: Add more tests for native Windows platforms.
21877         * tests/test-wcrtomb-w32-1.sh: New file.
21878         * tests/test-wcrtomb-w32-2.sh: New file.
21879         * tests/test-wcrtomb-w32-3.sh: New file.
21880         * tests/test-wcrtomb-w32-4.sh: New file.
21881         * tests/test-wcrtomb-w32-5.sh: New file.
21882         * tests/test-wcrtomb-w32.c: New file.
21883         * modules/wcrtomb-tests (Files): Add them.
21884         (Makefile.am): Arrange to run these tests.
21885         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
21886         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
21887
21888 2011-02-20  Bruno Haible  <bruno@clisp.org>
21889
21890         wcrtomb: Enhance test.
21891         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
21892
21893 2011-02-20  Bruno Haible  <bruno@clisp.org>
21894
21895         mbrtowc: Tiny optimization.
21896         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
21897
21898 2011-02-20  Jim Meyering  <meyering@redhat.com>
21899
21900         test-exclude.c: remove unmatched #endif
21901         * tests/test-exclude.c: Remove stray #endif, left over from
21902         the change of a week ago.
21903
21904 2011-02-19  Jim Meyering  <meyering@redhat.com>
21905
21906         git-version-gen: skip "-dirty" check when appropriate
21907         * build-aux/git-version-gen: Don't run any git commands when the
21908         version string comes from .tarball-version.  Prior to this, we
21909         would run git update-index --refresh even from a just-unpacked
21910         tarball directory, and that could affect a .git/ directory in a
21911         parent of the build directory.  Reported by Mike Frysinger.
21912
21913 2011-02-19  Bruno Haible  <bruno@clisp.org>
21914
21915         unictype/property-byname: Reduce the size of the 'data' segment.
21916         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21917
21918 2011-02-19  Bruno Haible  <bruno@clisp.org>
21919
21920         unictype/scripts: Reduce the size of the 'data' segment.
21921         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
21922         '%pic'.
21923         * lib/unictype/scripts_byname.gperf: Regenerated.
21924
21925 2011-02-19  Bruno Haible  <bruno@clisp.org>
21926
21927         stdint: Update documentation.
21928         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
21929
21930 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
21931
21932         stdint: omit redundant check for wchar.h
21933         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
21934         always tests whether wchar.h exists, so remove the now-redundant test.
21935
21936 2011-02-18  Bruno Haible  <bruno@clisp.org>
21937
21938         stdint: Cut dependency to module 'wchar'.
21939         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
21940         include the necessary prerequisites.
21941         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
21942         * modules/stdint (Depends-on): Remove wchar.
21943         (Makefile.am): Substitute HAVE_WCHAR_H.
21944         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
21945
21946 2011-02-18  Eric Blake  <eblake@redhat.com>
21947
21948         longlong: skip, rather than fail, on cross-compilation
21949         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
21950         when cross-compiling; regression from 2011-02-16.
21951
21952 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21953
21954         * NEWS: Mention 2011-02-08 change to stdlib.
21955
21956 2011-02-17  Bruno Haible  <bruno@clisp.org>
21957
21958         getloadavg: Add comments about platforms.
21959         * m4/getloadavg.m4: Add comment.
21960         * lib/getloadavg.c: Likewise.
21961
21962 2011-02-17  Bruno Haible  <bruno@clisp.org>
21963
21964         getloadavg: Fix link error on Solaris 2.6.
21965         * modules/getloadavg (Link): New section.
21966         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
21967         linking test-getloadavg.
21968         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
21969         getloadavg.
21970
21971 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21972
21973         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
21974         It was 'int', but this doesn't match the IRIX 6.5 manual.
21975         Suggested by Bruno Haible in
21976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21977
21978 2011-02-17  Bruno Haible  <bruno@clisp.org>
21979
21980         havelib: Fix comments.
21981         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21982         change.
21983
21984 2011-02-17  Bruno Haible  <bruno@clisp.org>
21985
21986         havelib: Update config.rpath.
21987         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21988
21989 2011-02-17  Bruno Haible  <bruno@clisp.org>
21990
21991         getloadavg test: Add some plausibility checks.
21992         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21993         is improbable.
21994
21995 2011-02-16  Eric Blake  <eblake@redhat.com>
21996
21997         maintainer-makefile: make syntax-check a no-op from tarballs
21998         * top/maint.mk (no-vc-detected): New rule.
21999         (local-checks-available): Use it to avoid hanging if someone tries
22000         'make syntax-check' from a tarball.  Also append to any non-syntax
22001         checks already defined in cfg.mk.
22002
22003 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22004
22005         longlong: tune, particularly for common case of c99
22006
22007         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22008         or running anything if c99, or if unsigned long long int does not
22009         work.  In either case, we know the answer without further tests.
22010         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22011         it at most once, and use its results for both long long int and
22012         unsigned long long int.  This is more likely to be efficient in
22013         the common case where the program wants to check for both long
22014         long int and unsigned long long int.
22015         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22016         since the answer is already known.
22017
22018 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22019
22020         getloadavg: set errno
22021         * lib/getloadavg.c: Set errno when returning -1.  If no other
22022         error number looks appropriate, set it to ENOSYS if the getloadavg
22023         looks like it can't possibly ever work, ENOTSUP otherwise.
22024         Suggested by Bruno Haible in
22025         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22026
22027         getloadavg: trim unused parts and speed up 'configure'
22028         * NEWS: Document this.
22029         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22030         always compiled if getloadavg is absent.
22031         Move test code to ...
22032         * tests/test-getloadavg.c: New file, containing previous
22033         contents of test from lib/getloadavg.c.  It also contains
22034         suggestions by Bruno Haible in
22035         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22036         * modules/getloadavg-tests: New file.
22037         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22038         Do tests in the same order as they're needed for getloadavg.c.
22039         Omit setgid-related tests that generate symbols KMEM_GROUP,
22040         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22041         Do only the tests that are needed to see whether the system has
22042         getloadavg, moving the other tests into ...
22043         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22044         NLIST_NAME_UNION; nobody should be using it.  Do not define
22045         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22046         relevant, as the user of this module shouldn't care how getloadavg
22047         is implemented.
22048
22049         getloadavg: omit unused var
22050         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22051
22052 2011-02-15  Jim Meyering  <meyering@redhat.com>
22053
22054         doc: update users.txt
22055         * users.txt: Update iwhd's URL.
22056
22057 2011-02-13  Bruno Haible  <bruno@clisp.org>
22058
22059         Consistent macro naming for macros that use GCC __attribute__.
22060         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22061         _ATTRIBUTE_NONNULL_.
22062         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22063         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22064         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22065         ATTRIBUTE_DEPRECATED.
22066         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22067         ATTRIBUTE_NORETURN.
22068         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22069         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22070         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22071         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22072         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22073         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22074         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22075         ATTRIBUTE_SENTINEL.
22076         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22077         ATTRIBUTE_RETURN_CHECK.
22078         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22079         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22080         ATTRIBUTE_NORETURN.
22081         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22082         Reported by Paul Eggert.
22083
22084 2011-02-13  Bruno Haible  <bruno@clisp.org>
22085
22086         Don't interfere with a program's definition of __attribute__.
22087         * lib/argp.h (__attribute__): Remove definition.
22088         (_GL_ATTRIBUTE_FORMAT): New macro.
22089         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22090         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22091         (_GL_ATTRIBUTE_FORMAT): New macro.
22092         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22093         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22094         GCC 3 or newer.
22095         * lib/error.h (__attribute__): Remove definition.
22096         (_GL_ATTRIBUTE_FORMAT): New macro.
22097         (error, error_at_line): Use it.
22098         * lib/hash.h (__attribute__): Remove definition.
22099         (ATTRIBUTE_WUR): Update definition. Define always.
22100         * lib/openat.h (__attribute__): Remove definition.
22101         (ATTRIBUTE_NORETURN): Update definition. Define always.
22102         * lib/sigpipe-die.h (__attribute__): Remove definition.
22103         (ATTRIBUTE_NORETURN): Update definition. Define always.
22104         * lib/vasnprintf.h (__attribute__): Remove definition.
22105         (_GL_ATTRIBUTE_FORMAT): New macro.
22106         (asnprintf, vasnprintf): Use it.
22107         * lib/xalloc.h (__attribute__): Remove definition.
22108         (ATTRIBUTE_NORETURN): Update definition. Define always.
22109         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22110         * lib/xmemdup0.h (__attribute__): Remove definition.
22111         (ATTRIBUTE_NORETURN): Update definition. Define always.
22112         * lib/xprintf.h (__attribute__): Remove definition.
22113         (_GL_ATTRIBUTE_FORMAT): New macro.
22114         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22115         * lib/xstrtol.h (__attribute__): Remove definition.
22116         (ATTRIBUTE_NORETURN): Update definition. Define always.
22117         * lib/xvasprintf.h (__attribute__): Remove definition.
22118         (_GL_ATTRIBUTE_FORMAT): New macro.
22119         (xasprintf, xvasprintf): Use it.
22120         * tests/test-argmatch.c (__attribute__): Remove definition.
22121         (ATTRIBUTE_NORETURN): Update definition. Define always.
22122         * tests/test-exclude.c (__attribute__): Remove definition.
22123         (ATTRIBUTE_NORETURN): Update definition. Define always.
22124         Reported by Paul Eggert.
22125
22126 2011-02-13  Bruno Haible  <bruno@clisp.org>
22127
22128         mbrtowc: Add more tests for native Windows platforms.
22129         * tests/test-mbrtowc-w32-1.sh: New file.
22130         * tests/test-mbrtowc-w32-2.sh: New file.
22131         * tests/test-mbrtowc-w32-3.sh: New file.
22132         * tests/test-mbrtowc-w32-4.sh: New file.
22133         * tests/test-mbrtowc-w32-5.sh: New file.
22134         * tests/test-mbrtowc-w32.c: New file.
22135         * modules/mbrtowc-tests (Files): Add them.
22136         (Makefile.am): Arrange to run these tests.
22137         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22138         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22139
22140 2011-02-13  Bruno Haible  <bruno@clisp.org>
22141
22142         mbrtowc: Work around native Windows bug.
22143         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22144         guess when no suitable locale for testing was found.
22145         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22146
22147 2011-02-13  Bruno Haible  <bruno@clisp.org>
22148
22149         mbsinit: Work around mingw bug.
22150         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22151         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22152         Windows.
22153         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22154
22155 2011-02-13  Bruno Haible  <bruno@clisp.org>
22156
22157         mbsinit: Don't crash for a NULL argument.
22158         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22159         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22160
22161 2011-02-13  Bruno Haible  <bruno@clisp.org>
22162
22163         Don't interfere with a program's definition of __attribute__.
22164         * lib/stdio.in.h (__attribute__): Remove definition.
22165         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22166         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22167         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22168         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22169         * lib/string.in.h (__attribute__): Remove definition.
22170         Reported by Paul Eggert.
22171
22172 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22173
22174         stdlib: don't get in the way of non-GCC __attribute__
22175         See thread starting at
22176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22177         Revert previous stdlib change, installing the following instead:
22178         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22179         to get in the way of a non-GCC compiler that supports __attribute__.
22180         (_GL_ATTRIBUTE_RETURN): New macro.
22181         (_Exit): Use it instead of __attribute__.
22182
22183 2011-02-12  Bruno Haible  <bruno@clisp.org>
22184
22185         quotearg test: Avoid test failure on mingw.
22186         * tests/test-quotearg.sh: Convert the locale identifier from native
22187         Windows syntax to Unix syntax.
22188
22189 2011-02-12  Bruno Haible  <bruno@clisp.org>
22190
22191         setlocale: Prefer gnulib's override over libintl's override.
22192         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22193         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22194         GNULIB_defined_setlocale is set.
22195
22196 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22197
22198         stdlib: support non-GCC __attribute__
22199
22200         Fix a serious and tricky problem encountered when attempting to
22201         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22202         5.5, but it crashed due to memory corruption on Solaris 10 with
22203         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22204         bits that are otherwise zero.  This tagging is optional inside
22205         Emacs but is preferred and is used when __attribute__ ((__aligned
22206         (8))) works, as it does with both recent-enough GCC and with Sun C
22207         5.11.  However, Sun C 5.11 is not GCC and does not #define
22208         __GNUC__ and __GNUC_MINOR__.
22209
22210         When I added the getloadavg module to Emacs, it brought in
22211         stdlib.in.h, which contained this fragment:
22212
22213            #ifndef __attribute__
22214            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22215            #  define __attribute__(Spec)   /* empty */
22216            # endif
22217            #endif
22218
22219         When files that include <stdlib.h> were compiled with Sun C 5.11,
22220         the above code disabled __attribute__ ((__aligned (8))), which
22221         caused variables to not be properly aligned, which eventually led
22222         to the pointer corruption mentioned above.  (This was a bit hard
22223         to diagnose, unfortunately.)
22224
22225         Several "#define __attribute__(X) /* empty */" code snippets need
22226         to be eradicated from Gnulib to work with non-GCC compilers that
22227         support __attribute__.  The Autoconf way to do this is to test for
22228         each kind of attribute that we want support for, and selectively
22229         enable that in source code.
22230
22231         Fix this problem just for stdlib.h, by adding a test for the
22232         __noreturn__ attribute, and change stdlib.in.h to use that test
22233         when needed.  This technique can be easily generalized to the
22234         other *.in.h files and attributes, and a similar technique can be
22235         used for *.h and *.c files.  This patch is enough to solve the
22236         problem for Emacs + getloadavg, and I thought I'd publish it for
22237         feedback before undertaking further, similar fixes in other
22238         modules.
22239
22240         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22241         because it's not needed for stdlib.h.  It merely substitutes the
22242         value directly into stdlib.h.  We may well need to #define it, or
22243         similar symbols, for other modules, but it's nice to also have an
22244         option to not #define it for applications like Emacs that do not
22245         need it.
22246
22247         * lib/stdlib.in.h (__attribute__): Do not #define.
22248         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22249         be defined only if the _Exit module is also used.
22250         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22252         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22253         platforms.
22254         * modules/_Exit (Files): Add m4/attribute.m4.
22255         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22256         * m4/attribute.m4: New file.
22257
22258 2011-02-12  Bruno Haible  <bruno@clisp.org>
22259
22260         wcsrtombs: Work around bug on native Windows.
22261         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22262         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22263         instead of len.
22264         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22265
22266 2011-02-12  Bruno Haible  <bruno@clisp.org>
22267
22268         mbsrtowcs: Work around bug on native Windows.
22269         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22270         against mingw bug.
22271         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22272
22273 2011-02-12  Bruno Haible  <bruno@clisp.org>
22274
22275         Avoid setlocale bugs in tests.
22276         * modules/btowc (Dependencies): Add setlocale.
22277         * modules/c-strcase (Dependencies): Likewise.
22278         * modules/mbmemcasecmp (Dependencies): Likewise.
22279         * modules/mbmemcasecoll (Dependencies): Likewise.
22280         * modules/mbrtowc (Dependencies): Likewise.
22281         * modules/mbscasecmp (Dependencies): Likewise.
22282         * modules/mbscasestr (Dependencies): Likewise.
22283         * modules/mbschr (Dependencies): Likewise.
22284         * modules/mbscspn (Dependencies): Likewise.
22285         * modules/mbsinit (Dependencies): Likewise.
22286         * modules/mbsncasecmp (Dependencies): Likewise.
22287         * modules/mbsnrtowcs (Dependencies): Likewise.
22288         * modules/mbspbrk (Dependencies): Likewise.
22289         * modules/mbspcasecmp (Dependencies): Likewise.
22290         * modules/mbsrchr (Dependencies): Likewise.
22291         * modules/mbsrtowcs (Dependencies): Likewise.
22292         * modules/mbsspn (Dependencies): Likewise.
22293         * modules/mbsstr (Dependencies): Likewise.
22294         * modules/nl_langinfo (Dependencies): Likewise.
22295         * modules/quotearg (Dependencies): Likewise.
22296         * modules/unicase/locale-language (Dependencies): Likewise.
22297         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22298         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22299         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22300         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22301         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22302         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22303         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22304         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22305         * modules/vasnprintf-posix (Dependencies): Likewise.
22306         * modules/wcrtomb (Dependencies): Likewise.
22307         * modules/wcsnrtombs (Dependencies): Likewise.
22308         * modules/wcsrtombs (Dependencies): Likewise.
22309
22310 2011-02-12  Bruno Haible  <bruno@clisp.org>
22311
22312         setlocale: Workaround native Windows bug.
22313         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22314         succeeds but sets LC_CTYPE to "C", report a failure.
22315         * tests/test-setlocale2.sh: New file.
22316         * tests/test-setlocale2.c: New file.
22317         * modules/setlocale-tests (Files): Add the new files.
22318         (Makefile.am): Enable test-setlocale2.sh test.
22319         * doc/posix-functions/setlocale.texi: Mention workaround.
22320
22321 2011-02-11  Bruno Haible  <bruno@clisp.org>
22322
22323         Tests for module 'setlocale'.
22324         * modules/setlocale-tests: New file.
22325         * tests/test-setlocale1.sh: New file.
22326         * tests/test-setlocale1.c: New file.
22327
22328         New module 'setlocale'.
22329         * lib/locale.in.h (setlocale): New declaration.
22330         * lib/setlocale.c: New file, based on
22331         gettext/gettext-runtime/intl/setlocale.c.
22332         * m4/setlocale.m4: New file.
22333         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22334         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22335         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22336         REPLACE_SETLOCALE.
22337         * modules/setlocale: New file.
22338         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22339         * doc/posix-functions/setlocale.texi: Mention the new module.
22340
22341 2011-02-11  Bruno Haible  <bruno@clisp.org>
22342
22343         Prepare for locale dependent tests on mingw.
22344         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22345         because it has the wrong locale encoding.
22346         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22347         French_France.1252 instead of "fr".
22348         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22349         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22350         because it has the wrong locale encoding.
22351         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22352         native Windows, try Turkish_Turkey.65001.
22353         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22354         Chinese_China.54936.
22355
22356         Prepare for locale dependent tests on mingw.
22357         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22358         differently.
22359         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22360         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22361         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22362         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22363
22364 2011-02-11  Eric Blake  <eblake@redhat.com>
22365
22366         strptime: avoid compiler warnings
22367         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22368         compiler warnings about dead code.
22369         Reported by Daniel P. Berrange.
22370
22371 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22372
22373         doc: update users.txt
22374         * users.txt: Add rcs.
22375
22376 2011-02-10  John W. Eaton  <jwe@gnu.org>
22377
22378         doc: update users.txt
22379         * users.txt: Add octave.
22380
22381 2011-02-10  Jim Meyering  <meyering@redhat.com>
22382
22383         doc: update users.txt
22384         * users.txt: Add iwhd.
22385
22386 2011-02-09  Bruno Haible  <bruno@clisp.org>
22387
22388         gnulib-tool: Make copyright notice adjustment more robust.
22389         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22390         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22391         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22392         License".
22393         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22394
22395 2011-02-06  Bruno Haible  <bruno@clisp.org>
22396
22397         New module 'towctrans'.
22398         * modules/towctrans: New file.
22399         * lib/wctype.in.h (towctrans): New declaration.
22400         * lib/towctrans.c: New file.
22401         * lib/towctrans-impl.h: New file.
22402         * m4/towctrans.m4: New file.
22403         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22404         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22405         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22406         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22407         * doc/posix-functions/towctrans.texi: Mention the new module.
22408
22409 2011-02-06  Bruno Haible  <bruno@clisp.org>
22410
22411         New module 'wctrans'.
22412         * modules/wctrans: New file.
22413         * lib/wctype.in.h (wctrans): New declaration.
22414         * lib/wctrans.c: New file.
22415         * lib/wctrans-impl.h: New file.
22416         * m4/wctrans.m4: New file.
22417         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22418         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22419         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22420         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22421         * doc/posix-functions/wctrans.texi: Mention the new module.
22422
22423 2011-02-06  Bruno Haible  <bruno@clisp.org>
22424
22425         New module 'iswctype'.
22426         * modules/iswctype: New file.
22427         * lib/wctype.in.h (iswctype): New declaration.
22428         * lib/iswctype.c: New file.
22429         * lib/iswctype-impl.h: New file.
22430         * m4/iswctype.m4: New file.
22431         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22432         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22433         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22434         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22435         * doc/posix-functions/iswctype.texi: Mention the new module and the
22436         HP-UX 11.00 problem.
22437
22438 2011-02-06  Bruno Haible  <bruno@clisp.org>
22439
22440         New module 'wctype'.
22441         * modules/wctype: Change to represent the wctype() substitute.
22442         * lib/wctype.in.h (wctype): New declaration.
22443         * lib/wctype.c: New file.
22444         * lib/wctype-impl.h: New file.
22445         * m4/wctype.m4: New file.
22446         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22447         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22448         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22449         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22450         * doc/posix-functions/wctype.texi: Mention the new module and the
22451         HP-UX 11.00 problem.
22452
22453 2011-02-06  Bruno Haible  <bruno@clisp.org>
22454
22455         wctype-h: Ensure wctype_t and wctrans_t are defined.
22456         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22457         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22458         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22459         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22460         HAVE_WCTRANS_T.
22461         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22462
22463 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22464
22465         flock: fix license typo
22466
22467         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22468         omitted.
22469
22470 2011-02-08  Bruno Haible  <bruno@clisp.org>
22471
22472         Split large sed scripts, for HP-UX sed.
22473         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22474         to avoid HP-UX limit of 99 commands, in the near future.
22475         * modules/stdlib (Makefile.am): Likewise.
22476         * modules/unistd (Makefile.am): Likewise.
22477         * modules/wchar (Makefile.am): Likewise.
22478         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22479         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22480         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22481
22482 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22483             Bruno Haible  <bruno@clisp.org>
22484
22485         stdlib: improve random_r modularization
22486         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22487         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22488         you also need the random_r module to get this material right.
22489         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22490         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22491         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22492
22493 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22494
22495         stdlib: don't depend on stdint
22496         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22497         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22498         be independent of whether stdint.h is needed.
22499         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22500         here, instead of ...
22501         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22502         struct random_data should be using the random_r module, not just
22503         the stdlib module (which wouldn't make sense: what package needs
22504         just struct random_data without also needing random_r?).
22505         * modules/stdlib (Depends-on): Remove stdint.
22506
22507         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
22508         See the thread rooted at
22509         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
22510         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
22511         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
22512         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
22513         __VMS)); previously it was always included (via fcntl--.h).
22514         (getloadavg): Do not use c_strtod.  Instead, approximate it by
22515         hand; this is good enough for load averages.  Also, do not use
22516         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
22517         flags directly if available and don't bother otherwise.  (Packages
22518         that need the extra reliability should use the modules that define
22519         these flags on older platforms that lack them.)
22520         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
22521         fcntl-safer.
22522
22523 2011-02-08  Jim Meyering  <meyering@redhat.com>
22524
22525         di-set.h, ino-map.h: add multiple-inclusion guard
22526         Technically, the guard is required only for ino-map.h, due to its
22527         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
22528         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
22529         * lib/ino-map.h: Likewise.
22530
22531 2011-02-06  Bruno Haible  <bruno@clisp.org>
22532
22533         iswblank: Ensure declaration on glibc systems.
22534         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
22535         * modules/iswblank (Dependencies): Add 'extensions'.
22536         * doc/posix-functions/iswblank.texi: Document the glibc problem.
22537
22538 2011-02-06  Bruno Haible  <bruno@clisp.org>
22539
22540         New module 'iswblank'.
22541         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
22542         * modules/iswblank: New file.
22543         * modules/wctype-h (Files): Remove lib/iswblank.c.
22544         (Makefile.am): Substitute GNULIB_ISWBLANK.
22545         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
22546         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
22547         (gl_WCTYPE_H_DEFAULTS): New macro.
22548         (gl_WCTYPE_H): Require it. Remove iswblank related code.
22549         * modules/iswblank-tests: New file.
22550         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
22551         * tests/test-wctype-h.c (main): Remove iswblank tests.
22552         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
22553         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
22554         of 'wctype-h'.
22555         * NEWS: Mention the change.
22556         * modules/mbchar (Depends-on): Add iswblank.
22557
22558 2011-02-08  Bruno Haible  <bruno@clisp.org>
22559
22560         di-set tests: Refactor.
22561         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
22562         unnecessary includes.
22563         (ASSERT): Remove macro.
22564         (main): Make C90 compliant by avoiding variable declaration after
22565         statement.
22566         * modules/di-set-tests (Files): Add tests/macros.h.
22567
22568 2011-02-08  Bruno Haible  <bruno@clisp.org>
22569
22570         ino-map tests: Refactor.
22571         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
22572         unnecessary includes.
22573         (ASSERT): Remove macro.
22574         (main): Make C90 compliant by avoiding variable declaration after
22575         statement.
22576         * modules/ino-map-tests (Files): Add tests/macros.h.
22577
22578 2011-02-08  Jim Meyering  <meyering@redhat.com>
22579
22580         di-set: add "const" to a cast
22581         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
22582         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
22583
22584 2011-02-06  Bruno Haible  <bruno@clisp.org>
22585
22586         Rename module 'wctype' to 'wctype-h'.
22587         * modules/wctype-h: Renamed from modules/wctype.
22588         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
22589         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
22590         (Files, Depends-on, Makefile.am): Update.
22591         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
22592         (Files, Makefile.am): Update.
22593         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
22594         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
22595         * doc/posix-headers/wctype.texi: Update.
22596         * doc/posix-functions/iswalnum.texi: Update.
22597         * doc/posix-functions/iswalpha.texi: Update.
22598         * doc/posix-functions/iswblank.texi: Update.
22599         * doc/posix-functions/iswcntrl.texi: Update.
22600         * doc/posix-functions/iswdigit.texi: Update.
22601         * doc/posix-functions/iswgraph.texi: Update.
22602         * doc/posix-functions/iswlower.texi: Update.
22603         * doc/posix-functions/iswprint.texi: Update.
22604         * doc/posix-functions/iswpunct.texi: Update.
22605         * doc/posix-functions/iswspace.texi: Update.
22606         * doc/posix-functions/iswupper.texi: Update.
22607         * doc/posix-functions/iswxdigit.texi: Update.
22608         * doc/posix-functions/towlower.texi: Update.
22609         * doc/posix-functions/towupper.texi: Update.
22610         * NEWS: Mention the change.
22611         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
22612         * modules/mbchar (Dependencies): Likewise.
22613         * modules/mbswidth (Dependencies): Likewise.
22614         * modules/quotearg (Dependencies): Likewise.
22615         * modules/regex (Dependencies): Likewise.
22616         * modules/wcscasecmp (Dependencies): Likewise.
22617         * modules/wcsncasecmp (Dependencies): Likewise.
22618         * modules/wcwidth (Dependencies): Likewise.
22619
22620 2011-02-06  Bruno Haible  <bruno@clisp.org>
22621
22622         New module 'wcswidth'.
22623         * modules/wcswidth: New file.
22624         * lib/wchar.in.h (wcswidth): New declaration.
22625         * lib/wcswidth.c: New file.
22626         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
22627         * m4/wcswidth.m4: New file.
22628         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
22629         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
22630         REPLACE_WCSWIDTH.
22631         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
22632         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
22633         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
22634         * doc/posix-functions/wcswidth.texi: Mention the new module.
22635
22636 2011-02-06  Bruno Haible  <bruno@clisp.org>
22637
22638         New module 'wcstok'.
22639         * modules/wcstok: New file.
22640         * lib/wchar.in.h (wcstok): New declaration.
22641         * lib/wcstok.c: New file.
22642         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
22643         * m4/wcstok.m4: New file.
22644         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
22645         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
22646         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
22647         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
22648         * doc/posix-functions/wcstok.texi: Mention the new module.
22649
22650 2011-02-06  Bruno Haible  <bruno@clisp.org>
22651
22652         New module 'wcsstr'.
22653         * modules/wcsstr: New file.
22654         * lib/wchar.in.h (wcsstr): New declaration.
22655         * lib/wcsstr.c: New file.
22656         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
22657         * m4/wcsstr.m4: New file.
22658         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
22659         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
22660         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
22661         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
22662         * doc/posix-functions/wcsstr.texi: Mention the new module.
22663
22664 2011-02-06  Bruno Haible  <bruno@clisp.org>
22665
22666         New module 'wcspbrk'.
22667         * modules/wcspbrk: New file.
22668         * lib/wchar.in.h (wcspbrk): New declaration.
22669         * lib/wcspbrk.c: New file.
22670         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
22671         * m4/wcspbrk.m4: New file.
22672         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
22673         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
22674         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
22675         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
22676         * doc/posix-functions/wcspbrk.texi: Mention the new module.
22677
22678 2011-02-06  Bruno Haible  <bruno@clisp.org>
22679
22680         New module 'wcsspn'.
22681         * modules/wcsspn: New file.
22682         * lib/wchar.in.h (wcsspn): New declaration.
22683         * lib/wcsspn.c: New file.
22684         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
22685         * m4/wcsspn.m4: New file.
22686         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
22687         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
22688         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
22689         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
22690         * doc/posix-functions/wcsspn.texi: Mention the new module.
22691
22692 2011-02-06  Bruno Haible  <bruno@clisp.org>
22693
22694         New module 'wcscspn'.
22695         * modules/wcscspn: New file.
22696         * lib/wchar.in.h (wcscspn): New declaration.
22697         * lib/wcscspn.c: New file.
22698         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
22699         * m4/wcscspn.m4: New file.
22700         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
22701         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
22702         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
22703         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
22704         * doc/posix-functions/wcscspn.texi: Mention the new module.
22705
22706 2011-02-06  Bruno Haible  <bruno@clisp.org>
22707
22708         New module 'wcsrchr'.
22709         * modules/wcsrchr: New file.
22710         * lib/wchar.in.h (wcsrchr): New declaration.
22711         * lib/wcsrchr.c: New file.
22712         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
22713         * m4/wcsrchr.m4: New file.
22714         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
22715         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
22716         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
22717         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
22718         * doc/posix-functions/wcsrchr.texi: Mention the new module.
22719
22720 2011-02-06  Bruno Haible  <bruno@clisp.org>
22721
22722         New module 'wcschr'.
22723         * modules/wcschr: New file.
22724         * lib/wchar.in.h (wcschr): New declaration.
22725         * lib/wcschr.c: New file.
22726         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
22727         * m4/wcschr.m4: New file.
22728         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
22729         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
22730         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
22731         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
22732         * doc/posix-functions/wcschr.texi: Mention the new module.
22733
22734 2011-02-06  Bruno Haible  <bruno@clisp.org>
22735
22736         New module 'wcsdup'.
22737         * modules/wcsdup: New file.
22738         * lib/wchar.in.h (wcsdup): New declaration.
22739         * lib/wcsdup.c: New file.
22740         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
22741         * m4/wcsdup.m4: New file.
22742         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
22743         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
22744         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
22745         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
22746         * doc/posix-functions/wcsdup.texi: Mention the new module.
22747
22748 2011-02-06  Bruno Haible  <bruno@clisp.org>
22749
22750         New module 'wcsxfrm'.
22751         * modules/wcsxfrm: New file.
22752         * lib/wchar.in.h (wcsxfrm): New declaration.
22753         * lib/wcsxfrm.c: New file.
22754         * lib/wcsxfrm-impl.h: New file.
22755         * m4/wcsxfrm.m4: New file.
22756         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
22757         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
22758         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
22759         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
22760         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
22761
22762 2011-02-06  Bruno Haible  <bruno@clisp.org>
22763
22764         New module 'wcscoll'.
22765         * modules/wcscoll: New file.
22766         * lib/wchar.in.h (wcscoll): New declaration.
22767         * lib/wcscoll.c: New file.
22768         * lib/wcscoll-impl.h: New file.
22769         * m4/wcscoll.m4: New file.
22770         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
22771         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
22772         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
22773         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
22774         * doc/posix-functions/wcscoll.texi: Mention the new module.
22775
22776 2011-02-06  Bruno Haible  <bruno@clisp.org>
22777
22778         New module 'wcsncasecmp'.
22779         * modules/wcsncasecmp: New file.
22780         * lib/wchar.in.h (wcsncasecmp): New declaration.
22781         * lib/wcsncasecmp.c: New file.
22782         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
22783         * m4/wcsncasecmp.m4: New file.
22784         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
22785         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
22786         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
22787         HAVE_WCSNCASECMP.
22788         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
22789         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
22790
22791 2011-02-06  Bruno Haible  <bruno@clisp.org>
22792
22793         New module 'wcscasecmp'.
22794         * modules/wcscasecmp: New file.
22795         * lib/wchar.in.h (wcscasecmp): New declaration.
22796         * lib/wcscasecmp.c: New file.
22797         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
22798         * m4/wcscasecmp.m4: New file.
22799         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
22800         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
22801         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
22802         HAVE_WCSCASECMP.
22803         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
22804         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
22805
22806 2011-02-05  Bruno Haible  <bruno@clisp.org>
22807
22808         New module 'wcsncmp'.
22809         * modules/wcsncmp: New file.
22810         * lib/wchar.in.h (wcsncmp): New declaration.
22811         * lib/wcsncmp.c: New file.
22812         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
22813         * m4/wcsncmp.m4: New file.
22814         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
22815         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
22816         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
22817         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
22818         * doc/posix-functions/wcsncmp.texi: Mention the new module.
22819
22820 2011-02-05  Bruno Haible  <bruno@clisp.org>
22821
22822         New module 'wcscmp'.
22823         * modules/wcscmp: New file.
22824         * lib/wchar.in.h (wcscmp): New declaration.
22825         * lib/wcscmp.c: New file.
22826         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
22827         * m4/wcscmp.m4: New file.
22828         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
22829         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
22830         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
22831         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
22832         * doc/posix-functions/wcscmp.texi: Mention the new module.
22833
22834 2011-02-05  Bruno Haible  <bruno@clisp.org>
22835
22836         New module 'wcsncat'.
22837         * modules/wcsncat: New file.
22838         * lib/wchar.in.h (wcsncat): New declaration.
22839         * lib/wcsncat.c: New file.
22840         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
22841         * m4/wcsncat.m4: New file.
22842         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
22843         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
22844         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
22845         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
22846         * doc/posix-functions/wcsncat.texi: Mention the new module.
22847
22848 2011-02-05  Bruno Haible  <bruno@clisp.org>
22849
22850         New module 'wcscat'.
22851         * modules/wcscat: New file.
22852         * lib/wchar.in.h (wcscat): New declaration.
22853         * lib/wcscat.c: New file.
22854         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
22855         * m4/wcscat.m4: New file.
22856         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
22857         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
22858         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
22859         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
22860         * doc/posix-functions/wcscat.texi: Mention the new module.
22861
22862 2011-02-05  Bruno Haible  <bruno@clisp.org>
22863
22864         New module 'wcpncpy'.
22865         * modules/wcpncpy: New file.
22866         * lib/wchar.in.h (wcpncpy): New declaration.
22867         * lib/wcpncpy.c: New file.
22868         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
22869         * m4/wcpncpy.m4: New file.
22870         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
22871         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
22872         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
22873         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
22874         * doc/posix-functions/wcpncpy.texi: Mention the new module.
22875
22876 2011-02-05  Bruno Haible  <bruno@clisp.org>
22877
22878         New module 'wcsncpy'.
22879         * modules/wcsncpy: New file.
22880         * lib/wchar.in.h (wcsncpy): New declaration.
22881         * lib/wcsncpy.c: New file.
22882         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
22883         * m4/wcsncpy.m4: New file.
22884         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
22885         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
22886         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
22887         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
22888         * doc/posix-functions/wcsncpy.texi: Mention the new module.
22889
22890 2011-02-05  Bruno Haible  <bruno@clisp.org>
22891
22892         New module 'wcpcpy'.
22893         * modules/wcpcpy: New file.
22894         * lib/wchar.in.h (wcpcpy): New declaration.
22895         * lib/wcpcpy.c: New file.
22896         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
22897         * m4/wcpcpy.m4: New file.
22898         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22899         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22900         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22901         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22902         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22903
22904 2011-02-05  Bruno Haible  <bruno@clisp.org>
22905
22906         New module 'wcscpy'.
22907         * modules/wcscpy: New file.
22908         * lib/wchar.in.h (wcscpy): New declaration.
22909         * lib/wcscpy.c: New file.
22910         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22911         * m4/wcscpy.m4: New file.
22912         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22913         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22914         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22915         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22916         * doc/posix-functions/wcscpy.texi: Mention the new module.
22917
22918 2011-02-05  Bruno Haible  <bruno@clisp.org>
22919
22920         New module 'wcsnlen'.
22921         * modules/wcsnlen: New file.
22922         * lib/wchar.in.h (wcsnlen): New declaration.
22923         * lib/wcsnlen.c: New file.
22924         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
22925         * m4/wcsnlen.m4: New file.
22926         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
22927         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
22928         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
22929         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
22930         * doc/posix-functions/wcsnlen.texi: Mention the new module.
22931
22932 2011-02-05  Bruno Haible  <bruno@clisp.org>
22933
22934         New module 'wcslen'.
22935         * modules/wcslen: New file.
22936         * lib/wchar.in.h (wcslen): New declaration.
22937         * lib/wcslen.c: New file.
22938         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
22939         * m4/wcslen.m4: New file.
22940         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
22941         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
22942         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
22943         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
22944         * doc/posix-functions/wcslen.texi: Mention the new module.
22945
22946 2011-02-05  Bruno Haible  <bruno@clisp.org>
22947
22948         New module 'wmemset'.
22949         * modules/wmemset: New file.
22950         * lib/wchar.in.h (wmemset): New declaration.
22951         * lib/wmemset.c: New file.
22952         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
22953         * m4/wmemset.m4: New file.
22954         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
22955         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
22956         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
22957         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
22958         * doc/posix-functions/wmemset.texi: Mention the new module.
22959
22960 2011-02-05  Bruno Haible  <bruno@clisp.org>
22961
22962         New module 'wmemmove'.
22963         * modules/wmemmove: New file.
22964         * lib/wchar.in.h (wmemmove): New declaration.
22965         * lib/wmemmove.c: New file.
22966         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
22967         * m4/wmemmove.m4: New file.
22968         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
22969         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
22970         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
22971         HAVE_WMEMMOVE.
22972         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
22973         * doc/posix-functions/wmemmove.texi: Mention the new module.
22974
22975 2011-02-05  Bruno Haible  <bruno@clisp.org>
22976
22977         New module 'wmemcpy'.
22978         * modules/wmemcpy: New file.
22979         * lib/wchar.in.h (wmemcpy): New declaration.
22980         * lib/wmemcpy.c: New file.
22981         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22982         * m4/wmemcpy.m4: New file.
22983         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22984         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22985         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22986         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22987         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22988
22989 2011-02-05  Bruno Haible  <bruno@clisp.org>
22990
22991         New module 'wmemcmp'.
22992         * modules/wmemcmp: New file.
22993         * lib/wchar.in.h (wmemcmp): New declaration.
22994         * lib/wmemcmp.c: New file.
22995         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22996         * m4/wmemcmp.m4: New file.
22997         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22998         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22999         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23000         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23001         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23002
23003 2011-02-07  Jim Meyering  <meyering@redhat.com>
23004
23005         di-set, ino-map: new modules, from coreutils
23006         * lib/di-set.c: New file.
23007         * lib/di-set.h: Likewise.
23008         * lib/ino-map.c: Likewise.
23009         * lib/ino-map.h: Likewise.
23010         * modules/di-set: Likewise.
23011         * modules/di-set-tests: Likewise.
23012         * modules/ino-map: Likewise.
23013         * modules/ino-map-tests: Likewise.
23014         * tests/test-di-set.c: Likewise.
23015         * tests/test-ino-map.c: Likewise.
23016
23017 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23018
23019         getloadavg: merge minor changes from Emacs
23020
23021         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23022         (getloadavg): Use memset, not bzero.
23023
23024         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23025         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23026         clash (bug#86).
23027
23028 2010-11-14  Bruno Haible  <bruno@clisp.org>
23029
23030         Allow multiple gnulib generated replacements to coexist.
23031         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23032         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23033         * lib/langinfo.in.h (nl_item): Likewise.
23034         * lib/math.in.h (_NaN, NAN): Likewise.
23035         * lib/netdb.in.h (struct addrinfo): Likewise.
23036         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23037         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23038         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23039         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23040         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23041         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23042         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23043         pthread_mutexattr_init, pthread_mutexattr_settype,
23044         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23045         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23046         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23047         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23048         * lib/sched.in.h (struct sched_param): Likewise.
23049         * lib/se-selinux.in.h (security_class_t, security_context_t,
23050         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23051         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23052         lsetfilecon, fsetfilecon, security_check_context,
23053         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23054         Likewise.
23055         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23056         Likewise.
23057         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23058         _gl_function_taking_int_returning_void_t, union sigval,
23059         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23060         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23061         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23062         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23063         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23064         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23065         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23066         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23067         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23068         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23069         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23070         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23071         socklen_t, rpl_fd_isset): Likewise.
23072         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23073         * lib/sys_time.in.h (struct timeval): Likewise.
23074         * lib/sys_times.in.h (struct tms): Likewise.
23075         * lib/sys_utsname.in.h (struct utsname):
23076         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23077         * lib/unistd.in.h (getpagesize): Likewise.
23078         * lib/wchar.in.h (mbstate_t): Likewise.
23079         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23080         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23081         towlower, towupper): Likewise.
23082         Reported by Sam Steingold <sds@gnu.org>.
23083
23084 2011-02-05  Eric Blake  <eblake@redhat.com>
23085
23086         unsetenv: work around Haiku issues
23087         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23088         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23089
23090 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23091
23092         libposix: avoid calling error() within libposix
23093         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23094         is defined.
23095
23096 2011-02-05  Eric Blake  <eblake@redhat.com>
23097
23098         strerror_r-posix: port to cygwin
23099         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23100         implementation.
23101         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23102         * tests/test-strerror_r.c (main): Fix test.
23103         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23104         issue.
23105
23106 2011-02-05  Bruno Haible  <bruno@clisp.org>
23107
23108         New module 'wmemchr'.
23109         * modules/wmemchr: New file.
23110         * lib/wchar.in.h (wmemchr): New declaration.
23111         * lib/wmemchr.c: New file.
23112         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23113         * m4/wmemchr.m4: New file.
23114         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23115         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23116         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23117         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23118         * doc/posix-functions/wmemchr.texi: Mention the new module.
23119
23120 2011-02-04  Eric Blake  <eblake@redhat.com>
23121
23122         fdopendir: detect FreeBSD bug
23123         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23124         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23125
23126 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23127
23128         stdbool: do not define HAVE_STDBOOL_H
23129         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23130         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23131         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23132         imported from the latest Autoconf git.  It was motivated by Emacs,
23133         which uses gnulib but does not need HAVE_STDBOOL_H.
23134
23135 2011-02-04  Bruno Haible  <bruno@clisp.org>
23136
23137         wcsnrtombs: Prepare for new module wwcsnrtombs.
23138         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23139         * lib/wcsnrtombs.c: Include it.
23140         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23141
23142         wcsrtombs: Prepare for new module wwcsrtombs.
23143         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23144         * lib/wcsrtombs.c: Include it.
23145         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23146
23147         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23148         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23149         * lib/mbsnrtowcs.c: Include it.
23150         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23151
23152         mbsrtowcs: Prepare for new module mbsrtowwcs.
23153         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23154         * lib/mbsrtowcs.c: Include it.
23155         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23156
23157 2011-02-04  Bruno Haible  <bruno@clisp.org>
23158
23159         vasnprintf: Reduce use of malloc for small format strings.
23160         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23161         (arguments): Add room for the first 7 arguments.
23162         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23163         (char_directives, u8_directives, u16_directives, u32_directives): Add
23164         room for the first 7 directives.
23165         * lib/printf-parse.c: Include <string.h>.
23166         (PRINTF_PARSE): Change memory handling code so that it uses the first
23167         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23168         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23169         Reported by Pádraig Brady <P@draigbrady.com>.
23170
23171 2011-01-31  Eric Blake  <eblake@redhat.com>
23172
23173         dup2: work around Haiku bug
23174         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23175         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23176         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23177         * tests/test-dup2.c (main): Enhance test.
23178
23179 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23180
23181         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23182         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23183         declared by eglibc 2.11.2.
23184         * lib/stdio.in.h: Likewise.
23185
23186 2011-01-31  Eric Blake  <eblake@redhat.com>
23187
23188         ignore-value: add missing test dependency
23189         * tests/test-ignore-value.c: Revert previous change; stdio.h
23190         provides off_t.
23191         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23192
23193 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23194
23195         mktime: clarify long_int width checking
23196         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23197         the top level, to make it clearer that the assumption about
23198         long_int width is being checked.  See
23199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23200
23201 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23202
23203         ignore-value: Fix self-test.
23204         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23205
23206 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23207
23208         TYPE_MAXIMUM: avoid theoretically undefined behavior
23209         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23210         negative number, which the C Standard says has undefined behavior.
23211         In practice this is not a problem, but might as well do it by the book.
23212         Reported by Rich Felker and Eric Blake; see
23213         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23214         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23215         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23216         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23217         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23218         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23219         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23220
23221         mktime: #undef mktime before #defining it
23222         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23223
23224         mktime: systematically normalize tm_isdst comparisons
23225         * lib/mktime.c (isdst_differ): New function.
23226         (__mktime_internal): Use it systematically for all isdst comparisons.
23227         This completes the fix for libc BZ #6723, and removes the need for
23228         normalizing tm_isdst.  See
23229         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23230         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23231
23232         mktime: fix some integer overflow issues and sidestep the rest
23233
23234         This was prompted by a bug report by Benjamin Lindner for MinGW
23235         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23236         His bug is due to signed integer overflow (0 - INT_MIN), and I
23237         I scanned through mktime.c looking for other integer overflow
23238         problems, fixing all the bugs I found.
23239
23240         Although the C Standard says the resulting code is still not safe
23241         in the presence of integer overflow, in practice it should be good
23242         enough for all real-world two's-complement implementations, except
23243         for debugging environments that deliberately trap on integer
23244         overflow (e.g., gcc -ftrapv).
23245
23246         * lib/mktime.c (WRAPV): New macro.
23247         (SHR): Also check that long_int and time_t shift right in the
23248         usual way, before using the fast-but-unportable method.
23249         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23250         used.  The code already assumed two's complement, so there's
23251         no need to test for alternatives.  All uses removed.
23252         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23253         the C standard.  Problem reported by Rich Felker in
23254         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23255         (twos_complement_arithmetic): Also check long_int and time_t.
23256         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23257         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23258         (__mktime_internal): Avoid integer overflow with unary subtraction
23259         in two instances where -1 - X is an adequate replacement for -X,
23260         since the calculations are approximate.
23261
23262 2011-01-29  Eric Blake  <eblake@redhat.com>
23263
23264         mktime: avoid infinite loop
23265         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23266         type; behavior is still undefined but portable to all known targets.
23267         Reported by Rich Felker.
23268
23269 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23270
23271         rename, unlink, same-inode: Relicense.
23272         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23273         * modules/unlink (License): Likewise.
23274         * modules/same-inode (License): Likewise.
23275
23276 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23277
23278         mktime: avoid problems on NetBSD 5 / i386
23279         * lib/mktime.c (long_int): New type.  This works around a problem
23280         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23281         but time_t is 64 bits, and where I expect the existing code is
23282         wrong in some cases.
23283         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23284         (ydhms_diff): Bring back the compile-time check for wide-enough
23285         year and yday.
23286
23287         mktime: fix misspelling in comment
23288         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23289         This merges all recent glibc changes of importance.
23290
23291 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23292
23293         move-if-change: cope with concurrent mv of identical file.
23294         * build-aux/move-if-change (CMPPROG): Accept environment
23295         variable as an override for `cmp'.
23296         (usage): Document CMPPROG.
23297         Adjust comparison to drop stdout.  Cope with failure of mv if
23298         the target file exists and is identical to the source, for
23299         parallel builds.
23300         Report from H.J. Lu against binutils in PR binutils/12283.
23301
23302 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23303
23304         * users.txt: Mention sharutils.
23305
23306 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23307
23308         * users.txt: Mention OATH Toolkit.
23309
23310 2011-01-27  Bruno Haible  <bruno@clisp.org>
23311
23312         Prepare for supporting FreeBSD 10.
23313         * build-aux/config.libpath: Remove handling of freebsd1*.
23314
23315 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23316
23317         Prepare for supporting FreeBSD 10.
23318         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23319         match FreeBSD 10.0.
23320
23321 2011-01-27  Bruno Haible  <bruno@clisp.org>
23322
23323         vma-iter, get-rusage-as: Add OpenBSD support.
23324         * modules/vma-iter (configure.ac): Test for mquery.
23325         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23326         * lib/vma-iter.c: Include <sys/mman.h>.
23327         (vma_iterate): Add an implementation based on mquery().
23328         * lib/resource-ext.h (get_rusage_as): Update comments.
23329         * lib/get-rusage-as.c: Likewise.
23330         * lib/get-rusage-data.c: Likewise.
23331
23332 2011-01-26  Karl Berry  <karl@gnu.org>
23333
23334         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23335         variables to make it easier to override the makeinfo program used.
23336
23337 2011-01-26  Eric Blake  <eblake@redhat.com>
23338
23339         fcntl: work around Haiku F_DUPFD bugs
23340         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23341         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23342         cloexec bit on duplication.
23343         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23344
23345 2011-01-26  Bruno Haible  <bruno@clisp.org>
23346
23347         Enable memory leak tests on AIX.
23348         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23349         * tests/test-fprintf-posix3.c (main): Likewise.
23350
23351 2011-01-26  Bruno Haible  <bruno@clisp.org>
23352
23353         Tests for module 'get-rusage-data'.
23354         * modules/get-rusage-data-tests: New file.
23355         * tests/test-get-rusage-data.c: New file.
23356
23357         New module 'get-rusage-data'.
23358         * lib/resource-ext.h (get_rusage_data): New declaration.
23359         * lib/get-rusage-data.c: New file.
23360         * modules/get-rusage-data: New file.
23361
23362 2011-01-25  Bruno Haible  <bruno@clisp.org>
23363
23364         get-rusage-as: Allow for easier testing.
23365         * lib/resource-ext.h (get_rusage_as): Add comment.
23366         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23367         (main): New function for interactive testing.
23368
23369 2011-01-25  Bruno Haible  <bruno@clisp.org>
23370
23371         vma-iter: Treat Haiku like BeOS.
23372         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23373         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23374
23375 2011-01-25  Eric Blake  <eblake@redhat.com>
23376
23377         c-stack: fix regression on cygwin when libsigsegv is present
23378         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23379
23380 2011-01-24  Bruno Haible  <bruno@clisp.org>
23381
23382         vma-iter: Avoid empty intervals.
23383         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23384         on an empty interval.
23385
23386 2011-01-24  Jim Meyering  <meyering@redhat.com>
23387
23388         u64: remove unnecessary #include
23389         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23390
23391 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23392
23393         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23394         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23395
23396 2011-01-23  Bruno Haible  <bruno@clisp.org>
23397
23398         New module 'vma-iter'.
23399         * lib/vma-iter.h: New file.
23400         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23401         * modules/vma-iter: New file.
23402         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23403         for get_rusage_as_via_iterator.
23404         (vma_iterate_callback): New function.
23405         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23406         * modules/get-rusage-as (Depends-on): Add vma-iter.
23407
23408 2011-01-23  Bruno Haible  <bruno@clisp.org>
23409
23410         uninorm: Tweak includes.
23411         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23412         Reported by Jim Meyering.
23413
23414 2011-01-23  Bruno Haible  <bruno@clisp.org>
23415
23416         get-rusage-as: Improve on NetBSD.
23417         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23418         /proc, like on FreeBSD.
23419
23420 2011-01-23  Jim Meyering  <meyering@redhat.com>
23421
23422         xreadlink.h: remove unnecessary #include
23423         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23424
23425         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23426         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23427
23428 2011-01-23  Bruno Haible  <bruno@clisp.org>
23429
23430         get-rusage-as: Fix bug.
23431         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23432         original limit when aborting the first loop.
23433
23434 2011-01-23  Bruno Haible  <bruno@clisp.org>
23435
23436         wctype: Ensure valid C syntax.
23437         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23438         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23439
23440 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23441
23442         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23443         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23444         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23445         as they are needed only for configure's test case.
23446         This removes two unnecessary symbols from config.h.
23447
23448         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23449         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23451         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23452         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23453         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23454         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23455         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23456         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23457         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23458         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23460         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23461         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23462         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23463         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23464         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23465         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23466
23467 2011-01-21  Eric Blake  <eblake@redhat.com>
23468
23469         maintainer-makefile: work with older git for submodule check
23470         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23471         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23472         Reported by Matthias Bolte.
23473
23474         bootstrap: minor portability fixes
23475         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23476         (usage): Omit leading capital and trailing . on help phrases, per
23477         GNU Coding Standards.
23478         (check_versions, top level): Prefix messages with script name.
23479
23480 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23481
23482         bootstrap: support --no-git option
23483         * build-aux/bootstrap: Add --no-git option, to be used when
23484         --gnulib-srcdir points to the exact desired checkout.
23485
23486 2011-01-21  Eric Blake  <eblake@redhat.com>
23487
23488         strerror_r-posix: work with glibc 2.13
23489         * lib/strerror_r.c (strerror_r): Fix return type.
23490
23491 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23492             Bruno Haible  <bruno@clisp.org>
23493
23494         uN_strstr: New unit tests.
23495         * modules/unistr/u8-strstr-tests: New file.
23496         * modules/unistr/u16-strstr-tests: New file.
23497         * modules/unistr/u32-strstr-tests: New file.
23498         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23499         * tests/unistr/test-u8-strstr.c: New file.
23500         * tests/unistr/test-u16-strstr.c: New file.
23501         * tests/unistr/test-u32-strstr.c: New file.
23502
23503 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23504             Bruno Haible  <bruno@clisp.org>
23505
23506         Make uN_strstr functions O(n) worst-case.
23507         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
23508         16-bit and 32-bit unit cases, use the unibyte algorithm from
23509         lib/mbsstr.c.
23510         * lib/unistr/u8-strstr.c: Include <string.h>.
23511         (UNIT_IS_UINT8_T): New macro.
23512         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
23513         (U_STRLEN, U_STRNLEN): New macros.
23514         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
23515         (U_STRLEN, U_STRNLEN): New macros.
23516         * modules/unistr/u8-strstr (Depends-on): Add strstr.
23517         (configure.ac): Update required libunistring version.
23518         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
23519         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
23520         malloca.
23521         (configure.ac): Update required libunistring version.
23522         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
23523         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
23524         malloca.
23525         (configure.ac): Update required libunistring version.
23526
23527 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23528             Bruno Haible  <bruno@clisp.org>
23529
23530         Prepare for faster uN_strstr functions.
23531         * lib/str-kmp.h: Support definable UNITs.
23532         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
23533         needle_len argument.
23534         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
23535         * lib/mbscasestr.c (mbscasestr): Likewise.
23536
23537 2011-01-21  Pádraig Brady <P@draigBrady.com>
23538
23539         malloca-tests: make faster by unsetting MALLOC_PERTURB_
23540         * tests/test-malloca.c (main): Unset the environment variable
23541         to greatly speed up the test.
23542         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
23543         * modules/malloca-tests: Depend on unsetenv.
23544
23545 2011-01-21  Pádraig Brady <P@draigBrady.com>
23546
23547         ignore-value: remove stdint dependency
23548         * lib/ignore-value.h: Remove <stdint.h>
23549         * modules/ignore-value: Remove stdint dependency.
23550
23551 2011-01-21  Jim Meyering  <meyering@redhat.com>
23552
23553         maint.mk: adjust variable name to be consistent with other gl_ vars
23554         * top/maint.mk (gl_public_submodule_commit): Rename the variable
23555         to be lower case.
23556
23557 2011-01-20  Jim Meyering  <meyering@redhat.com>
23558
23559         maint.mk: make "check" depend on public-submodule-commit by default
23560         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
23561
23562 2011-01-20  Bruno Haible  <bruno@clisp.org>
23563
23564         mbfile, mbiter: Complete change from 2008-12-21.
23565         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
23566         * m4/mbiter.m4 (gl_MBITER): Likewise.
23567
23568 2011-01-20  Jim Meyering  <meyering@redhat.com>
23569
23570         init.sh: insert space between each function name and "()"
23571         * tests/init.sh: Make it a little easier to see that a function's
23572         name is "warn_", and not "warn" when looking at the first part of
23573         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
23574
23575 2011-01-20  Jim Meyering  <meyering@redhat.com>
23576
23577         mountlist: clean up code formatting
23578         * lib/mountlist.c (read_file_system_list): Split a long line,
23579         correct bracing style, use NULL in place of "(struct statfs *)0",
23580         don't parenthesize return value, add spaces around "=" and after
23581         ";-in-for-stmt".
23582
23583 2011-01-14  Markus Duft <mduft@gentoo.org>
23584
23585         mountlist: add support for Interix
23586         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
23587         Apply statvfs to all entries of /dev/fs.
23588         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
23589         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
23590
23591 2011-01-20  Jim Meyering  <meyering@redhat.com>
23592
23593         maint.mk: improve the public-submodule-commit rule
23594         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
23595         to suppress printing of its commands... unless V=1.
23596         Add git submodule's --quiet option to suppress printing of e.g.,
23597         "Entering gnulib" output.
23598         "cd" into $(srcdir) before running git submodule.
23599
23600 2011-01-20  Bruno Haible  <bruno@clisp.org>
23601
23602         include_next: Fix bug introduced on 2011-01-18.
23603         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
23604         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
23605         ac_cv_header_... variable if the second argument is not 'check'.
23606         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
23607         gl_NEXT_HEADERS_INTERNAL.
23608
23609 2011-01-20  Bruno Haible  <bruno@clisp.org>
23610
23611         Allow the user to avoid the GNULIB_TEST_* macros.
23612         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
23613         Suggested by Paul Eggert.
23614
23615 2011-01-14  Jim Meyering  <meyering@redhat.com>
23616
23617         bootstrap: avoid failure when there is no .gitmodules file
23618         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
23619         has been assigned to, even when its value is the empty string.
23620         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
23621         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
23622         Reported by John W. Eaton <jwe@gnu.org>.
23623
23624 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
23625
23626         assume <ctype.h>, ..., <time.h> exist
23627         For years gnulib has been assuming the existence of the headers
23628         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
23629         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
23630         them, since they don't appear to be needed.
23631         * README (Portability guidelines): Document this.
23632         * lib/flock.c: Assume <fcntl.h> exists.
23633         * lib/regex_internal.h: Assume <locale.h> exists.
23634         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
23635         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
23636         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
23637         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
23638         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
23639         * m4/regex.m4 (gl_REGEX): Likewise.
23640         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
23641         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
23642         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
23643         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
23644         * tests/test-argp.c: Likewise.
23645         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
23646
23647         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
23648         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
23649         AA_APPLE_UNIVERSAL_BUILD.  See
23650         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
23651         * NEWS: Document this.
23652
23653 2011-01-19  Eric Blake  <eblake@redhat.com>
23654
23655         c-stack: assume stack overflow if SA_SIGINFO unsupported
23656         * lib/c-stack.c (SIGACTION_WORKS): Rename...
23657         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
23658         sigaction will work.
23659         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
23660         behavior match Linux.
23661         * tests/test-c-stack.c (main): Prefer NULL for pointers.
23662
23663         stdbool-tests: accommodate Haiku
23664         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
23665
23666         binary-io: fix O_TEXT on Haiku
23667         * modules/binary-io (Depends-on): Add fcntl-h.
23668         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
23669         than blindly undefining O_TEXT.
23670         Reported by Scott McCreary.
23671
23672 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23673
23674         include_next: do not check for standard headers like stddef.h
23675
23676         I found this problem when modifying Emacs to use gnulib.
23677         I noticed that it added HAVE_STDDEF_H to config.h, even though
23678         gnulib always assumes <stddef.h> exists as per README and this
23679         symbol is unnecessary.
23680         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
23681         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
23682         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
23683         faster for headers like stddef.h that are known to exist.
23684         (gl_CHECK_NEXT_HEADERS): Use it.
23685         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
23686         rather than gl_CHECK_NEXT_HEADERS.
23687         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
23688         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
23689
23690 2011-01-18  Eric Blake  <eblake@redhat.com>
23691
23692         ansi-c++-opt: skip C++ dependency style if C++ is unused
23693         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
23694         tests when we know C++ compilation is not desired.
23695         Reported by Scott McCreary.
23696
23697 2011-01-18  Bruno Haible  <bruno@clisp.org>
23698
23699         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
23700         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
23701         (main): Perform test also when getrlimit and setrlimit don't exist or
23702         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
23703         limiting the address space size using setrlimit, compare the address
23704         space size before and after the the test.
23705         * tests/test-dprintf-posix2.c: Likewise.
23706         * tests/test-fprintf-posix3.sh: Update skip messages.
23707         * tests/test-dprintf-posix2.sh: Likewise.
23708         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
23709         * modules/dprintf-posix-tests (Depends-on): Likewise.
23710         Reported by Bruce Korb <bkorb@gnu.org> and
23711         Gary V. Vaughan <gary@gnu.org>.
23712
23713 2011-01-18  Bruno Haible  <bruno@clisp.org>
23714
23715         get-rusage-as: Improvement for Cygwin.
23716         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
23717         areas that are merely reserved.
23718
23719 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
23720
23721         strftime: remove dependencies on multibyte modules
23722
23723         strftime depended on mbrlen, mbsinit, and wchar, but these modules
23724         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
23725         only if __osf__ is defined, and I suspect OSF doesn't need these
23726         other modules.  If my guess is wrong, we'll need to come up with a
23727         variant of strftime that doesn't need the multibyte modules.
23728
23729         I discovered this problem when attempting modify Emacs to use the
23730         strftime module.  With the previous gnulib, this caused Emacs to
23731         need 31 new files, ranging from lib/config.charset to
23732         m4/wint_t.m4.  This was overkill and I expect would be offputting
23733         to the Emacs maintainers.  After this change, only 6 new files are
23734         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
23735         stdbool.m4, and tm_gmtoff.m4.
23736
23737         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
23738         Suggested by Bruno Haible in
23739         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
23740         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
23741         and do not check for wchar.h.
23742         * modules/strftime (Files): Remove m4/mbstate_t.m4.
23743         (Depends-on): Remove mbrlen, mbsinit, wchar.
23744
23745 2011-01-18  Bruno Haible  <bruno@clisp.org>
23746
23747         Tests for module 'get-rusage-as'.
23748         * modules/get-rusage-as-tests: New file.
23749         * tests/test-get-rusage-as.c: New file.
23750
23751         New module 'get-rusage-as'.
23752         * modules/get-rusage-as: New file.
23753         * lib/resource-ext.h: New file.
23754         * lib/get-rusage-as.c: New file.
23755
23756 2011-01-17  Eric Blake  <eblake@redhat.com>
23757
23758         sigaction: relax license from LGPLv3+ to LGPLv2+
23759         * modules/sigaction (License): Relax to LGPLv2+.
23760
23761 2011-01-14  Bruno Haible  <bruno@clisp.org>
23762
23763         filemode: Make function declarations usable in C++ mode.
23764         * lib/filemode.h: Enclose function declarations in extern "C" block.
23765         Reported by John W. Eaton <jwe@gnu.org>.
23766
23767 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
23768
23769         save-cwd: no longer include "xgetcwd.h"
23770         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
23771         This avoids a compilation failure in projects that use save-cwd
23772         without also using the xgetcwd module.
23773
23774 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23775
23776         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
23777         This is so that a program like Emacs, which needs only dtoastr,
23778         does not have to bother with distributing and compiling ftoastr
23779         and ldtoastr.
23780         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
23781         * modules/dtoastr, modules/ldtoastr: New files.
23782         * modules/ftoastr: Now works just for 'float'.
23783         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
23784         (Makefile.am): Remove ftoastr.h (not needed and no effect),
23785         dtoastr.c, ldtoastr.c.
23786
23787 2011-01-11  Jim Meyering  <meyering@redhat.com>
23788
23789         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
23790         There is no need to work around the lack of the fchdir function,
23791         since gnulib can now provide a replacement when required.
23792         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
23793         * modules/save-cwd (Depends-on): Add fchdir.
23794
23795 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
23796
23797         openat, save-cwd: avoid xmalloc
23798
23799         This removes a direct (but undocumented) dependency of openat on
23800         xalloc, along with an indirect dependency via save-cwd.  It also
23801         removes a dependency of save-cwd on xgetcwd, and thereby
23802         indirectly on xalloc.  This change causes the openat substitute
23803         to fall back on save_cwd when memory is tight, and for save_cwd to
23804         fail instead of dying when memory is tight, but that's good enough.
23805         Problem and initial idea for fix reported by Bastien Roucaries in
23806         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
23807
23808         * lib/openat-proc.c: Include stdlib.h (for malloc), not
23809         xalloc.h (for xmalloc).
23810         (openat_proc_name): Use malloc, not xmalloc.
23811         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
23812         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
23813
23814         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
23815         This avoids heap allocation for file names whose lengths are in
23816         the range 512..1023, with the upper bound increasing to at most
23817         4031 depending on the platform's PATH_MAX.  (We do not want
23818         pathmax.h here as it might supply a non-constant PATH_MAX.)
23819         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
23820         Perhaps they should be moved to malloca.h?
23821         (OPENAT_BUFFER_SIZE): Use them.
23822
23823 2011-01-10  Bruno Haible  <bruno@clisp.org>
23824
23825         doc: Update users.txt.
23826         * users.txt: Add recutils.
23827
23828 2011-01-09  Karl Berry  <karl@gnu.org>
23829
23830         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
23831
23832         * doc/configmake.texi: New file.
23833         * doc/gnulib.texi: Include it.
23834         * modules/configmake: Move documentation from here.
23835
23836 2011-01-09  Bruno Haible  <bruno@clisp.org>
23837
23838         Update to Unicode 6.0.0.
23839         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
23840         (get_lbp): Update for Unicode 6.0.0.
23841         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
23842         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
23843         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
23844         U+11001, U+11038..U+11046. Remove U+06DE.
23845         (uc_width): Fix bounds of planes.
23846         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23847         lib/uniwidth/width.c.
23848         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
23849         trailing whitespace removed.
23850         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
23851         without comments, but with the original copyright notice.
23852         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
23853         * lib/unicase/ignorable.h: Likewise.
23854         * lib/unicase/tocasefold.h: Likewise.
23855         * lib/unicase/tolower.h: Likewise.
23856         * lib/unicase/totitle.h: Likewise.
23857         * lib/unicase/toupper.h: Likewise.
23858         * lib/unictype/bidi_of.h: Likewise.
23859         * lib/unictype/blocks.h: Likewise.
23860         * lib/unictype/categ_C.h: Likewise.
23861         * lib/unictype/categ_Cn.h: Likewise.
23862         * lib/unictype/categ_L.h: Likewise.
23863         * lib/unictype/categ_Ll.h: Likewise.
23864         * lib/unictype/categ_Lm.h: Likewise.
23865         * lib/unictype/categ_Lo.h: Likewise.
23866         * lib/unictype/categ_Lu.h: Likewise.
23867         * lib/unictype/categ_M.h: Likewise.
23868         * lib/unictype/categ_Mc.h: Likewise.
23869         * lib/unictype/categ_Me.h: Likewise.
23870         * lib/unictype/categ_Mn.h: Likewise.
23871         * lib/unictype/categ_N.h: Likewise.
23872         * lib/unictype/categ_Nd.h: Likewise.
23873         * lib/unictype/categ_No.h: Likewise.
23874         * lib/unictype/categ_P.h: Likewise.
23875         * lib/unictype/categ_Po.h: Likewise.
23876         * lib/unictype/categ_S.h: Likewise.
23877         * lib/unictype/categ_Sc.h: Likewise.
23878         * lib/unictype/categ_Sk.h: Likewise.
23879         * lib/unictype/categ_Sm.h: Likewise.
23880         * lib/unictype/categ_So.h: Likewise.
23881         * lib/unictype/categ_of.h: Likewise.
23882         * lib/unictype/combining.h: Likewise.
23883         * lib/unictype/ctype_alnum.h: Likewise.
23884         * lib/unictype/ctype_alpha.h: Likewise.
23885         * lib/unictype/ctype_graph.h: Likewise.
23886         * lib/unictype/ctype_lower.h: Likewise.
23887         * lib/unictype/ctype_print.h: Likewise.
23888         * lib/unictype/ctype_punct.h: Likewise.
23889         * lib/unictype/ctype_upper.h: Likewise.
23890         * lib/unictype/decdigit.h: Likewise.
23891         * lib/unictype/digit.h: Likewise.
23892         * lib/unictype/numeric.h: Likewise.
23893         * lib/unictype/pr_alphabetic.h: Likewise.
23894         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23895         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23896         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23897         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23898         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23899         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23900         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23901         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23902         * lib/unictype/pr_case_ignorable.h: Likewise.
23903         * lib/unictype/pr_cased.h: Likewise.
23904         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23905         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23906         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23907         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23908         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23909         * lib/unictype/pr_combining.h: Likewise.
23910         * lib/unictype/pr_composite.h: Likewise.
23911         * lib/unictype/pr_currency_symbol.h: Likewise.
23912         * lib/unictype/pr_decimal_digit.h: Likewise.
23913         * lib/unictype/pr_deprecated.h: Likewise.
23914         * lib/unictype/pr_format_control.h: Likewise.
23915         * lib/unictype/pr_grapheme_base.h: Likewise.
23916         * lib/unictype/pr_grapheme_extend.h: Likewise.
23917         * lib/unictype/pr_grapheme_link.h: Likewise.
23918         * lib/unictype/pr_id_continue.h: Likewise.
23919         * lib/unictype/pr_id_start.h: Likewise.
23920         * lib/unictype/pr_ideographic.h: Likewise.
23921         * lib/unictype/pr_lowercase.h: Likewise.
23922         * lib/unictype/pr_math.h: Likewise.
23923         * lib/unictype/pr_numeric.h: Likewise.
23924         * lib/unictype/pr_other_alphabetic.h: Likewise.
23925         * lib/unictype/pr_other_id_continue.h: Likewise.
23926         * lib/unictype/pr_other_math.h: Likewise.
23927         * lib/unictype/pr_punctuation.h: Likewise.
23928         * lib/unictype/pr_sentence_terminal.h: Likewise.
23929         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23930         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23931         * lib/unictype/pr_unified_ideograph.h: Likewise.
23932         * lib/unictype/pr_uppercase.h: Likewise.
23933         * lib/unictype/pr_xid_continue.h: Likewise.
23934         * lib/unictype/pr_xid_start.h: Likewise.
23935         * lib/unictype/scripts.h: Likewise.
23936         * lib/unictype/scripts_byname.gperf: Likewise.
23937         * lib/unictype/sy_java_ident.h: Likewise.
23938         * lib/unigbrk/gbrkprop.h: Likewise.
23939         * lib/unilbrk/lbrkprop1.h: Likewise.
23940         * lib/unilbrk/lbrkprop2.h: Likewise.
23941         * lib/uninorm/decomposition-table2.h: Likewise.
23942         * lib/uniwbrk/wbrkprop.h: Likewise.
23943         * tests/unicase/test-cased.c: Likewise.
23944         * tests/unicase/test-ignorable.c: Likewise.
23945         * tests/unicase/test-uc_tolower.c: Likewise.
23946         * tests/unicase/test-uc_totitle.c: Likewise.
23947         * tests/unicase/test-uc_toupper.c: Likewise.
23948         * tests/unictype/test-categ_C.c: Likewise.
23949         * tests/unictype/test-categ_Cn.c: Likewise.
23950         * tests/unictype/test-categ_L.c: Likewise.
23951         * tests/unictype/test-categ_Ll.c: Likewise.
23952         * tests/unictype/test-categ_Lm.c: Likewise.
23953         * tests/unictype/test-categ_Lo.c: Likewise.
23954         * tests/unictype/test-categ_Lu.c: Likewise.
23955         * tests/unictype/test-categ_M.c: Likewise.
23956         * tests/unictype/test-categ_Mc.c: Likewise.
23957         * tests/unictype/test-categ_Me.c: Likewise.
23958         * tests/unictype/test-categ_Mn.c: Likewise.
23959         * tests/unictype/test-categ_N.c: Likewise.
23960         * tests/unictype/test-categ_Nd.c: Likewise.
23961         * tests/unictype/test-categ_No.c: Likewise.
23962         * tests/unictype/test-categ_P.c: Likewise.
23963         * tests/unictype/test-categ_Po.c: Likewise.
23964         * tests/unictype/test-categ_S.c: Likewise.
23965         * tests/unictype/test-categ_Sc.c: Likewise.
23966         * tests/unictype/test-categ_Sk.c: Likewise.
23967         * tests/unictype/test-categ_Sm.c: Likewise.
23968         * tests/unictype/test-categ_So.c: Likewise.
23969         * tests/unictype/test-ctype_alnum.c: Likewise.
23970         * tests/unictype/test-ctype_alpha.c: Likewise.
23971         * tests/unictype/test-ctype_graph.c: Likewise.
23972         * tests/unictype/test-ctype_lower.c: Likewise.
23973         * tests/unictype/test-ctype_print.c: Likewise.
23974         * tests/unictype/test-ctype_punct.c: Likewise.
23975         * tests/unictype/test-ctype_upper.c: Likewise.
23976         * tests/unictype/test-decdigit.h: Likewise.
23977         * tests/unictype/test-digit.h: Likewise.
23978         * tests/unictype/test-numeric.h: Likewise.
23979         * tests/unictype/test-pr_alphabetic.c: Likewise.
23980         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23981         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23982         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23983         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23984         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23985         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23986         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23987         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23988         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23989         * tests/unictype/test-pr_cased.c: Likewise.
23990         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23991         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23992         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23993         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23994         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23995         * tests/unictype/test-pr_combining.c: Likewise.
23996         * tests/unictype/test-pr_composite.c: Likewise.
23997         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23998         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23999         * tests/unictype/test-pr_deprecated.c: Likewise.
24000         * tests/unictype/test-pr_format_control.c: Likewise.
24001         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24002         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24003         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24004         * tests/unictype/test-pr_id_continue.c: Likewise.
24005         * tests/unictype/test-pr_id_start.c: Likewise.
24006         * tests/unictype/test-pr_ideographic.c: Likewise.
24007         * tests/unictype/test-pr_lowercase.c: Likewise.
24008         * tests/unictype/test-pr_math.c: Likewise.
24009         * tests/unictype/test-pr_numeric.c: Likewise.
24010         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24011         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24012         * tests/unictype/test-pr_other_math.c: Likewise.
24013         * tests/unictype/test-pr_punctuation.c: Likewise.
24014         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24015         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24016         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24017         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24018         * tests/unictype/test-pr_uppercase.c: Likewise.
24019         * tests/unictype/test-pr_xid_continue.c: Likewise.
24020         * tests/unictype/test-pr_xid_start.c: Likewise.
24021         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24022         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24023         changes.
24024         * lib/unictype/categ_Cc.h: Likewise.
24025         * lib/unictype/categ_Cf.h: Likewise.
24026         * lib/unictype/categ_Co.h: Likewise.
24027         * lib/unictype/categ_Cs.h: Likewise.
24028         * lib/unictype/categ_Lt.h: Likewise.
24029         * lib/unictype/categ_Nl.h: Likewise.
24030         * lib/unictype/categ_Pc.h: Likewise.
24031         * lib/unictype/categ_Pd.h: Likewise.
24032         * lib/unictype/categ_Pe.h: Likewise.
24033         * lib/unictype/categ_Pf.h: Likewise.
24034         * lib/unictype/categ_Pi.h: Likewise.
24035         * lib/unictype/categ_Ps.h: Likewise.
24036         * lib/unictype/categ_Z.h: Likewise.
24037         * lib/unictype/categ_Zl.h: Likewise.
24038         * lib/unictype/categ_Zp.h: Likewise.
24039         * lib/unictype/categ_Zs.h: Likewise.
24040         * lib/unictype/ctype_blank.h: Likewise.
24041         * lib/unictype/ctype_cntrl.h: Likewise.
24042         * lib/unictype/ctype_digit.h: Likewise.
24043         * lib/unictype/ctype_space.h: Likewise.
24044         * lib/unictype/ctype_xdigit.h: Likewise.
24045         * lib/unictype/mirror.h: Likewise.
24046         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24047         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24048         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24049         * lib/unictype/pr_bidi_control.h: Likewise.
24050         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24051         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24052         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24053         * lib/unictype/pr_bidi_pdf.h: Likewise.
24054         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24055         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24056         * lib/unictype/pr_dash.h: Likewise.
24057         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24058         * lib/unictype/pr_diacritic.h: Likewise.
24059         * lib/unictype/pr_extender.h: Likewise.
24060         * lib/unictype/pr_hex_digit.h: Likewise.
24061         * lib/unictype/pr_hyphen.h: Likewise.
24062         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24063         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24064         * lib/unictype/pr_ignorable_control.h: Likewise.
24065         * lib/unictype/pr_iso_control.h: Likewise.
24066         * lib/unictype/pr_join_control.h: Likewise.
24067         * lib/unictype/pr_left_of_pair.h: Likewise.
24068         * lib/unictype/pr_line_separator.h: Likewise.
24069         * lib/unictype/pr_logical_order_exception.h: Likewise.
24070         * lib/unictype/pr_non_break.h: Likewise.
24071         * lib/unictype/pr_not_a_character.h: Likewise.
24072         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24073         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24074         * lib/unictype/pr_other_id_start.h: Likewise.
24075         * lib/unictype/pr_other_lowercase.h: Likewise.
24076         * lib/unictype/pr_other_uppercase.h: Likewise.
24077         * lib/unictype/pr_paired_punctuation.h: Likewise.
24078         * lib/unictype/pr_paragraph_separator.h: Likewise.
24079         * lib/unictype/pr_pattern_syntax.h: Likewise.
24080         * lib/unictype/pr_pattern_white_space.h: Likewise.
24081         * lib/unictype/pr_private_use.h: Likewise.
24082         * lib/unictype/pr_quotation_mark.h: Likewise.
24083         * lib/unictype/pr_radical.h: Likewise.
24084         * lib/unictype/pr_soft_dotted.h: Likewise.
24085         * lib/unictype/pr_space.h: Likewise.
24086         * lib/unictype/pr_titlecase.h: Likewise.
24087         * lib/unictype/pr_variation_selector.h: Likewise.
24088         * lib/unictype/pr_white_space.h: Likewise.
24089         * lib/unictype/pr_zero_width.h: Likewise.
24090         * lib/unictype/sy_c_ident.h: Likewise.
24091         * lib/unictype/sy_c_whitespace.h: Likewise.
24092         * lib/unictype/sy_java_whitespace.h: Likewise.
24093         * lib/uninorm/composition-table.gperf: Likewise.
24094         * lib/uninorm/decomposition-table1.h: Likewise.
24095         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24096         LB8.
24097         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24098         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24099         * modules/unictype/*: Bump version number of expected libunistring
24100         version.
24101
24102 2011-01-09  Bruno Haible  <bruno@clisp.org>
24103
24104         Update to Unicode 5.2.0.
24105         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24106         trailing whitespace removed.
24107
24108 2011-01-09  Bruno Haible  <bruno@clisp.org>
24109
24110         New Unicode character properties, from Unicode 5.2.0.
24111         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24112         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24113         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24114         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24115         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24116         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24117         uc_is_property_cased, uc_is_property_case_ignorable,
24118         uc_is_property_changes_when_lowercased,
24119         uc_is_property_changes_when_uppercased,
24120         uc_is_property_changes_when_titlecased,
24121         uc_is_property_changes_when_casefolded,
24122         uc_is_property_changes_when_casemapped): New declarations.
24123         * lib/unictype/pr_byname.gperf: Add the new properties.
24124         * modules/unictype/property-byname (Depends-on): Depend on the new
24125         properties modules.
24126         * modules/unictype/property-all (Depends-on): Likewise.
24127         * MODULES.html.sh (Unicode string functions): Add
24128         unictype/property-case-ignorable, unictype/property-cased,
24129         unictype/property-changes-when-casefolded,
24130         unictype/property-changes-when-casemapped,
24131         unictype/property-changes-when-lowercased,
24132         unictype/property-changes-when-titlecased,
24133         unictype/property-changes-when-uppercased.
24134
24135         New module 'unictype/property-changes-when-casemapped'.
24136         * modules/unictype/property-changes-when-casemapped: New file.
24137         * lib/unictype/pr_changes_when_casemapped.c: New file.
24138         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24139         generated by gen-uni-tables.
24140         * modules/unictype/property-changes-when-casemapped-tests: New file.
24141         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24142         automatically generated by gen-uni-tables.
24143
24144         New module 'unictype/property-changes-when-casefolded'.
24145         * modules/unictype/property-changes-when-casefolded: New file.
24146         * lib/unictype/pr_changes_when_casefolded.c: New file.
24147         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24148         generated by gen-uni-tables.
24149         * modules/unictype/property-changes-when-casefolded-tests: New file.
24150         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24151         automatically generated by gen-uni-tables.
24152
24153         New module 'unictype/property-changes-when-titlecased'.
24154         * modules/unictype/property-changes-when-titlecased: New file.
24155         * lib/unictype/pr_changes_when_titlecased.c: New file.
24156         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24157         generated by gen-uni-tables.
24158         * modules/unictype/property-changes-when-titlecased-tests: New file.
24159         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24160         automatically generated by gen-uni-tables.
24161
24162         New module 'unictype/property-changes-when-uppercased'.
24163         * modules/unictype/property-changes-when-uppercased: New file.
24164         * lib/unictype/pr_changes_when_uppercased.c: New file.
24165         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24166         generated by gen-uni-tables.
24167         * modules/unictype/property-changes-when-uppercased-tests: New file.
24168         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24169         automatically generated by gen-uni-tables.
24170
24171         New module 'unictype/property-changes-when-lowercased'.
24172         * modules/unictype/property-changes-when-lowercased: New file.
24173         * lib/unictype/pr_changes_when_lowercased.c: New file.
24174         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24175         generated by gen-uni-tables.
24176         * modules/unictype/property-changes-when-lowercased-tests: New file.
24177         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24178         automatically generated by gen-uni-tables.
24179
24180         New module 'unictype/property-case-ignorable'.
24181         * modules/unictype/property-case-ignorable: New file.
24182         * lib/unictype/pr_case_ignorable.c: New file.
24183         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24184         by gen-uni-tables.
24185         * modules/unictype/property-case-ignorable-tests: New file.
24186         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24187         generated by gen-uni-tables.
24188
24189         New module 'unictype/property-cased'.
24190         * modules/unictype/property-cased: New file.
24191         * lib/unictype/pr_cased.c: New file.
24192         * lib/unictype/pr_cased.h: New file, automatically generated by
24193         gen-uni-tables.
24194         * modules/unictype/property-cased-tests: New file.
24195         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24196         gen-uni-tables.
24197
24198 2011-01-09  Bruno Haible  <bruno@clisp.org>
24199
24200         Update to Unicode 5.2.0.
24201         * lib/gen-uni-tables.c (output_predicate, output_category,
24202         output_combclass, output_bidi_category, output_decimal_digit_test,
24203         output_decimal_digit, output_digit_test, output_digit,
24204         output_numeric_test, output_numeric, output_mirror, output_scripts,
24205         output_scripts_byname, output_blocks, output_ident_category): Fix
24206         comment header.
24207         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24208         get_wbp.
24209         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24210         items.
24211         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24212         Changes_When_Lowercased, Changes_When_Uppercased,
24213         Changes_When_Titlecased, Changes_When_Casefolded,
24214         Changes_When_Casemapped.
24215         (is_property_alphabetic, is_property_default_ignorable_code_point):
24216         Update for Unicode 5.2.0.
24217         (is_property_cased, is_property_case_ignorable,
24218         is_property_changes_when_lowercased,
24219         is_property_changes_when_uppercased,
24220         is_property_changes_when_titlecased,
24221         is_property_changes_when_casefolded,
24222         is_property_changes_when_casemapped): New functions.
24223         (output_properties): Output also the properties cased, case_ignorable,
24224         changes_when_lowercased, changes_when_uppercased,
24225         changes_when_titlecased, changes_when_casefolded,
24226         changes_when_casemapped.
24227         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24228         Unicode TR#11 revision 17 -> 19.
24229         (LBP_CP): New enumeration value.
24230         (LBP_*): Adjust values accordingly.
24231         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24232         TR#14 revision 22 -> 24.
24233         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24234         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24235         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24236         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24237         is_WBP_MIDLETTER.
24238         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24239         the code1 and code2 of each composition rule.
24240         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24241         * lib/unicase/ignorable.h: Likewise.
24242         * lib/unicase/tocasefold.h: Likewise.
24243         * lib/unicase/tolower.h: Likewise.
24244         * lib/unicase/totitle.h: Likewise.
24245         * lib/unicase/toupper.h: Likewise.
24246         * lib/unictype/bidi_of.h: Likewise.
24247         * lib/unictype/blocks.h: Likewise.
24248         * lib/unictype/categ_C.h: Likewise.
24249         * lib/unictype/categ_Cf.h: Likewise.
24250         * lib/unictype/categ_Cn.h: Likewise.
24251         * lib/unictype/categ_L.h: Likewise.
24252         * lib/unictype/categ_Ll.h: Likewise.
24253         * lib/unictype/categ_Lm.h: Likewise.
24254         * lib/unictype/categ_Lo.h: Likewise.
24255         * lib/unictype/categ_Lu.h: Likewise.
24256         * lib/unictype/categ_M.h: Likewise.
24257         * lib/unictype/categ_Mc.h: Likewise.
24258         * lib/unictype/categ_Mn.h: Likewise.
24259         * lib/unictype/categ_N.h: Likewise.
24260         * lib/unictype/categ_Nd.h: Likewise.
24261         * lib/unictype/categ_Nl.h: Likewise.
24262         * lib/unictype/categ_No.h: Likewise.
24263         * lib/unictype/categ_P.h: Likewise.
24264         * lib/unictype/categ_Pd.h: Likewise.
24265         * lib/unictype/categ_Po.h: Likewise.
24266         * lib/unictype/categ_S.h: Likewise.
24267         * lib/unictype/categ_Sc.h: Likewise.
24268         * lib/unictype/categ_So.h: Likewise.
24269         * lib/unictype/categ_of.h: Likewise.
24270         * lib/unictype/combining.h: Likewise.
24271         * lib/unictype/ctype_alnum.h: Likewise.
24272         * lib/unictype/ctype_alpha.h: Likewise.
24273         * lib/unictype/ctype_graph.h: Likewise.
24274         * lib/unictype/ctype_lower.h: Likewise.
24275         * lib/unictype/ctype_print.h: Likewise.
24276         * lib/unictype/ctype_punct.h: Likewise.
24277         * lib/unictype/ctype_upper.h: Likewise.
24278         * lib/unictype/decdigit.h: Likewise.
24279         * lib/unictype/digit.h: Likewise.
24280         * lib/unictype/numeric.h: Likewise.
24281         * lib/unictype/pr_alphabetic.h: Likewise.
24282         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24283         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24284         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24285         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24286         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24287         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24288         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24289         * lib/unictype/pr_combining.h: Likewise.
24290         * lib/unictype/pr_composite.h: Likewise.
24291         * lib/unictype/pr_currency_symbol.h: Likewise.
24292         * lib/unictype/pr_dash.h: Likewise.
24293         * lib/unictype/pr_decimal_digit.h: Likewise.
24294         * lib/unictype/pr_deprecated.h: Likewise.
24295         * lib/unictype/pr_diacritic.h: Likewise.
24296         * lib/unictype/pr_extender.h: Likewise.
24297         * lib/unictype/pr_grapheme_base.h: Likewise.
24298         * lib/unictype/pr_grapheme_extend.h: Likewise.
24299         * lib/unictype/pr_grapheme_link.h: Likewise.
24300         * lib/unictype/pr_id_continue.h: Likewise.
24301         * lib/unictype/pr_id_start.h: Likewise.
24302         * lib/unictype/pr_ideographic.h: Likewise.
24303         * lib/unictype/pr_ignorable_control.h: Likewise.
24304         * lib/unictype/pr_logical_order_exception.h: Likewise.
24305         * lib/unictype/pr_lowercase.h: Likewise.
24306         * lib/unictype/pr_numeric.h: Likewise.
24307         * lib/unictype/pr_other_alphabetic.h: Likewise.
24308         * lib/unictype/pr_punctuation.h: Likewise.
24309         * lib/unictype/pr_sentence_terminal.h: Likewise.
24310         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24311         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24312         * lib/unictype/pr_unified_ideograph.h: Likewise.
24313         * lib/unictype/pr_uppercase.h: Likewise.
24314         * lib/unictype/pr_xid_continue.h: Likewise.
24315         * lib/unictype/pr_xid_start.h: Likewise.
24316         * lib/unictype/pr_zero_width.h: Likewise.
24317         * lib/unictype/scripts.h: Likewise.
24318         * lib/unictype/scripts_byname.gperf: Likewise.
24319         * lib/unictype/sy_java_ident.h: Likewise.
24320         * lib/unigbrk/gbrkprop.h: Likewise.
24321         * lib/unilbrk/lbrkprop1.h: Likewise.
24322         * lib/unilbrk/lbrkprop2.h: Likewise.
24323         * lib/unilbrk/lbrktables.h: Likewise.
24324         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24325         LBP_CP. Implement rule LB30.
24326         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24327         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24328         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24329         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24330         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24331         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24332         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24333         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24334         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24335         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24336         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24337         bits instead of 16 bits in the code1 and code2 of each composition
24338         rule.
24339         (uc_composition): Update for Unicode 5.2.0.
24340         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24341         * lib/uninorm/decomposition-table2.h: Likewise.
24342         * lib/uniwbrk/wbrkprop.h: Likewise.
24343         * tests/unicase/test-cased.c: Likewise.
24344         * tests/unicase/test-ignorable.c: Likewise.
24345         * tests/unicase/test-uc_tolower.c: Likewise.
24346         * tests/unicase/test-uc_totitle.c: Likewise.
24347         * tests/unicase/test-uc_toupper.c: Likewise.
24348         * tests/unictype/test-categ_C.c: Likewise.
24349         * tests/unictype/test-categ_Cf.c: Likewise.
24350         * tests/unictype/test-categ_Cn.c: Likewise.
24351         * tests/unictype/test-categ_L.c: Likewise.
24352         * tests/unictype/test-categ_Ll.c: Likewise.
24353         * tests/unictype/test-categ_Lm.c: Likewise.
24354         * tests/unictype/test-categ_Lo.c: Likewise.
24355         * tests/unictype/test-categ_Lu.c: Likewise.
24356         * tests/unictype/test-categ_M.c: Likewise.
24357         * tests/unictype/test-categ_Mc.c: Likewise.
24358         * tests/unictype/test-categ_Mn.c: Likewise.
24359         * tests/unictype/test-categ_N.c: Likewise.
24360         * tests/unictype/test-categ_Nd.c: Likewise.
24361         * tests/unictype/test-categ_Nl.c: Likewise.
24362         * tests/unictype/test-categ_No.c: Likewise.
24363         * tests/unictype/test-categ_P.c: Likewise.
24364         * tests/unictype/test-categ_Pd.c: Likewise.
24365         * tests/unictype/test-categ_Po.c: Likewise.
24366         * tests/unictype/test-categ_S.c: Likewise.
24367         * tests/unictype/test-categ_Sc.c: Likewise.
24368         * tests/unictype/test-categ_So.c: Likewise.
24369         * tests/unictype/test-ctype_alnum.c: Likewise.
24370         * tests/unictype/test-ctype_alpha.c: Likewise.
24371         * tests/unictype/test-ctype_graph.c: Likewise.
24372         * tests/unictype/test-ctype_lower.c: Likewise.
24373         * tests/unictype/test-ctype_print.c: Likewise.
24374         * tests/unictype/test-ctype_punct.c: Likewise.
24375         * tests/unictype/test-ctype_upper.c: Likewise.
24376         * tests/unictype/test-decdigit.h: Likewise.
24377         * tests/unictype/test-digit.h: Likewise.
24378         * tests/unictype/test-numeric.h: Likewise.
24379         * tests/unictype/test-pr_alphabetic.c: Likewise.
24380         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24381         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24382         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24383         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24384         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24385         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24386         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24387         * tests/unictype/test-pr_combining.c: Likewise.
24388         * tests/unictype/test-pr_composite.c: Likewise.
24389         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24390         * tests/unictype/test-pr_dash.c: Likewise.
24391         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24392         * tests/unictype/test-pr_deprecated.c: Likewise.
24393         * tests/unictype/test-pr_diacritic.c: Likewise.
24394         * tests/unictype/test-pr_extender.c: Likewise.
24395         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24396         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24397         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24398         * tests/unictype/test-pr_id_continue.c: Likewise.
24399         * tests/unictype/test-pr_id_start.c: Likewise.
24400         * tests/unictype/test-pr_ideographic.c: Likewise.
24401         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24402         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24403         * tests/unictype/test-pr_lowercase.c: Likewise.
24404         * tests/unictype/test-pr_numeric.c: Likewise.
24405         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24406         * tests/unictype/test-pr_punctuation.c: Likewise.
24407         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24408         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24409         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24410         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24411         * tests/unictype/test-pr_uppercase.c: Likewise.
24412         * tests/unictype/test-pr_xid_continue.c: Likewise.
24413         * tests/unictype/test-pr_xid_start.c: Likewise.
24414         * tests/unictype/test-pr_zero_width.c: Likewise.
24415         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24416         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24417         changed behaviour: line breaking is now disallowed between a letter
24418         or '=' and '('.
24419         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24420         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24421         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24422         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24423         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24424         lib/uniwidth/width.c.
24425         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24426         without comments, but with the original copyright notice.
24427         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24428         changes.
24429         * lib/unictype/categ_Cc.h: Likewise.
24430         * lib/unictype/categ_Co.h: Likewise.
24431         * lib/unictype/categ_Cs.h: Likewise.
24432         * lib/unictype/categ_Lt.h: Likewise.
24433         * lib/unictype/categ_Me.h: Likewise.
24434         * lib/unictype/categ_Pc.h: Likewise.
24435         * lib/unictype/categ_Pe.h: Likewise.
24436         * lib/unictype/categ_Pf.h: Likewise.
24437         * lib/unictype/categ_Pi.h: Likewise.
24438         * lib/unictype/categ_Ps.h: Likewise.
24439         * lib/unictype/categ_Sk.h: Likewise.
24440         * lib/unictype/categ_Sm.h: Likewise.
24441         * lib/unictype/categ_Z.h: Likewise.
24442         * lib/unictype/categ_Zl.h: Likewise.
24443         * lib/unictype/categ_Zp.h: Likewise.
24444         * lib/unictype/categ_Zs.h: Likewise.
24445         * lib/unictype/ctype_blank.h: Likewise.
24446         * lib/unictype/ctype_cntrl.h: Likewise.
24447         * lib/unictype/ctype_digit.h: Likewise.
24448         * lib/unictype/ctype_space.h: Likewise.
24449         * lib/unictype/ctype_xdigit.h: Likewise.
24450         * lib/unictype/mirror.h: Likewise.
24451         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24452         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24453         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24454         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24455         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24456         * lib/unictype/pr_bidi_control.h: Likewise.
24457         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24458         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24459         * lib/unictype/pr_bidi_pdf.h: Likewise.
24460         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24461         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24462         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24463         * lib/unictype/pr_format_control.h: Likewise.
24464         * lib/unictype/pr_hex_digit.h: Likewise.
24465         * lib/unictype/pr_hyphen.h: Likewise.
24466         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24467         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24468         * lib/unictype/pr_iso_control.h: Likewise.
24469         * lib/unictype/pr_join_control.h: Likewise.
24470         * lib/unictype/pr_left_of_pair.h: Likewise.
24471         * lib/unictype/pr_line_separator.h: Likewise.
24472         * lib/unictype/pr_math.h: Likewise.
24473         * lib/unictype/pr_non_break.h: Likewise.
24474         * lib/unictype/pr_not_a_character.h: Likewise.
24475         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24476         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24477         * lib/unictype/pr_other_id_continue.h: Likewise.
24478         * lib/unictype/pr_other_id_start.h: Likewise.
24479         * lib/unictype/pr_other_lowercase.h: Likewise.
24480         * lib/unictype/pr_other_math.h: Likewise.
24481         * lib/unictype/pr_other_uppercase.h: Likewise.
24482         * lib/unictype/pr_paired_punctuation.h: Likewise.
24483         * lib/unictype/pr_paragraph_separator.h: Likewise.
24484         * lib/unictype/pr_pattern_syntax.h: Likewise.
24485         * lib/unictype/pr_pattern_white_space.h: Likewise.
24486         * lib/unictype/pr_private_use.h: Likewise.
24487         * lib/unictype/pr_quotation_mark.h: Likewise.
24488         * lib/unictype/pr_radical.h: Likewise.
24489         * lib/unictype/pr_soft_dotted.h: Likewise.
24490         * lib/unictype/pr_space.h: Likewise.
24491         * lib/unictype/pr_titlecase.h: Likewise.
24492         * lib/unictype/pr_variation_selector.h: Likewise.
24493         * lib/unictype/pr_white_space.h: Likewise.
24494         * lib/unictype/sy_c_ident.h: Likewise.
24495         * lib/unictype/sy_c_whitespace.h: Likewise.
24496         * lib/unictype/sy_java_whitespace.h: Likewise.
24497         * modules/uni*/*: Bump version number of expected libunistring version.
24498         Reported by Simon Josefsson.
24499
24500 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24501
24502         useless-if-before-free: fix typo in --help and make the internal,
24503         automatic version date update process work once again.
24504         --help output contained a NUL character instead of the
24505         backslash-zero that was intended.  Also, the "must lie within
24506         the first 8 lines" line is on line 9, and hence not getting
24507         automatically updated.
24508         * build-aux/useless-if-before-free: Fix the former by adding a
24509         backslash, and the latter by condensing the three lines of what-it-does
24510         to a single line, leaving one line of slack for the future.
24511
24512 2011-01-09  Bruno Haible  <bruno@clisp.org>
24513
24514         uniwidth/width: Fix width of U+1D173..U+1D17A.
24515         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
24516         symbolic_width, output_width_property_test): New functions.
24517         (main): Invoke output_nonspacing_property, output_width_property_test.
24518         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
24519         U+1D173..U+1D17A.
24520         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
24521         1.
24522         * modules/uniwidth/*: Bump version number of expected libunistring
24523         version.
24524         * modules/unilbrk/*: Likewise.
24525
24526 2011-01-08  Bruno Haible  <bruno@clisp.org>
24527
24528         uninorm tests: Preserve copyright of Unicode data file.
24529         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
24530         Mention modifications.
24531
24532 2011-01-08  Bruno Haible  <bruno@clisp.org>
24533
24534         gen-uni-tables: Prepare for Unicode 5.2.0.
24535         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
24536         (debug_output_lbp, output_lbp): Update.
24537
24538 2011-01-08  Bruno Haible  <bruno@clisp.org>
24539
24540         unilbrk: Clarify gen-uni-tables.c code.
24541         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
24542         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
24543         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
24544
24545 2011-01-07  Bruno Haible  <bruno@clisp.org>
24546
24547         strtod: Restore errno when successfully parsing Infinity or NaN.
24548         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
24549         restore the original errno.
24550
24551 2011-01-07  Bruno Haible  <bruno@clisp.org>
24552
24553         remove test: Avoid failure on HP-UX 11.
24554         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
24555
24556 2011-01-07  Bruno Haible  <bruno@clisp.org>
24557
24558         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
24559         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
24560         error code.
24561
24562 2011-01-07  Pádraig Brady <P@draigBrady.com>
24563
24564         ignore-value: fixup comments, and add Eric Blake
24565         as an author since he rewrote the macros.
24566         * lib/ignore-value.h (ignore_value):  State that
24567         we now support aggregates.  Also specify exactly
24568         when the GCC warn_unused_result feature was added.
24569
24570 2011-01-06  Eric Blake  <eblake@redhat.com>
24571
24572         ignore-value: support aggregate types
24573         * lib/ignore-value.h (ignore_value): Provide separate gcc
24574         definition.
24575         * modules/ignore-value-tests: New test module.
24576         * tests/test-ignore-value.c: New test.
24577
24578         maint.mk: improve sc_prohibit_strcmp regex
24579         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
24580         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
24581         definition of STRNEQ.
24582
24583         signal: work around Haiku issue with SIGBUS
24584         * lib/siglist.h: Add comment.
24585         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
24586         strsignal's favoring of SIGSEGV.
24587         * tests/test-signal.c (main): Avoid test failure.
24588         * doc/posix-headers/signal.texi (signal.h): Document the issue.
24589         Reported by Scott McCreary.
24590
24591         maint.mk: add pre-release check to ensure submodule commits are public
24592         * top/maint.mk (public-submodule-commit): New rule.
24593         (submodule-checks): New variable.
24594         (alpha beta stable): Depend on the variable.
24595
24596 2011-01-05  Pádraig Brady <P@draigBrady.com>
24597         and Jim Meyering  <meyering@redhat.com>
24598
24599         ignore-value: make ignore_value more generic; deprecate ignore_ptr
24600         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
24601         (ATTRIBUTE_DEPRECATED): Define.
24602         (_ignore_case): New function.
24603         (ignore_value): New macro, to replace the old function.
24604         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
24605         * modules/ignore-value (Depends-on): Add stdint.
24606
24607 2011-01-04  Eric Blake  <eblake@redhat.com>
24608
24609         doc: regenerate INSTALL
24610         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
24611         @firstparagraphindent support, now that autoconf dropped it.
24612         (INSTALL_PRELUDE): Reinstate old macro.
24613         * doc/install.texi: Resync from autoconf.
24614         * doc/INSTALL: Reflect recent autoconf update.
24615         * doc/INSTALL.ISO: Likewise.
24616         * doc/INSTALL.UTF-8: Likewise.
24617         Reported by Karl Berry.
24618
24619 2011-01-04  Bruce Korb  <address@hidden>
24620
24621         git-version-gen: avoid a sub-shell
24622         * build-aux/git-version-gen: Redirect stderr in `...` via
24623         "exec 2>...", rather than via an added sub-shell.
24624
24625 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
24626
24627         git-version-gen: use (...) rather than sh -c '...'
24628         * build-aux/git-version-gen: Rather than hard-coding a shell's name
24629         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
24630
24631 2011-01-03  Jim Meyering  <meyering@redhat.com>
24632
24633         git-version-gen: convert leading TABs to spaces
24634         * build-aux/git-version-gen: Expand leading TABs.
24635
24636         git-version-gen: handle failed "git rev-list"
24637         * build-aux/git-version-gen: Rather than leaking a "fatal" error
24638         from git and proceeding as if it had succeeded but printed no SHA1
24639         checksums, suppress the diagnostic and handle the failure.
24640         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
24641
24642         git-version-gen: include command name in one more diagnostic
24643         * build-aux/git-version-gen: When the required .tarball-version file
24644         was missing or unreadable, you might see the diagnostic from "cat",
24645         but no trace of the name of the invoking script.  Now, you still see
24646         the diagnostic from cat, but also get one from "git-version-gen: ".
24647         Inspired by a patch from Bruce Korb.
24648
24649         update-copyright: adjust test to match changed code
24650         * tests/test-update-copyright.sh: Change test's expected output
24651         to match new actual output.
24652
24653 2011-01-02  Bruno Haible  <bruno@clisp.org>
24654
24655         getlogin_r: Avoid test failure on HP-UX 11.
24656         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
24657         ERANGE when the second argument is zero.
24658         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
24659         portability problem.
24660
24661 2011-01-02  Bruce Korb  <bkorb@gnu.org>
24662
24663         * build-aux/update-copyright: doc Simon's changes
24664
24665 2011-01-02  Simon Josefsson  <simon@josefsson.org>
24666
24667         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
24668         environment variable.
24669
24670 2011-01-02  Bruno Haible  <bruno@clisp.org>
24671
24672         unigbrk: Avoid gcc warnings.
24673         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
24674         unused variable.
24675         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
24676         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
24677         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
24678         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
24679         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
24680         Change type of first argument to 'const char *'.
24681         (main): Remove unused variable.
24682         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
24683         type of first argument to 'const char *'.
24684         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
24685         Likewise.
24686         (main): Change type of variable 's'.
24687         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
24688         to 'int'.
24689
24690 2011-01-02  Bruno Haible  <bruno@clisp.org>
24691
24692         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
24693         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
24694         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
24695         bug.
24696         * lib/pwrite.c: Undo 2010-12-31 patch.
24697         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
24698
24699 2011-01-02  Bruno Haible  <bruno@clisp.org>
24700
24701         pread: Fix test whether it works.
24702         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
24703
24704 2011-01-02  Bruno Haible  <bruno@clisp.org>
24705
24706         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
24707         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
24708         ends in "6". Don't require a specific month name. Try also the locale
24709         names found on HP-UX 11 and Solaris 7.
24710
24711 2011-01-02  Bruno Haible  <bruno@clisp.org>
24712
24713         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
24714         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
24715         C linkage.
24716         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
24717
24718 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24719
24720         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
24721         for consistency, since the "cluster" term is not used elsewhere.
24722         * lib/unigbrk.in.h: Update name.
24723         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
24724         * lib/unigbrk/u16-grapheme-next.c: Update name.
24725         * lib/unigbrk/u16-grapheme-prev.c: Update name.
24726         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
24727         * lib/unigbrk/u32-grapheme-next.c: Update name.
24728         * lib/unigbrk/u32-grapheme-prev.c: Update name.
24729         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
24730         * lib/unigbrk/u8-grapheme-next.c: Update name.
24731         * lib/unigbrk/u8-grapheme-prev.c: Update name.
24732         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
24733         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
24734         Suggested by Bruno Haible.
24735
24736 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24737
24738         Remove module 'u8-grapheme-len' as too redundant with
24739         'u8-grapheme-next'.
24740         * modules/unigbrk/u8-grapheme-len: Delete file.
24741         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
24742         * lib/unigbrk.in.h: Remove prototype for deleted function.
24743         * lib/unigbrk/u8-grapheme-len.c: Delete file.
24744         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
24745
24746         Remove module 'u16-grapheme-len' as too redundant with
24747         'u16-grapheme-next'.
24748         * modules/unigbrk/u16-grapheme-len: Delete file.
24749         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
24750         * lib/unigbrk.in.h: Remove prototype for deleted function.
24751         * lib/unigbrk/u16-grapheme-len.c: Delete file.
24752         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
24753
24754         Remove module 'u32-grapheme-len' as too redundant with
24755         'u32-grapheme-next'.
24756         * modules/unigbrk/u32-grapheme-len: Delete file.
24757         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
24758         * lib/unigbrk.in.h: Remove prototype for deleted function.
24759         * lib/unigbrk/u32-grapheme-len.c: Delete file.
24760         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
24761
24762         Suggested by Bruno Haible.
24763
24764 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
24765
24766         * unigbrk.in.h: Fix typo: "ben" => "been".
24767         Reported by Bruno Haible.
24768
24769 2011-01-01  Jim Meyering  <meyering@redhat.com>
24770
24771         maint: update almost all copyright ranges to include 2011
24772         Run the new "make update-copyright" rule.
24773
24774 2011-01-01  Jim Meyering  <meyering@redhat.com>
24775
24776         maint: update-copyright: exempt doc/INSTALL*
24777         * Makefile (update-copyright): Also exclude doc/INSTALL*,
24778         since they are generated.  Suggested by Bruno Haible.
24779
24780 2011-01-01  Jim Meyering  <meyering@redhat.com>
24781
24782         maint: refine the update-copyright rule
24783         * Makefile (update-copyright): Also exclude any file that includes
24784         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
24785         code that merely generates the comment.
24786
24787 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24788
24789         New module 'u8-grapheme-len'.
24790         * modules/unigbrk/u8-grapheme-len: New file.
24791         * modules/unigbrk/u8-grapheme-len-tests: New file.
24792         * lib/unigbrk.in.h: Add prototype for new function.
24793         * lib/unigbrk/u8-grapheme-len.c: New file.
24794         * tests/unigbrk/test-u8-grapheme-len.c: New file.
24795
24796         New module 'u16-grapheme-len'.
24797         * modules/unigbrk/u16-grapheme-len: New file.
24798         * modules/unigbrk/u16-grapheme-len-tests: New file.
24799         * lib/unigbrk.in.h: Add prototype for new function.
24800         * lib/unigbrk/u16-grapheme-len.c: New file.
24801         * tests/unigbrk/test-u16-grapheme-len.c: New file.
24802
24803         New module 'u32-grapheme-len'.
24804         * modules/unigbrk/u32-grapheme-len: New file.
24805         * modules/unigbrk/u32-grapheme-len-tests: New file.
24806         * lib/unigbrk.in.h: Add prototype for new function.
24807         * lib/unigbrk/u32-grapheme-len.c: New file.
24808         * tests/unigbrk/test-u32-grapheme-len.c: New file.
24809
24810         New module 'u8-grapheme-next'.
24811         * modules/unigbrk/u8-grapheme-next: New file.
24812         * modules/unigbrk/u8-grapheme-next-tests: New file.
24813         * lib/unigbrk.in.h: Add prototype for new function.
24814         * lib/unigbrk/u8-grapheme-next.c: New file.
24815         * tests/unigbrk/test-u8-grapheme-next.c: New file.
24816
24817         New module 'u16-grapheme-next'.
24818         * modules/unigbrk/u16-grapheme-next: New file.
24819         * modules/unigbrk/u16-grapheme-next-tests: New file.
24820         * lib/unigbrk.in.h: Add prototype for new function.
24821         * lib/unigbrk/u16-grapheme-next.c: New file.
24822         * tests/unigbrk/test-u16-grapheme-next.c: New file.
24823
24824         New module 'u32-grapheme-next'.
24825         * modules/unigbrk/u32-grapheme-next: New file.
24826         * modules/unigbrk/u32-grapheme-next-tests: New file.
24827         * lib/unigbrk.in.h: Add prototype for new function.
24828         * lib/unigbrk/u32-grapheme-next.c: New file.
24829         * tests/unigbrk/test-u32-grapheme-next.c: New file.
24830
24831         New module 'u8-grapheme-prev'.
24832         * modules/unigbrk/u8-grapheme-prev: New file.
24833         * modules/unigbrk/u8-grapheme-prev-tests: New file.
24834         * lib/unigbrk.in.h: Add prototype for new function.
24835         * lib/unigbrk/u8-grapheme-prev.c: New file.
24836         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
24837
24838         New module 'u16-grapheme-prev'.
24839         * modules/unigbrk/u16-grapheme-prev: New file.
24840         * modules/unigbrk/u16-grapheme-prev-tests: New file.
24841         * lib/unigbrk.in.h: Add prototype for new function.
24842         * lib/unigbrk/u16-grapheme-prev.c: New file.
24843         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
24844
24845         New module 'u32-grapheme-prev'.
24846         * modules/unigbrk/u32-grapheme-prev: New file.
24847         * modules/unigbrk/u32-grapheme-prev-tests: New file.
24848         * lib/unigbrk.in.h: Add prototype for new function.
24849         * lib/unigbrk/u32-grapheme-prev.c: New file.
24850         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
24851
24852         New module 'u8-grapheme-breaks'.
24853         * modules/unigbrk/u8-grapheme-breaks: New file.
24854         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
24855         * lib/unigbrk.in.h: Add prototype for new function.
24856         * lib/unigbrk/u8-grapheme-breaks.c: New file.
24857         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
24858
24859         New module 'u16-grapheme-breaks'.
24860         * modules/unigbrk/u16-grapheme-breaks: New file.
24861         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
24862         * lib/unigbrk.in.h: Add prototype for new function.
24863         * lib/unigbrk/u16-grapheme-breaks.c: New file.
24864         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
24865
24866         New module 'u32-grapheme-breaks'.
24867         * modules/unigbrk/u32-grapheme-breaks: New file.
24868         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
24869         * lib/unigbrk.in.h: Add prototype for new function.
24870         * lib/unigbrk/u32-grapheme-breaks.c: New file.
24871         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
24872
24873         New module 'ulc-grapheme-breaks'.
24874         * modules/unigbrk/ulc-grapheme-breaks: New file.
24875         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
24876         * m4/locale-ar.m4: New file.
24877         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
24878         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
24879         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
24880
24881 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24882
24883         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
24884         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
24885         modified how this file was generated before I initially submitted
24886         the module, but failed to regenerate it.  This meant that several
24887         of the level2 entries were wrong.
24888         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
24889         Remove the division-by-2 that is folded into the table now that
24890         gbrkprop.h has been regenerated properly.  Now -1 entries are
24891         handled correctly.
24892
24893         New module 'unigbrk/uc-gbrk-prop-tests'.
24894         * modules/unigbrk/uc-gbrk-prop-tests: New file.
24895         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
24896         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
24897         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24898
24899 2011-01-01  Bruno Haible  <bruno@clisp.org>
24900
24901         Avoid use of hexadecimal escapes.
24902         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24903         instead of hexadecimal escapes.
24904
24905 2011-01-01  Jim Meyering  <meyering@redhat.com>
24906
24907         maint: new rule to update copyright year ranges
24908         * Makefile (update-copyright): New rule.
24909
24910         maint: indent with TABs in Makefile
24911         * Makefile: Expand leading sequences of spaces to TABs
24912
24913         version-etc: update the copyright year it reports
24914         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24915
24916 2010-12-31  Bruno Haible  <bruno@clisp.org>
24917
24918         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24919         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24920         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
24921         zero.
24922
24923 2010-12-31  Bruno Haible  <bruno@clisp.org>
24924
24925         pwrite: Work around HP-UX 11.11 bug.
24926         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
24927         works and set REPLACE_PWRITE if not.
24928         * lib/pwrite.c (pwrite): Add an implementation that uses the system
24929         function.
24930         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
24931
24932 2010-12-31  Bruno Haible  <bruno@clisp.org>
24933
24934         pread: Work around HP-UX 11 bugs.
24935         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
24936         and set REPLACE_PREAD if not.
24937         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
24938
24939 2010-12-31  Eric Blake  <eblake@redhat.com>
24940
24941         nl_langinfo: fix YESEXPR on Irix 6.5
24942         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
24943         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
24944         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
24945         it.
24946
24947 2010-12-31  Bruno Haible  <bruno@clisp.org>
24948
24949         iconv: Document HP-UX 11 bug.
24950         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
24951
24952 2010-12-31  Bruno Haible  <bruno@clisp.org>
24953
24954         ldexpl: Fix link error on HP-UX 11.
24955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
24956         LDEXPL_LIBM, using $ISNANL_LIBM.
24957
24958 2010-12-31  Eric Blake  <eblake@redhat.com>
24959
24960         ftello: avoid compilation failure with SunStudio c89
24961         * lib/ftello.c (ftello): Use lseek, not llseek.
24962
24963         tests: avoid failing coreutils tests on cygwin
24964         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
24965         (create_exe_shims_): Return 0 when skipping.
24966
24967 2010-12-31  Bruno Haible  <bruno@clisp.org>
24968
24969         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
24970         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
24971
24972 2010-12-31  Bruno Haible  <bruno@clisp.org>
24973
24974         waitpid: Fix link error in C++ mode.
24975         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24976
24977 2010-12-31  Bruno Haible  <bruno@clisp.org>
24978
24979         isnan: Use GCC built-ins when possible.
24980         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24981         __builtin_isnan.
24982         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24983         (isnan): Define using GCC built-ins for GCC >= 4.0.
24984
24985 2010-12-31  Bruno Haible  <bruno@clisp.org>
24986
24987         isnand: Fix mistake.
24988         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24989         __builtin_isnand.
24990
24991 2010-12-31  Bruno Haible  <bruno@clisp.org>
24992
24993         open: Avoid C++ error on HP-UX 11.
24994         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24995
24996 2010-12-31  Bruno Haible  <bruno@clisp.org>
24997
24998         time_r: Add missing declarations on HP-UX 11.
24999         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25000         instead of HAVE_LOCALTIME_R.
25001         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25002         HAVE_LOCALTIME_R always.
25003         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25004         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25005         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25006         HAVE_LOCALTIME_R.
25007         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25008         * doc/posix-functions/localtime_r.texi: Likewise.
25009
25010 2010-12-29  Eric Blake  <eblake@redhat.com>
25011
25012         mountlist: tweak previous commit
25013         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25014         Reported by Paul Eggert.
25015
25016         mountlist: fix local drive detection on cygwin
25017         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25018         that works for cygwin.
25019
25020 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25021
25022         ftoastr, snprintf: ftoastr + snprintf module
25023         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25024         since the snprintf module now should be good enough here.
25025         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25026         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25027         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25028         GNULIB_SNPRINTF only for the test directory, and the latter
25029         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25030         seems to suffice by itself.
25031
25032 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25033
25034         alloca: one step towards thread-safety
25035         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25036         need for a static variable.  All callers changed.  This does not
25037         make the alloca replacement thread-safe, but it's one step.
25038
25039         tests: minor indenting change
25040         * tests/init.sh: Sync from coreutils housekeeping patch
25041         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25042         to keep lines within 80 columns.
25043
25044 2010-12-28  Jim Meyering  <meyering@redhat.com>
25045
25046         regex: don't infloop on persistent failing calloc
25047         * lib/regexec.c (build_trtable): Return failure indication upon
25048         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25049         In glibc, this was fixed for version 2.13:
25050         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25051
25052 2010-12-28  Bruno Haible  <bruno@clisp.org>
25053             Paul Eggert <eggert@cs.ucla.edu>
25054
25055         linkat: Make implementation robust against system behaviour variations.
25056         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25057         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25058         way, and to -2 if it needs a generic runtime test.
25059         * lib/linkat.c (solaris_optimized_link_immediate,
25060         solaris_optimized_link_follow): New functions.
25061         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25062         (check_same_link): Use it.
25063
25064 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25065
25066         New module 'unigbrk/base'.
25067         * modules/unigbrk/base: New file.
25068         * lib/unigbrk.in.h: New file.
25069
25070         New module 'unigbrk/uc-gbrk-prop'.
25071         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25072         * modules/unigbrk/uc-gbrk-prop: New file.
25073         * lib/unigbrk/gbrkprop.h: New file.
25074         * lib/unigbrk/uc-gbrk-prop.c: New file.
25075
25076         New module 'unigbrk/uc-is-grapheme-break'.
25077         * modules/unigbrk/uc-is-grapheme-break: New file.
25078         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25079         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25080         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25081         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25082         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25083
25084         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25085
25086 2010-12-27  Bruno Haible  <bruno@clisp.org>
25087
25088         linkat test: Avoid failure on Solaris 11 2010-11.
25089         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25090
25091 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25092
25093         utimens: work around glibc rounding bug on more platforms
25094         * lib/utimens.c (fdutimens): Work around rounding bug even if
25095         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25096         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25097
25098 2010-12-27  Bruno Haible  <bruno@clisp.org>
25099
25100         select tests: Improve comments.
25101         * tests/test-select.c (do_select): Add comments.
25102
25103 2010-12-27  Bruno Haible  <bruno@clisp.org>
25104
25105         select tests: Safer way of handling timeout.
25106         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25107         at every invocation.
25108
25109 2010-12-27  Bruno Haible  <bruno@clisp.org>
25110
25111         select tests: Use 'bool' where appropriate.
25112         * tests/test-select.c (connect_to_socket): Change argument type to
25113         'bool'.
25114
25115 2010-12-27  Bruno Haible  <bruno@clisp.org>
25116
25117         select tests: Use existing modules.
25118         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25119         (configure.ac): Don't test for unistd.h.
25120         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25121         declared in <unistd.h>.
25122
25123 2010-12-27  Bruno Haible  <bruno@clisp.org>
25124
25125         mbrtowc: Work around a Solaris 7 bug.
25126         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25127         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25128         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25129         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25130         MBRTOWC_NULL_ARG1_BUG.
25131         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25132         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25133         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25134         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25135
25136 2010-12-27  Jim Meyering  <meyering@redhat.com>
25137
25138         read-file.c: tweak syntax
25139         * lib/read-file.c (fread_file): Remove space after "*" in function
25140         definitions.
25141
25142 2010-12-27  Bruno Haible  <bruno@clisp.org>
25143
25144         times test: Avoid gcc warnings on OSF/1.
25145         * tests/test-times.c (main): Cast printf arguments from clock_t to
25146         'long int'.
25147
25148 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25149
25150         utimens: work around glibc rounding bug on older Linux kernels
25151         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25152         on Linux with a glibc whose utimes might not work, then work
25153         around a longstanding glibc bug involving rounding rather than
25154         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25155         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25156
25157 2010-12-26  Bruno Haible  <bruno@clisp.org>
25158
25159         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25160         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25161         _GL_CXXALIAS_SYS.
25162         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25163
25164 2010-12-26  Bruno Haible  <bruno@clisp.org>
25165
25166         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25167         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25168         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25169         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25170         looking for the declaration.
25171         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25172         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25173         problem.
25174         * doc/posix-functions/inet_pton.texi: Likewise.
25175
25176 2010-12-26  Bruno Haible  <bruno@clisp.org>
25177
25178         arpa_inet: Use the common idioms with C++ support.
25179         * lib/arpa_inet.in.h: Include c++defs.h.
25180         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25181         support.
25182         * modules/arpa_inet (Depends-on): Add c++defs.
25183         (Makefile.am): Substitute the contents of c++defs.h.
25184         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25185         * modules/arpa_inet-c++-tests: New file.
25186         * tests/test-arpa_inet-c++.cc: New file.
25187
25188 2010-12-25  Bruno Haible  <bruno@clisp.org>
25189
25190         Fix more C++ link errors on Solaris 8.
25191         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25192         $(LIB_EACCESS).
25193         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25194         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25195         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25196         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25197         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25198
25199 2010-12-25  Bruno Haible  <bruno@clisp.org>
25200
25201         printf-posix: Fix link error when a non-GCC compiler is used.
25202         * lib/stdio.in.h (printf): When not using GCC, override printf
25203         correctly.
25204         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25205
25206 2010-12-25  Bruno Haible  <bruno@clisp.org>
25207
25208         strerror_r-posix: Update doc.
25209         * doc/posix-functions/strerror_r.texi: Update doc about the return
25210         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25211
25212 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25213
25214         utimens: simplify the logic of the previous change
25215         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25216         This should not affect whether the test succeeds or fails.
25217
25218         utimens: configure better on hosts with NFS clock skew
25219         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25220         uses the clock of the local host.  It might use the clock of the
25221         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25222         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25223
25224 2010-12-25  Bruno Haible  <bruno@clisp.org>
25225
25226         ptsname test: Avoid failure on Solaris.
25227         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25228         open a pseudo-terminal; don't use BSD-style ptys.
25229         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25230
25231 2010-12-25  Bruno Haible  <bruno@clisp.org>
25232
25233         ptsname: Avoid ERANGE failure on some systems.
25234         * lib/ptsname.c (buffer): Increase size.
25235
25236 2010-12-25  Bruno Haible  <bruno@clisp.org>
25237
25238         rename, renameat: Avoid test failures at NFS mounted locations.
25239         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25240         so that subsequent mkdir calls succeed.
25241
25242 2010-12-25  Bruno Haible  <bruno@clisp.org>
25243
25244         iswblank: Fix C++ link error on Solaris 8.
25245         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25246         _GL_FUNCDECL_SYS.
25247
25248 2010-12-25  Bruno Haible  <bruno@clisp.org>
25249
25250         unistd: Fix C++ link error on Solaris 8.
25251         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25252
25253 2010-12-25  Bruno Haible  <bruno@clisp.org>
25254
25255         readlink doc: Mention an old glibc bug.
25256         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25257
25258 2010-12-25  Bruno Haible  <bruno@clisp.org>
25259
25260         fcntl-h: Fix for use of C++ on glibc systems.
25261         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25262         also on glibc systems in C++ mode.
25263         Reported by Gary V. Vaughan <gary@gnu.org>.
25264
25265 2010-12-25  Bruno Haible  <bruno@clisp.org>
25266
25267         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25268         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25269
25270 2010-12-25  Bruno Haible  <bruno@clisp.org>
25271
25272         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25273         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25274         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25275         test whether truncl works according to ISO C 99 with IEC 60559.
25276         * m4/truncl-ieee.m4: New file.
25277         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25278         m4/signbit.m4.
25279         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25280
25281 2010-12-25  Bruno Haible  <bruno@clisp.org>
25282
25283         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25284         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25285         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25286         test whether ceill works according to ISO C 99 with IEC 60559.
25287         * m4/ceill-ieee.m4: New file.
25288         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25289         m4/signbit.m4.
25290         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25291
25292 2010-12-25  Bruno Haible  <bruno@clisp.org>
25293
25294         Ensure all prerequisites of <wchar.h> are included.
25295         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25296         before <wchar.h>.
25297         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25298         gl_MBRLEN_NUL_RETVAL): Likewise.
25299         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25300         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25301         AC_FUNC_MBRTOWC): Likewise.
25302         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25303         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25304         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25305         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25306         Likewise.
25307         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25308         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25309         (gl_WCHAR_H): Improve comments.
25310         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25311
25312 2010-12-25  Bruno Haible  <bruno@clisp.org>
25313
25314         strtok_r: Fix C syntax error in autoconf macro.
25315         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25316         characters in test program.
25317
25318 2010-12-24  Bruno Haible  <bruno@clisp.org>
25319
25320         ceil, trunc, round: Fix gcc warnings.
25321         * lib/ceil.c (MIN): Undefine before redefining.
25322         * lib/trunc.c (MIN): Likewise.
25323         * lib/round.c (MIN): Likewise.
25324         Include <math.h> first.
25325
25326 2010-12-24  Bruno Haible  <bruno@clisp.org>
25327
25328         select tests: Avoid failures on OSF/1 5.1.
25329         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25330         failure of closing the last socket; it may fail with ECONNRESET.
25331
25332 2010-12-24  Eric Blake  <eblake@redhat.com>
25333
25334         stdint: avoid HP-UX 10.20 preprocessor bug
25335         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25336         than #if.
25337         * tests/test-floor2.c (main): Likewise.
25338         Reported by Peter O'Gorman.
25339
25340         pipe: make obsoletion transition easier
25341         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25342         * modules/pipe (Files): Include revived file.
25343         (Include): Drop reference, to mirror getdate's behavior.
25344
25345 2010-12-24  Bruno Haible  <bruno@clisp.org>
25346
25347         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25348         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25349         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25350         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25351
25352 2010-12-24  Bruno Haible  <bruno@clisp.org>
25353
25354         gethostname: Ensure declaration on NonStop Kernel.
25355         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25356         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25357
25358 2010-12-24  Bruno Haible  <bruno@clisp.org>
25359
25360         sys_select: Ensure all necessary types on NonStop Kernel.
25361         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25362         include <sys/time.h>.
25363         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25364         NonStop Kernel.
25365         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25366
25367 2010-12-24  Bruno Haible  <bruno@clisp.org>
25368
25369         sys_select: Remove unneeded include.
25370         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25371         have <sys/select.h>.
25372
25373 2010-12-24  Bruno Haible  <bruno@clisp.org>
25374
25375         gethostname: Provide a fallback for HOST_NAME_MAX.
25376         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25377         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25378         instead.
25379         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25380
25381 2010-12-24  Bruno Haible  <bruno@clisp.org>
25382
25383         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25384         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25385         (SA_RESTART): Likewise.
25386         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25387
25388 2010-12-24  Bruno Haible  <bruno@clisp.org>
25389
25390         signal: Define NSIG.
25391         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25392         * tests/test-signal.c (nsig): New variable.
25393         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25394
25395 2010-12-24  Bruno Haible  <bruno@clisp.org>
25396
25397         rename, renameat: Avoid test failures on OSF/1 5.1.
25398         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25399         alternative error codes.
25400         * tests/test-renameat.c (main): Likewise.
25401
25402 2010-12-24  Bruno Haible  <bruno@clisp.org>
25403
25404         *printf: Detect large precisions bug on Solaris 10/SPARC.
25405         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25406         by Paul Eggert.
25407         * tests/test-snprintf-posix.h (test_function): Add this test code here
25408         too.
25409         * tests/test-sprintf-posix.h (test_function): Likewise.
25410         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25411         * tests/test-vasprintf-posix.c (test_function): Likewise.
25412         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25413         around by gnulib.
25414         * doc/posix-functions/printf.texi: Likewise.
25415         * doc/posix-functions/snprintf.texi: Likewise.
25416         * doc/posix-functions/sprintf.texi: Likewise.
25417         * doc/posix-functions/vfprintf.texi: Likewise.
25418         * doc/posix-functions/vprintf.texi: Likewise.
25419         * doc/posix-functions/vsnprintf.texi: Likewise.
25420         * doc/posix-functions/vsprintf.texi: Likewise.
25421         * doc/posix-functions/dprintf.texi: Undo last commit.
25422         * doc/posix-functions/vdprintf.texi: Likewise.
25423
25424 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25425
25426         tests: port test-fdutimensat.c to Solaris 8
25427         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25428         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25429         On Solaris 8, it fails with errno == ENOSYS, because there is no
25430         futimens (so it can't use the fd), and there is no lutimens (so it
25431         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25432
25433         vsnprintf: make more consistent with snprintf; doc fixes
25434
25435         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25436         the byte count return problem was promoted from the snprintf-posix
25437         to the snprintf module.
25438         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25439         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25440         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25441         * tests/test-snprintf.c (main): Check the byte count returned.
25442         * tests/test-vsnprintf.c (main): Likewise.
25443
25444 2010-12-23  Eric Blake  <eblake@redhat.com>
25445
25446         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25447         * modules/sigpipe (License): Relax license.
25448
25449 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25450
25451         doc: document Solaris printf bug with large float precisions
25452         * doc/posix-functions/dprintf.texi (dprintf):
25453         * doc/posix-functions/fprintf.texi (fprintf):
25454         * doc/posix-functions/printf.texi (printf):
25455         * doc/posix-functions/snprintf.texi (snprintf):
25456         * doc/posix-functions/sprintf.texi (sprintf):
25457         * doc/posix-functions/vdprintf.texi (vdprintf):
25458         * doc/posix-functions/vfprintf.texi (vfprintf):
25459         * doc/posix-functions/vprintf.texi (vprintf):
25460         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25461         * doc/posix-functions/vsprintf.texi (vsprintf):
25462         Mention that these functions mishandle large floating point
25463         precisions on Solaris 10.  The same bug is also present in Solaris
25464         8, and I assume earlier.  This causes "cd gnulib-tests; make
25465         check" to fail on Solaris 8 (and I assume, later) when building
25466         the latest coreutils, in test-vasprintf-posix's call to
25467         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25468         the wide flavors (e.g., wprintf) so this patch just updates the
25469         documentation for the narrow ones.
25470
25471         test-posixtm.c: add two tests
25472         * tests/test-posixtm.c: Add two tests, to highlight the
25473         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25474         around this bug; this is merely to document it.
25475
25476 2010-12-22  Bruno Haible  <bruno@clisp.org>
25477
25478         getlogin_r: Work around portability problem on OSF/1.
25479         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25480         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25481         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25482         test for a truncated result.
25483         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25484         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25485         * modules/getlogin_r (Depends-on): Add memchr.
25486         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25487
25488 2010-12-22  Bruno Haible  <bruno@clisp.org>
25489
25490         ptsname: Avoid test failure on OSF/1 5.1.
25491         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25492         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25493         (same_slave): New function.
25494         (main): Use it to compare ptsname's result with the expected file name.
25495
25496 2010-12-22  Bruno Haible  <bruno@clisp.org>
25497
25498         Port extended stdio modules to HP NonStop Kernel.
25499         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25500         macros.
25501         * lib/fbufmode.c: Update comments.
25502         * lib/fflush.c: Likewise.
25503         * lib/fpurge.c: Likewise.
25504         * lib/freadable.c: Likewise.
25505         * lib/freadahead.c: Likewise.
25506         * lib/freading.c: Likewise.
25507         * lib/freadptr.c: Likewise.
25508         * lib/freadseek.c: Likewise.
25509         * lib/fseeko.c: Likewise.
25510         * lib/fseterr.c: Likewise.
25511         * lib/fwritable.c: Likewise.
25512         * lib/fwriting.c: Likewise.
25513         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25514
25515 2010-12-22  Bruno Haible  <bruno@clisp.org>
25516
25517         ttyname_r: Work around bug on OSF/1 5.1.
25518         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
25519         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
25520         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
25521         present.
25522         * lib/ttyname_r.c (ttyname_r): Update comments.
25523
25524 2010-12-22  Bruno Haible  <bruno@clisp.org>
25525
25526         round: Implement result sign according to IEEE 754.
25527         * lib/round.c (MIN, MINUS_ZERO): New macros.
25528         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
25529         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
25530         * tests/test-round-ieee.c (main): Likewise.
25531         * tests/test-roundl-ieee.c (main): Likewise.
25532
25533         trunc: Implement result sign according to IEEE 754.
25534         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
25535         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
25536         * tests/test-trunc2.c: Include minus-zero.h.
25537         (MINUS_ZERO): New macro.
25538         (trunc_reference): Keep in sync with lib/trunc.c.
25539         * tests/test-truncf2.c: Include minus-zero.h.
25540         (MINUS_ZERO): New macro.
25541         (truncf_reference): Keep in sync with lib/trunc.c.
25542         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
25543         * tests/test-trunc-ieee.c (main): Likewise.
25544         * tests/test-truncl-ieee.c (main): Likewise.
25545
25546         ceil: Implement result sign according to IEEE 754.
25547         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
25548         (FUNC): Return -0.0 for -1 < x < 0.
25549         * tests/test-ceil2.c: Include minus-zero.h.
25550         (MINUS_ZERO): New macro.
25551         (ceil_reference): Keep in sync with lib/ceil.c.
25552         * tests/test-ceilf2.c: Include minus-zero.h.
25553         (MINUS_ZERO): New macro.
25554         (ceilf_reference): Keep in sync with lib/ceil.c.
25555         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
25556         * tests/test-ceil-ieee.c (main): Likewise.
25557         * tests/test-ceill-ieee.c (main): Likewise.
25558
25559         floor: Implement result sign according to IEEE 754.
25560         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
25561         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
25562         * tests/test-floorf2.c (floorf_reference): Likewise.
25563         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
25564         * tests/test-floor-ieee.c (main): Likewise.
25565         * tests/test-floorl-ieee.c (main): Likewise.
25566
25567 2010-12-22  Bruno Haible  <bruno@clisp.org>
25568
25569         getaddrinfo: Update doc.
25570         * doc/posix-functions/gai_strerror.texi: Return type is also different
25571         on AIX and HP-UX.
25572
25573 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25574
25575         getaddrinfo, inet_ntop: Update doc for Solaris.
25576         * doc/posix-functions/gai_strerror.texi: Return type is also an
25577         issue on Solaris 9 and earlier.
25578         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
25579         on Solaris 10 and earlier.
25580
25581 2010-12-21  Bruno Haible  <bruno@clisp.org>
25582
25583         New module 'roundl-ieee'.
25584         * modules/roundl-ieee: New file.
25585         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
25586         test whether roundl works according to ISO C 99 with IEC 60559.
25587         * m4/roundl-ieee.m4: New file.
25588         * modules/roundl-ieee-tests: New file.
25589         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
25590         * tests/test-roundl.c (main): Remove signbit tests.
25591         * modules/roundl-tests (Depends-on): Remove signbit.
25592         * doc/posix-functions/roundl.texi: Mention the new module.
25593
25594 2010-12-21  Bruno Haible  <bruno@clisp.org>
25595
25596         New module 'truncl-ieee'.
25597         * modules/truncl-ieee: New file.
25598         * modules/truncl-ieee-tests: New file.
25599         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
25600         * tests/test-truncl.c (main): Remove signbit tests.
25601         * modules/truncl-tests (Depends-on): Remove signbit.
25602         * doc/posix-functions/truncl.texi: Mention the new module.
25603
25604 2010-12-21  Bruno Haible  <bruno@clisp.org>
25605
25606         New module 'ceill-ieee'.
25607         * modules/ceill-ieee: New file.
25608         * modules/ceill-ieee-tests: New file.
25609         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
25610         * tests/test-ceill.c (main): Remove signbit tests.
25611         * modules/ceill-tests (Depends-on): Remove signbit.
25612         * doc/posix-functions/ceill.texi: Mention the new module.
25613
25614 2010-12-21  Bruno Haible  <bruno@clisp.org>
25615
25616         New module 'floorl-ieee'.
25617         * modules/floorl-ieee: New file.
25618         * modules/floorl-ieee-tests: New file.
25619         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
25620         * tests/test-floorl.c (main): Remove signbit tests.
25621         * modules/floorl-tests (Depends-on): Remove signbit.
25622         * doc/posix-functions/floorl.texi: Mention the new module.
25623
25624 2010-12-21  Bruno Haible  <bruno@clisp.org>
25625
25626         New module 'round-ieee'.
25627         * modules/round-ieee: New file.
25628         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
25629         whether round works according to ISO C 99 with IEC 60559.
25630         * m4/round-ieee.m4: New file.
25631         * modules/round-ieee-tests: New file.
25632         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
25633         * tests/test-round1.c (main): Remove signbit tests.
25634         * modules/round-tests (Depends-on): Remove 'signbit'.
25635         * doc/posix-functions/round.texi: Mention the new module.
25636
25637 2010-12-21  Bruno Haible  <bruno@clisp.org>
25638
25639         New module 'trunc-ieee'.
25640         * modules/trunc-ieee: New file.
25641         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
25642         whether trunc works according to ISO C 99 with IEC 60559.
25643         * m4/trunc-ieee.m4: New file.
25644         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
25645         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
25646         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
25647         * modules/trunc-ieee-tests: New file.
25648         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
25649         * tests/test-trunc1.c (main): Remove signbit tests.
25650         * modules/trunc-tests (Depends-on): Remove 'signbit'.
25651         * doc/posix-functions/trunc.texi: Mention the new module.
25652
25653 2010-12-21  Bruno Haible  <bruno@clisp.org>
25654
25655         New module 'ceil-ieee'.
25656         * modules/ceil-ieee: New file.
25657         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
25658         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
25659         ISO C 99 with IEC 60559.
25660         * m4/ceil-ieee.m4: New file.
25661         * modules/ceil (Files): Add lib/ceil.c.
25662         (Depends-on): Add 'float'.
25663         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25664         * lib/math.in.h (ceil): New declaration.
25665         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
25666         REPLACE_CEIL.
25667         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
25668         * modules/ceil-ieee-tests: New file.
25669         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
25670         * tests/test-math-c++.cc: Check the signature of 'ceil'.
25671         * doc/posix-functions/ceil.texi: Mention the new module.
25672
25673 2010-12-21  Bruno Haible  <bruno@clisp.org>
25674
25675         New module 'floor-ieee'.
25676         * modules/floor-ieee: New file.
25677         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
25678         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
25679         ISO C 99 with IEC 60559.
25680         * m4/floor-ieee.m4: New file.
25681         * modules/floor (Files): Add lib/floor.c.
25682         (Depends-on): Add 'float'.
25683         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
25684         * lib/math.in.h (floor): New declaration.
25685         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
25686         REPLACE_FLOOR.
25687         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
25688         * modules/floor-ieee-tests: New file.
25689         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
25690         * tests/test-math-c++.cc: Check the signature of 'floor'.
25691         * doc/posix-functions/floor.texi: Mention the new module.
25692
25693 2010-12-21  Bruno Haible  <bruno@clisp.org>
25694
25695         New module 'roundf-ieee'.
25696         * modules/roundf-ieee: New file.
25697         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
25698         test whether roundf works according to ISO C 99 with IEC 60559.
25699         * m4/roundf-ieee.m4: New file.
25700         * modules/roundf-ieee-tests: New file.
25701         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
25702         * tests/test-roundf1.c (main): Remove signbit tests.
25703         * modules/roundf-tests (Depends-on): Remove 'signbit'.
25704         * doc/posix-functions/roundf.texi: Mention the new module.
25705
25706 2010-12-21  Bruno Haible  <bruno@clisp.org>
25707
25708         New module 'truncf-ieee'.
25709         * modules/truncf-ieee: New file.
25710         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
25711         test whether truncf works according to ISO C 99 with IEC 60559.
25712         * m4/truncf-ieee.m4: New file.
25713         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
25714         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
25715         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
25716         * modules/truncf-ieee-tests: New file.
25717         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
25718         * tests/test-truncf1.c (main): Remove signbit tests.
25719         * modules/truncf-tests (Depends-on): Remove 'signbit'.
25720         * doc/posix-functions/truncf.texi: Mention the new module.
25721
25722 2010-12-21  Bruno Haible  <bruno@clisp.org>
25723
25724         New module 'ceilf-ieee'.
25725         * modules/ceilf-ieee: New file.
25726         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
25727         test whether ceilf works according to ISO C 99 with IEC 60559.
25728         * m4/ceilf-ieee.m4: New file.
25729         * modules/ceilf-ieee-tests: New file.
25730         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
25731         * tests/test-ceilf1.c (main): Remove signbit tests.
25732         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
25733         * doc/posix-functions/ceilf.texi: Mention the new module.
25734
25735 2010-12-21  Bruno Haible  <bruno@clisp.org>
25736
25737         New module 'floorf-ieee'.
25738         * modules/floorf-ieee: New file.
25739         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
25740         test whether floorf works according to ISO C 99 with IEC 60559.
25741         * m4/floorf-ieee.m4: New file.
25742         * modules/floorf-ieee-tests: New file.
25743         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
25744         * tests/test-floorf1.c (main): Remove signbit tests.
25745         * modules/floorf-tests (Depends-on): Remove 'signbit'.
25746         * doc/posix-functions/floorf.texi: Mention the new module.
25747
25748 2010-12-21  Bruno Haible  <bruno@clisp.org>
25749
25750         Support for minus zero in autoconf macros.
25751         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
25752         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
25753         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
25754         * tests/minus-zero.h: Update comments.
25755
25756 2010-12-21  Bruno Haible  <bruno@clisp.org>
25757
25758         Tests for module 'ceil'.
25759         * modules/ceil-tests: New file.
25760         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
25761         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
25762
25763 2010-12-21  Bruno Haible  <bruno@clisp.org>
25764
25765         Tests for module 'floor'.
25766         * modules/floor-tests: New file.
25767         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
25768         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
25769
25770 2010-12-21  Bruno Haible  <bruno@clisp.org>
25771
25772         math: Fix indentation.
25773         * lib/math.in.h (floorf): Fix indentation.
25774
25775 2010-12-21  Bruno Haible  <bruno@clisp.org>
25776
25777         Fix cross-compilation guesses on Solaris.
25778         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
25779         not match "solaris2.10".
25780         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25781         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
25782         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
25783
25784 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
25785
25786         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
25787         This fixes a problem observed with the latest coreutils snapshot
25788         that caused a test to fail on Solaris 8.  src/csplit.c's call
25789         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
25790         earlier, instead of returning the number of bytes that would have
25791         been generated; this causes csplit to incorrectly report memory
25792         exhaustion.
25793         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
25794         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
25795         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
25796         comments to match.
25797         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
25798         Fix typo in matching older versions of Solaris: "solaris2.10"
25799         is matched by the shell pattern "solaris2.[0-9]*".  This matters
25800         only for guessing while cross-compiling.
25801         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
25802
25803 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
25804
25805         ftoastr: fix comment again
25806         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25807         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
25808         Also, simplify example a bit by using flags = 0.
25809
25810 2010-12-20  Bruno Haible  <bruno@clisp.org>
25811
25812         round*, trunc*: Update documentation regarding glibc.
25813         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
25814         * doc/posix-functions/round.texi: Likewise.
25815         * doc/posix-functions/roundl.texi: Likewise.
25816         * doc/posix-functions/truncf.texi: Likewise.
25817         * doc/posix-functions/trunc.texi: Likewise.
25818         * doc/posix-functions/truncl.texi: Likewise.
25819
25820 2010-12-20  Bruno Haible  <bruno@clisp.org>
25821
25822         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
25823         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
25824         * doc/posix-functions/round.texi: Likewise.
25825         * doc/posix-functions/roundl.texi: Likewise.
25826
25827 2010-12-20  Bruno Haible  <bruno@clisp.org>
25828
25829         ttyname_r: Add missing declaration on HP-UX 11.
25830         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
25831         HAVE_TTYNAME_R.
25832         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
25833         declared. Set HAVE_TTYNAME_R always.
25834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25835         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
25836         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
25837         HAVE_TTYNAME_R.
25838         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
25839
25840 2010-12-20  Bruno Haible  <bruno@clisp.org>
25841
25842         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
25843         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
25844         * doc/posix-functions/getlogin_r.texi: Likewise.
25845         * tests/test-getlogin.c: Include <errno.h>.
25846         (main): Avoid test failure on HP-UX 11.11.
25847         * tests/test-getlogin_r.c (main): Likewise.
25848
25849 2010-12-20  Bruno Haible  <bruno@clisp.org>
25850
25851         getlogin_r: Add missing declaration on HP-UX 11.
25852         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
25853         declared also when it exists as a function.
25854         * doc/posix-functions/getlogin_r.texi: Document this workaround.
25855
25856 2010-12-20  Bruno Haible  <bruno@clisp.org>
25857
25858         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
25859         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
25860         through wcrtomb.
25861
25862 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25863
25864         ftoastr: fix comment
25865         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25866         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
25867
25868 2010-12-19  Bruno Haible  <bruno@clisp.org>
25869
25870         isnan: Ensure it is a macro.
25871         * lib/math.in.h (isnan): Define as a macro if not already a macro.
25872         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
25873         Solaris.
25874
25875 2010-12-19  Bruno Haible  <bruno@clisp.org>
25876
25877         ldexpl test: Fix link error on OSF/1 5.1.
25878         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
25879
25880 2010-12-19  Bruno Haible  <bruno@clisp.org>
25881
25882         wctype: Make it work in C++ mode on OSF/1 5.1.
25883         * lib/wctype.in.h (iswblank): Declare but not define here.
25884         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
25885         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
25886         * modules/wctype (Files): Add lib/iswblank.c.
25887
25888 2010-12-19  Bruno Haible  <bruno@clisp.org>
25889
25890         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
25891         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
25892         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
25893
25894 2010-12-19  Bruno Haible  <bruno@clisp.org>
25895
25896         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
25897         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25898         _POSIX_PII_SOCKET.
25899         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25900         * doc/posix-functions/recvfrom.texi: Likewise.
25901         * doc/posix-functions/send.texi: Likewise.
25902         * doc/posix-functions/sendto.texi: Likewise.
25903
25904 2010-12-19  Bruno Haible  <bruno@clisp.org>
25905
25906         tcgetsid: Add missing declaration on OSF/1 5.1.
25907         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25908         HAVE_TCGETSID.
25909         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25910         Don't set HAVE_TCGETSID.
25911         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25912         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25913         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25914         HAVE_TCGETSID.
25915         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25916
25917 2010-12-19  Bruno Haible  <bruno@clisp.org>
25918
25919         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25920         * lib/stdio.in.h: During the include_next statement, let recursive
25921         includes of this file include only the system header file.
25922
25923 2010-12-19  Bruno Haible  <bruno@clisp.org>
25924
25925         iconv_open: Fix regression from 2010-12-04.
25926         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
25927         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25928
25929 2010-12-19  Bruno Haible  <bruno@clisp.org>
25930
25931         stdbool test: Avoid a gcc warning.
25932         * tests/test-stdbool.c (main): Fail if e1 is false.
25933         Reported by Jim Meyering.
25934
25935 2010-12-19  Jim Meyering  <meyering@redhat.com>
25936
25937         setenv: restore to working order
25938         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
25939         mistakenly removed.
25940         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
25941         HAVE_SETENV.
25942         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
25943         HAVE_SETENV.
25944
25945 2010-12-19  Bruno Haible  <bruno@clisp.org>
25946
25947         Document some different function declarations on OSF/1 5.1.
25948         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
25949         * doc/posix-functions/inet_ntop.texi: Likewise.
25950         * doc/posix-functions/gethostname.texi: Likewise.
25951         * lib/unistd.in.h (gethostname): Update comment.
25952
25953 2010-12-19  Bruno Haible  <bruno@clisp.org>
25954
25955         doc: Mention vasprintf-posix module.
25956         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
25957         the 'vasprintf-posix' module.
25958         * doc/glibc-functions/vasprintf.texi: Likewise.
25959
25960 2010-12-19  Bruno Haible  <bruno@clisp.org>
25961
25962         unsetenv: Add missing declaration on OSF/1 5.1.
25963         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
25964         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
25965         Don't set HAVE_UNSETENV. In the test program, set _BSD.
25966         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
25967         not HAVE_UNSETENV.
25968         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
25969         HAVE_UNSETENV.
25970         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
25971
25972 2010-12-19  Bruno Haible  <bruno@clisp.org>
25973
25974         setenv: Add missing declaration on OSF/1 5.1.
25975         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25976         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25977         declared. Don't set HAVE_SETENV.
25978         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25979         not HAVE_SETENV.
25980         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25981         HAVE_SETENV.
25982         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25983
25984 2010-12-19  Bruno Haible  <bruno@clisp.org>
25985
25986         nl_langinfo tests: Avoid gcc warning.
25987         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25988
25989 2010-12-19  Bruno Haible  <bruno@clisp.org>
25990
25991         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25992         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25993         _GL_CXXALIAS_SYS.
25994
25995 2010-12-19  Bruno Haible  <bruno@clisp.org>
25996
25997         stdbool: Relax test.
25998         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25999         address to 'bool' work in static initializer, for compilers other than
26000         GCC.
26001
26002 2010-12-19  Bruno Haible  <bruno@clisp.org>
26003
26004         ftello: Add missing declaration on OSF/1 5.1.
26005         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26006         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26007         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26008         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26009         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26010
26011 2010-12-19  Bruno Haible  <bruno@clisp.org>
26012
26013         fseeko: Add missing declaration on OSF/1 5.1.
26014         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26015         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26016         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26017         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26018         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26019
26020 2010-12-19  Bruno Haible  <bruno@clisp.org>
26021
26022         fchdir: Add missing declaration on OSF/1 5.1.
26023         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26024         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26025         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26026         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26027         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26028
26029 2010-12-19  Bruno Haible  <bruno@clisp.org>
26030
26031         relocatable-prog-wrapper: Separate from relocatable-prog.
26032         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26033         uninstall-relocwrapper rule here.
26034         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26035         Reported by Ian Beckwith <ianb@erislabs.net>.
26036
26037 2010-12-19  Bruno Haible  <bruno@clisp.org>
26038
26039         unistr/u8-mbsnlen: Add missing dependency.
26040         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26041         Reported by Ian Beckwith <ianb@erislabs.net>.
26042
26043 2010-12-19  Bruno Haible  <bruno@clisp.org>
26044
26045         iconv: Make it possible again to use this module without 'iconv-h'.
26046         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26047         if it is not defined.
26048         Reported by Ian Beckwith <ianb@erislabs.net>.
26049
26050 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26051
26052         acl: port to Solaris 8 when copying from tmpfs to ufs
26053         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26054         error number.  Problem observed on Solaris 8 with latest
26055         coreutils, with "mv A B", where A is on a tmpfs file system and B
26056         is on a ufs file system.  This caused coreutils' mv/part-symlink
26057         test to fail.
26058
26059         tests: set fail=0 at start
26060         * tests/init.sh (setup_): Move fail=0 initialization here ...
26061         (mktempd_): ... from here, so that tests can rely on fail being
26062         set to 0 initially.  This fixes a problem in coreutils; see:
26063         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26064
26065 2010-12-18  Bruno Haible  <bruno@clisp.org>
26066
26067         memmem-simple: Stylistic changes.
26068         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26069         Fix preprocessor directive indentation.
26070
26071 2010-12-15  Pádraig Brady <P@draigBrady.com>
26072
26073         memmem, memmem-simple: reorganize and expand empty needle check
26074         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26075         functional checks to memmem-simple so that one has a fully functional
26076         memmem by using just this module.
26077         Restrict the performance only check to the memmem module.
26078         Also expand the empty needle check to ensure the correct
26079         pointer is returned, not just a non NULL pointer.
26080         * doc/glibc-functions/memmem.texi: Rearrange the portability
26081         documentation to correlate with the rearranged checks.
26082         Clarify exactly how the memmem and memmem-simple modules
26083         relate to each other.
26084
26085 2010-12-15  Pádraig Brady <P@draigBrady.com>
26086             Bruno Haible  <bruno@clisp.org>
26087
26088         Improve cross-compilation guesses for uClibc.
26089         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26090         that uClibc does not have the glibc bug.
26091         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26092         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26093
26094 2010-12-14  Eric Blake  <eblake@redhat.com>
26095
26096         configmake: provide fallbacks for oldest supported autotools
26097         * m4/configmake.m4: New file.
26098         * modules/configmake (Files): Ship it.
26099         (configure.ac): Use it to guarantee fallbacks.
26100
26101 2010-12-13  Pádraig Brady <P@draigBrady.com>
26102
26103         read-file: Improve handling of large files
26104         * lib/read-file.c (fread_file): Minimize realloc()s
26105         for regular files, and better manage sizes around SIZE_MAX.
26106
26107 2010-12-13  Eric Blake  <eblake@redhat.com>
26108
26109         cloexec, fcntl: relax license
26110         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26111         consent from all contributors.
26112         * modules/fcntl (License): Likewise.
26113
26114 2010-12-10  Bruno Haible  <bruno@clisp.org>
26115
26116         Tests for module 'pipe-posix'.
26117         * modules/pipe-posix-tests: New file.
26118         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26119
26120 2010-12-10  Bruno Haible  <bruno@clisp.org>
26121
26122         pipe-posix: Make it work in C++ mode.
26123         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26124         (pipe): Use common idiom, not a macro definition.
26125         * lib/pipe.c: New file.
26126         * m4/pipe.m4: New file.
26127         * modules/pipe-posix (Description): Enhance.
26128         (Files): Add lib/pipe.c, m4/pipe.m4.
26129         (configure.ac): Invoke gl_FUNC_PIPE.
26130         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26131         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26132         * tests/test-unistd-c++.cc: Check the signature of pipe.
26133
26134 2010-12-10  Bruno Haible  <bruno@clisp.org>
26135
26136         Rename module 'pipe' to 'spawn-pipe'.
26137         * modules/spawn-pipe: New file, renamed from modules/pipe.
26138         (Files, configure.ac, Makefile.am): Update.
26139         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26140         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26141         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26142         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26143         "spawn-pipe.h" instead of "pipe.h".
26144         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26145         to gl_SPAWN_PIPE.
26146         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26147         (Files, Makefile.am): Update.
26148         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26149         Update.
26150         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26151         Include "spawn-pipe.h" instead of "pipe.h".
26152         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26153         * lib/javacomp.c: Likewise.
26154         * lib/javaversion.c: Likewise.
26155         * lib/pipe-filter-gi.c: Likewise.
26156         * lib/pipe-filter-ii.c: Likewise.
26157         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26158         * modules/javacomp (Depends-on): Likewise.
26159         * modules/javaversion (Depends-on): Likewise.
26160         * modules/pipe-filter-gi (Depends-on): Likewise.
26161         * modules/pipe-filter-ii (Depends-on): Likewise.
26162         * MODULES.html.sh (Executing programs): Update.
26163         * NEWS: Mention the change.
26164
26165 2010-12-10  Eric Blake  <eblake@redhat.com>
26166
26167         pipe-posix: new module
26168         * modules/pipe-posix: New file.
26169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26170         (gl_UNISTD_H): Check for declaration.
26171         * modules/unistd (Makefile.am): Substitute it.
26172         * lib/unistd.in.h (pipe): Provide it for mingw.
26173         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26174         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26175
26176 2010-12-07  Bruno Haible  <bruno@clisp.org>
26177
26178         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26179         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26180         u8_strcmp_gnu.
26181         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26182
26183 2010-12-06  Bruno Haible  <bruno@clisp.org>
26184
26185         Update internal documentation.
26186         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26187
26188 2010-12-04  Bruno Haible  <bruno@clisp.org>
26189
26190         Put more information about failed tests into the test return codes.
26191         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26192         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26193         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26194         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26195         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26196         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26197         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26198         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26199         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26200         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26201         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26202         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26203         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26204         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26205         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26206         returns a bit mask.
26207         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26208         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26209         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26210         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26211         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26212         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26213         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26214         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26215         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26216         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26217         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26218         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26219         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26220         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26221         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26222         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26223         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26224         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26225         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26226         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26227         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26228         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26229         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26230         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26231         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26232         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26233         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26234         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26235         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26236         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26237         gl_PRINTF_PRECISION): Likewise.
26238         * m4/regex.m4 (gl_REGEX): Likewise.
26239         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26240         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26241         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26242         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26243         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26244         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26245         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26246         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26247         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26248         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26249         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26250         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26251         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26252         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26253         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26254         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26255         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26256         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26257         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26258         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26259         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26260         enumerated value.
26261         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26262
26263 2010-12-04  Bruno Haible  <bruno@clisp.org>
26264
26265         Update for Solaris 11 2010-11.
26266         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26267         Express, released in November 2010.
26268
26269 2010-12-04  Bruno Haible  <bruno@clisp.org>
26270
26271         nproc: Relax license.
26272         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26273         and Paul Eggert.
26274         Requested by Ludovic Courtès <ludo@gnu.org>.
26275
26276 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26277
26278         utimecmp: fine-grained src to nearby coarse-grained dest
26279
26280         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26281         and the source is on a file system with higher-resolution time
26282         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26283         not work, and the time stamps are close together, the algorithm to
26284         determine the exact resolution from the read-back mtime was buggy:
26285         it had a "!=" where it should have had an "==".  This bug has been
26286         in the code ever since it was introduced to gnulib.
26287         Problem reported by Dan Jacobson in
26288         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26289
26290 2010-11-30  Bruno Haible  <bruno@clisp.org>
26291
26292         strerror_r-posix: Fix autoconf test.
26293         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26294
26295 2010-11-28  Bruno Haible  <bruno@clisp.org>
26296             Paul Eggert  <eggert@cs.ucla.edu>
26297
26298         Tests for module 'getdomainname'.
26299         * modules/getdomainname-tests: New file.
26300         * tests/test-getdomainname.c: New file, based on
26301         tests/test-gethostname.c.
26302
26303 2010-11-28  Bruno Haible  <bruno@clisp.org>
26304             Paul Eggert  <eggert@cs.ucla.edu>
26305
26306         getdomainname: Use the system function when possible.
26307         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26308         (getdomainname): Replace if needed. Provide the declaration if it is
26309         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26310         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26311         (getdomainname): When the system has getdomainname, call the system
26312         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26313         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26314         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26315         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26316         the function if its second argument is of type 'int' or if it is found
26317         in libnsl.
26318         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26319         <sys/systeminfo.h> and sysinfo().
26320         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26321         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26322         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26323         HAVE_GETDOMAINNAME.
26324         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26325         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26326         * doc/glibc-functions/getdomainname.texi: Document the problems with
26327         the getdomainname declaration.
26328
26329 2010-11-28  Bruno Haible  <bruno@clisp.org>
26330
26331         sys_socket: Ensure ss_family field on AIX.
26332         * lib/sys_socket.in.h (ss_family): New macro definition.
26333         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26334         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26335         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26336         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26337         * modules/sys_socket (Makefile.am): Substitute
26338         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26339         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26340
26341 2010-11-27  Bruno Haible  <bruno@clisp.org>
26342
26343         readline: Improve configure output.
26344         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26345         "checking for readline..." result understandable.
26346
26347 2010-11-27  Bruno Haible  <bruno@clisp.org>
26348
26349         *printf-posix: Detect a bug on Solaris 10/x86.
26350         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26351         for floating-point output.
26352         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26353         directive.
26354         * tests/test-snprintf-posix.h (test_function): Likewise.
26355         * tests/test-sprintf-posix.h (test_function): Likewise.
26356         * tests/test-vasprintf-posix.c (test_function): Likewise.
26357         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26358         * doc/posix-functions/printf.texi: Likewise.
26359         * doc/posix-functions/snprintf.texi: Likewise.
26360         * doc/posix-functions/sprintf.texi: Likewise.
26361         * doc/posix-functions/vfprintf.texi: Likewise.
26362         * doc/posix-functions/vprintf.texi: Likewise.
26363         * doc/posix-functions/vsnprintf.texi: Likewise.
26364         * doc/posix-functions/vsprintf.texi: Likewise.
26365         * doc/glibc-functions/obstack_printf.texi: Likewise.
26366         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26367
26368 2010-11-27  Bruno Haible  <bruno@clisp.org>
26369
26370         Fix link error when module libunistring-optional is in use.
26371         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26372         * modules/striconveha-tests (Makefile.am): Likewise.
26373
26374 2010-11-27  Bruno Haible  <bruno@clisp.org>
26375
26376         regex: Mention link dependencies.
26377         * modules/regex (Link): New section.
26378         * modules/rpmatch (Link): Likewise.
26379         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26380
26381 2010-11-27  Bruno Haible  <bruno@clisp.org>
26382
26383         ftoastr: Fix compilation error on Solaris.
26384         * lib/ftoastr.c: Include <config.h>.
26385
26386 2010-11-27  Bruno Haible  <bruno@clisp.org>
26387
26388         getloadavg: Update documentation.
26389         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26390
26391 2010-11-27  Bruno Haible  <bruno@clisp.org>
26392
26393         sys_socket: Fix test whether the functions are declared.
26394         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26395         not <sys/select.h>.
26396
26397 2010-11-27  Bruno Haible  <bruno@clisp.org>
26398
26399         getpass: Make sure to get system declaration on some platforms.
26400         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26401         gl_USE_SYSTEM_EXTENSIONS.
26402         * modules/getpass (Depends-on): Add extensions.
26403
26404 2010-11-26  Bruno Haible  <bruno@clisp.org>
26405
26406         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26407         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26408         'iconv' module is present.
26409         (ICONV_CONST): New macro.
26410         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26411         ICONV_CONST.
26412         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26413         set ICONV_CONST.
26414         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26415         here.
26416         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26417         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26418         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26419         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26420         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26421         present.
26422
26423 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26424
26425         ftoastr: comment fix
26426         * lib/ftoastr.c: "little" -> "little or no" in comment
26427
26428 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26429
26430         stdint: port to GCC 4.3 + OSX + Octave
26431         On this platform, stdint.h is buggy and defines int64_t to long
26432         long int.  The replacement defined it to long int, causing
26433         problems with C++ style name mangling.  Instead, trust the system
26434         definition if INT64_MAX is defined, and likewise for the unsigned
26435         variant.   Problem reported by Jarno Rajahalme in
26436         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26437         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26438         and don't mess with int64_t and INT64_MAX in this case.
26439         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26440
26441 2010-11-24  Bruno Haible  <bruno@clisp.org>
26442
26443         doc: Corrections regarding MacOS X 10.4 and 10.5.
26444         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26445         MacOS X.
26446         Reported by Simon Josefsson.
26447
26448 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26449
26450         Uninstall ".bin" files installed by relocwrapper.
26451         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26452         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26453         unless it is already there.
26454
26455 2010-11-21  Bruno Haible  <bruno@clisp.org>
26456
26457         Update for NetBSD 5.0.
26458         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26459         NetBSD; the test fails on NetBSD 5.0.
26460         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26461         about NetBSD.
26462
26463 2010-11-21  Bruno Haible  <bruno@clisp.org>
26464
26465         Update for HP-UX 11.23 and HP-UX 11.31.
26466         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26467         HP-UX.
26468
26469 2010-11-21  Bruno Haible  <bruno@clisp.org>
26470
26471         Update for MacOS X 10.5.
26472         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26473         MacOS X; the test fails on MacOS X 10.5.8.
26474         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26475         about MacOS X.
26476
26477 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26478
26479         bootstrap: add bootstrap_sync option.
26480         See discussion at
26481         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26482         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26483         * build-aux/bootstrap: Accept --bootstrap-sync to update
26484         bootstrap if it is not identical to the local gnulib's
26485         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26486         enable this by default.  Accept --no-bootstrap-sync to disable
26487         it.
26488
26489 2010-11-20  Bruno Haible  <bruno@clisp.org>
26490
26491         Ensure that <features.h> is included before __GLIBC__ is tested.
26492         * lib/printf-parse.h: Include <features.h>.
26493         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26494         Reported by Mike Frysinger <vapier@gentoo.org>.
26495
26496         Ensure that <features.h> is included before __GLIBC__ is tested.
26497         * lib/wchar.in.h: Include <features.h>.
26498         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26499         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26500         Reported by Mike Frysinger <vapier@gentoo.org>.
26501
26502         Ensure that <features.h> is included before __GLIBC__ is tested.
26503         * lib/arpa_inet.in.h: Include <features.h>.
26504         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26505         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26506         Reported by Mike Frysinger <vapier@gentoo.org>.
26507
26508         Ensure that <features.h> is included before __GLIBC__ is tested.
26509         * build-aux/link-warning.h: Include <features.h>.
26510         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
26511         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
26512         Reported by Mike Frysinger <vapier@gentoo.org>.
26513
26514         Ensure that <features.h> is included before __GLIBC__ is tested.
26515         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
26516         Reported by Mike Frysinger <vapier@gentoo.org>.
26517
26518 2010-11-20  Bruno Haible  <bruno@clisp.org>
26519
26520         memmem: Fix autoconf test.
26521         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
26522
26523 2010-11-20  Bruno Haible  <bruno@clisp.org>
26524
26525         Port to uClibc.
26526         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
26527         * lib/fcntl.in.h: Likewise.
26528         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
26529         * lib/mbrtowc.c (mbrtowc): Likewise.
26530         * lib/relocatable.c (find_shared_library_fullname): Likewise.
26531         * lib/strerror_r.c: Likewise.
26532         * lib/unistr/u8-strnlen.c: Likewise.
26533         * lib/vasnprintf.c (decimal_point_char): Likewise.
26534         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
26535         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
26536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
26537         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
26538         * tests/test-sigaction.c (handler, main): Likewise.
26539         * lib/freading.h: Treat uClibc like a non-glibc platform.
26540         * lib/freading.c: Likewise.
26541         * lib/gettext.h: Likewise.
26542         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
26543         Likewise.
26544         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
26545         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
26546         * lib/propername.c (proper_name_utf8): Likewise.
26547         * lib/spawn.in.h: Likewise.
26548         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
26549         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
26550         mem_cd_iconveh_internal): Likewise.
26551         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
26552         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
26553         strstr, strcasestr): Likewise.
26554         * lib/unicodeio.c (unicode_to_mb): Likewise.
26555         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
26556         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
26557         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
26558         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
26559         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
26560         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
26561         * lib/unistr/u8-stpncpy.c: Likewise.
26562         * lib/vasnprintf.c (VASNPRINTF): Likewise.
26563         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
26564         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26565         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26566         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
26567         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
26568         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
26569         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
26570         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
26571         Likewise.
26572         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26573         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26574         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
26575         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
26576         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
26577         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
26578         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
26579         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
26580         * tests/test-getopt.h (OPTIND_MIN): Likewise.
26581         * tests/test-striconveha.c (main): Likewise.
26582         * tests/test-vasnprintf-posix.c (test_function): Likewise.
26583         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
26584         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
26585         * doc/posix-functions/getline.texi: Likewise.
26586         Reported by Mike Frysinger <vapier@gentoo.org>.
26587
26588 2010-11-20  Bruno Haible  <bruno@clisp.org>
26589
26590         nproc: Fix condition.
26591         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
26592         HAVE_PTHREAD_AFFINITY_NP.
26593
26594 2010-11-20  Bruno Haible  <bruno@clisp.org>
26595
26596         Fix a comment.
26597         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
26598
26599 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
26600
26601         ftoastr: don't assume snprintf
26602         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
26603         Implement a subset of snprintf here, by using sprintf safely.
26604         * modules/ftoastr (Depends-on): Remove snprintf.
26605
26606 2010-11-19  Jim Meyering  <meyering@redhat.com>
26607
26608         test-rename.h: fix compilation failure
26609         * tests/test-rename.h (test_rename): Add omitted "}".
26610
26611 2010-11-17  Jim Meyering  <meyering@redhat.com>
26612
26613         maint.mk: add a URL discussing the no-@acronym policy
26614         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
26615
26616 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
26617
26618         ftoastr: depend on snprintf, improve comments
26619         * lib/ftoastr.c: Also mention Loitsch's draft.
26620         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
26621         needed in the current implementation, but it might simplify
26622         speeding up the code later.
26623         * modules/ftoastr: Depend on snprintf; this improves portability.
26624         Suggested by Bruno Haible in the same email.
26625
26626         ftoastr: port to hosts lacking strtof and strtold
26627         Problem reported by Bruno Haible in
26628         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
26629         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
26630         environment and strtold (and presumably strtof) are not available.
26631         * modules/ftoastr (Files): Add m4/c-strtod.m4.
26632         (configure.ac): Require gl_C99_STRTOLD.
26633
26634 2010-11-18  Bruno Haible  <bruno@clisp.org>
26635
26636         c-strtold: Avoid link error on AIX 7.
26637         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
26638         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
26639         (gl_C_STRTOLD): Test whether strtold_l exists.
26640         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26641
26642 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
26643
26644         intprops: new macro INT_BITS_STRLEN_BOUND
26645         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
26646         ftoastr.h.  This exposes an internal of intprops.h that was formerly
26647         not exposed.  Also, it uses a slightly tighter bound than before;
26648         though this makes no practical difference, we might as well be as
26649         tight as we easily can.
26650
26651         ftoastr: new module, for lossless conversion of floats to short strings
26652         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
26653         * modules/ftoastr: New files.
26654
26655 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
26656
26657         bootstrap: port to Solaris sed
26658         * build-aux/bootstrap (get_version): Port to Solaris sed.
26659         See Ralf Wildenhues's note in
26660         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
26661
26662 2010-11-14  Jim Meyering  <meyering@redhat.com>
26663
26664         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
26665         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
26666         and move definition closer to sole use.
26667
26668 2010-11-13  Jim Meyering  <meyering@redhat.com>
26669
26670         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
26671         Now we require at least autoconf-2.59, which means the work-around
26672         is no longer needed.
26673         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
26674         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26675         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
26676         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
26677         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
26678
26679 2010-11-13  Bruno Haible  <bruno@clisp.org>
26680
26681         rename, renameat: Avoid test failures at NFS mounted locations.
26682         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
26683         functions.
26684         (test_rename): Use assert_nonexistent.
26685         * tests/test-rename.c: Include <dirent.h>.
26686         * tests/test-renameat.c: Likewise.
26687         Reported by Gary V. Vaughan <gary@gnu.org>.
26688
26689         rename, renameat: Document Linux bug with NFS
26690         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
26691         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
26692         * doc/posix-functions/renameat.texi: Likewise.
26693         Suggested by Eric Blake.
26694
26695 2010-11-13  Bruno Haible  <bruno@clisp.org>
26696
26697         rename test: Add comments.
26698         * tests/test-rename.h (test_rename): Add structure and comments.
26699
26700 2010-11-13  Eric Blake  <eblake@redhat.com>
26701
26702         maintainer-makefile: cover a few more files
26703         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
26704         scripts generated within C files, for libvirt.
26705
26706 2010-11-13  Bruno Haible  <bruno@clisp.org>
26707
26708         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
26709         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
26710         character, return the number of bytes that belong together, not always
26711         1.
26712         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26713         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
26714         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26715         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
26716         number of bytes of an invalid character.
26717         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
26718         (main): Invoke it.
26719         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
26720         results.
26721         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
26722         malformed byte sequences.
26723         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
26724         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
26725         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
26726         Reported by Ben Pfaff and Paolo Bonzini.
26727
26728 2010-11-13  Bruno Haible  <bruno@clisp.org>
26729
26730         openat: Work around glibc bug with fchownat() and empty file names.
26731         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
26732         (gl_FUNC_FCHOWNAT): Invoke it.
26733         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
26734         * doc/posix-functions/fchownat.texi: Document the glibc bug.
26735         Reported by Gary V. Vaughan <gary@gnu.org>.
26736
26737 2010-11-13  Bruno Haible  <bruno@clisp.org>
26738
26739         openat: Ensure autoconf macro ordering.
26740         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
26741         gl_USE_SYSTEM_EXTENSIONS.
26742         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
26743
26744 2010-11-13  Bruno Haible  <bruno@clisp.org>
26745
26746         Update comments.
26747         * lib/unistr/u8-check.c: Update file name in comments.
26748         * lib/unistr/u8-mblen.c: Likewise.
26749         * lib/unistr/u8-prev.c: Likewise.
26750         * lib/unistr/u8-strmblen.c: Likewise.
26751         * lib/unistr/u8-strmbtouc.c: Likewise.
26752
26753 2010-11-13  Jim Meyering  <meyering@redhat.com>
26754
26755         tests: avoid test failure on Solaris 10 due to lack of PATH export
26756         * tests/test-update-copyright.sh: Don't forget to export PATH.
26757
26758         init.sh: ensure that IFS is defined, just in case...
26759         * tests/init.sh (setup_): Ensure that IFS is defined,
26760         so that saving and restoring it works as expected.  This
26761         appears to be useful at least for an old version of dash
26762         from a long time ago (RH 6).  See here for details:
26763         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
26764
26765         maint.mk: tighten "test a == b" check
26766         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
26767         test to files that contain something like #!/bin/sh.
26768         Without this, coreutils would get two false positives in
26769         the comments of C source files.
26770
26771 2010-11-12  Eric Blake  <eblake@redhat.com>
26772
26773         bootstrap: fix typo in previous attempt
26774         * build-aux/bootstrap (buildreq): Correct the grouping.
26775         Reported by Paul Eggert.
26776
26777         maintainer-makefile: prohibit test x == x
26778         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
26779         Based on a report by Matthias Bolte.
26780
26781         bootstrap: allow FreeBSD gzip
26782         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
26783         which has no '.' and goes to stderr.
26784         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
26785         Reported by Matthias Bolte.
26786
26787         maintainer-makefile: check for i18n setup
26788         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
26789         will likely work.
26790
26791 2010-11-12  Bruno Haible  <bruno@clisp.org>
26792
26793         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
26794         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
26795         * lib/nanosleep.c (nanosleep): Likewise.
26796
26797 2010-11-11  Bruno Haible  <bruno@clisp.org>
26798
26799         fcntl-h: Fix for use of C++ on glibc systems.
26800         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
26801         also on glibc systems in C++ mode.
26802         Reported by Gary V. Vaughan <gary@gnu.org>.
26803
26804 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26805
26806         mknod: avoid false failure with dash
26807         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
26808
26809 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
26810
26811         unlink: Fix "is it should" typo in diagnostic.
26812         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
26813         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
26814
26815 2010-11-11  Bruno Haible  <bruno@clisp.org>
26816
26817         Tests for module 'strerror_r-posix'.
26818         * modules/strerror_r-posix-tests: New file.
26819         * tests/test-strerror_r.c: New file.
26820         * tests/test-string-c++.cc: Check the signature of strerror_r.
26821
26822         New module 'strerror_r-posix'.
26823         * lib/string.in.h (strerror_r): New declaration.
26824         * lib/strerror_r.c: New file.
26825         * m4/strerror_r.m4: New file.
26826         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
26827         of strerror_r.
26828         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
26829         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26830         * modules/strerror_r-posix: New file.
26831         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
26832         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26833         * doc/posix-functions/strerror_r.texi: Mention the new module and the
26834         portability problems.
26835
26836 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
26837
26838         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
26839         line is also considered for output. Quoted function name in shell
26840         command, so temporary files for functions like MyClass::operator()
26841         are removed correctly without errors.
26842
26843 2010-11-09  Bruno Haible  <bruno@clisp.org>
26844
26845         * doc/posix-functions/strerror.texi: List more failing platforms.
26846
26847         * doc/posix-functions/strerror.texi: Add a comment.
26848
26849 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26850
26851         fdopendir: fix bug on MacOS X when low on file descriptors
26852
26853         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
26854         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
26855         All callers changed.
26856         (fdopendir): Invoke save_cwd at the top level, not after using
26857         multiple dup() calls to use up file descriptors.  Then retry
26858         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
26859         less than the maximum number of open file descriptors, because
26860         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
26861         on Mac OS X 10.6.4 for tar 1.24
26862         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
26863         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
26864         and for tar 1.25
26865         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
26866
26867 2010-11-07  Bruno Haible  <bruno@clisp.org>
26868
26869         vasnprintf: Support I flag on glibc systems.
26870         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
26871         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
26872         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
26873         snprintf function.
26874         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
26875         glibc systems.
26876         * tests/test-vasnprintf-posix3.c: New file.
26877         * modules/vasnprintf-posix-tests (Files): Add it.
26878         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
26879
26880 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26881
26882         [html] Fix copy/paste bug: Use unique name for compiler warnings.
26883         * MODULES.html.sh: For compiler warnings, use name
26884         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
26885
26886 2010-11-05  Eric Blake  <eblake@redhat.com>
26887
26888         ceil, floor: avoid spurious failure with icc
26889         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
26890         [denormals-as-zero] when optimizing without -mieee-fp option.
26891         * tests/test-floorf2.c (floorf_reference): Likewise.
26892         * tests/test-ceilf1.c (dummy): New function.
26893         (main): Use it to outsmart icc's optimization.
26894         * tests/test-floorf1.c (dummy, main): Likewise.
26895
26896         tests: require working signbit
26897         * modules/ceilf-tests (Depends-on): Add signbit.
26898         * modules/ceill-tests (Depends-on): Likewise.
26899         * modules/floorf-tests (Depends-on): Likewise.
26900         * modules/floorl-tests (Depends-on): Likewise.
26901         * modules/round-tests (Depends-on): Likewise.
26902         * modules/roundf-tests (Depends-on): Likewise.
26903         * modules/roundl-tests (Depends-on): Likewise.
26904         * modules/trunc-tests (Depends-on): Likewise.
26905         * modules/truncf-tests (Depends-on): Likewise.
26906         * modules/truncl-tests (Depends-on): Likewise.
26907
26908         strtod: work around icc bug
26909         * lib/strtod.c (minus_zero): Define to working value.
26910         (strtod): Use it to avoid icc bug.
26911
26912         copysign: enhance tests
26913         * modules/copysign-tests (Files): Add minus-zero.h.
26914         * tests/test-copysign.c (main): Also test zeros.
26915
26916 2010-11-04  Eric Blake  <eblake@redhat.com>
26917
26918         ceil, floor, round, trunc: enhance tests of -0
26919         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26920         * tests/test-ceill.c (main): Likewise.
26921         * tests/test-floorf1.c (main): Likewise.
26922         * tests/test-floorl.c (main): Likewise.
26923         * tests/test-round1.c (main): Likewise.
26924         * tests/test-roundf1.c (main): Likewise.
26925         * tests/test-roundl.c (main): Likewise.
26926         * tests/test-trunc1.c (main): Likewise.
26927         * tests/test-truncf1.c (main): Likewise.
26928         * tests/test-truncl.c (main): Likewise.
26929
26930 2010-11-04  Eric Blake  <eblake@redhat.com>
26931
26932         frexp, tests: work around ICC bug with -zero
26933         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
26934         works with more compilers.
26935         * tests/minus-zero.h: New file.
26936         * modules/ceilf-tests (Files): Include it.
26937         * modules/ceill-tests (Files): Likewise.
26938         * modules/floorf-tests (Files): Likewise.
26939         * modules/floorl-tests (Files): Likewise.
26940         * modules/frexp-nolibm-tests (Files): Likewise.
26941         * modules/frexp-tests (Files): Likewise.
26942         * modules/frexpl-nolibm-tests (Files): Likewise.
26943         * modules/frexpl-tests (Files): Likewise.
26944         * modules/isnan-tests (Files): Likewise.
26945         * modules/isnand-nolibm-tests (Files): Likewise.
26946         * modules/isnand-tests (Files): Likewise.
26947         * modules/isnanf-nolibm-tests (Files): Likewise.
26948         * modules/isnanf-tests (Files): Likewise.
26949         * modules/isnanl-nolibm-tests (Files): Likewise.
26950         * modules/isnanl-tests (Files): Likewise.
26951         * modules/round-tests (Files): Likewise.
26952         * modules/roundf-tests (Files): Likewise.
26953         * modules/roundl-tests (Files): Likewise.
26954         * modules/ldexpl-tests (Files): Likewise.
26955         * modules/signbit-tests (Files): Likewise.
26956         * modules/snprintf-posix-tests (Files): Likewise.
26957         * modules/sprintf-posix-tests (Files): Likewise.
26958         * modules/strtod-tests (Files): Likewise.
26959         * modules/trunc-tests (Files): Likewise.
26960         * modules/truncf-tests (Files): Likewise.
26961         * modules/truncl-tests (Files): Likewise.
26962         * modules/vsnprintf-posix-tests (Files): Likewise.
26963         * modules/vsprintf-posix-tests (Files): Likewise.
26964         * modules/vasnprintf-posix-tests (Files): Likewise.
26965         * modules/vasprintf-posix-tests (Files): Likewise.
26966         * tests/test-ceilf1.c (main): Use it.
26967         * tests/test-ceill.c (main): Likewise.
26968         * tests/test-floorf1.c (main): Likewise.
26969         * tests/test-floorl.c (main): Likewise.
26970         * tests/test-frexp.c (main): Likewise.
26971         * tests/test-frexpl.c (main): Likewise.
26972         * tests/test-isnan.c (main): Likewise.
26973         * tests/test-isnand.h (main): Likewise.
26974         * tests/test-isnanf.h (main): Likewise.
26975         * tests/test-isnanl.h (main): Likewise.
26976         * tests/test-ldexpl.c (main): Likewise.
26977         * tests/test-round.c (main): Likewise.
26978         * tests/test-roundf.c (main): Likewise.
26979         * tests/test-roundl.c (main): Likewise.
26980         * tests/test-signbit.c (test_signbitf, test_signbitd)
26981         (test_signbitl): Likewise.
26982         * tests/test-snprintf-posix.h (test_function): Likewise.
26983         * tests/test-sprintf-posix.h (test_function): Likewise.
26984         * tests/test-strtod.c (main): Likewise.
26985         * tests/test-trunc1.c (main): Likewise.
26986         * tests/test-truncf1.c (main): Likewise.
26987         * tests/test-truncl.c (main): Likewise.
26988
26989         isnanl: work around icc bug
26990         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26991
26992 2010-11-03  Eric Blake  <eblake@redhat.com>
26993
26994         tests: fix compiler warnings
26995         * tests/test-getopt.h (test_getopt): Fix condition.
26996         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26997         * tests/test-pipe2.c (main): Likewise.
26998         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26999
27000         utimens: fix broken m4 test
27001         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27002
27003 2010-10-28  Bruno Haible  <bruno@clisp.org>
27004
27005         posix_spawn*, getdtablesize: Relax license.
27006         * modules/posix_spawn (License): Change to LGPLv2+.
27007         * modules/posix_spawnp (License): Likewise.
27008         * modules/posix_spawn-internal (License): Likewise.
27009         * modules/posix_spawnattr_init (License): Likewise.
27010         * modules/posix_spawnattr_getflags (License): Likewise.
27011         * modules/posix_spawnattr_setflags (License): Likewise.
27012         * modules/posix_spawnattr_getpgroup (License): Likewise.
27013         * modules/posix_spawnattr_setpgroup (License): Likewise.
27014         * modules/posix_spawnattr_getschedparam (License): Likewise.
27015         * modules/posix_spawnattr_setschedparam (License): Likewise.
27016         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27017         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27018         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27019         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27020         * modules/posix_spawnattr_getsigmask (License): Likewise.
27021         * modules/posix_spawnattr_setsigmask (License): Likewise.
27022         * modules/posix_spawnattr_destroy (License): Likewise.
27023         * modules/posix_spawn_file_actions_init (License): Likewise.
27024         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27025         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27026         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27027         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27028         * modules/getdtablesize (License): Likewise.
27029         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27030
27031 2010-10-26  Bruno Haible  <bruno@clisp.org>
27032
27033         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27034         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27035         Cygwin and mingw.
27036         Suggested by Eric Blake.
27037
27038 2010-10-26  Bruno Haible  <bruno@clisp.org>
27039
27040         stdio: Work around compilation error due to renameat() on Solaris 10.
27041         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27042         * lib/renameat.c: Don't include <unistd.h> here.
27043         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27044         Reported by Paul Eggert and Eric Blake.
27045
27046 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27047
27048         renameat: port to Solaris 10, which declares renameat in unistd.h
27049
27050         * lib/renameat.c: Include unistd.h before stdio.h, because
27051         Solaris 10 declares renameat in unistd.h.  Problem encountered
27052         when building GNU tar 1.24 on Solaris 10.
27053
27054 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27055
27056         fdopendir: fix C89 compilation
27057         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27058         compilers.
27059
27060 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27061
27062         inttostr: simplify by removing unnecessary redundancy
27063         * lib/anytostr.c: Don't include verify.h.
27064         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27065         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27066         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27067         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27068         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27069         Likewise.
27070         * modules/inttostr (Depends-on): Remove 'verify'.
27071
27072 2010-10-23  Bruno Haible  <bruno@clisp.org>
27073
27074         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27075         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27076         Reported by Eric Blake.
27077
27078 2010-10-23  Bruno Haible  <bruno@clisp.org>
27079
27080         Tests: Fix LOCALE_JA on MirBSD 10.
27081         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27082         to an UTF-8 locale.
27083         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27084         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27085         Reported by Eric Blake.
27086
27087 2010-10-21  Bruno Haible  <bruno@clisp.org>
27088
27089         nl_langinfo test: Avoid test failure on NetBSD 5.
27090         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27091         Reported by Eric Blake.
27092
27093 2010-10-21  Eric Blake  <eblake@redhat.com>
27094
27095         c-stack: work around libsigsegv 2.8 bug
27096         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27097         overflow on at least PowerPC64.
27098
27099 2010-10-17  Bruno Haible  <bruno@clisp.org>
27100
27101         userspec: Drop redundant file.
27102         * modules/userspec (Files): Remove lib/inttostr.h.
27103
27104 2010-10-17  Bruno Haible  <bruno@clisp.org>
27105
27106         nl_langinfo tests: Silence some warnings.
27107         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27108         Reported by Jim Meyering.
27109
27110 2010-10-17  Bruno Haible  <bruno@clisp.org>
27111
27112         Make use of GCC's attribute __alloc_size__.
27113         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27114         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27115         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27116         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27117         __alloc_size__.
27118         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27119         Suggested by Jim Meyering.
27120
27121 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27122
27123         bootstrap: anchor .gitignore entries.
27124         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27125         with...
27126         (insert_vc_ignore): ... this new function, which prepends `/' to
27127         all .gitignore entries before passing them to
27128         insert_sorted_if_absent.
27129
27130 2010-10-16  Bruno Haible  <bruno@clisp.org>
27131
27132         nextafter: Fix configure check.
27133         * modules/nextafter (configure.ac): Correct expected prototype.
27134
27135 2010-10-16  Bruno Haible  <bruno@clisp.org>
27136
27137         termios: Update documentation.
27138         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27139
27140 2010-10-16  Bruno Haible  <bruno@clisp.org>
27141
27142         tests: Make them compile with TinyCC.
27143         * tests/test-strstr.c (main): Remove parentheses around array
27144         initializer.
27145
27146 2010-10-15  Eric Blake  <eblake@redhat.com>
27147
27148         ignore-value: make header idempotent
27149         * lib/ignore-value.h: Add double-inclusion guards.
27150         Reported by Stefan Berger.
27151
27152 2010-10-15  Jim Meyering  <meyering@redhat.com>
27153
27154         GNUmakefile: handle "stable" target, not "major"
27155         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27156         lists in maint.mk and announce-gen.  Without this, "make stable"
27157         would fail to ensure that $(VERSION) is up to date.
27158
27159 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27160
27161         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27162         & co.
27163
27164 2010-10-14  Bruno Haible  <bruno@clisp.org>
27165
27166         vasnprintf: Don't set errno to 0.
27167         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27168         block that sets it to 0.
27169         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27170
27171 2010-10-14  Bruno Haible  <bruno@clisp.org>
27172
27173         socketlib: Fix.
27174         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27175         gl_PREREQ_SYS_H_WINSOCK2.
27176         Reported by Ian Beckwith <ianb@erislabs.net>.
27177
27178 2010-10-13  Jim Meyering  <meyering@redhat.com>
27179
27180         test-select-stdin.c: avoid warn_unused_result warnings
27181         * tests/test-select-stdin.c: Include "macros.h".
27182         ASSERT that read and fflush succeed.
27183
27184 2010-10-13  Jim Meyering  <meyering@redhat.com>
27185
27186         git-version-gen: do require git-VC'd files in cwd
27187         * build-aux/git-version-gen: Reject a git version string
27188         if there are no commits associated with the current directory.
27189         This avoids an unlikely false-positive (unrelated dir whose parent
27190         repository also contains a tag matching v*), as pointed out
27191         by Giuseppe Scrivano in
27192         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27193
27194 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27195
27196         argv-iter: omit nonconforming declaration
27197         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27198         enum arg_iter_err declaration, which doesn't conform to C99.
27199         Solaris 10 cc warns about this.
27200
27201 2010-10-13  Eric Blake  <eblake@redhat.com>
27202
27203         termios: fix compilation on mingw
27204         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27205         (gl_TERMIOS_H): Adjust it on mingw.
27206         * modules/termios (Makefile.am): Substitute new key.
27207         * lib/termios.in.h (includes): Make include_next conditional.
27208         * doc/posix-headers/termios.texi (termios.h): Update
27209         documentation.
27210         Reported by Daniel P. Berrange.
27211
27212 2010-10-13  Jim Meyering  <meyering@redhat.com>
27213
27214         git-version-gen: don't require that .git/ be in the current dir
27215         * build-aux/git-version-gen: Adjust this script so that it works
27216         when run from any working directory beneath the top-level .git/-
27217         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27218         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27219
27220         test-select: avoid warn_unused_result warnings
27221         * tests/test-select.c: Include "macros.h".
27222         ASSERT that each call to read, write, and pipe succeeds.
27223         While not technically required, also check each "close".
27224         * modules/select-tests (Files): Add tests/macros.h.
27225
27226         test-symlinkat: remove declaration of unused local
27227         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27228
27229         test-inttostr: avoid shadowing warnings
27230         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27231         and use malloc rather than the stack for the same reason as
27232         mentioned in the comment justifying the other allocation.
27233
27234 2010-10-11  Bruno Haible  <bruno@clisp.org>
27235
27236         stdlib: Allow multiple gnulib generated replacements to coexist.
27237         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27238         Reported by Sam Steingold <sds@gnu.org>.
27239
27240 2010-10-11  Jim Meyering  <meyering@redhat.com>
27241
27242         fix a documentation typo
27243         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27244
27245 2010-10-11  Eric Blake  <eblake@redhat.com>
27246
27247         futimens: work around Solaris 11 bug
27248         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27249         * tests/test-futimens.h (test_futimens): Enhance, rather than
27250         weaken test.
27251         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27252
27253 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27254
27255         Indentation.
27256         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27257         higher-level operators more to the left.
27258
27259 2010-10-11  Jim Meyering  <meyering@redhat.com>
27260
27261         test-futimens: avoid unwarranted test failure on Solaris 5.11
27262         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27263         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27264         because it tries to dereference the NULL name argument.
27265
27266 2010-10-11  Bruno Haible  <bruno@clisp.org>
27267
27268         Indentation.
27269         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27270         indentation.
27271
27272 2010-10-11  Jim Meyering  <meyering@redhat.com>
27273
27274         spawn.in.h: make indentation consistent with parentheses
27275         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27276         Make indentation consistent with parentheses.
27277
27278 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27279
27280         Fix mismatched parens in previous commit
27281         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27282         parens.
27283
27284 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27285
27286         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27287
27288         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27289         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27290         * lib/malloca.c: Include "verify.h".
27291         (verify1): Remove, replacing with a verify call.
27292         * lib/relocwrapper.c (verify1): Likewise.
27293         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27294         Likewise.
27295         * modules/malloca (Depends-on): Add 'verify'.
27296         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27297         * modules/vasnprintf (Depends-on): Add 'verify'.
27298         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27299         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27300         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27301         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27302         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27303         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27304         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27305
27306         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27307
27308         Formerly the style was sometimes 2*X - 1, because the C standard
27309         was wrongly thought to disallow ?: in integral constant expressions.
27310         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27311         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27312         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27313         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27314         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27315         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27316         verify that time_t cannot be floating.
27317
27318 2010-10-08  Eric Blake  <eblake@redhat.com>
27319
27320         time: enforce recent POSIX ruling that time_t is integral
27321         * lib/time.in.h (__time_t_must_be_integral): Detect any
27322         problematic systems, allowing the rest of gnulib to assume POSIX.
27323
27324 2010-10-08  Jim Meyering  <meyering@redhat.com>
27325
27326         fdopendir: fix a bug on systems lacking openat and /proc support
27327         OpenBSD 4.7 is one such system.  The most noticeable effect was
27328         failure of any application making nontrivial use of fts: rm, du,
27329         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27330           ./rm: traversal failed: `a': Bad file descriptor
27331         Debugging that, you see that even though FD 6 was closed just
27332         prior to the opendir call in fd_clone_opendir, its resulting
27333         dir->dd_fd was 8, rather than the expected value of 6:
27334
27335         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27336         93                close (fd);
27337         (gdb) n
27338         94                dir = fd_clone_opendir (dupfd);
27339         (gdb) n
27340         95                saved_errno = errno;
27341         (gdb) p dir->dd_fd
27342         $11 = 8
27343
27344         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27345         The problem is that on OpenBSD, fd_clone_opendir has to resort
27346         to using the old-style save/restore CWD mechanism, due to its
27347         lack of openat/proc support, and *that* would steal the FD (6)
27348         that opendir was supposed to use.
27349
27350         The fix is to squirrel away the desired FD so that save_cwd uses a
27351         different one, and then free the dest FD right before calling opendir.
27352         That guarantees opendir will use the required file descriptor.
27353
27354         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27355
27356 2010-10-08  Bruno Haible  <bruno@clisp.org>
27357
27358         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27359         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27360
27361 2010-10-08  Bruno Haible  <bruno@clisp.org>
27362
27363         nanosleep: Make replacement POSIX compliant.
27364         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27365         is out of range.
27366         Reported by Jim Meyering.
27367
27368 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27369
27370         bootstrap: add hook for altering gnulib.mk, for Bison
27371         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27372         the Bison bootstrapping process can rewrite file names and variables
27373         in this file before later parts of 'bootstrap' use the file.
27374         Bison wants to include lib/gnulib.mk from the top-level makefile,
27375         so it needs the file names in this file to be relative to the top
27376         level, not relative to lib; plus it needs variable names to be
27377         rewritten.
27378         (slurp): Use the new function.
27379
27380         bootstrap: reformat for readability
27381         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27382
27383 2010-10-08  Eric Blake  <eblake@redhat.com>
27384
27385         docs: update cygwin progress
27386         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27387         1.7.7.
27388         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27389         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27390         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27391         * doc/posix-functions/carg.texi (carg): Likewise.
27392         * doc/posix-functions/cargf.texi (cargf): Likewise.
27393         * doc/posix-functions/casin.texi (casin): Likewise.
27394         * doc/posix-functions/casinf.texi (casinf): Likewise.
27395         * doc/posix-functions/casinh.texi (casinh): Likewise.
27396         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27397         * doc/posix-functions/catan.texi (catan): Likewise.
27398         * doc/posix-functions/catanf.texi (catanf): Likewise.
27399         * doc/posix-functions/catanh.texi (catanh): Likewise.
27400         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27401         * doc/posix-functions/ccos.texi (ccos): Likewise.
27402         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27403         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27404         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27405         * doc/posix-functions/cexp.texi (cexp): Likewise.
27406         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27407         * doc/posix-functions/cimag.texi (cimag): Likewise.
27408         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27409         * doc/posix-functions/clog.texi (clog): Likewise.
27410         * doc/posix-functions/clogf.texi (clogf): Likewise.
27411         * doc/posix-functions/conj.texi (conj): Likewise.
27412         * doc/posix-functions/conjf.texi (conjf): Likewise.
27413         * doc/posix-functions/cpow.texi (cpow): Likewise.
27414         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27415         * doc/posix-functions/cproj.texi (cproj): Likewise.
27416         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27417         * doc/posix-functions/creal.texi (creal): Likewise.
27418         * doc/posix-functions/crealf.texi (crealf): Likewise.
27419         * doc/posix-functions/csin.texi (csin): Likewise.
27420         * doc/posix-functions/csinf.texi (csinf): Likewise.
27421         * doc/posix-functions/csinh.texi (csinh): Likewise.
27422         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27423         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27424         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27425         * doc/posix-functions/ctan.texi (ctan): Likewise.
27426         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27427         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27428         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27429         * doc/posix-headers/complex.texi (complex.h): Likewise.
27430
27431 2010-10-07  Jim Meyering  <meyering@redhat.com>
27432
27433         parse-datetime: avoid compilation failure on OpenBSD 4.7
27434         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27435         This works around a compilation failure on OpenBSD 4.7:
27436         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27437
27438 2010-10-07  Eric Blake  <eblake@redhat.com>
27439
27440         docs: update cygwin progress
27441         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27442         1.7.6.
27443         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27444         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27445         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27446         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27447         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27448         Likewise.
27449         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27450         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27451         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27452         Likewise.
27453         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27454         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27455         Likewise.
27456         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27457         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27458         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27459         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27460         Likewise.
27461         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27462         Likewise.
27463         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27464
27465         docs: update parse-datetime history
27466         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27467         documentation of this function's history and alternatives.
27468
27469         cygwin: use more robust version check
27470         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27471         exclude an eventual cygwin 1.9.1.
27472         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27473         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27474         (gl_FUNC_STRCASESTR): Likewise.
27475         Reported by Bruno Haible.
27476
27477 2010-10-06  Bruno Haible  <bruno@clisp.org>
27478
27479         string, sys_select: Avoid #including large headers unless necessary.
27480         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27481         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27482         OSF/1, BeOS, Haiku.
27483         Reported by Jim Meyering.
27484
27485 2010-10-05  Eric Blake  <eblake@redhat.com>
27486
27487         memmem, strstr, strcasestr: fix bug with long periodic needle
27488         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27489         periodic needle having false positive.
27490         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27491         and cygwin 1.7.7.
27492         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27493         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27494         (gl_FUNC_STRCASESTR): Likewise.
27495         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27496         * tests/test-memmem.c (main): Expose the bug.
27497         * tests/test-strcasestr.c (main): Likewise.
27498         * tests/test-strstr.c (main): Likewise.
27499         * tests/test-c-strcasestr.c (main): Likewise.
27500         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27501         * doc/posix-functions/strstr.texi (strstr): Likewise.
27502         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27503         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27504
27505 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27506
27507         parse-datetime: do some more renaming
27508         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
27509         parse_datetime, not get_date.  Mention the renaming.
27510         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
27511         in comments.
27512         * m4/bison.m4: Likewise.
27513
27514 2010-10-05  Eric Blake  <eblake@redhat.com>
27515
27516         parse-datetime: better name than get_date
27517         * NEWS: Reword the deprecation notice.
27518         * modules/get_date: Rename to modules/parse-datetime.
27519         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
27520         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
27521         * lib/get_date.y: Rename to lib/parse-datetime.y.
27522         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
27523         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
27524         * doc/getdate.texi: Provide fallback wrapper.
27525         * lib/getdate.h: Move guts, and wrap...
27526         * lib/parse-datetime.h: ...new file.
27527         * lib/parse-datetime.y (get_date): Rename...
27528         (parse_datetime): ...to this.
27529         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
27530         (gl_PARSE_DATETIME): ...to this.
27531         * doc/posix-functions/getdate.texi (get_date): Provide fallback
27532         documentation.
27533         * modules/getdate (Files): Provide fallback docs and header.
27534         (Notice, Depends-on): Update references.
27535         * tests/test-parse-datetime.c: Likewise.
27536         * DEPENDENCIES: Likewise.
27537         * MODULES.html.sh (Date and time <time.h>): Likewise.
27538         * doc/parse-datetime.texi (Date input formats)
27539         (Authors of parse_datetime): Likewise.
27540         * modules/parse-datetime (Files, configure.ac, Makefile.am)
27541         (Include): Likewise.
27542         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
27543         * gnulib-tool: Likewise.
27544         * m4/bison.m4 (gl_BISON): Likewise.
27545         Suggested by Bruno Haible.
27546
27547 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27548
27549         more ports to Solaris tr, which needs [] around ranges
27550         * gnulib-tool: Solaris tr needs [] around ranges.
27551         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
27552         * tests/test-pipe-filter-gi1.c (main): Likewise.
27553         * tests/test-pipe-filter-ii1.c (main): Likewise.
27554
27555 2010-10-05  Eric Blake  <eblake@redhat.com>
27556
27557         bootstrap: fix Solaris regression
27558         * build-aux/bootstrap (check_versions): Solaris tr still needs []
27559         around ranges.
27560         Reported by Pádraig Brady.
27561
27562         bootstrap: work with pkg-config
27563         * build-aux/bootstrap (check_versions): Also transliterate - in
27564         prerequisite name.
27565         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
27566         prerequisites that were already found, to avoid confusion.
27567         Reported by Justin Clift.
27568
27569         faccessat: remove unused wrappers
27570         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
27571         presence of these wrappers dragged in -lgen on Solaris.
27572         Reported by Clemens Brogi; fix suggested by Paul Eggert.
27573
27574 2010-10-05  Jim Meyering  <meyering@redhat.com>
27575
27576         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
27577         * Makefile (sc_pragma_columns): New syntax-check rule.
27578
27579 2010-10-04  Bruno Haible  <bruno@clisp.org>
27580
27581         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
27582         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
27583         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
27584         Reported by Bruce Korb and Eric Blake.
27585
27586 2010-10-04  Bruno Haible  <bruno@clisp.org>
27587
27588         threadlib: Make option --with-libpth-prefix work.
27589         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
27590         use $LIBPTH, not just -lpth.
27591
27592 2010-10-04  Bruno Haible  <bruno@clisp.org>
27593
27594         Avoid line length limitation from HP NonStop system header files.
27595         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
27596         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
27597         * lib/ctype.in.h: Likewise.
27598         * lib/dirent.in.h: Likewise.
27599         * lib/errno.in.h: Likewise.
27600         * lib/fcntl.in.h: Likewise.
27601         * lib/float.in.h: Likewise.
27602         * lib/getopt.in.h: Likewise.
27603         * lib/iconv.in.h: Likewise.
27604         * lib/inttypes.in.h: Likewise.
27605         * lib/langinfo.in.h: Likewise.
27606         * lib/locale.in.h: Likewise.
27607         * lib/math.in.h: Likewise.
27608         * lib/netdb.in.h: Likewise.
27609         * lib/netinet_in.in.h: Likewise.
27610         * lib/poll.in.h: Likewise.
27611         * lib/pthread.in.h: Likewise.
27612         * lib/pty.in.h: Likewise.
27613         * lib/sched.in.h: Likewise.
27614         * lib/se-selinux.in.h: Likewise.
27615         * lib/search.in.h: Likewise.
27616         * lib/signal.in.h: Likewise.
27617         * lib/spawn.in.h: Likewise.
27618         * lib/stdarg.in.h: Likewise.
27619         * lib/stddef.in.h: Likewise.
27620         * lib/stdint.in.h: Likewise.
27621         * lib/stdio.in.h: Likewise.
27622         * lib/stdlib.in.h: Likewise.
27623         * lib/string.in.h: Likewise.
27624         * lib/strings.in.h: Likewise.
27625         * lib/sys_file.in.h: Likewise.
27626         * lib/sys_ioctl.in.h: Likewise.
27627         * lib/sys_select.in.h: Likewise.
27628         * lib/sys_socket.in.h: Likewise.
27629         * lib/sys_stat.in.h: Likewise.
27630         * lib/sys_time.in.h: Likewise.
27631         * lib/sys_times.in.h: Likewise.
27632         * lib/sys_utsname.in.h: Likewise.
27633         * lib/sys_wait.in.h: Likewise.
27634         * lib/sysexits.in.h: Likewise.
27635         * lib/termios.in.h: Likewise.
27636         * lib/time.in.h: Likewise.
27637         * lib/unistd.in.h: Likewise.
27638         * lib/wchar.in.h: Likewise.
27639         * lib/wctype.in.h: Likewise.
27640         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
27641         * modules/ctype (Makefile.am): Likewise.
27642         * modules/dirent (Makefile.am): Likewise.
27643         * modules/errno (Makefile.am): Likewise.
27644         * modules/fcntl-h (Makefile.am): Likewise.
27645         * modules/float (Makefile.am): Likewise.
27646         * modules/getopt-posix (Makefile.am): Likewise.
27647         * modules/iconv-h (Makefile.am): Likewise.
27648         * modules/inttypes (Makefile.am): Likewise.
27649         * modules/langinfo (Makefile.am): Likewise.
27650         * modules/locale (Makefile.am): Likewise.
27651         * modules/math (Makefile.am): Likewise.
27652         * modules/netdb (Makefile.am): Likewise.
27653         * modules/netinet_in (Makefile.am): Likewise.
27654         * modules/poll-h (Makefile.am): Likewise.
27655         * modules/pthread (Makefile.am): Likewise.
27656         * modules/pty (Makefile.am): Likewise.
27657         * modules/sched (Makefile.am): Likewise.
27658         * modules/search (Makefile.am): Likewise.
27659         * modules/selinux-h (Makefile.am): Likewise.
27660         * modules/signal (Makefile.am): Likewise.
27661         * modules/spawn (Makefile.am): Likewise.
27662         * modules/stdarg (Makefile.am): Likewise.
27663         * modules/stddef (Makefile.am): Likewise.
27664         * modules/stdint (Makefile.am): Likewise.
27665         * modules/stdio (Makefile.am): Likewise.
27666         * modules/stdlib (Makefile.am): Likewise.
27667         * modules/string (Makefile.am): Likewise.
27668         * modules/strings (Makefile.am): Likewise.
27669         * modules/sys_file (Makefile.am): Likewise.
27670         * modules/sys_ioctl (Makefile.am): Likewise.
27671         * modules/sys_select (Makefile.am): Likewise.
27672         * modules/sys_socket (Makefile.am): Likewise.
27673         * modules/sys_stat (Makefile.am): Likewise.
27674         * modules/sys_time (Makefile.am): Likewise.
27675         * modules/sys_times (Makefile.am): Likewise.
27676         * modules/sys_utsname (Makefile.am): Likewise.
27677         * modules/sys_wait (Makefile.am): Likewise.
27678         * modules/sysexits (Makefile.am): Likewise.
27679         * modules/termios (Makefile.am): Likewise.
27680         * modules/time (Makefile.am): Likewise.
27681         * modules/unistd (Makefile.am): Likewise.
27682         * modules/wchar (Makefile.am): Likewise.
27683         * modules/wctype (Makefile.am): Likewise.
27684
27685 2010-10-04  Bruno Haible  <bruno@clisp.org>
27686
27687         read-file tests: Avoid a test failure on NonStop Kernel.
27688         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
27689         a regular file.
27690         Reported by Joachim Schmitz <schmitz@hp.com>.
27691
27692 2010-10-03  Bruno Haible  <bruno@clisp.org>
27693
27694         gnulib-tool: Fixes for --create-testdir with --libtool.
27695         * gnulib-tool (func_get_automake_snippet): Don't augment
27696         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
27697         an executable.
27698         (func_create_testdir): Handle module 'alloca' like func_import.
27699         Reported by Bruce Korb <bruce.korb@gmail.com>.
27700
27701 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
27702
27703         Avoid some lines longer than 80 characters.
27704         * lib/stdint.in.h: Break long comment lines.
27705         * lib/math.in.h: Likewise.
27706         (_GL_NUM_UINT_WORDS): New macro, for readability.
27707         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
27708         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
27709         * lib/stdlib.in.h: Likewise.
27710         * lib/spawn.in.h: Likewise.
27711         * lib/sys_socket.in.h: Update an URL.
27712         * lib/sys_stat.in.h: Break long line.
27713
27714 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
27715
27716         Improve pmccabe2html.
27717         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
27718         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
27719         when the sources change. Remove the line in the HTML about "Used
27720         ranges" (which implied that there might be other unused ranges),
27721         rename "Resume" to "Summary" (easier to understand for more users).
27722         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
27723         styles, and some unnecessary blank lines.
27724
27725 2010-10-03  Bruno Haible  <bruno@clisp.org>
27726             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
27727
27728         acl: Add support for ACLs on NonStop Kernel.
27729         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
27730         Check whether the function aclsort() exists.
27731         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
27732         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
27733         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27734         (acl_nontrivial [HAVE_ACLSORT]: New function.
27735         (file_has_acl): Implement for NonStop Kernel.
27736         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27737         (qset_acl): Implement for NonStop Kernel.
27738         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
27739         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
27740         (main): Implement for NonStop Kernel.
27741         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
27742         Kernel. Handle this flavor.
27743         * tests/test-set-mode-acl.sh: Likewise.
27744         * tests/test-copy-acl.sh: Likewise.
27745         * tests/test-copy-file.sh: Likewise.
27746
27747 2010-10-03  Bruno Haible  <bruno@clisp.org>
27748
27749         Info about ACLs on NonStop Kernel.
27750         * doc/acl-resources.txt: Add info about NonStop Kernel.
27751         References by Joachim Schmitz <schmitz@hp.com>.
27752
27753 2010-10-02  Bruno Haible  <bruno@clisp.org>
27754
27755         Define missing EDQUOT on NonStop Kernel.
27756         * lib/errno.in.h (EDQUOT): Assign a value if missing.
27757         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
27758         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
27759         missing.
27760         * doc/posix-headers/errno.texi: Mention the NSK bug.
27761         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
27762         Reported by Joachim Schmitz <schmitz@hp.com>.
27763
27764 2010-10-02  Bruno Haible  <bruno@clisp.org>
27765
27766         Update doc for POSIX:2008.
27767         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
27768         Update URL of POSIX specification.
27769
27770 2010-10-02  Bruno Haible  <bruno@clisp.org>
27771
27772         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
27773         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
27774         from gnulib, not from Automake.
27775
27776 2010-10-02  Bruno Haible  <bruno@clisp.org>
27777
27778         New module 'system-posix'.
27779         * modules/system-posix: New file.
27780         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
27781         module is present.
27782         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
27783         GNULIB_SYSTEM_POSIX.
27784         * modules/stdlib (Depends-on): Remove sys_wait.
27785         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
27786         * doc/posix-functions/system.texi: Mention the new module.
27787         * doc/posix-headers/stdlib.texi: Likewise.
27788         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
27789         define test_sys_wait_macros to a no-op.
27790         Reported by Sam Steingold <sds@gnu.org>.
27791
27792 2010-09-30  Bruno Haible  <bruno@clisp.org>
27793
27794         More renaming from 'getdate' to 'get_date'.
27795         * doc/get_date.texi: Renamed from doc/getdate.texi.
27796         * modules/get_date (Files): Update.
27797         * MODULES.html.sh (Date and time <time.h>): Update.
27798         * DEPENDENCIES: Update.
27799         * gnulib-tool: Update comment.
27800         * m4/bison.m4 (gl_BISON): Likewise.
27801         * m4/get_date.m4 (gl_GET_DATE): Likewise.
27802
27803 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
27804
27805         bootstrap: support ACLOCAL_FLAGS during aclocal
27806         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
27807         can add additional -I dir for third-party .m4 files.
27808
27809 2010-09-30  Eric Blake  <eblake@redhat.com>
27810
27811         bootstrap: use glibtoolize on MacOS
27812         * build-aux/bootstrap (check_versions): Convert libtool into
27813         libtoolize.
27814         (tool search): Move libtool check earlier, and look for
27815         glibtoolize for MacOS.
27816         (gnulib_tool_options): Auto-add --libtool when appropriate.
27817         Reported by Justin Clift.
27818
27819         poll: fix typo that broke test on MacOS
27820         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
27821         Reported by Justin Clift.
27822
27823         getdate: rename to get_date
27824         Note: getdate.h is not renamed, to minimize client impact.
27825         * modules/getdate: Mark obsolete.  Move old contents...
27826         * modules/get_date: ...to new module name.
27827         * modules/getdate-tests: Move...
27828         * modules/get_date-tests: ...here.
27829         * m4/getdate.m4: Move...
27830         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
27831         * lib/getdate.y: Move...
27832         * lib/get_date.y: ...here.
27833         * tests/test-getdate.c: Move...
27834         * tests/test-get_date.c: ...here.
27835         * doc/posix-functions/getdate.texi (getdate): Update name.
27836         * NEWS: Mention the change.
27837
27838 2010-09-29  Bruno Haible  <bruno@clisp.org>
27839
27840         Separate the module 'waitpid' from the module 'sys_wait'.
27841         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
27842         present.
27843         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
27844         gl_MODULE_INDICATOR_FOR_TESTS.
27845         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
27846         * modules/sys_wait (Depends-on): Remove waitpid.
27847         (Makefile.am): Substitute GNULIB_WAITPID.
27848         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
27849         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
27850         signature only if the 'waitpid' module is present.
27851         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
27852         * NEWS: Mention the change.
27853         * modules/grantpt (Depends-on): Add waitpid.
27854         * modules/wait-process (Depends-on): Likewise.
27855
27856 2010-09-29  Bruno Haible  <bruno@clisp.org>
27857
27858         More tests for module 'sys_wait'.
27859         * modules/sys_wait-c++-tests: New file.
27860         * tests/test-sys_wait-c++.cc: New file.
27861         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
27862         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27863
27864 2010-09-29  Bruno Haible  <bruno@clisp.org>
27865
27866         New module 'waitpid'.
27867         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
27868         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
27869         Don't include <process.h>.
27870         (waitpid): Declare only, using modern idiom.
27871         * m4/waitpid.m4: New file.
27872         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
27873         * modules/waitpid: New file.
27874         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
27875         (Makefile.am): Update.
27876         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27877
27878 2010-09-28  Bruno Haible  <bruno@clisp.org>
27879
27880         poll: Assume ANSI C.
27881         * lib/poll.c (poll): Use an ANSI C declaration.
27882
27883 2010-09-28  Bruno Haible  <bruno@clisp.org>
27884
27885         poll-h: Create poll.h on all platforms.
27886         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
27887         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
27888         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
27889         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
27890         (gl_REPLACE_POLL_H): Don't set POLL_H.
27891         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
27892         * modules/poll-h (Depends-on): Add include_next.
27893         (Makefile.am): Create poll.h unconditionally. Substitute also
27894         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
27895
27896 2010-09-28  Bruno Haible  <bruno@clisp.org>
27897
27898         Tests for module 'poll-h'.
27899         * modules/poll-h-c++-tests: New file.
27900         * tests/test-poll-h-c++.cc: New file.
27901
27902         Tests for module 'poll-h'.
27903         * modules/poll-h-tests: New file.
27904         * tests/test-poll-h.c: New file.
27905
27906 2010-09-28  Bruno Haible  <bruno@clisp.org>
27907
27908         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27909         * modules/poll-h (Depends-on): Add 'extensions'.
27910
27911 2010-09-28  Bruno Haible  <bruno@clisp.org>
27912
27913         New module 'poll-h'.
27914         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27915         (poll): Use modern idiom.
27916         * modules/poll-h: New file.
27917         * modules/poll (Files): Remove lib/poll.in.h.
27918         (Depends-on): Add poll-h.
27919         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27920         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
27921         * m4/poll_h.m4: New file.
27922         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
27923         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
27924         and invoke gl_REPLACE_POLL_H.
27925         * lib/poll.c: Use common idiom.
27926         * tests/test-poll.c: Likewise.
27927         * doc/posix-headers/poll.texi: Mention the poll-h module.
27928         Suggested by Eric Blake.
27929
27930 2010-09-26  Bruno Haible  <bruno@clisp.org>
27931
27932         sys_wait: Implement WSTOPSIG.
27933         * lib/sys_wait.in.h (WSTOPSIG): New macro.
27934         Reported by Simon Josefsson.
27935
27936 2010-09-26  Simon Josefsson  <simon@josefsson.org>
27937
27938         stdlib, sys_wait: Avoid compilation error on mingw.
27939         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
27940
27941 2010-09-26  Bruno Haible  <bruno@clisp.org>
27942
27943         stdlib tests: Avoid code duplication.
27944         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
27945         * modules/sys_wait-tests (Files): Likewise.
27946         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
27947         * tests/test-stdlib.c: Include test-sys_wait.h.
27948         (main): Invoke test_sys_wait_macros.
27949         * tests/test-sys_wait.c: Include test-sys_wait.h.
27950         (main): Invoke test_sys_wait_macros.
27951
27952 2010-09-25  Simon Josefsson  <simon@josefsson.org>
27953
27954         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
27955         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
27956         sure Windows sockets are working before calling getaddrinfo.
27957         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
27958         * doc/gnulib.texi (Windows sockets): Fix typo.
27959
27960 2010-09-25  Bruno Haible  <bruno@clisp.org>
27961
27962         Tests for module 'regex-quote'.
27963         * modules/regex-quote-tests: New file.
27964         * tests/test-regex-quote.c: New file.
27965
27966         New module 'regex-quote'.
27967         * lib/regex-quote.h: New file.
27968         * lib/regex-quote.c: New file.
27969         * modules/regex-quote: New file.
27970         Suggested by Reuben Thomas <rrt@sc3d.org>.
27971
27972 2010-09-24  Bruno Haible  <bruno@clisp.org>
27973
27974         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27975         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27976
27977 2010-09-23  Bruno Haible  <bruno@clisp.org>
27978
27979         setenv: Relax license.
27980         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27981         Blake.
27982         Requested by Eric Blake.
27983
27984 2010-09-22  Bruno Haible  <bruno@clisp.org>
27985
27986         termios: Relax license.
27987         * modules/termios (License): Change to LGPLv2+.
27988         Requested by Eric Blake.
27989
27990 2010-09-22  Bruno Haible  <bruno@clisp.org>
27991
27992         threadlib: Allow the package to change the default to 'no'.
27993         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27994         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27995         Reported by Paul Eggert.
27996
27997 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27998             Bruno Haible  <bruno@clisp.org>
27999
28000         Fix endless loop in mbmemcasecoll.
28001         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28002         byte.
28003         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28004
28005 2010-09-22  Bruno Haible  <bruno@clisp.org>
28006
28007         Tests for module 'memcoll'.
28008         * modules/memcoll-tests: New file.
28009         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28010
28011         memcoll, xmemcoll: Clarify size vs. length.
28012         * modules/memcoll.c (memcoll0): Clarify specification.
28013         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28014         passed to collate_error.
28015
28016 2010-09-22  Bruno Haible  <bruno@clisp.org>
28017
28018         Tests for module 'memcasecmp'.
28019         * modules/memcasecmp-tests: New file.
28020         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28021
28022 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28023
28024         * lib/pthread.in.h: Add split double-inclusion guard, and include
28025         system <pthread.h> if there is one.  Use @@-style as in other
28026         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28027         pthread.h doesn't.
28028         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28029         (pthread_mutexattr_settype, pthread_mutex_trylock):
28030         New static inline functions, if there's no system <pthread.h>.
28031         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28032         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28033         Approximate with mutexes if the system lacks spinlocks, as in
28034         MacOS.
28035         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28036         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28037         @@-style.  Check for spinlocks separately.
28038         (gl_PTHREAD_DEFAULTS): New macro.
28039         * modules/pthread: Redo to use a more typical style for in.h files.
28040
28041 2010-09-21  Eric Blake  <eblake@redhat.com>
28042
28043         net_if: enhance tests
28044         * tests/test-net_if.c (main): Move signature checks earlier.
28045         Print failures to stderr.
28046         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28047         Document the bug that we do not yet fix.
28048
28049 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28050
28051         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28052         about gnulib, not GSS.
28053
28054 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28055
28056         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28057         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28058         for Emacs.
28059         * build-aux/pmccabe2html: Make Makefile.am example code more
28060         cut-and-paste friendly.
28061
28062 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28063
28064         * tests/test-net_if.c: New file.
28065         * modules/net_if-tests: New file.
28066
28067 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28068
28069         pthread: add pthread_spin_destroy
28070         * lib/pthread.in.h (pthread_spin_destroy): New function.
28071
28072 2010-09-19  Bruno Haible  <bruno@clisp.org>
28073
28074         gnulib-tool: Fix --help output.
28075         * gnulib-tool (func_usage): Fix help message.
28076         Reported by Reuben Thomas <rrt@sc3d.org>.
28077
28078 2010-09-18  Jim Meyering  <meyering@redhat.com>
28079
28080         maint.mk: avoid unexpanded \n in two diagnostics
28081         * top/maint.mk (sc_prohibit_always_true_header_tests):
28082         Don't use a literal \n in a halt=... assignment.  It would not be
28083         expanded, and the two \n bytes would appear in the diagnostic output
28084         rather than the desired newline.  Use halt=$$(printf ... instead.
28085         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28086
28087 2010-09-18  Bruno Haible  <bruno@clisp.org>
28088
28089         netinet_in: Doc tweak.
28090         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28091         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28092
28093 2010-09-18  Jim Meyering  <meyering@redhat.com>
28094
28095         init.sh: correct an outdated comment
28096         * tests/init.sh (create_exe_shims_):  s/function/alias/
28097
28098         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28099         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28100         a file named "*.exe" is removed between the glob expansion and the
28101         processing of that oddly named file.
28102
28103 2010-09-17  Eric Blake  <eblake@redhat.com>
28104
28105         mirbsd: add some more support
28106         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28107         in BSD family.
28108         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28109         devices as OpenBSD.
28110         * m4/host-os.m4 (mirbsd): Add MirBSD.
28111
28112         tests: fix unportable assumption on sys/wait.h
28113         * tests/test-sys_wait.c (main): Relax test.
28114         * tests/test-stdlib.c (main): Likewise.
28115
28116         init.sh: accommodate directory with no .exes
28117         * tests/init.sh: Accomodate directory containing only scripts.
28118
28119         tests: avoid compiler warning
28120         * tests/test-stdlib.c (main): Use the variable.
28121
28122         fdutimens, fdutimensat: update signature, again
28123         * lib/utimens.h (gl_futimens): Delete, and move signature...
28124         (fdutimens): ...here.
28125         (fdutimensat): Rearrange signature.
28126         (lutimensat): Rename variable for clarity.
28127         * lib/fdutimensat.c (fdutimensat): Update signature.
28128         * lib/utimens.c (fdutimens): Likewise.
28129         (gl_futimens): Delete.
28130         (utimens, lutimens): Update callers.
28131         * lib/futimens.c (futimens): Likewise.
28132         * tests/test-fdutimensat.c: Likewise.
28133         * tests/test-utimens.c: Likewise.
28134         * tests/test-futimens.h: Update comment.
28135         * NEWS: Mention this.
28136         Suggested by Paul Eggert.
28137
28138 2010-09-17  Bruno Haible  <bruno@clisp.org>
28139
28140         Take over the maintenance of some older macros from Autoconf.
28141         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28142         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28143         GNU Autoconf.
28144         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28145         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28146
28147 2010-09-17  Eric Blake  <eblake@redhat.com>
28148
28149         fdutimensat: drop atflag validation
28150         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28151         with valid fd, to close a race scenario where futimens is
28152         unsupported and FILE was replaced by a symlink.
28153         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28154         accordingly.
28155         Suggested by Paul Eggert.
28156
28157 2010-09-16  Bruno Haible  <bruno@clisp.org>
28158
28159         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28160         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28161
28162 2010-09-16  Bruno Haible  <bruno@clisp.org>
28163
28164         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28165         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28166         login_tty exists.
28167         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28168
28169 2010-09-16  Bruno Haible  <bruno@clisp.org>
28170
28171         login_tty: Make the replacement code work on BSD systems.
28172         * lib/login_tty.c: Include <sys/ioctl.h>.
28173         (login_tty): Use ioctl TIOCSCTTY when available.
28174         * modules/login_tty (Depends-on): Add sys_ioctl.
28175         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28176
28177 2010-09-16  Bruno Haible  <bruno@clisp.org>
28178
28179         login_tty: Stricter unit test.
28180         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28181         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28182         and tcgetsid() after login_tty.
28183         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28184
28185 2010-09-16  Bruno Haible  <bruno@clisp.org>
28186
28187         New module 'tcgetsid'.
28188         * lib/tcgetsid.c: New file.
28189         * m4/tcgetsid.m4: New file.
28190         * modules/tcgetsid: New file.
28191         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28192         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28193         GNULIB_TCGETSID, HAVE_TCGETSID.
28194         * lib/termios.in.h: Include <sys/types.h>.
28195         (tcgetsid): New declaration.
28196         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28197         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28198         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28199         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28200
28201 2010-09-16  Bruno Haible  <bruno@clisp.org>
28202
28203         Tests for module 'termios'.
28204         * modules/termios-c++-tests: New file.
28205         * modules/termios-tests: New file.
28206         * tests/test-termios-c++.cc: New file.
28207         * tests/test-termios.c: New file.
28208
28209         New module 'termios'.
28210         * modules/termios: New file.
28211         * lib/termios.in.h: New file.
28212         * m4/termios_h.m4: New file.
28213         * doc/posix-headers/termios.texi: Mention the new module.
28214
28215 2010-09-16  Eric Blake  <eblake@redhat.com>
28216
28217         fdutimensat: add an atflag parameter
28218         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28219         * lib/utimens.h (fdutimensat): Update prototype.
28220         * tests/test-fdutimensat.c: Adjust test to match.
28221         * NEWS: Document the change.
28222         Suggested by Paul Eggert.
28223
28224 2010-09-16  Bruno Haible  <bruno@clisp.org>
28225
28226         Fix typos in comments.
28227         * lib/striconveh.h: Fix typo in comment.
28228         * lib/login_tty.c (login_tty): Likewise.
28229
28230 2010-09-15  Bruno Haible  <bruno@clisp.org>
28231
28232         stdlib: clarify MirBSD WEXITSTATUS bug
28233         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28234         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28235
28236 2010-09-15  Eric Blake  <eblake@redhat.com>
28237
28238         stdlib: work around MirBSD WEXITSTATUS bug
28239         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28240         * modules/stdlib (Depends-on): Add sys_wait.
28241         * tests/test-sys_wait.c (main): Enhance test.
28242         * tests/test-stdlib.c (main): Likewise.
28243         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28244
28245         docs: mention MacOS issue with WEXITSTATUS(constant)
28246         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28247         issue.
28248         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28249
28250         strnlen: add tests
28251         * modules/strnlen-tests: New file.
28252         * tests/test-strnlen.c: Likewise.
28253
28254 2010-09-14  Bruno Haible  <bruno@clisp.org>
28255
28256         unistr/base: Avoid link errors when module 'libunistring' is also used.
28257         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28258         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28259         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28260         Declare also when HAVE_LIBUNISTRING is set.
28261         Reported by Pádraig Brady <P@draigbrady.com>.
28262
28263 2010-09-14  Eric Blake  <eblake@redhat.com>
28264
28265         test-rawmemchr: make more robust
28266         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28267         (Depends-on, configure.ac): Add needed prerequisites to use it.
28268         * modules/memchr-tests (Files, Depends-on, configure.ac):
28269         Likewise, to avoid implicit reliance on memchr module prereqs.
28270         * tests/test-memchr.c (main): Ensure proper masking.
28271         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28272         reads.
28273
28274         memchr: detect glibc Alpha bug
28275         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28276         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28277         Alpha.
28278         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28279         * tests/test-memchr.c (main): Enhance test.
28280         Reported by Nelson H. F. Beebe.
28281
28282 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28283
28284         fts, getcwd, glob: audit for dirfd returning -1
28285         * lib/fts.c (opendir): Remove #define; no longer used.
28286         (opendirat): New arg PDIR_FD.  All callers changed.
28287         (fts_build, _opendir2): Use new opendirat to avoid the need for
28288         dirfd, or for checking whether dirfd returns a negative value.
28289         Don't use opendir; always use openat followed by fdopendir.
28290         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28291         it.
28292         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28293         returns -1 here.
28294         * modules/fts (Depends-on): Remove dirfd.
28295         * modules/getcwd (Depends-on): Likewise.
28296
28297 2010-09-13  Eric Blake  <eblake@redhat.com>
28298
28299         float: fix broken MirBSD header
28300         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28301         * doc/posix-headers/float.texi (float.h): Document it.
28302
28303 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28304
28305         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28306         * lib/fts.c (opendirat): New arg extra_flags.
28307         (__opendir2): Use it to avoid following symlinks when opening
28308         a directory, if symlinks are not supposed to be followed.  See
28309         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28310
28311         fdopendir: preserve argument fd before returning
28312         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28313         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28314         (fdopendir): Use them, arranging for FD to be open to the same
28315         directory that it was when it started.  (It might be temporarily
28316         closed while fdopendir is running, so this not thread- or
28317         signal-safe.)  Be careful to do the right thing even when file
28318         descriptors are scarce and dup fails with errno == EMFILE.  See
28319         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28320
28321 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28322
28323         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28324         * NEWS: Document change.
28325         * m4/regex.m4: Disable test for regoff_t size.
28326
28327 2010-09-13  Jim Meyering  <meyering@redhat.com>
28328
28329         fts: don't operate on an invalid file descriptor after failed dup
28330         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28331         negative file descriptor.
28332
28333 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28334
28335         savedir: add streamsavedir, deprecate fdsavedir
28336         * NEWS: Mention deprecation of fdsavedir.
28337         * lib/savedir.c (streamsavedir): New extern function, whose name
28338         ends in "savedir" to be consistent with the others.  This differs
28339         from savedirstream in that it doesn't close its argument.  The
28340         next version of GNU tar will use this instead of fdsavedir, to
28341         avoid some race conditions and conserve file descriptors.
28342         (savedirstream): Reimplement as a wrapper around streamsavedir.
28343         (fdsavedir): Add a comment deprecating this function.  As far as
28344         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28345         * lib/savedir.h (streamsavedir): New decl.
28346         (fdsavedir): Add a comment deprecating this.
28347
28348 2010-09-10  Bruno Haible  <bruno@clisp.org>
28349
28350         langinfo: Fix last commit.
28351         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28352         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28354
28355 2010-09-10  Bruno Haible  <bruno@clisp.org>
28356
28357         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28358         * lib/progreloc.c (O_EXEC): Define fallback.
28359
28360 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28361
28362         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28363         * NEWS: Document recent changes to fcntl-h.
28364         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28365         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28366         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28367         Similarly for O_SEARCH; this last was already true, but not documented.
28368         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28369         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28370         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28371         Likewise.
28372         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28373         is zero, not whether it is defined.
28374         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28375         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28376         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28377
28378 2010-09-10  Bruno Haible  <bruno@clisp.org>
28379
28380         langinfo, nl_langinfo: Fix for IRIX 5.3.
28381         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28382         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28383         HAVE_LANGINFO_YESEXPR.
28384         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28385         HAVE_LANGINFO_YESEXPR.
28386         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28387         HAVE_LANGINFO_T_FMT_AMPM is 0.
28388         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28389         HAVE_LANGINFO_YESEXPR is 0.
28390         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28391         NOEXPR.
28392         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28393         * doc/posix-functions/nl_langinfo.texi: Likewise.
28394         Reported by Eric Blake.
28395
28396 2010-09-10  Bruno Haible  <bruno@clisp.org>
28397
28398         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28399         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28400         on FreeBSD 8.0 and OpenBSD 4.6.
28401         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28402         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28403         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28404         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28405         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28406         ac_includes_default.
28407         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28408
28409 2010-09-09  Eric Blake  <eblake@redhat.com>
28410
28411         strsignal: work around NetBSD bug
28412         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28413         * lib/string.in.h (includes): Likewise.
28414         * doc/posix-functions/strsignal.texi (strsignal): Document the
28415         bug.
28416         Reported by Nelson H. F. Beebe.
28417
28418         gnulib-tool: work with NetBSD /bin/sh
28419         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28420         (func_get_description, func_get_comment, func_get_status)
28421         (func_get_notice, func_get_applicability, func_get_filelist)
28422         (func_get_dependencies, func_get_autoconf_early_snippet)
28423         (func_get_autoconf_snippet, func_get_automake_snippet)
28424         (func_get_include_directive, func_get_link_directive)
28425         (func_get_license, func_get_maintainer, func_import): Avoid
28426         shell syntax errors from parsing syntax extensions.
28427
28428 2010-09-09  Bruno Haible  <bruno@clisp.org>
28429
28430         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28431         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28432         a reliable way to determine whether the 'alias' command works.
28433
28434 2010-09-08  Jim Meyering  <meyering@redhat.com>
28435
28436         init.sh: penalize a set-x-impaired shell; don't disqualify it
28437         * tests/init.sh: Too many shells corrupt application stderr when
28438         you set -x, so we can't afford to disqualify them, since at least
28439         on Irix-6.5, that would disqualify all bourne shells.
28440         Instead, use a two-pass approach.
28441         On the first pass, try to find a shell that meets the stricter
28442         condition that set -x does not corrupt stderr.
28443         If no shell meets the stricter condition, retest each candidate
28444         shell, but without that extra condition.  Finally, when
28445         VERBOSE=yes is requested and set -x might cause trouble, simply
28446         issue a warning and refrain from enabling debug output.
28447
28448 2010-09-08  Eric Blake  <eblake@redhat.com>
28449
28450         unsetenv: fix OpenBSD bug
28451         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28452         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28453         documentation.
28454         Reported by Jim Meyering.
28455
28456         strtod: work around IRIX 6.5 bug
28457         * lib/strtod.c (strtod): Reparse number on shorter string if
28458         exponent parse was invalid.
28459         * tests/test-strtod.c (main): Add check for "0x1p 2".
28460         Reported by Tom G. Christensen.
28461
28462         getopt: optimize previous patch
28463         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28464         empty variable.  Speed up awk script.
28465         Reported by Paolo Bonzini.
28466
28467 2010-09-08  Jim Meyering  <meyering@redhat.com>
28468
28469         test.sh: disqualify shells for which set -x corrupts stderr
28470         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28471         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28472         appear in stderr output.  For example, this command:
28473             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28474         prints "P=1" on those two systems:
28475
28476 2010-09-08  Bruno Haible  <bruno@clisp.org>
28477
28478         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28479         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28480         commands, because some shells ignore redirections when there is an
28481         error in the command lookup.
28482         Reported by Eric Blake.
28483
28484 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28485
28486         * lib/regex.h: Fix a mention of `regex_compile' (should be
28487         `re_compile_pattern').
28488         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28489         (re_set_registers): Correct name of parameter in comment.
28490
28491         * doc/regex.texi: Add documentation for missing syntax flags.
28492         Remove commented-out documentation of defunct syntax option
28493         RE_NO_EMPTY_ALTS.
28494         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28495         Add documentation of re_set_registers.
28496         Document trick to re-use a pattern buffer by setting fastmap manually.
28497         Update documentation of struct re_pattern_buffer per public members.
28498         Uncomment documentation of equivalence class operators and
28499         collating symbol operators, since they are now implemented,
28500         Explain leftmost-longest matching in relation to alternatives.
28501         Tidy documentation of substring matching.
28502         Remove POSIX documentation, which is done better in
28503         glibc, and refer the reader there. Keep BSD API documentation, as
28504         that is not readily available elsewhere.
28505
28506 2010-09-07  Eric Blake  <eblake@redhat.com>
28507
28508         getopt: handle POSIXLY_CORRECT set but not exported
28509         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
28510         export state of POSIXLY_CORRECT, due to bash set -o posix.
28511         Reported by Dustin J. Mitchell.
28512
28513 2010-09-05  Bruno Haible  <bruno@clisp.org>
28514
28515         gnulib-tool: Highlight the changed options.
28516         * gnulib-tool (func_usage): Display the --import, --add-import,
28517         --remove-import explanations in bold font.
28518
28519 2010-09-06  Karl Berry  <karl@gnu.org>
28520
28521         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
28522
28523 2010-09-05  Bruno Haible  <bruno@clisp.org>
28524
28525         uniwidth/width: Update comment.
28526         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
28527         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
28528
28529 2010-09-05  Bruno Haible  <bruno@clisp.org>
28530
28531         isinf, isnan: Relax license.
28532         * modules/isinf (License): Change from GPL to LGPL, with consent from
28533         Ben Pfaff.
28534         * modules/isnan (License): Likewise.
28535         Requested by Ludovic Courtès.
28536
28537 2010-09-04  Bruno Haible  <bruno@clisp.org>
28538
28539         gnulib-tool: Help migration from --import to --add-import or --update.
28540         * gnulib-tool: Emit a verbose error message when --import is used
28541         without any module name.
28542
28543 2010-09-04  Bruno Haible  <bruno@clisp.org>
28544
28545         Update doc about gnulib-tool.
28546         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
28547         'gnulib-tool --update' in more detail.
28548         Reported by Eric Blake.
28549
28550 2010-09-04  Bruno Haible  <bruno@clisp.org>
28551
28552         gnulib-tool: Change --import. New options --add/remove-import.
28553         * gnulib-tool: New options --add-import, --remove-import.
28554         (func_usage): Document them.
28555         (have_associative): Define always.
28556         (func_import): In import mode, don't merge the specified settings with
28557         the cached settings. Implement remove-import mode.
28558         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
28559         Explain when to use them versus --import.
28560         (Simple update): Use --add-import instead of --import.
28561         * NEWS: Mention the change.
28562
28563 2010-09-04  Bruno Haible  <bruno@clisp.org>
28564
28565         * doc/gnulib-tool.texi (Initial import): Update paragraph about
28566         separate gnulib.mk.
28567
28568 2010-09-04  Bruno Haible  <bruno@clisp.org>
28569
28570         gnulib-tool: Don't talk about CVS any more.
28571         * gnulib-tool (func_usage, func_import): Write "version control"
28572         instead of CVS.
28573
28574 2010-09-04  Jim Meyering  <meyering@redhat.com>
28575
28576         maint.mk: avoid obscure sc_copyright_check failure in coreutils
28577         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
28578         false positives (whose names may be ill-chosen) when searching
28579         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
28580         would cause a false-positive.
28581
28582         avoid coreutils "make distcheck" failure
28583         Coreutils tests with an absolute build directory name that contains
28584         a space.  Not quoting this directory name caused a failure.
28585         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
28586         * tests/test-vc-list-files-cvs.sh: Likewise.
28587
28588 2010-09-04  Bruno Haible  <bruno@clisp.org>
28589
28590         gnulib-tool: Avoid error when run in a package without Makefile.am.
28591         * gnulib-tool: When collecting the m4dirs in a package that does not
28592         have a Makefile.am, eliminate those directories that contain no
28593         gnulib-cache.m4. Fix expression that counts these directories.
28594
28595 2010-09-04  Bruno Haible  <bruno@clisp.org>
28596
28597         update-copyright test: Improve output when perl is missing or too old.
28598         * tests/test-update-copyright.sh: Move test of Perl version down after
28599         the test whether Perl exists. Provide an explanation relating Perl's
28600         error message to Automake's SKIP: message.
28601
28602 2010-09-04  Bruno Haible  <bruno@clisp.org>
28603
28604         Don't augment PATH in TESTS_ENVIRONMENT.
28605         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
28606         set abs_aux_dir instead of augmenting PATH.
28607         * modules/vc-list-files-tests (Makefile.am): Likewise.
28608         * tests/test-update-copyright.sh: Augment PATH here.
28609         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
28610         path_prepend_.
28611         * tests/test-vc-list-files-git.sh: Likewise.
28612
28613 2010-09-04  Jim Meyering  <meyering@redhat.com>
28614
28615         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
28616         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
28617
28618 2010-09-04  Bruno Haible  <bruno@clisp.org>
28619
28620         strdup: Fix compilation error in C++ mode.
28621         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
28622         the macro.
28623
28624 2010-09-04  Bruno Haible  <bruno@clisp.org>
28625
28626         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
28627         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
28628         macro into a function.
28629         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
28630
28631 2010-09-04  Bruno Haible  <bruno@clisp.org>
28632
28633         Set PATH_SEPARATOR the same way autoconf does.
28634         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
28635         the value of PATH_SEPARATOR the same way autoconf-generated configure
28636         scripts do.
28637         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
28638         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
28639
28640 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
28641
28642         Set PATH_SEPARATOR the same way autoconf does.
28643         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
28644         the same way autoconf-generated configure scripts do.
28645         * posix-modules: Likewise.
28646
28647 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
28648
28649         hash: fix safe_hasher const typo
28650         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
28651         const; otherwise, there is a type error later.
28652
28653 2010-09-02  Jim Meyering  <meyering@redhat.com>
28654
28655         test-update-copyright.sh: require perl 5.8.0
28656         * tests/test-update-copyright.sh: Require 5.8.0,
28657         which Tom G. Christensen has confirmed is adequate,
28658         while 5.6.1 is not.
28659
28660 2010-09-02  Eric Blake  <eblake@redhat.com>
28661
28662         tests: init.sh improvements for re-exec'ing with zsh
28663         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
28664         -vx through shell re-exec.
28665         Reported by Tom G. Christensen.
28666
28667         wctype: fix typo in previous commit
28668         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
28669         Reported by Ludovic Courtès.
28670
28671 2010-09-02  Jim Meyering  <meyering@redhat.com>
28672
28673         test-update-copyright.sh: skip test if Perl is too old
28674         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
28675         Reported by Tom G. Christensen.
28676
28677 2010-09-02  Bruno Haible  <bruno@clisp.org>
28678
28679         wctype: Avoid compilation error on IRIX 6.5.30.
28680         * lib/wctype.in.h (iswblank): Declare with a replacement if
28681         REPLACE_ISWBLANK is set.
28682         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
28683         declared. Set REPLACE_ISWBLANK.
28684         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
28685         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
28686         * doc/posix-headers/wctype.texi: Likewise.
28687         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28688
28689 2010-09-01  Bruno Haible  <bruno@clisp.org>
28690
28691         New module 'socketlib'.
28692         * modules/socketlib: New file.
28693         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
28694         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
28695         * modules/sockets (Depends-on): Add socketlib.
28696         Suggested by Sam Steingold <sds@gnu.org>.
28697
28698 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
28699
28700         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
28701
28702         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
28703         when one needs search access to a directory but not read access.
28704         On systems where it is available, it works in some cases where
28705         O_RDONLY does not, namely on directories that are searchable but
28706         not readable, and which need only to be searchable.  If O_SEARCH
28707         is not available, fall back to the traditional method of using
28708         O_RDONLY.
28709
28710         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
28711         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
28712         when opening a directory that needs only to be searchable.
28713         * lib/chdir-safer.c (chdir_no_follow): Likewise.
28714         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
28715         * lib/openat-proc.c (openat_proc_name): Likewise.
28716         * lib/openat.c (openat_needs_fchdir): Likewise.
28717         * lib/save-cwd.c (save_cwd): Likewise.
28718         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
28719
28720 2010-08-28  Bruno Haible  <bruno@clisp.org>
28721
28722         New module 'host-cpu-c-abi'.
28723         * modules/host-cpu-c-abi: New file.
28724         * m4/host-cpu-c-abi.m4: New file, based on part of
28725         clisp/src/m4/general.m4.
28726         Requested by Sam Steingold <sds@gnu.org>.
28727
28728 2010-08-31  Eric Blake  <eblake@redhat.com>
28729         and Jim Meyering  <meyering@redhat.com>
28730
28731         hash: factor, and guard against misbehaving hasher function
28732         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
28733         of table->hasher's return value.  Also protect against a hash value
28734         so large that adding it to table->bucket results in a NULL pointer.
28735         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
28736         Use it in place of open-coded check-and-abort.
28737
28738 2010-08-30  Bruno Haible  <bruno@clisp.org>
28739
28740         hash: silence spurious clang warning
28741         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
28742         Reported by Eric Blake.
28743
28744 2010-08-30  Eric Blake  <eblake@redhat.com>
28745
28746         strstr, memmem, strcasestr: avoid leaked shell message
28747         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
28748         FreeBSD.
28749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28750         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
28751
28752         tests: silence clang warning
28753         * tests/test-malloca.c (do_allocation): Avoid dead store.
28754
28755 2010-08-29  Bruno Haible  <bruno@clisp.org>
28756
28757         gettext: Fix recent mistake.
28758         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
28759
28760 2010-08-29  Bruno Haible  <bruno@clisp.org>
28761
28762         selinux-h: Offer a --without-selinux option.
28763         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
28764         --without-selinux was specified, skip all tests and define
28765         HAVE_SELINUX_SELINUX_H to 0.
28766         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
28767         set LIB_SELINUX to empty.
28768         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
28769         gl_LIBSELINUX. If --without-selinux was specified, replace
28770         selinux/context.h.
28771         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
28772
28773 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28774             Bruno Haible  <bruno@clisp.org>
28775
28776         Make the module 'realloc-gnu' work again on AIX and OSF/1.
28777         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
28778         of HAVE_REALLOC.
28779         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
28780         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
28781         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
28782         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28783
28784 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28785             Bruno Haible  <bruno@clisp.org>
28786
28787         Make the module 'calloc-gnu' work again on AIX and OSF/1.
28788         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
28789         HAVE_CALLOC.
28790         * lib/xmalloc.c: Update accordingly.
28791         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
28792         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
28793         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
28794
28795 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28796             Bruno Haible  <bruno@clisp.org>
28797
28798         Make the module 'malloc-gnu' work again on AIX and OSF/1.
28799         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
28800         HAVE_MALLOC.
28801         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
28802         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
28803         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
28804
28805 2010-08-29  Bruno Haible  <bruno@clisp.org>
28806
28807         Update modules list.
28808         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
28809         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
28810         (String handling <string.h>): Add astrxfrm.
28811         (File system functions): Add readlinkat.
28812
28813 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28814
28815         Tests for module 'realloc-gnu'.
28816         * modules/realloc-gnu-tests: New file.
28817         * tests/test-realloc-gnu.c: New file.
28818
28819         Tests for module 'calloc-gnu'.
28820         * modules/calloc-gnu-tests: New file.
28821         * tests/test-calloc-gnu.c: New file.
28822
28823         Tests for module 'malloc-gnu'.
28824         * modules/malloc-gnu-tests: New file.
28825         * tests/test-malloc-gnu.c: New file.
28826
28827 2010-08-28  Bruno Haible  <bruno@clisp.org>
28828
28829         Rename module 'realloc' -> 'realloc-gnu'.
28830         * modules/realloc-gnu: New file, copied from modules/realloc.
28831         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
28832         obsolete.
28833         * modules/mgetgroups (Depends-on): Update.
28834         * doc/posix-functions/realloc.texi: Update.
28835         * NEWS: Mention the change.
28836
28837         Rename module 'calloc' -> 'calloc-gnu'.
28838         * modules/calloc-gnu: New file, copied from modules/calloc.
28839         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
28840         obsolete.
28841         * doc/posix-functions/calloc.texi: Update.
28842         * NEWS: Mention the change.
28843
28844         Rename module 'malloc' -> 'malloc-gnu'.
28845         * modules/malloc-gnu: New file, copied from modules/malloc.
28846         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
28847         obsolete.
28848         * modules/argp (Depends-on): Update.
28849         * modules/regex (Depends-on): Update.
28850         * doc/posix-functions/malloc.texi: Update.
28851         * NEWS: Mention the change.
28852
28853 2010-08-28  Eric Blake  <eblake@redhat.com>
28854
28855         pread, pwrite: add missing dependency
28856         * modules/pread (Depends-on): Add extensions.
28857         * modules/pwrite (Depends-on): Likewise.
28858
28859 2010-08-28  Bruno Haible  <bruno@clisp.org>
28860
28861         unistr/u*-strchr: Fix tests dependencies.
28862         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
28863         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
28864         Reported by Ian Beckwith <ianb@erislabs.net>.
28865
28866 2010-08-28  Bruno Haible  <bruno@clisp.org>
28867
28868         read-file: Don't occupy too much unused memory.
28869         * lib/read-file.c (fread_file): Shrink the buffer at the end.
28870
28871 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
28872             Eric Blake  <eblake@redhat.com>
28873             Bruno Haible  <bruno@clisp.org>
28874
28875         read-file: Avoid memory reallocations with regular files.
28876         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
28877         (fread_file): With regular files, use the remaining length as the
28878         initial buffer size.  Check against overflow.
28879         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
28880         sys_stat.
28881
28882 2010-08-28  Bruno Haible  <bruno@clisp.org>
28883
28884         ftello: Relax license.
28885         * modules/ftello (License): Relax to LGPLv2+.
28886         Reported by Eric Blake.
28887
28888 2010-08-28  Bruno Haible  <bruno@clisp.org>
28889
28890         Avoid relocwrapper link errors due to gnulib replacement functions.
28891         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
28892         function.
28893         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28894
28895 2010-08-28  Bruno Haible  <bruno@clisp.org>
28896
28897         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28898         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28899         defined.
28900         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28901         Suggested by Eric Blake.
28902
28903 2010-08-28  Bruno Haible  <bruno@clisp.org>
28904
28905         sys_socket, netdb: Ensure socklen_t gets defined.
28906         * modules/sys_socket (Depends-on): Add socklen.
28907         * modules/netdb (Depends-on): Likewise.
28908         * modules/getaddrinfo (Depends-on): Remove socklen.
28909         * modules/getsockopt (Depends-on): Likewise.
28910         * modules/setsockopt (Depends-on): Likewise.
28911         * tests/test-sys_socket.c: Check that socklen_t is defined.
28912         * tests/test-netdb.c: Likewise.
28913         * m4/socklen.m4: Update comments.
28914         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28915
28916 2010-08-27  Eric Blake  <eblake@redhat.com>
28917
28918         login_tty: add missing dependency
28919         * modules/login_tty (Depends-on): Add pty.
28920
28921 2010-08-26  Eric Blake  <eblake@redhat.com>
28922
28923         lib-symbol-versions: fix m4 quoting
28924         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
28925         format for AC_LINK_IFELSE.
28926
28927         glob: fix compile test
28928         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
28929
28930         btowc: fix missing file
28931         * modules/btowc (Files): Also ship locale-fr.m4.
28932
28933         lseek: fix link test
28934         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
28935         AC_LINK_IFELSE.
28936
28937         include_next: silence autoconf 2.68 warning
28938         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
28939         AC_COMPILE_IFELSE as special.
28940         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
28941         autoconf < 2.68.
28942
28943         acl: fix compilation test
28944         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
28945         AC_COMPILE_IFELSE.
28946
28947 2010-08-26  Bruno Haible  <bruno@clisp.org>
28948
28949         Modernize AC_TRY_RUN invocations.
28950         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
28951         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28952         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
28953         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
28954         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
28955         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28956         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28957         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28958         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28959         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28960         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28961         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28962         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28963         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28964         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28965         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28966         gl_MBRLEN_NUL_RETVAL): Likewise.
28967         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28968         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28969         Likewise.
28970         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28971         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28972         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28973         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28974         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28975         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28976         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28977         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28978         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28979         Likewise.
28980         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28981         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28982         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28983         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28984         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28985         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28986         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28987         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28988         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28989         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28990
28991 2010-08-26  Bruno Haible  <bruno@clisp.org>
28992
28993         Modernize AC_TRY_LINK invocations.
28994         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28995         AC_TRY_LINK.
28996         * m4/argp.m4 (gl_ARGP): Likewise.
28997         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28998         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28999         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29000         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29001         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29002         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29003         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29004         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29005         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29006         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29007         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29008         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29009         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29010         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29011         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29012         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29013         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29014         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29015         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29016         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29017         Likewise.
29018         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29019         Likewise.
29020         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29021         Likewise.
29022         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29023         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29024         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29025         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29026         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29027         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29028         * m4/servent.m4 (gl_SERVENT): Likewise.
29029         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29030         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29031         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29032         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29033         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29034         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29035         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29036         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29037         * modules/tsearch-tests (configure.ac): Likewise.
29038
29039 2010-08-26  Bruno Haible  <bruno@clisp.org>
29040
29041         Modernize AC_TRY_COMPILE invocations.
29042         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29043         AC_TRY_COMPILE.
29044         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29045         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29046         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29047         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29048         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29049         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29050         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29051         * m4/lock.m4 (gl_LOCK): Likewise.
29052         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29053         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29054         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29055         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29056         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29057         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29058         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29059         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29060         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29061         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29062         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29063         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29064         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29065         extraneous semicolon.
29066
29067 2010-08-26  Jim Meyering  <meyering@redhat.com>
29068
29069         stat-time: relax license LGPL
29070         * modules/stat-time (License): Change from GPL to LGPL,
29071         with consent from all contributors, for use in libguile.
29072         Requested by Ludovic Courtès.
29073
29074 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29075
29076         poll: return immediately on POLLHUP.
29077         * lib/poll.c (poll): Always set timeout before wait_timeout is
29078         computed.
29079
29080 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29081
29082         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29083         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29084         rmdir ("dir/.//"), unlinkat.
29085
29086 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29087
29088         stdbool: avoid spurious failure with modern xlc
29089         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29090
29091 2010-08-24  Bruno Haible  <bruno@clisp.org>
29092
29093         getloadavg: simplify code
29094         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29095         gl_have_func. Update comments.
29096
29097 2010-08-24  Eric Blake  <eblake@redhat.com>
29098
29099         getloadavg: don't define SVR4 on cygwin
29100         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29101         only define SVR4 when -lkvm is required.
29102         Reported by Yaakov Selkowitz.
29103
29104 2010-08-24  Bruno Haible  <bruno@clisp.org>
29105
29106         priv-set: fix comment
29107         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29108
29109 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29110
29111         priv-set: fix comments
29112         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29113         to match code, as suggested by David Bartley in:
29114         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29115
29116 2010-08-23  Eric Blake  <eblake@redhat.com>
29117
29118         stdbool: avoid rejecting clang
29119         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29120         * tests/test-stdbool.c: Enable more tests if using the system
29121         <stdbool.h> instead of the gnulib replacement.
29122         (main): Move xlc bug test to a runtime test for all compilers.
29123         Reported by Anders Kaseorg.
29124
29125         argz: fix shell quoting issue
29126         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29127         Reported by Charles Wilson.
29128
29129 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29130             Erik Faye-Lund <kusmabite@gmail.com>
29131
29132         poll, select: handle ERROR_BROKEN_PIPE.
29133         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29134         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29135         * lib/select.c (win32_compute_revents): Do not mark a pipe
29136         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29137
29138 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29139
29140         fts: allow compilation with C++
29141         * lib/fts_.h: Specify extern "C" linkage with C++.
29142
29143 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29144
29145         Fix gnulib-tool sed script de-commentation for AIX sed.
29146         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29147         sed.
29148
29149 2010-08-17  Eric Blake  <eblake@redhat.com>
29150
29151         test-stddef: test for (some) offsetof bugs
29152         * tests/test-stddef.c: Enhance test to ensure correct type of
29153         offsetof.
29154         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29155         that we are not fixing at this time.
29156
29157 2010-08-15  Bruno Haible  <bruno@clisp.org>
29158
29159         stpncpy: Allow stpncpy to be defined as a macro.
29160         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29161         if it's already correctly declared.
29162         * lib/string.in.h (stpncpy): Undefine before redefining.
29163         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29164
29165 2010-08-14  Bruno Haible  <bruno@clisp.org>
29166
29167         Rename module 'memxfrm' to 'amemxfrm'.
29168         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29169         (amemxfrm): Renamed from memxfrm.
29170         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29171         (amemxfrm): Renamed from memxfrm.
29172         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29173         * NEWS: Mention the change.
29174         * MODULES.html.sh (String handling <string.h>): Update.
29175         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29176         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29177         * lib/unicase/u16-casexfrm.c: Likewise.
29178         * lib/unicase/u32-casexfrm.c: Likewise.
29179         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29180         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29181         * lib/uninorm/u16-normxfrm.c: Likewise.
29182         * lib/uninorm/u32-normxfrm.c: Likewise.
29183         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29184         memxfrm.
29185         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29186         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29187         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29188         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29189         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29190         Suggested by Paul Eggert.
29191
29192 2010-08-14  Bruno Haible  <bruno@clisp.org>
29193
29194         Tests for module 'astrxfrm'.
29195         * modules/astrxfrm-tests: New file.
29196         * tests/test-astrxfrm.c: New file.
29197
29198         New module 'astrxfrm'.
29199         * lib/astrxfrm.h: New file.
29200         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29201         * modules/astrxfrm: New file.
29202
29203 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29204
29205         regex: Tweak doc.
29206         * doc/regex.texi (Overview): Don't mention regex.c.
29207         (GNU Regular Expression Compiling): Likewise.
29208         (Match-end-of-line Operator): Mention 'not_eol'.
29209
29210 2010-08-14  Brian Gough  <bjg@gnu.org>
29211             Bruno Haible  <bruno@clisp.org>
29212
29213         git-merge-changelog: add doc relating to use with bzr and hg.
29214         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29215
29216 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29217
29218         pthread: fix pthread.h creation for srcdir != builddir
29219         * modules/pthread (Makefile.am): Fix the rule to work also in a
29220         non-srcdir build.
29221
29222 2010-08-13  Karl Berry  <karl@gnu.org>
29223
29224         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29225         * doc/posix-*/*: force line break before @url of POSIX
29226         specifications.
29227         Suggested by Werner Lemberg.
29228
29229 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29230
29231         strtod: fix const diagnostic
29232         * lib/strtod.c (strtod): Don't assign const char * to char *,
29233         as this elicits a warning from GCC when warnings are enabled.
29234
29235 2010-08-10  Pádraig Brady <P@draigbrady.com>
29236         and Eric Blake  <eblake@redhat.com>
29237
29238         copy-acl: ignore ENOTSUP on HP-UX
29239         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29240         so that it is available for HP-UX.
29241         * lib/copy-acl.c (qcopy_acl): Use it.
29242         Reported by Patrick M. Callahan.
29243
29244 2010-08-10  Eric Blake  <eblake@redhat.com>
29245
29246         open, chown: relax license
29247         * modules/open (License): Change to LGPLv2+, with consent by all
29248         authors, for use in augeas.
29249         * modules/chown (License): Likewise.
29250         * modules/lchown (Likewise): Likewise.
29251         Requested by Adam Stokes.
29252
29253 2010-08-09  Karl Berry  <karl@gnu.org>
29254
29255         * build-aux/ar-lib: new file, import from Automake.
29256         * config/srclist.txt: autocheck for updates.
29257
29258 2010-08-09  Eric Blake  <eblake@redhat.com>
29259
29260         readlinkat: adjust client modules
29261         * modules/areadlinkat (Depends-on): Use readlinkat, not
29262         symlinkat.
29263         * modules/areadlinkat-with-size (Depends-on): Likewise.
29264
29265         mknod: be more vocal about danger of running tests as root
29266         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29267         root, since that is just asking for problems.
29268         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29269
29270         readlinkat: split into its own module
29271         * modules/symlinkat: Split readlinkat...
29272         * modules/readlinkat: ...into separate module.
29273         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29274         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29275         * lib/symlinkat.c (readlinkat): Move...
29276         * lib/readlinkat.c: ...into new file.
29277         * modules/symlinkat-tests: Split readlinkat test...
29278         * modules/readlinkat-tests: ...into separate module.
29279         * tests/test-symlinkat.c: Split...
29280         * tests/test-readlinkat.c: ...into new file.
29281         * NEWS: Document the split.
29282         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29283         * lib/unistd.in.h (readlinkat): Likewise.
29284         Suggested by Bruno Haible.
29285
29286 2010-08-08  Bruno Haible  <bruno@clisp.org>
29287
29288         memxfrm: Speed up.
29289         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29290         that usually only one call to strxfrm is necessary for each string
29291         part.
29292         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29293
29294 2010-08-07  Karl Berry  <karl@gnu.org>
29295
29296         * doc/posix-headers/limits.texi,
29297         * doc/posix-functions/malloc.texi,
29298         * doc/posix-functions/strsignal.texi: missing @item.
29299         * doc/ld-version-script.texi: spurious leading i.
29300         * doc/regex.texi (Interval Operators): no commas inside @var.
29301
29302 2010-08-01  Bruno Haible  <bruno@clisp.org>
29303
29304         Integrate the regex documentation.
29305         * doc/gnulib.texi: Define 'cn' index.
29306         (Regular expressions): New a chapter that includes regex.texi and
29307         regexprops-generic.texi.
29308         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29309         syntax.
29310
29311         Whitespace cleanup.
29312         * doc/regex.texi: Remove trailing spaces.
29313
29314         Add regex documentation.
29315         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29316         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29317         Written by Kathy A. Hargreaves and Karl Berry.
29318
29319 2010-08-01  Bruno Haible  <bruno@clisp.org>
29320
29321         link: Update documentation.
29322         * doc/posix-functions/link.texi: Update regarding Solaris.
29323
29324 2010-07-31  Bruno Haible  <bruno@clisp.org>
29325
29326         Update modules list.
29327         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29328         (String handling <string.h>): Add memcmp2, memxfrm.
29329         (Container data structures): Add xlist, xsublist, xoset.
29330         (Core language properties): Add alignof, unused-parameter.
29331         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29332         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29333         (Unibyte characters <ctype.h>): New section.
29334         (String handling <string.h>): New section.
29335         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29336         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29337         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29338         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29339         tan, tanh, tanl, y0, y1, yn.
29340         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29341         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29342         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29343         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29344         unlockpt, vdprintf, vdprintf-posix.
29345         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29346         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29347         xconcat-filename.
29348         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29349         getdtablesize, pipe2, pipe2-safer.
29350         (Security): New section.
29351         (Networking functions): Add accept4.
29352         (Signal handling): Add sigpipe.
29353         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29354         mbmemcasecoll.
29355         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29356         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29357         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29358         pipe-filter-ii.
29359         (Misc): Add argp-version-etc, login_tty, parse-duration.
29360
29361 2010-07-31  Bruno Haible  <bruno@clisp.org>
29362
29363         Improve doc in MODULES.html.
29364         * modules/linkat (Description): Add the word "function".
29365         * modules/mkfifo (Description): Likewise.
29366         * modules/mknod (Description): Likewise.
29367         * modules/remove (Description): Likewise.
29368         * modules/renameat (Description): Likewise.
29369         * modules/stat (Description): Likewise.
29370         * modules/symlink (Description): Likewise.
29371         * modules/unlink (Description): Likewise.
29372
29373 2010-07-31  Bruno Haible  <bruno@clisp.org>
29374
29375         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29376         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29377         option --enable/disable-c++ instead of --enable/disable-cxx.
29378         * NEWS: Mention the change.
29379
29380 2010-07-31  Bruno Haible  <bruno@clisp.org>
29381
29382         readlink, areadlink: Relax test a bit.
29383         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29384         alternative to ENOTDIR.
29385         * tests/test-areadlink.h (test_areadlink): Likewise.
29386         Reported by Rainer Tammer.
29387
29388 2010-07-31  Bruno Haible  <bruno@clisp.org>
29389
29390         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29391         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29392         character, perform the search using U_STRCHR.
29393         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29394         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29395         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29396         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29397         Suggested by Paolo Bonzini.
29398
29399 2010-07-31  Bruno Haible  <bruno@clisp.org>
29400
29401         unistr/u*-strstr: Fix dependencies.
29402         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29403         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29404         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29405
29406 2010-07-31  Bruno Haible  <bruno@clisp.org>
29407
29408         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29409         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29410         the beginning of the loop.
29411         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29412         cases in 'switch' statement.
29413
29414         unistr/u8-strchr: Fix several bugs.
29415         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29416         the string. When not found, return NULL, not a pointer near the end.
29417
29418         More tests for unistr/u8-strchr.
29419         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29420         that the function does not read past the first occurrence of the byte
29421         being searched.
29422         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29423         * tests/unistr/test-u16-strchr.c (main): New function.
29424         * tests/unistr/test-u32-strchr.c (main): New function.
29425
29426 2010-07-31  Bruno Haible  <bruno@clisp.org>
29427
29428         posix-modules: Ignore backup files of documentation files.
29429         * posix-modules: grep only through files named *.texi.
29430
29431 2010-07-31  Bruno Haible  <bruno@clisp.org>
29432
29433         symlinkat: Fix documentation.
29434         * doc/posix-functions/readlinkat.texi: Fix module name.
29435
29436 2010-07-31  Bruno Haible  <bruno@clisp.org>
29437
29438         fchownat: Replace also when chown has the trailing slash bug.
29439         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29440         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29441         introduced on 2010-04-10.
29442         Reported by Rainer Tammer.
29443
29444 2010-07-31  Bruno Haible  <bruno@clisp.org>
29445
29446         linkat: Work around AIX 7.1 bug.
29447         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29448         whether linkat handles trailing slash correctly. If not, replace linkat
29449         and define LINKAT_TRAILING_SLASH_BUG.
29450         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29451         check whether (fd1,file1) points to a directory if file1 or file2 ends
29452         in a slash. Code taken from lib/link.c.
29453         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29454         Reported by Rainer Tammer.
29455
29456 2010-07-31  Bruno Haible  <bruno@clisp.org>
29457
29458         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29459         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29460         This disables an xlc optimization that was causing wrong test results.
29461         Reported by Rainer Tammer.
29462
29463 2010-07-31  Bruno Haible  <bruno@clisp.org>
29464
29465         iconv: Work around AIX 6.1..7.1 bug.
29466         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29467         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29468         cross-compiling, guess no on all versions of AIX.
29469         Reported by Rainer Tammer.
29470
29471 2010-07-31  Bruno Haible  <bruno@clisp.org>
29472
29473         readlink: Relax test a bit.
29474         * tests/test-readlink.h (test_readlink): Allow different errno value
29475         when readlink is called with a file name that ends in / and refers to
29476         a file.
29477         Suggested by Eric Blake.
29478         Reported by Rainer Tammer.
29479
29480 2010-07-31  Bruno Haible  <bruno@clisp.org>
29481
29482         copysign: Does not require -lm on glibc systems.
29483         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29484         gl_COMMON_DOUBLE_MATHFUNC.
29485         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29486
29487 2010-07-31  Bruno Haible  <bruno@clisp.org>
29488
29489         duplocale: Work around AIX 7.1 bug.
29490         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29491         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29492         * lib/duplocale.c (rpl_duplocale): Update comment.
29493         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29494         Reported by Rainer Tammer.
29495
29496 2010-07-30  Bruno Haible  <bruno@clisp.org>
29497
29498         dirfd: Avoid link error on AIX 7.1.
29499         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29500         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29501         exist, set REPLACE_DIRFD.
29502         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29503         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29504         * doc/posix-functions/dirfd.texi: Update.
29505         Reported by Rainer Tammer.
29506
29507 2010-07-30  Eric Blake  <eblake@redhat.com>
29508
29509         strtod: next round of AIX fixes
29510         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
29511         exponent.
29512         * tests/test-strtod.c (main): Enhance tests.
29513         * doc/posix-functions/strtod.texi (strtod): Document next bug.
29514         Reported by Rainer Tammer.
29515
29516         futimens: fix configure check
29517         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
29518         Reported by Bruno Haible.
29519
29520 2010-07-30  Bruno Haible  <bruno@clisp.org>
29521
29522         getline: Update regarding AIX.
29523         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
29524         Reported by Rainer Tammer.
29525
29526 2010-07-30  Bruno Haible  <bruno@clisp.org>
29527
29528         wcwidth: Drop replacement on AIX 7.
29529         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
29530         AIX 7.
29531         Reported by Rainer Tammer.
29532
29533 2010-07-30  Bruno Haible  <bruno@clisp.org>
29534
29535         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
29536         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
29537         a 'char *'.
29538         Reported by Rainer Tammer.
29539
29540 2010-07-30  Bruno Haible  <bruno@clisp.org>
29541
29542         unlink: Update regarding AIX.
29543         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
29544         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
29545         Reported by Rainer Tammer.
29546
29547 2010-07-30  Bruno Haible  <bruno@clisp.org>
29548
29549         symlink: Update regarding AIX.
29550         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
29551         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
29552         Reported by Rainer Tammer.
29553
29554 2010-07-30  Bruno Haible  <bruno@clisp.org>
29555
29556         strndup: Update regarding AIX.
29557         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
29558         AIX 7.
29559         Reported by Rainer Tammer.
29560
29561 2010-07-30  Bruno Haible  <bruno@clisp.org>
29562
29563         stat: Update regarding AIX.
29564         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
29565         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
29566         Reported by Rainer Tammer.
29567
29568 2010-07-30  Bruno Haible  <bruno@clisp.org>
29569
29570         truncl: Fix autoconf test.
29571         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
29572         whether truncl works.
29573         Reported by Rainer Tammer.
29574
29575 2010-07-30  Bruno Haible  <bruno@clisp.org>
29576
29577         round: Update regarding AIX.
29578         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
29579         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
29580         Reported by Rainer Tammer.
29581
29582 2010-07-30  Bruno Haible  <bruno@clisp.org>
29583
29584         rename: Update regarding AIX.
29585         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
29586         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
29587         Reported by Rainer Tammer.
29588
29589 2010-07-30  Bruno Haible  <bruno@clisp.org>
29590
29591         printf.m4: Update regarding AIX.
29592         * m4/printf.m4: Update comments regarding AIX.
29593         Reported by Rainer Tammer.
29594
29595 2010-07-30  Bruno Haible  <bruno@clisp.org>
29596
29597         iconv: Update regarding AIX.
29598         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
29599         AIX 7.
29600         Reported by Rainer Tammer.
29601
29602 2010-07-30  Bruno Haible  <bruno@clisp.org>
29603
29604         getopt: Update regarding AIX.
29605         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
29606         no on AIX.
29607         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
29608         Reported by Rainer Tammer.
29609
29610 2010-07-30  Bruno Haible  <bruno@clisp.org>
29611
29612         ldexpl; Update regarding AIX.
29613         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
29614         on AIX 7.
29615         Reported by Rainer Tammer.
29616
29617 2010-07-30  Bruno Haible  <bruno@clisp.org>
29618
29619         frexpl: Update regarding AIX.
29620         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
29621         on AIX 7.
29622         Reported by Rainer Tammer.
29623
29624 2010-07-30  Bruno Haible  <bruno@clisp.org>
29625
29626         open, fopen: Update regarding AIX.
29627         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
29628         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29629         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
29630         * doc/posix-functions/fopen.texi: Likewise.
29631         Reported by Rainer Tammer.
29632
29633 2010-07-30  Bruno Haible  <bruno@clisp.org>
29634
29635         chown: Update doc regarding AIX.
29636         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
29637         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
29638         Reported by Rainer Tammer.
29639
29640 2010-07-30  Eric Blake  <eblake@redhat.com>
29641
29642         strtod: fix bug in replacement function on AIX
29643         * lib/strtod.c (strtod): Special case broken "0x" parse in
29644         underlying strtod.
29645         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
29646         * doc/posix-functions/strtod.texi (strtod): Likewise.
29647         Reported by Rainer Tammer.
29648
29649 2010-07-30  Bruno Haible  <bruno@clisp.org>
29650
29651         mbrlen: Fix cross-compilation guess for AIX.
29652         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
29653         guess. Leftover from 2008-12-22.
29654
29655 2010-07-30  Bruno Haible  <bruno@clisp.org>
29656
29657         mbrtowc: Fix cross-compilation guess for AIX.
29658         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
29659         guess. Leftover from 2008-12-21.
29660
29661 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
29662
29663         init.sh: work around trap limitation of some shells
29664         * tests/init.sh (setup_): Move exit trap outside of shell function.
29665
29666 2010-07-29  Eric Blake  <eblake@redhat.com>
29667
29668         strtod: aid debugging
29669         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
29670         understanding why strtod is rejected.
29671
29672 2010-07-28  Bruno Haible  <bruno@clisp.org>
29673
29674         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
29675         * lib/unistr/u8-chr.c: Include <string.h>.
29676         * tests/unistr/test-u8-chr.c: Likewise.
29677         * tests/unistr/test-u16-chr.c: Likewise.
29678         * tests/unistr/test-u32-chr.c: Likewise.
29679         * tests/unistr/test-u8-strchr.c: Likewise.
29680         * tests/unistr/test-u16-strchr.c: Likewise.
29681         * tests/unistr/test-u32-strchr.c: Likewise.
29682         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
29683         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
29684         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
29685         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
29686
29687 2010-07-28  Bruno Haible  <bruno@clisp.org>
29688
29689         Use spaces for indentation, not tabs.
29690         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
29691
29692 2010-07-27  Bruno Haible  <bruno@clisp.org>
29693
29694         mbspcasecmp: Fix function specification.
29695         * lib/string.in.h (mbspcasecmp): Fix specification comment.
29696         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
29697         Reported by Eric Blake <eblake@redhat.com>.
29698
29699 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
29700
29701         timespec: use cast and not conditional, as truncation isn't possible
29702         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
29703         instead of a conditional.  Comment about the situation in more detail.
29704         This undoes most of the 2009-10-29 patch.
29705
29706 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
29707
29708         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
29709         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
29710         * lib/unistr/u8-strchr.c: Likewise.
29711         * modules/unistr/u8-chr: Depend on memchr.
29712
29713         unistr/u*-strchr: add tests
29714         * modules/unistr/u8-strchr-tests: New file.
29715         * modules/unistr/u16-strchr-tests: New file.
29716         * modules/unistr/u32-strchr-tests: New file.
29717         * tests/unistr/test-strchr.h: New file.
29718         * tests/unistr/test-u8-strchr.c: New file.
29719         * tests/unistr/test-u16-strchr.c: New file.
29720         * tests/unistr/test-u32-strchr.c: New file.
29721
29722         unistr/u*-chr: test multibyte sequences more
29723         * tests/unistr/test-chr.h: Do complete testing of the characters in the
29724         test vector.
29725         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
29726         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
29727         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
29728
29729         unistr/u*-chr: test multibyte sequences
29730         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
29731
29732         unistr/u*-chr: prepare for multibyte tests
29733         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
29734         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
29735         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
29736         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
29737         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
29738         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
29739
29740 2010-07-18  Bruno Haible  <bruno@clisp.org>
29741
29742         unistr/u8-strchr: Optimize non-ASCII argument case.
29743         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
29744         because the first byte often matches anyway.
29745         Reported by Pádraig Brady <P@draigbrady.com>.
29746
29747 2010-07-15  Karl Berry  <karl@gnu.org>
29748
29749         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
29750
29751 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
29752
29753         getcwd: on Solaris, work better if ancestors are inaccessible
29754         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
29755         buffer and size, try again with a large buffer.  This works better
29756         on Solaris, since its getcwd succeeds even if the path to the root
29757         is inaccessible, and this is helpful in common cases such as .zfs
29758         hidden directories.  Problem reported by J Chapman Flack in
29759         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
29760         Use system getcwd if it's declared, not merely if it's partly
29761         working; use the partly-working test only to avoid needless effort
29762         if the system getcwd fails.
29763         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
29764         comment that was already obsolete and is now even more obsolete.
29765         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
29766         now might call strdup.
29767
29768 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
29769
29770         pthread: Add enough so that coreutils/src/sort.c compiles.
29771         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
29772         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
29773         gnulib. Include <sched.h> and <time.h>, as per POSIX.
29774         Include <sys/types.h>, in case it defines pthread_t.
29775         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
29776         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
29777         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
29778         (pthread_rwlockattr_t, pthread_spinlock_t):
29779         New typedefs, if HAVE_PTHREAD_T is not defined.
29780         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
29781         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
29782         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
29783         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
29784         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
29785         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
29786         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
29787         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
29788         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
29789         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
29790         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
29791         New macros.
29792         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
29793         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
29794         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
29795         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
29796         (pthread_spin_unlock): New dummy functions.
29797         (pthread_create): Return EAGAIN; don't set errno.
29798         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
29799         require AC_C_INLINE.
29800         * modules/pthread (Depends-on): Add sched, time.
29801         (pthread.h): Use AM_V_GEN.
29802
29803 2010-07-13  Bruno Haible  <bruno@clisp.org>
29804
29805         striconveh: Don't malloc memory if the result buffer is sufficient.
29806         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
29807         buffer if its size is sufficient.
29808         Reported by Ludovic Courtès <ludo@gnu.org>.
29809
29810 2010-07-13  Bruno Haible  <bruno@clisp.org>
29811
29812         strtod: Add safety check.
29813         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
29814
29815 2010-07-12  Bruno Haible  <bruno@clisp.org>
29816
29817         Unify tests that set gl_cv_func_ldexpl_no_libm.
29818         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
29819         gl_FUNC_LDEXPL.
29820         (gl_FUNC_LDEXPL): Invoke it.
29821         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29822
29823 2010-07-12  Bruno Haible  <bruno@clisp.org>
29824
29825         Unify tests that set gl_cv_func_ldexp_no_libm.
29826         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
29827         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
29828         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
29829         (configure.ac): Simply invoke gl_FUNC_LDEXP.
29830         * modules/strtod (Files): Add m4/ldexp.m4.
29831
29832 2010-07-12  Bruno Haible  <bruno@clisp.org>
29833
29834         Unify tests that set gl_cv_func_frexpl_no_libm.
29835         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
29836         gl_FUNC_FREXPL_NO_LIBM.
29837         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
29838         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29839
29840 2010-07-12  Bruno Haible  <bruno@clisp.org>
29841
29842         Unify tests that set gl_cv_func_frexp_no_libm.
29843         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
29844         gl_FUNC_FREXP_NO_LIBM.
29845         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
29846         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29847
29848 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29849
29850         memcoll: clarify sizes versus lengths, document better, and tweak perf
29851         * lib/memcoll.c (strcoll_loop, memcoll0):
29852         Improve quality of descriptive comments.  Name variables
29853         consistently as to whether they are lengths (which do not include
29854         terminating null) versus sizes (which do).
29855         * lib/xmemcoll.c (xmemcoll0): Likewise.
29856         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
29857         returned when s1size == 0; this is easier to compile and saves
29858         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
29859
29860 2010-07-12  Bruno Haible  <bruno@clisp.org>
29861
29862         Tests for module '_Exit'.
29863         * modules/_Exit-tests: New file.
29864         * tests/test-_Exit.sh: New file.
29865         * tests/test-_Exit.c: New file.
29866
29867         New module '_Exit'.
29868         * lib/stdlib.in.h (__attribute__): New macro.
29869         (_Exit): New declaration.
29870         * lib/_Exit.c: New file.
29871         * m4/_Exit.m4: New file.
29872         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
29873         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
29874         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
29875         * modules/_Exit: New file.
29876         * tests/test-stdlib-c++.cc (_Exit): Check signature.
29877         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
29878
29879 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29880
29881         strtod: make it more-accurate typically, and don't require libm
29882         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
29883         Include limits.h.  Don't include string.h.
29884         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
29885         (locale_isspace): New function, so that no casts are needed to
29886         check whether *s is a space.
29887         (ldexp): Provide an unused dummy if not available.
29888         (scale_radix_exp, parse_number, underlying_strtod): New functions.
29889         (strtod): Use them.  This implementation prefers to use the
29890         underlying strtod if available, falling back on our own code
29891         only to fix known bugs.  This is more likely to produce an
29892         accurate result.  Also, it avoids the use of libm functions.
29893         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
29894         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
29895         was absent, but it caused a test failure with coreutils.
29896         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
29897         with libm.
29898         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29899         * modules/strtod-tests (Makefile.am): Likewise.
29900
29901 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29902             Bruno Haible  <bruno@clisp.org>
29903
29904         unistr/u8-strchr: Optimize ASCII argument case.
29905         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29906
29907 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29908
29909         (x)memcoll: minor tweaks
29910         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29911         is after the type that it qualifies.
29912         (memcoll0): Likewise.
29913         * lib/memcoll.h (memcoll0): Likewise.
29914         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29915         * lib/xmemcoll.h (xmemcoll0): Likewise.
29916         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29917         differs from memcoll in that the NUL byte is part of the argument.
29918         Omit the abort-checks, as performance is a real issue here.  Plus,
29919         the checks were wrong anyway (an off-by-one error).  Omit local
29920         variable 'diff', as it's a bit clearer that way.
29921         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
29922         no longer needed.
29923
29924 2010-07-08  Chen Guo <chenguo4@yahoo.com>
29925
29926         (x)memcoll: speedup when input is known to be NUL delimited
29927         * lib/memcoll.c: Include stdlib.
29928         (memcoll0): New function.
29929         (strcoll_loop): New function, refactored for use in both memcoll
29930         and memcoll0.
29931         * lib/memcoll.h (memcoll0): Add prototype.
29932         * lib/xmemcoll.c (xmemcoll0): New function.
29933         (collate_error): New function, refactored for use in both xmemcoll
29934         and xmemcoll0.
29935         * lib/xmemcoll.h (xmemcoll0): Add prototype.
29936         * m4/memcoll.m4: add inline invocation.
29937
29938 2010-07-06  Pádraig Brady  <P@draigBrady.com>
29939
29940         * build-aux/bootstrap: Remove any local translations
29941         from the translation project synchronization directory,
29942         so that local only translations are not distributed.
29943
29944 2010-07-04  Bruno Haible  <bruno@clisp.org>
29945
29946         fsusage: Clarify which code applies to which platforms.
29947         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
29948         platform.
29949         * lib/fsusage.c (get_fs_usage): Likewise.
29950
29951 2010-07-04  Bruno Haible  <bruno@clisp.org>
29952
29953         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
29954         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
29955         Reported by Martin Lambers <marlam@marlam.de>.
29956
29957 2010-07-04  Jim Meyering  <meyering@redhat.com>
29958
29959         hash: once again explicitly disallow insertion of NULL
29960         * lib/hash.c (hash_insert0): Reinstate just-removed test:
29961         inserting a NULL pointer cannot work with these functions.
29962         Add a comment with details.
29963         This reverts part of the 2010-07-01 commit, 5bef1a35
29964         "hash: extend module to deal with non-pointer keys".
29965
29966 2010-07-01  Bruno Haible  <bruno@clisp.org>
29967
29968         stdbool: Update doc.
29969         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
29970         Info from Christian Weisgerber <naddy@mips.inka.de>.
29971
29972 2010-07-01  Jim Meyering  <meyering@redhat.com>
29973
29974         hash: extend module to deal with non-pointer keys
29975         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29976         but that allows insertion of non-pointer entries.
29977         Do not disallow an ENTRY value of NULL.
29978         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29979         * lib/hash.h (hash_insert0): Declare.
29980
29981 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29982
29983         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29984         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29985         not present (i.e. with autoconf 2.59 and when using gettextize, not
29986         gnulib), require AC_GNU_SOURCE instead.
29987
29988 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29989
29990         idpriv-drop: Fix tests.
29991         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29992         not to the test-idpriv-droptemp program.
29993
29994 2010-06-29  Bruno Haible  <bruno@clisp.org>
29995
29996         string: Fix syntax error with g++ 2.96.
29997         * lib/string.in.h (__pure__): Remove definition.
29998         (_GL_ATTRIBUTE_PURE): New macro.
29999         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30000         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30001         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30002
30003 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30004
30005         unitypes: Fix bug introduced on 2010-05-18.
30006         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30007
30008 2010-06-22  Eric Blake  <eblake@redhat.com>
30009
30010         memmem: slight optimization
30011         * lib/str-two-way.h (critical_factorization): Update comments.
30012         Reduce work during factorization phase.
30013         Reported by Carlos Bueno <carlos@bueno.org>.
30014
30015 2010-06-21  Bruno Haible  <bruno@clisp.org>
30016
30017         Fix HAVE_CALLOC_POSIX misnomer.
30018         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30019         !HAVE_CALLOC_POSIX.
30020         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30021         HAVE_CALLOC_POSIX.
30022         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30023         instead of HAVE_CALLOC_POSIX.
30024         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30025         HAVE_CALLOC_POSIX.
30026
30027         Use modern idiom for calloc() replacement.
30028         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30029         AC_FUNC_CALLOC.
30030         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30031         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30032         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30033         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30034         (gl_REPLACE_CALLOC): New macro.
30035
30036 2010-06-21  Bruno Haible  <bruno@clisp.org>
30037
30038         Fix HAVE_REALLOC_POSIX misnomer.
30039         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30040         !HAVE_REALLOC_POSIX.
30041         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30042         HAVE_REALLOC_POSIX.
30043         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30044         instead of HAVE_REALLOC_POSIX.
30045         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30046         HAVE_REALLOC_POSIX.
30047
30048         Use modern idiom for realloc() replacement.
30049         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30050         AC_FUNC_REALLOC.
30051         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30052         Autoconf's AC_FUNC_REALLOC.
30053         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30054         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30055         (gl_REPLACE_REALLOC): New macro.
30056         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30057
30058 2010-06-21  Bruno Haible  <bruno@clisp.org>
30059
30060         Fix HAVE_MALLOC_POSIX misnomer.
30061         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30062         !HAVE_MALLOC_POSIX.
30063         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30064         HAVE_MALLOC_POSIX.
30065         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30066         instead of HAVE_MALLOC_POSIX.
30067         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30068         HAVE_MALLOC_POSIX.
30069
30070         Use modern idiom for malloc() replacement.
30071         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30072         AC_FUNC_MALLOC.
30073         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30074         Autoconf's AC_FUNC_MALLOC.
30075         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30076         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30077         (gl_REPLACE_MALLOC): New macro.
30078         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30079
30080 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30081
30082         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30083         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30084         This macro takes 3 arguments, not 4.
30085
30086 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30087
30088         ipv6: fix detection under mingw
30089         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30090         in6_addr.
30091
30092 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30093
30094         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30095         that strtod() works when cross-compiling to a glibc version known
30096         to work.
30097
30098 2010-06-15  Bruno Haible  <bruno@clisp.org>
30099
30100         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30101
30102 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30103
30104         select: Correct timeout.
30105         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30106
30107 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30108
30109         git-version-gen: init shell var to avoid env var influence
30110         * build-aux/git-version-gen (v): Init shell var to empty.
30111
30112 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30113
30114         priv-set: Don't assume that priv.h exists merely because getppriv does.
30115         See Jan Andersen's bug report about AIX 5L in
30116         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30117         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30118         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30119         * lib/priv-set.h: Likewise.
30120         * tests/test-priv-set.c: Likewise.
30121
30122 2010-06-13  Bruno Haible  <bruno@clisp.org>
30123
30124         relocatable: Make it easier to test whether to install wrappers.
30125         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30126         RELOCATABLE_VIA_WRAPPER.
30127
30128 2010-06-13  Bruno Haible  <bruno@clisp.org>
30129
30130         gnulib-tool: Display specified modules and dependencies differently.
30131         * gnulib-tool (func_show_module_list): New function.
30132         (func_import, func_create_testdir): Invoke it.
30133         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30134
30135 2010-06-13  Bruno Haible  <bruno@clisp.org>
30136
30137         gnulib-tool: Align code of func_import and func_create_testdir.
30138         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30139         specified_modules.
30140
30141 2010-06-12  Jim Meyering  <meyering@redhat.com>
30142
30143         test-inttostr: avoid spurious failure on Solaris 9
30144         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30145         to accept "%ju".  Reported by Bruno Haible.
30146
30147 2010-06-11  Jim Meyering  <meyering@redhat.com>
30148
30149         test-sys_socket: mark variables as used more readably
30150         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30151         as "used" explicitly via (void) statement casts.  This is more
30152         readable than using them in an artificial return expression.
30153         Suggestion from Bruno Haible.
30154
30155 2010-06-11  Bruno Haible  <bruno@clisp.org>
30156
30157         Avoid some more warnings from "gcc -Wwrite-strings".
30158         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30159         to 'const char *'.
30160         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30161         * tests/test-c-strcasestr.c (main): Likewise.
30162         * tests/test-mbscasestr1.c (main): Likewise.
30163         * tests/test-mbscasestr2.c (main): Likewise.
30164         * tests/test-memmem.c (main): Likewise.
30165         * tests/test-strstr.c (main): Likewise.
30166         * tests/test-strcasestr.c (main): Likewise.
30167
30168 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30169
30170         init.sh: change framework_failure_ to fail with status 99, not 1
30171         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30172         automake's parallel-tests rule that this is an unexpected failure,
30173         even if the test is listed in XFAIL_TESTS.
30174
30175 2010-06-11  Jim Meyering  <meyering@redhat.com>
30176
30177         test-inttostr: avoid warnings about 4-6KB literal strings
30178         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30179         Include "macros.h", for its definition of ASSERT.
30180         (CK): s/assert/ASSERT/
30181         * modules/inttostr-tests (Files): Add macros.h.
30182
30183         init.sh: don't use $ME_ or skip_ before they are defined
30184         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30185         their first uses.  Also hoist their companions: warn_, fail_,
30186         framework_failure_, $stderr_fileno.  Prompted by a patch from
30187         Stefano Lattarini.
30188
30189         test-sys_socket: avoid set-but-not-used warnings from gcc
30190         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30191         avoid warning about set-but-not-used variables.
30192
30193         test-xvasprintf: avoid 'const' discard warnings
30194         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30195         "const" when assigning from literal strings.
30196         (test_xasprintf): Add "void" in function argument list to placate
30197         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30198
30199         tests: avoid compilation warnings in argmatch and exclude tests...
30200         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30201         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30202         Since it always exits, declare with the "noreturn" attribute.
30203         * tests/test-argmatch.c: Likewise.
30204
30205         tests: avoid 'const' discard warnings in mbsstr tests
30206         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30207         * tests/test-mbsstr2.c (main): Likewise.
30208
30209         test-verify: avoid warning from gcc's -Wmissing-declarations
30210         * tests/test-verify.c (function): Declare to be static.
30211
30212         test-inttostr.c: include <string.h> for use of strcmp
30213         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30214
30215         test-linkat: avoid failed assertion on "other" architectures
30216         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30217         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30218         sparc: https://bugs.launchpad.net/bugs/591968
30219
30220 2010-06-11  Jim Meyering  <meyering@redhat.com>
30221
30222         printf.m4: avoid autoconf's "Expanded Before Required" warning
30223         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30224         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30225         autoconf warning.
30226
30227 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30228
30229         Replacement header templates are now named with ".in", not "_".
30230         * doc/gnulib-intro.texi: Correct.
30231
30232 2010-06-10  Jim Meyering  <meyering@redhat.com>
30233
30234         inttostr-tests: depend on snprintf, not snprintf-posix
30235         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30236         snprintf-posix, to avoid this aclocal failure:
30237           missing file gnulib-tests/vasnprintf.c
30238           configure.ac:45: error: expected source file, required through \
30239           AC_LIBSOURCES, not found
30240
30241 2010-06-10  Jim Meyering  <meyering@redhat.com>
30242
30243         inttostr: add a new function, inttostr, and tests
30244         The namesake function was not available.  The existence of the
30245         template file, inttostr.c makes its addition nontrivial.
30246         * lib/anytostr.c: Rename from inttostr.c.
30247         (anytostr): Rename from inttostr.
30248         * lib/inttostr.c: New file.
30249         * modules/inttostr (Files): Add anytostr.c.
30250         (Makefile.am): Set lib_SOURCES instead of ...
30251         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30252         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30253         * lib/offtostr.c: Likewise.
30254         * lib/uinttostr.c: Likewise.
30255         * lib/umaxtostr.c: Likewise.
30256         * modules/inttostr-tests: New file.
30257         * tests/test-inttostr.c: New file.  Test these functions.
30258
30259 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30260             Bruno Haible  <bruno@clisp.org>
30261
30262         Add "Extending Gnulib" chapter to manual.
30263         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30264         chapter.
30265         (Extending Gnulib): New chapter.
30266         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30267         chapter.
30268
30269 2010-06-09  Bruno Haible  <bruno@clisp.org>
30270
30271         Avoid relocwrapper link errors due to gnulib replacement functions.
30272         * lib/areadlink.c: Use the system's malloc, realloc functions.
30273         (areadlink): Set errno to ENOMEM explicitly.
30274         * modules/areadlink (Depends-on): Remove malloc-posix.
30275         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30276
30277 2010-06-09  Bruno Haible  <bruno@clisp.org>
30278
30279         Avoid relocwrapper link errors due to gnulib replacement functions.
30280         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30281         * lib/malloca.c: Likewise.
30282         * lib/relocatable.c: Likewise.
30283         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30284         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30285         * lib/setenv.c: Use the system's malloc, realloc functions.
30286         * lib/strerror.c: Use the system's sprintf function.
30287         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30288
30289 2010-06-04  Bruno Haible  <bruno@clisp.org>
30290
30291         Prefer documented low-level autoconf macro names.
30292         * m4/lib-link.m4: Use m4_translit instead of translit.
30293         * m4/environ.m4: Likewise.
30294         * m4/mathfunc.m4: Likewise.
30295         * m4/onceonly.m4: Likewise.
30296         * m4/stdint.m4: Likewise.
30297         Suggested by Eric Blake.
30298
30299 2010-06-04  Martin Lambers  <marlam@marlam.de>
30300             Bruno Haible  <bruno@clisp.org>
30301
30302         havelib: Allow library names with '+' characters.
30303         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30304         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30305
30306 2010-06-09  Bruno Haible  <bruno@clisp.org>
30307
30308         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30309         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30310         realloc failed.
30311
30312 2010-06-08  Peter Simons  <simons@cryp.to>
30313
30314         maint.mk: make the news-check rule more configurable
30315         * top/maint.mk (news-check-lines-spec): New variable.
30316         (news-check): Use "sed -n 1,10p" in place of "head".
30317
30318 2010-06-07  Jim Meyering  <meyering@redhat.com>
30319
30320         do-release-commit-and-tag: fix typo in --help
30321         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30322
30323         regex: avoid new dead-code warning with gcc-4.6.0
30324         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30325         if-block containing a while-loop.  It's been unused for at least
30326         5 years.
30327
30328 2010-06-05  Bruno Haible  <bruno@clisp.org>
30329
30330         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30331         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30332
30333 2010-06-04  Bruno Haible  <bruno@clisp.org>
30334
30335         Update to GNU gettext 0.18.1.
30336         * modules/gettext (configure.ac): Require gettext infrastructure from
30337         version 0.18.1.
30338
30339 2010-06-03  Bruno Haible  <bruno@clisp.org>
30340
30341         Don't use AC_LIBOBJ with file names in subdirectories.
30342         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30343         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30344         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30345         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30346         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30347         gl_LIBUNISTRING_LIBSOURCE.
30348         (Makefile.am): Augment lib_SOURCES here, conditionally.
30349         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30350
30351 2010-06-03  Bruno Haible  <bruno@clisp.org>
30352
30353         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30354         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30355         expansion does not end with a newline.
30356         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30357         unnecessary newline.
30358
30359 2010-06-03  Bruno Haible  <bruno@clisp.org>
30360
30361         Reduce dependencies.
30362         * tests/test-quotearg.h: New file, extracted from
30363         tests/test-quotearg.c.
30364         * tests/test-quotearg-simple.c: New file, extracted from
30365         tests/test-quotearg.c.
30366         * tests/test-quotearg.c: Don't include <ctype.h>.
30367         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30368         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30369         use_quote_double_quotes, use_quotearg_colon): Moved to
30370         tests/test-quotearg.h.
30371         (results_g, flag_results, custom_quotes, custom_results): Moved
30372         to tests/test-quotearg-simple.c.
30373         (main): Moved the part that does not depend on gettext to
30374         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30375         performed.
30376         * modules/quotearg-simple: New file.
30377         * modules/quotearg-simple-tests: New file.
30378         * modules/quotearg (Depends-on): Add quotearg-simple.
30379         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30380         (Files): Add tests/test-quotearg.h.
30381         Reported by Paolo Bonzini.
30382
30383 2010-06-03  Bruno Haible  <bruno@clisp.org>
30384
30385         Reduce dependencies.
30386         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30387
30388 2010-06-03  Bruno Haible  <bruno@clisp.org>
30389
30390         time: Undefine more broken macros.
30391         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30392         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30393         Reported by Eric Blake.
30394
30395 2010-06-03  Bruno Haible  <bruno@clisp.org>
30396
30397         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30398         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30399         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30400         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30401         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30402         Reported by Ludovic Courtès <ludo@gnu.org>.
30403
30404 2010-06-02  Eric Blake  <eblake@redhat.com>
30405
30406         time: work with mingw + pthreads-win32 library
30407         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30408         if timespec is defined only in pthread.h.
30409         * modules/time (Makefile.am): Substitute it.
30410         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30411         <pthread.h>, when needed.
30412         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30413         from the library.
30414
30415 2010-05-31  Bruno Haible  <bruno@clisp.org>
30416
30417         Avoid expanding two macros in the wrong order.
30418         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30419         gl_LIBUNISTRING if it is defined.
30420         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30421         autoconf >= 2.64.
30422         Reported by Ludovic Courtès <ludo@gnu.org>.
30423
30424 2010-05-27  Jim Meyering  <meyering@redhat.com>
30425
30426         maint.mk: also prohibit "#undef" of always-defined symbols
30427         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30428         Allow more than one space before the symbol name.
30429         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30430         the regexp uses alternation.
30431
30432 2010-05-26  Eric Blake  <eblake@redhat.com>
30433
30434         maint.mk: avoid echo -e
30435         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30436         Convert all uses of echo -* to printf.
30437         Reported by Matthias Bolte.
30438
30439 2010-05-25  Bruno Haible  <bruno@clisp.org>
30440
30441         Update to GNU gettext 0.18, part 2.
30442         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30443         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30444
30445 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30446
30447         Add missing include in test-pwrite.c.
30448         * tests/test-pwrite.c: Include string.h, for strcmp.
30449
30450 2010-05-24  Bruno Haible  <bruno@clisp.org>
30451
30452         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30453
30454 2010-05-24  Bruno Haible  <bruno@clisp.org>
30455
30456         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30457         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30458         iconveh_error argument.
30459         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30460         U_STRCONV_TO_LOCALE.
30461         * lib/unistr/u16-strcoll.c: Likewise.
30462         * lib/unistr/u32-strcoll.c: Likewise.
30463         * modules/unistr/u8-strcoll (Depends-on): Add
30464         uniconv/u8-strconv-to-enc, localcharset. Remove
30465         uniconv/u8-strconv-to-locale.
30466         (configure.ac): Bump version number.
30467         * modules/unistr/u16-strcoll (Depends-on): Add
30468         uniconv/u16-strconv-to-enc, localcharset. Remove
30469         uniconv/u16-strconv-to-locale.
30470         (configure.ac): Bump version number.
30471         * modules/unistr/u32-strcoll (Depends-on): Add
30472         uniconv/u32-strconv-to-enc, localcharset. Remove
30473         uniconv/u32-strconv-to-locale.
30474         (configure.ac): Bump version number.
30475
30476 2010-05-24  Bruno Haible  <bruno@clisp.org>
30477
30478         Avoid a test failure on NetBSD 5.0.
30479         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30480         an iconv() bug.
30481
30482 2010-05-24  Bruno Haible  <bruno@clisp.org>
30483
30484         Adjust #include directive style.
30485         * modules/regex (Includes): Recommend to write <regex.h>.
30486
30487 2010-05-24  Bruno Haible  <bruno@clisp.org>
30488
30489         regex: Don't require alloca.
30490         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30491         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30492         only inside if (0).
30493
30494 2010-05-23  Jim Meyering  <meyering@redhat.com>
30495
30496         test-renameat.c: include <sys/stat.h>
30497         * tests/test-renameat.c: Include <sys/stat.h>; required for
30498         definition of S_IS* macros.
30499
30500 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30501
30502         Update maintainer documentation for 'relocatable-prog' module.
30503         * doc/relocatable-maint.texi: Update.
30504         Comments by Bruno Haible.
30505
30506 2010-05-23  Bruno Haible  <bruno@clisp.org>
30507
30508         git-merge-changelog: Enable --split-merged-entry by default.
30509         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
30510         (usage): Don't mention this option any more.
30511         Reported by Ralf Wildenhues.
30512
30513 2010-05-23  Jim Meyering  <meyering@redhat.com>
30514
30515         test-pwrite: do not leave behind a test file named "out"
30516         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
30517         The trivial-looking use of init.sh is really necessary.
30518         It ensures that the temporary file, "out", is created in
30519         a temporary directory, and removed upon termination.
30520         * tests/test-pwrite.sh: Re-add file.
30521         * modules/pwrite-tests: Reference it.
30522
30523 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30524
30525         Fix output redirection buglet in init.sh.
30526         * tests/init.sh: Fix redirection of stderr.
30527
30528 2010-05-20  Simon Josefsson  <simon@josefsson.org>
30529
30530         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
30531
30532 2010-05-17  Simon Josefsson  <simon@josefsson.org>
30533
30534         * modules/valgrind-tests: New file.
30535         * m4/valgrind-tests.m4: New file.
30536         * doc/valgrind-tests.texi: New file.
30537         * doc/gnulib.texi (Running self-tests under valgrind): New
30538         section.
30539
30540 2010-05-19  Bruno Haible  <bruno@clisp.org>
30541
30542         Clean up dead code in recent commit.
30543         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
30544         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
30545         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
30546         Suggested by Paolo Bonzini.
30547
30548 2010-05-19  Bruno Haible  <bruno@clisp.org>
30549
30550         Avoid valgrind error reports from libunistring.
30551         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
30552         * modules/libunistring (Files): Add it.
30553         * modules/libunistring-optional (Files): Likewise.
30554
30555 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
30556             Bruno Haible  <bruno@clisp.org>
30557
30558         New module 'libunistring-optional'.
30559         * modules/libunistring-optional: New file.
30560         * m4/libunistring-base.m4: New file.
30561         * m4/libunistring-optional.m4: New file.
30562         * lib/unicase.in.h: Renamed from lib/unicase.h.
30563         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
30564         * lib/unictype.in.h: Renamed from lib/unictype.h.
30565         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
30566         * lib/uniname.in.h: Renamed from lib/uniname.h.
30567         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
30568         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
30569         * lib/unistr.in.h: Renamed from lib/unistr.h.
30570         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
30571         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
30572         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
30573         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
30574         gl_LIBUNISTRING. If the library was found, determine the installed
30575         version and set LIBUNISTRING_VERSION.
30576         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
30577         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
30578         handle a configuration option --with-included-libunistring.
30579         * modules/libunistring (Files): Add m4/absolute-header.m4.
30580         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
30581         Add m4/libunistring-base.m4.
30582         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30583         (Makefile.am): Build unicase.h from unicase.in.h.
30584         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
30585         Add m4/libunistring-base.m4.
30586         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30587         (Makefile.am): Build uniconv.h from uniconv.in.h.
30588         * modules/unictype/base (Files): Use unictype.in.h instead of
30589         unictype.h. Add m4/libunistring-base.m4.
30590         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30591         (Makefile.am): Build unictype.h from unictype.in.h.
30592         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
30593         Add m4/libunistring-base.m4.
30594         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30595         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
30596         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
30597         Add m4/libunistring-base.m4.
30598         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30599         (Makefile.am): Build uniname.h from uniname.in.h.
30600         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
30601         Add m4/libunistring-base.m4.
30602         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30603         (Makefile.am): Build uninorm.h from uninorm.in.h.
30604         * modules/unistdio/base (Files): Use unistdio.in.h instead of
30605         unistdio.h. Add m4/libunistring-base.m4.
30606         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30607         (Makefile.am): Build unistdio.h from unistdio.in.h.
30608         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
30609         Add m4/libunistring-base.m4.
30610         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30611         (Makefile.am): Build unistr.h from unistr.in.h.
30612         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
30613         Add m4/libunistring-base.m4.
30614         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30615         (Makefile.am): Build unitypes.h from unitypes.in.h.
30616         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
30617         Add m4/libunistring-base.m4.
30618         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30619         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
30620         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
30621         uniwidth.h. Add m4/libunistring-base.m4.
30622         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
30623         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
30624         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
30625         instead of augmenting lib_SOURCES.
30626         * modules/unicase/empty-suffix-context: Likewise.
30627         * modules/unicase/locale-language: Likewise.
30628         * modules/unicase/tolower: Likewise.
30629         * modules/unicase/totitle: Likewise.
30630         * modules/unicase/toupper: Likewise.
30631         * modules/unicase/u8-casecmp: Likewise.
30632         * modules/unicase/u8-casecoll: Likewise.
30633         * modules/unicase/u8-casefold: Likewise.
30634         * modules/unicase/u8-casexfrm: Likewise.
30635         * modules/unicase/u8-ct-casefold: Likewise.
30636         * modules/unicase/u8-ct-tolower: Likewise.
30637         * modules/unicase/u8-ct-totitle: Likewise.
30638         * modules/unicase/u8-ct-toupper: Likewise.
30639         * modules/unicase/u8-is-cased: Likewise.
30640         * modules/unicase/u8-is-casefolded: Likewise.
30641         * modules/unicase/u8-is-lowercase: Likewise.
30642         * modules/unicase/u8-is-titlecase: Likewise.
30643         * modules/unicase/u8-is-uppercase: Likewise.
30644         * modules/unicase/u8-prefix-context: Likewise.
30645         * modules/unicase/u8-suffix-context: Likewise.
30646         * modules/unicase/u8-tolower: Likewise.
30647         * modules/unicase/u8-totitle: Likewise.
30648         * modules/unicase/u8-toupper: Likewise.
30649         * modules/unicase/u16-casecmp: Likewise.
30650         * modules/unicase/u16-casecoll: Likewise.
30651         * modules/unicase/u16-casefold: Likewise.
30652         * modules/unicase/u16-casexfrm: Likewise.
30653         * modules/unicase/u16-ct-casefold: Likewise.
30654         * modules/unicase/u16-ct-tolower: Likewise.
30655         * modules/unicase/u16-ct-totitle: Likewise.
30656         * modules/unicase/u16-ct-toupper: Likewise.
30657         * modules/unicase/u16-is-cased: Likewise.
30658         * modules/unicase/u16-is-casefolded: Likewise.
30659         * modules/unicase/u16-is-lowercase: Likewise.
30660         * modules/unicase/u16-is-titlecase: Likewise.
30661         * modules/unicase/u16-is-uppercase: Likewise.
30662         * modules/unicase/u16-prefix-context: Likewise.
30663         * modules/unicase/u16-suffix-context: Likewise.
30664         * modules/unicase/u16-tolower: Likewise.
30665         * modules/unicase/u16-totitle: Likewise.
30666         * modules/unicase/u16-toupper: Likewise.
30667         * modules/unicase/u32-casecmp: Likewise.
30668         * modules/unicase/u32-casecoll: Likewise.
30669         * modules/unicase/u32-casefold: Likewise.
30670         * modules/unicase/u32-casexfrm: Likewise.
30671         * modules/unicase/u32-ct-casefold: Likewise.
30672         * modules/unicase/u32-ct-tolower: Likewise.
30673         * modules/unicase/u32-ct-totitle: Likewise.
30674         * modules/unicase/u32-ct-toupper: Likewise.
30675         * modules/unicase/u32-is-cased: Likewise.
30676         * modules/unicase/u32-is-casefolded: Likewise.
30677         * modules/unicase/u32-is-lowercase: Likewise.
30678         * modules/unicase/u32-is-titlecase: Likewise.
30679         * modules/unicase/u32-is-uppercase: Likewise.
30680         * modules/unicase/u32-prefix-context: Likewise.
30681         * modules/unicase/u32-suffix-context: Likewise.
30682         * modules/unicase/u32-tolower: Likewise.
30683         * modules/unicase/u32-totitle: Likewise.
30684         * modules/unicase/u32-toupper: Likewise.
30685         * modules/unicase/ulc-casecmp: Likewise.
30686         * modules/unicase/ulc-casecoll: Likewise.
30687         * modules/unicase/ulc-casexfrm: Likewise.
30688         * modules/uniconv/u8-conv-from-enc: Likewise.
30689         * modules/uniconv/u8-conv-to-enc: Likewise.
30690         * modules/uniconv/u8-strconv-from-enc: Likewise.
30691         * modules/uniconv/u8-strconv-from-locale: Likewise.
30692         * modules/uniconv/u8-strconv-to-enc: Likewise.
30693         * modules/uniconv/u8-strconv-to-locale: Likewise.
30694         * modules/uniconv/u16-conv-from-enc: Likewise.
30695         * modules/uniconv/u16-conv-to-enc: Likewise.
30696         * modules/uniconv/u16-strconv-from-enc: Likewise.
30697         * modules/uniconv/u16-strconv-from-locale: Likewise.
30698         * modules/uniconv/u16-strconv-to-enc: Likewise.
30699         * modules/uniconv/u16-strconv-to-locale: Likewise.
30700         * modules/uniconv/u32-conv-from-enc: Likewise.
30701         * modules/uniconv/u32-conv-to-enc: Likewise.
30702         * modules/uniconv/u32-strconv-from-enc: Likewise.
30703         * modules/uniconv/u32-strconv-from-locale: Likewise.
30704         * modules/uniconv/u32-strconv-to-enc: Likewise.
30705         * modules/uniconv/u32-strconv-to-locale: Likewise.
30706         * modules/unictype/bidicategory-byname: Likewise.
30707         * modules/unictype/bidicategory-name: Likewise.
30708         * modules/unictype/bidicategory-of: Likewise.
30709         * modules/unictype/bidicategory-test: Likewise.
30710         * modules/unictype/block-list: Likewise.
30711         * modules/unictype/block-test: Likewise.
30712         * modules/unictype/category-C: Likewise.
30713         * modules/unictype/category-Cc: Likewise.
30714         * modules/unictype/category-Cf: Likewise.
30715         * modules/unictype/category-Cn: Likewise.
30716         * modules/unictype/category-Co: Likewise.
30717         * modules/unictype/category-Cs: Likewise.
30718         * modules/unictype/category-L: Likewise.
30719         * modules/unictype/category-Ll: Likewise.
30720         * modules/unictype/category-Lm: Likewise.
30721         * modules/unictype/category-Lo: Likewise.
30722         * modules/unictype/category-Lt: Likewise.
30723         * modules/unictype/category-Lu: Likewise.
30724         * modules/unictype/category-M: Likewise.
30725         * modules/unictype/category-Mc: Likewise.
30726         * modules/unictype/category-Me: Likewise.
30727         * modules/unictype/category-Mn: Likewise.
30728         * modules/unictype/category-N: Likewise.
30729         * modules/unictype/category-Nd: Likewise.
30730         * modules/unictype/category-Nl: Likewise.
30731         * modules/unictype/category-No: Likewise.
30732         * modules/unictype/category-P: Likewise.
30733         * modules/unictype/category-Pc: Likewise.
30734         * modules/unictype/category-Pd: Likewise.
30735         * modules/unictype/category-Pe: Likewise.
30736         * modules/unictype/category-Pf: Likewise.
30737         * modules/unictype/category-Pi: Likewise.
30738         * modules/unictype/category-Po: Likewise.
30739         * modules/unictype/category-Ps: Likewise.
30740         * modules/unictype/category-S: Likewise.
30741         * modules/unictype/category-Sc: Likewise.
30742         * modules/unictype/category-Sk: Likewise.
30743         * modules/unictype/category-Sm: Likewise.
30744         * modules/unictype/category-So: Likewise.
30745         * modules/unictype/category-Z: Likewise.
30746         * modules/unictype/category-Zl: Likewise.
30747         * modules/unictype/category-Zp: Likewise.
30748         * modules/unictype/category-Zs: Likewise.
30749         * modules/unictype/category-and: Likewise.
30750         * modules/unictype/category-and-not: Likewise.
30751         * modules/unictype/category-byname: Likewise.
30752         * modules/unictype/category-name: Likewise.
30753         * modules/unictype/category-none: Likewise.
30754         * modules/unictype/category-of: Likewise.
30755         * modules/unictype/category-or: Likewise.
30756         * modules/unictype/category-test: Likewise.
30757         * modules/unictype/combining-class: Likewise.
30758         * modules/unictype/ctype-alnum: Likewise.
30759         * modules/unictype/ctype-alpha: Likewise.
30760         * modules/unictype/ctype-blank: Likewise.
30761         * modules/unictype/ctype-cntrl: Likewise.
30762         * modules/unictype/ctype-digit: Likewise.
30763         * modules/unictype/ctype-graph: Likewise.
30764         * modules/unictype/ctype-lower: Likewise.
30765         * modules/unictype/ctype-print: Likewise.
30766         * modules/unictype/ctype-punct: Likewise.
30767         * modules/unictype/ctype-space: Likewise.
30768         * modules/unictype/ctype-upper: Likewise.
30769         * modules/unictype/ctype-xdigit: Likewise.
30770         * modules/unictype/decimal-digit: Likewise.
30771         * modules/unictype/digit: Likewise.
30772         * modules/unictype/mirror: Likewise.
30773         * modules/unictype/numeric: Likewise.
30774         * modules/unictype/property-alphabetic: Likewise.
30775         * modules/unictype/property-ascii-hex-digit: Likewise.
30776         * modules/unictype/property-bidi-arabic-digit: Likewise.
30777         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
30778         * modules/unictype/property-bidi-block-separator: Likewise.
30779         * modules/unictype/property-bidi-boundary-neutral: Likewise.
30780         * modules/unictype/property-bidi-common-separator: Likewise.
30781         * modules/unictype/property-bidi-control: Likewise.
30782         * modules/unictype/property-bidi-embedding-or-override: Likewise.
30783         * modules/unictype/property-bidi-eur-num-separator: Likewise.
30784         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
30785         * modules/unictype/property-bidi-european-digit: Likewise.
30786         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
30787         * modules/unictype/property-bidi-left-to-right: Likewise.
30788         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
30789         * modules/unictype/property-bidi-other-neutral: Likewise.
30790         * modules/unictype/property-bidi-pdf: Likewise.
30791         * modules/unictype/property-bidi-segment-separator: Likewise.
30792         * modules/unictype/property-bidi-whitespace: Likewise.
30793         * modules/unictype/property-byname: Likewise.
30794         * modules/unictype/property-combining: Likewise.
30795         * modules/unictype/property-composite: Likewise.
30796         * modules/unictype/property-currency-symbol: Likewise.
30797         * modules/unictype/property-dash: Likewise.
30798         * modules/unictype/property-decimal-digit: Likewise.
30799         * modules/unictype/property-default-ignorable-code-point: Likewise.
30800         * modules/unictype/property-deprecated: Likewise.
30801         * modules/unictype/property-diacritic: Likewise.
30802         * modules/unictype/property-extender: Likewise.
30803         * modules/unictype/property-format-control: Likewise.
30804         * modules/unictype/property-grapheme-base: Likewise.
30805         * modules/unictype/property-grapheme-extend: Likewise.
30806         * modules/unictype/property-grapheme-link: Likewise.
30807         * modules/unictype/property-hex-digit: Likewise.
30808         * modules/unictype/property-hyphen: Likewise.
30809         * modules/unictype/property-id-continue: Likewise.
30810         * modules/unictype/property-id-start: Likewise.
30811         * modules/unictype/property-ideographic: Likewise.
30812         * modules/unictype/property-ids-binary-operator: Likewise.
30813         * modules/unictype/property-ids-trinary-operator: Likewise.
30814         * modules/unictype/property-ignorable-control: Likewise.
30815         * modules/unictype/property-iso-control: Likewise.
30816         * modules/unictype/property-join-control: Likewise.
30817         * modules/unictype/property-left-of-pair: Likewise.
30818         * modules/unictype/property-line-separator: Likewise.
30819         * modules/unictype/property-logical-order-exception: Likewise.
30820         * modules/unictype/property-lowercase: Likewise.
30821         * modules/unictype/property-math: Likewise.
30822         * modules/unictype/property-non-break: Likewise.
30823         * modules/unictype/property-not-a-character: Likewise.
30824         * modules/unictype/property-numeric: Likewise.
30825         * modules/unictype/property-other-alphabetic: Likewise.
30826         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
30827         * modules/unictype/property-other-grapheme-extend: Likewise.
30828         * modules/unictype/property-other-id-continue: Likewise.
30829         * modules/unictype/property-other-id-start: Likewise.
30830         * modules/unictype/property-other-lowercase: Likewise.
30831         * modules/unictype/property-other-math: Likewise.
30832         * modules/unictype/property-other-uppercase: Likewise.
30833         * modules/unictype/property-paired-punctuation: Likewise.
30834         * modules/unictype/property-paragraph-separator: Likewise.
30835         * modules/unictype/property-pattern-syntax: Likewise.
30836         * modules/unictype/property-pattern-white-space: Likewise.
30837         * modules/unictype/property-private-use: Likewise.
30838         * modules/unictype/property-punctuation: Likewise.
30839         * modules/unictype/property-quotation-mark: Likewise.
30840         * modules/unictype/property-radical: Likewise.
30841         * modules/unictype/property-sentence-terminal: Likewise.
30842         * modules/unictype/property-soft-dotted: Likewise.
30843         * modules/unictype/property-space: Likewise.
30844         * modules/unictype/property-terminal-punctuation: Likewise.
30845         * modules/unictype/property-test: Likewise.
30846         * modules/unictype/property-titlecase: Likewise.
30847         * modules/unictype/property-unassigned-code-value: Likewise.
30848         * modules/unictype/property-unified-ideograph: Likewise.
30849         * modules/unictype/property-uppercase: Likewise.
30850         * modules/unictype/property-variation-selector: Likewise.
30851         * modules/unictype/property-white-space: Likewise.
30852         * modules/unictype/property-xid-continue: Likewise.
30853         * modules/unictype/property-xid-start: Likewise.
30854         * modules/unictype/property-zero-width: Likewise.
30855         * modules/unictype/scripts: Likewise.
30856         * modules/unictype/syntax-c-ident: Likewise.
30857         * modules/unictype/syntax-c-whitespace: Likewise.
30858         * modules/unictype/syntax-java-ident: Likewise.
30859         * modules/unictype/syntax-java-whitespace: Likewise.
30860         * modules/unilbrk/u8-possible-linebreaks: Likewise.
30861         * modules/unilbrk/u8-width-linebreaks: Likewise.
30862         * modules/unilbrk/u16-possible-linebreaks: Likewise.
30863         * modules/unilbrk/u16-width-linebreaks: Likewise.
30864         * modules/unilbrk/u32-possible-linebreaks: Likewise.
30865         * modules/unilbrk/u32-width-linebreaks: Likewise.
30866         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
30867         * modules/unilbrk/ulc-width-linebreaks: Likewise.
30868         * modules/uniname/uniname: Likewise.
30869         * modules/uninorm/canonical-decomposition: Likewise.
30870         * modules/uninorm/composition: Likewise.
30871         * modules/uninorm/decomposing-form: Likewise.
30872         * modules/uninorm/decomposition: Likewise.
30873         * modules/uninorm/filter: Likewise.
30874         * modules/uninorm/nfc: Likewise.
30875         * modules/uninorm/nfd: Likewise.
30876         * modules/uninorm/nfkc: Likewise.
30877         * modules/uninorm/nfkd: Likewise.
30878         * modules/uninorm/u8-normalize: Likewise.
30879         * modules/uninorm/u8-normcmp: Likewise.
30880         * modules/uninorm/u8-normcoll: Likewise.
30881         * modules/uninorm/u8-normxfrm: Likewise.
30882         * modules/uninorm/u16-normalize: Likewise.
30883         * modules/uninorm/u16-normcmp: Likewise.
30884         * modules/uninorm/u16-normcoll: Likewise.
30885         * modules/uninorm/u16-normxfrm: Likewise.
30886         * modules/uninorm/u32-normalize: Likewise.
30887         * modules/uninorm/u32-normcmp: Likewise.
30888         * modules/uninorm/u32-normcoll: Likewise.
30889         * modules/uninorm/u32-normxfrm: Likewise.
30890         * modules/unistdio/u8-asnprintf: Likewise.
30891         * modules/unistdio/u8-asprintf: Likewise.
30892         * modules/unistdio/u8-snprintf: Likewise.
30893         * modules/unistdio/u8-sprintf: Likewise.
30894         * modules/unistdio/u8-u8-asnprintf: Likewise.
30895         * modules/unistdio/u8-u8-asprintf: Likewise.
30896         * modules/unistdio/u8-u8-snprintf: Likewise.
30897         * modules/unistdio/u8-u8-sprintf: Likewise.
30898         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30899         * modules/unistdio/u8-u8-vasprintf: Likewise.
30900         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30901         * modules/unistdio/u8-u8-vsprintf: Likewise.
30902         * modules/unistdio/u8-vasnprintf: Likewise.
30903         * modules/unistdio/u8-vasprintf: Likewise.
30904         * modules/unistdio/u8-vsnprintf: Likewise.
30905         * modules/unistdio/u8-vsprintf: Likewise.
30906         * modules/unistdio/u16-asnprintf: Likewise.
30907         * modules/unistdio/u16-asprintf: Likewise.
30908         * modules/unistdio/u16-snprintf: Likewise.
30909         * modules/unistdio/u16-sprintf: Likewise.
30910         * modules/unistdio/u16-u16-asnprintf: Likewise.
30911         * modules/unistdio/u16-u16-asprintf: Likewise.
30912         * modules/unistdio/u16-u16-snprintf: Likewise.
30913         * modules/unistdio/u16-u16-sprintf: Likewise.
30914         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30915         * modules/unistdio/u16-u16-vasprintf: Likewise.
30916         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30917         * modules/unistdio/u16-u16-vsprintf: Likewise.
30918         * modules/unistdio/u16-vasnprintf: Likewise.
30919         * modules/unistdio/u16-vasprintf: Likewise.
30920         * modules/unistdio/u16-vsnprintf: Likewise.
30921         * modules/unistdio/u16-vsprintf: Likewise.
30922         * modules/unistdio/u32-asnprintf: Likewise.
30923         * modules/unistdio/u32-asprintf: Likewise.
30924         * modules/unistdio/u32-snprintf: Likewise.
30925         * modules/unistdio/u32-sprintf: Likewise.
30926         * modules/unistdio/u32-u32-asnprintf: Likewise.
30927         * modules/unistdio/u32-u32-asprintf: Likewise.
30928         * modules/unistdio/u32-u32-snprintf: Likewise.
30929         * modules/unistdio/u32-u32-sprintf: Likewise.
30930         * modules/unistdio/u32-u32-vasnprintf: Likewise.
30931         * modules/unistdio/u32-u32-vasprintf: Likewise.
30932         * modules/unistdio/u32-u32-vsnprintf: Likewise.
30933         * modules/unistdio/u32-u32-vsprintf: Likewise.
30934         * modules/unistdio/u32-vasnprintf: Likewise.
30935         * modules/unistdio/u32-vasprintf: Likewise.
30936         * modules/unistdio/u32-vsnprintf: Likewise.
30937         * modules/unistdio/u32-vsprintf: Likewise.
30938         * modules/unistdio/ulc-asnprintf: Likewise.
30939         * modules/unistdio/ulc-asprintf: Likewise.
30940         * modules/unistdio/ulc-fprintf: Likewise.
30941         * modules/unistdio/ulc-snprintf: Likewise.
30942         * modules/unistdio/ulc-sprintf: Likewise.
30943         * modules/unistdio/ulc-vasnprintf: Likewise.
30944         * modules/unistdio/ulc-vasprintf: Likewise.
30945         * modules/unistdio/ulc-vfprintf: Likewise.
30946         * modules/unistdio/ulc-vsnprintf: Likewise.
30947         * modules/unistdio/ulc-vsprintf: Likewise.
30948         * modules/unistr/u8-check: Likewise.
30949         * modules/unistr/u8-chr: Likewise.
30950         * modules/unistr/u8-cmp: Likewise.
30951         * modules/unistr/u8-cmp2: Likewise.
30952         * modules/unistr/u8-cpy: Likewise.
30953         * modules/unistr/u8-cpy-alloc: Likewise.
30954         * modules/unistr/u8-endswith: Likewise.
30955         * modules/unistr/u8-mblen: Likewise.
30956         * modules/unistr/u8-mbsnlen: Likewise.
30957         * modules/unistr/u8-mbtouc: Likewise.
30958         * modules/unistr/u8-mbtouc-unsafe: Likewise.
30959         * modules/unistr/u8-mbtoucr: Likewise.
30960         * modules/unistr/u8-move: Likewise.
30961         * modules/unistr/u8-next: Likewise.
30962         * modules/unistr/u8-prev: Likewise.
30963         * modules/unistr/u8-set: Likewise.
30964         * modules/unistr/u8-startswith: Likewise.
30965         * modules/unistr/u8-stpcpy: Likewise.
30966         * modules/unistr/u8-stpncpy: Likewise.
30967         * modules/unistr/u8-strcat: Likewise.
30968         * modules/unistr/u8-strchr: Likewise.
30969         * modules/unistr/u8-strcmp: Likewise.
30970         * modules/unistr/u8-strcoll: Likewise.
30971         * modules/unistr/u8-strcpy: Likewise.
30972         * modules/unistr/u8-strcspn: Likewise.
30973         * modules/unistr/u8-strdup: Likewise.
30974         * modules/unistr/u8-strlen: Likewise.
30975         * modules/unistr/u8-strmblen: Likewise.
30976         * modules/unistr/u8-strmbtouc: Likewise.
30977         * modules/unistr/u8-strncat: Likewise.
30978         * modules/unistr/u8-strncmp: Likewise.
30979         * modules/unistr/u8-strncpy: Likewise.
30980         * modules/unistr/u8-strnlen: Likewise.
30981         * modules/unistr/u8-strpbrk: Likewise.
30982         * modules/unistr/u8-strrchr: Likewise.
30983         * modules/unistr/u8-strspn: Likewise.
30984         * modules/unistr/u8-strstr: Likewise.
30985         * modules/unistr/u8-strtok: Likewise.
30986         * modules/unistr/u8-to-u16: Likewise.
30987         * modules/unistr/u8-to-u32: Likewise.
30988         * modules/unistr/u8-uctomb: Likewise.
30989         * modules/unistr/u16-check: Likewise.
30990         * modules/unistr/u16-chr: Likewise.
30991         * modules/unistr/u16-cmp: Likewise.
30992         * modules/unistr/u16-cmp2: Likewise.
30993         * modules/unistr/u16-cpy: Likewise.
30994         * modules/unistr/u16-cpy-alloc: Likewise.
30995         * modules/unistr/u16-endswith: Likewise.
30996         * modules/unistr/u16-mblen: Likewise.
30997         * modules/unistr/u16-mbsnlen: Likewise.
30998         * modules/unistr/u16-mbtouc: Likewise.
30999         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31000         * modules/unistr/u16-mbtoucr: Likewise.
31001         * modules/unistr/u16-move: Likewise.
31002         * modules/unistr/u16-next: Likewise.
31003         * modules/unistr/u16-prev: Likewise.
31004         * modules/unistr/u16-set: Likewise.
31005         * modules/unistr/u16-startswith: Likewise.
31006         * modules/unistr/u16-stpcpy: Likewise.
31007         * modules/unistr/u16-stpncpy: Likewise.
31008         * modules/unistr/u16-strcat: Likewise.
31009         * modules/unistr/u16-strchr: Likewise.
31010         * modules/unistr/u16-strcmp: Likewise.
31011         * modules/unistr/u16-strcoll: Likewise.
31012         * modules/unistr/u16-strcpy: Likewise.
31013         * modules/unistr/u16-strcspn: Likewise.
31014         * modules/unistr/u16-strdup: Likewise.
31015         * modules/unistr/u16-strlen: Likewise.
31016         * modules/unistr/u16-strmblen: Likewise.
31017         * modules/unistr/u16-strmbtouc: Likewise.
31018         * modules/unistr/u16-strncat: Likewise.
31019         * modules/unistr/u16-strncmp: Likewise.
31020         * modules/unistr/u16-strncpy: Likewise.
31021         * modules/unistr/u16-strnlen: Likewise.
31022         * modules/unistr/u16-strpbrk: Likewise.
31023         * modules/unistr/u16-strrchr: Likewise.
31024         * modules/unistr/u16-strspn: Likewise.
31025         * modules/unistr/u16-strstr: Likewise.
31026         * modules/unistr/u16-strtok: Likewise.
31027         * modules/unistr/u16-to-u32: Likewise.
31028         * modules/unistr/u16-to-u8: Likewise.
31029         * modules/unistr/u16-uctomb: Likewise.
31030         * modules/unistr/u32-check: Likewise.
31031         * modules/unistr/u32-chr: Likewise.
31032         * modules/unistr/u32-cmp: Likewise.
31033         * modules/unistr/u32-cmp2: Likewise.
31034         * modules/unistr/u32-cpy: Likewise.
31035         * modules/unistr/u32-cpy-alloc: Likewise.
31036         * modules/unistr/u32-endswith: Likewise.
31037         * modules/unistr/u32-mblen: Likewise.
31038         * modules/unistr/u32-mbsnlen: Likewise.
31039         * modules/unistr/u32-mbtouc: Likewise.
31040         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31041         * modules/unistr/u32-mbtoucr: Likewise.
31042         * modules/unistr/u32-move: Likewise.
31043         * modules/unistr/u32-next: Likewise.
31044         * modules/unistr/u32-prev: Likewise.
31045         * modules/unistr/u32-set: Likewise.
31046         * modules/unistr/u32-startswith: Likewise.
31047         * modules/unistr/u32-stpcpy: Likewise.
31048         * modules/unistr/u32-stpncpy: Likewise.
31049         * modules/unistr/u32-strcat: Likewise.
31050         * modules/unistr/u32-strchr: Likewise.
31051         * modules/unistr/u32-strcmp: Likewise.
31052         * modules/unistr/u32-strcoll: Likewise.
31053         * modules/unistr/u32-strcpy: Likewise.
31054         * modules/unistr/u32-strcspn: Likewise.
31055         * modules/unistr/u32-strdup: Likewise.
31056         * modules/unistr/u32-strlen: Likewise.
31057         * modules/unistr/u32-strmblen: Likewise.
31058         * modules/unistr/u32-strmbtouc: Likewise.
31059         * modules/unistr/u32-strncat: Likewise.
31060         * modules/unistr/u32-strncmp: Likewise.
31061         * modules/unistr/u32-strncpy: Likewise.
31062         * modules/unistr/u32-strnlen: Likewise.
31063         * modules/unistr/u32-strpbrk: Likewise.
31064         * modules/unistr/u32-strrchr: Likewise.
31065         * modules/unistr/u32-strspn: Likewise.
31066         * modules/unistr/u32-strstr: Likewise.
31067         * modules/unistr/u32-strtok: Likewise.
31068         * modules/unistr/u32-to-u16: Likewise.
31069         * modules/unistr/u32-to-u8: Likewise.
31070         * modules/unistr/u32-uctomb: Likewise.
31071         * modules/uniwbrk/u8-wordbreaks: Likewise.
31072         * modules/uniwbrk/u16-wordbreaks: Likewise.
31073         * modules/uniwbrk/u32-wordbreaks: Likewise.
31074         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31075         * modules/uniwbrk/wordbreak-property: Likewise.
31076         * modules/uniwidth/u8-strwidth: Likewise.
31077         * modules/uniwidth/u8-width: Likewise.
31078         * modules/uniwidth/u16-strwidth: Likewise.
31079         * modules/uniwidth/u16-width: Likewise.
31080         * modules/uniwidth/u32-strwidth: Likewise.
31081         * modules/uniwidth/u32-width: Likewise.
31082         * modules/uniwidth/width: Likewise.
31083         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31084         with $(LIBUNISTRING).
31085         * modules/unicase/ignorable-tests: Likewise.
31086         * modules/unicase/locale-language-tests: Likewise.
31087         * modules/unicase/tolower-tests: Likewise.
31088         * modules/unicase/totitle-tests: Likewise.
31089         * modules/unicase/toupper-tests: Likewise.
31090         * modules/unicase/u8-casecmp-tests: Likewise.
31091         * modules/unicase/u8-casecoll-tests: Likewise.
31092         * modules/unicase/u8-casefold-tests: Likewise.
31093         * modules/unicase/u8-is-cased-tests: Likewise.
31094         * modules/unicase/u8-is-casefolded-tests: Likewise.
31095         * modules/unicase/u8-is-lowercase-tests: Likewise.
31096         * modules/unicase/u8-is-titlecase-tests: Likewise.
31097         * modules/unicase/u8-is-uppercase-tests: Likewise.
31098         * modules/unicase/u8-tolower-tests: Likewise.
31099         * modules/unicase/u8-totitle-tests: Likewise.
31100         * modules/unicase/u8-toupper-tests: Likewise.
31101         * modules/unicase/u16-casecmp-tests: Likewise.
31102         * modules/unicase/u16-casecoll-tests: Likewise.
31103         * modules/unicase/u16-casefold-tests: Likewise.
31104         * modules/unicase/u16-is-cased-tests: Likewise.
31105         * modules/unicase/u16-is-casefolded-tests: Likewise.
31106         * modules/unicase/u16-is-lowercase-tests: Likewise.
31107         * modules/unicase/u16-is-titlecase-tests: Likewise.
31108         * modules/unicase/u16-is-uppercase-tests: Likewise.
31109         * modules/unicase/u16-tolower-tests: Likewise.
31110         * modules/unicase/u16-totitle-tests: Likewise.
31111         * modules/unicase/u16-toupper-tests: Likewise.
31112         * modules/unicase/u32-casecmp-tests: Likewise.
31113         * modules/unicase/u32-casecoll-tests: Likewise.
31114         * modules/unicase/u32-casefold-tests: Likewise.
31115         * modules/unicase/u32-is-cased-tests: Likewise.
31116         * modules/unicase/u32-is-casefolded-tests: Likewise.
31117         * modules/unicase/u32-is-lowercase-tests: Likewise.
31118         * modules/unicase/u32-is-titlecase-tests: Likewise.
31119         * modules/unicase/u32-is-uppercase-tests: Likewise.
31120         * modules/unicase/u32-tolower-tests: Likewise.
31121         * modules/unicase/u32-totitle-tests: Likewise.
31122         * modules/unicase/u32-toupper-tests: Likewise.
31123         * modules/unicase/ulc-casecmp-tests: Likewise.
31124         * modules/unicase/ulc-casecoll-tests: Likewise.
31125         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31126         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31127         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31128         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31129         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31130         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31131         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31132         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31133         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31134         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31135         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31136         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31137         * modules/unictype/bidicategory-byname-tests: Likewise.
31138         * modules/unictype/bidicategory-name-tests: Likewise.
31139         * modules/unictype/bidicategory-of-tests: Likewise.
31140         * modules/unictype/bidicategory-test-tests: Likewise.
31141         * modules/unictype/block-list-tests: Likewise.
31142         * modules/unictype/block-of-tests: Likewise.
31143         * modules/unictype/block-test-tests: Likewise.
31144         * modules/unictype/category-C-tests: Likewise.
31145         * modules/unictype/category-Cc-tests: Likewise.
31146         * modules/unictype/category-Cf-tests: Likewise.
31147         * modules/unictype/category-Cn-tests: Likewise.
31148         * modules/unictype/category-Co-tests: Likewise.
31149         * modules/unictype/category-Cs-tests: Likewise.
31150         * modules/unictype/category-L-tests: Likewise.
31151         * modules/unictype/category-Ll-tests: Likewise.
31152         * modules/unictype/category-Lm-tests: Likewise.
31153         * modules/unictype/category-Lo-tests: Likewise.
31154         * modules/unictype/category-Lt-tests: Likewise.
31155         * modules/unictype/category-Lu-tests: Likewise.
31156         * modules/unictype/category-M-tests: Likewise.
31157         * modules/unictype/category-Mc-tests: Likewise.
31158         * modules/unictype/category-Me-tests: Likewise.
31159         * modules/unictype/category-Mn-tests: Likewise.
31160         * modules/unictype/category-N-tests: Likewise.
31161         * modules/unictype/category-Nd-tests: Likewise.
31162         * modules/unictype/category-Nl-tests: Likewise.
31163         * modules/unictype/category-No-tests: Likewise.
31164         * modules/unictype/category-P-tests: Likewise.
31165         * modules/unictype/category-Pc-tests: Likewise.
31166         * modules/unictype/category-Pd-tests: Likewise.
31167         * modules/unictype/category-Pe-tests: Likewise.
31168         * modules/unictype/category-Pf-tests: Likewise.
31169         * modules/unictype/category-Pi-tests: Likewise.
31170         * modules/unictype/category-Po-tests: Likewise.
31171         * modules/unictype/category-Ps-tests: Likewise.
31172         * modules/unictype/category-S-tests: Likewise.
31173         * modules/unictype/category-Sc-tests: Likewise.
31174         * modules/unictype/category-Sk-tests: Likewise.
31175         * modules/unictype/category-Sm-tests: Likewise.
31176         * modules/unictype/category-So-tests: Likewise.
31177         * modules/unictype/category-Z-tests: Likewise.
31178         * modules/unictype/category-Zl-tests: Likewise.
31179         * modules/unictype/category-Zp-tests: Likewise.
31180         * modules/unictype/category-Zs-tests: Likewise.
31181         * modules/unictype/category-and-not-tests: Likewise.
31182         * modules/unictype/category-and-tests: Likewise.
31183         * modules/unictype/category-byname-tests: Likewise.
31184         * modules/unictype/category-name-tests: Likewise.
31185         * modules/unictype/category-none-tests: Likewise.
31186         * modules/unictype/category-of-tests: Likewise.
31187         * modules/unictype/category-or-tests: Likewise.
31188         * modules/unictype/category-test-withtable-tests: Likewise.
31189         * modules/unictype/combining-class-tests: Likewise.
31190         * modules/unictype/ctype-alnum-tests: Likewise.
31191         * modules/unictype/ctype-alpha-tests: Likewise.
31192         * modules/unictype/ctype-blank-tests: Likewise.
31193         * modules/unictype/ctype-cntrl-tests: Likewise.
31194         * modules/unictype/ctype-digit-tests: Likewise.
31195         * modules/unictype/ctype-graph-tests: Likewise.
31196         * modules/unictype/ctype-lower-tests: Likewise.
31197         * modules/unictype/ctype-print-tests: Likewise.
31198         * modules/unictype/ctype-punct-tests: Likewise.
31199         * modules/unictype/ctype-space-tests: Likewise.
31200         * modules/unictype/ctype-upper-tests: Likewise.
31201         * modules/unictype/ctype-xdigit-tests: Likewise.
31202         * modules/unictype/decimal-digit-tests: Likewise.
31203         * modules/unictype/digit-tests: Likewise.
31204         * modules/unictype/mirror-tests: Likewise.
31205         * modules/unictype/numeric-tests: Likewise.
31206         * modules/unictype/property-alphabetic-tests: Likewise.
31207         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31208         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31209         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31210         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31211         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31212         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31213         * modules/unictype/property-bidi-control-tests: Likewise.
31214         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31215         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31216         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31217         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31218         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31219         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31220         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31221         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31222         * modules/unictype/property-bidi-pdf-tests: Likewise.
31223         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31224         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31225         * modules/unictype/property-byname-tests: Likewise.
31226         * modules/unictype/property-combining-tests: Likewise.
31227         * modules/unictype/property-composite-tests: Likewise.
31228         * modules/unictype/property-currency-symbol-tests: Likewise.
31229         * modules/unictype/property-dash-tests: Likewise.
31230         * modules/unictype/property-decimal-digit-tests: Likewise.
31231         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31232         * modules/unictype/property-deprecated-tests: Likewise.
31233         * modules/unictype/property-diacritic-tests: Likewise.
31234         * modules/unictype/property-extender-tests: Likewise.
31235         * modules/unictype/property-format-control-tests: Likewise.
31236         * modules/unictype/property-grapheme-base-tests: Likewise.
31237         * modules/unictype/property-grapheme-extend-tests: Likewise.
31238         * modules/unictype/property-grapheme-link-tests: Likewise.
31239         * modules/unictype/property-hex-digit-tests: Likewise.
31240         * modules/unictype/property-hyphen-tests: Likewise.
31241         * modules/unictype/property-id-continue-tests: Likewise.
31242         * modules/unictype/property-id-start-tests: Likewise.
31243         * modules/unictype/property-ideographic-tests: Likewise.
31244         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31245         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31246         * modules/unictype/property-ignorable-control-tests: Likewise.
31247         * modules/unictype/property-iso-control-tests: Likewise.
31248         * modules/unictype/property-join-control-tests: Likewise.
31249         * modules/unictype/property-left-of-pair-tests: Likewise.
31250         * modules/unictype/property-line-separator-tests: Likewise.
31251         * modules/unictype/property-logical-order-exception-tests: Likewise.
31252         * modules/unictype/property-lowercase-tests: Likewise.
31253         * modules/unictype/property-math-tests: Likewise.
31254         * modules/unictype/property-non-break-tests: Likewise.
31255         * modules/unictype/property-not-a-character-tests: Likewise.
31256         * modules/unictype/property-numeric-tests: Likewise.
31257         * modules/unictype/property-other-alphabetic-tests: Likewise.
31258         * modules/unictype/property-other-default-ignorable-code-point-tests:
31259         Likewise.
31260         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31261         * modules/unictype/property-other-id-continue-tests: Likewise.
31262         * modules/unictype/property-other-id-start-tests: Likewise.
31263         * modules/unictype/property-other-lowercase-tests: Likewise.
31264         * modules/unictype/property-other-math-tests: Likewise.
31265         * modules/unictype/property-other-uppercase-tests: Likewise.
31266         * modules/unictype/property-paired-punctuation-tests: Likewise.
31267         * modules/unictype/property-paragraph-separator-tests: Likewise.
31268         * modules/unictype/property-pattern-syntax-tests: Likewise.
31269         * modules/unictype/property-pattern-white-space-tests: Likewise.
31270         * modules/unictype/property-private-use-tests: Likewise.
31271         * modules/unictype/property-punctuation-tests: Likewise.
31272         * modules/unictype/property-quotation-mark-tests: Likewise.
31273         * modules/unictype/property-radical-tests: Likewise.
31274         * modules/unictype/property-sentence-terminal-tests: Likewise.
31275         * modules/unictype/property-soft-dotted-tests: Likewise.
31276         * modules/unictype/property-space-tests: Likewise.
31277         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31278         * modules/unictype/property-test-tests: Likewise.
31279         * modules/unictype/property-titlecase-tests: Likewise.
31280         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31281         * modules/unictype/property-unified-ideograph-tests: Likewise.
31282         * modules/unictype/property-uppercase-tests: Likewise.
31283         * modules/unictype/property-variation-selector-tests: Likewise.
31284         * modules/unictype/property-white-space-tests: Likewise.
31285         * modules/unictype/property-xid-continue-tests: Likewise.
31286         * modules/unictype/property-xid-start-tests: Likewise.
31287         * modules/unictype/property-zero-width-tests: Likewise.
31288         * modules/unictype/scripts-tests: Likewise.
31289         * modules/unictype/syntax-c-ident-tests: Likewise.
31290         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31291         * modules/unictype/syntax-java-ident-tests: Likewise.
31292         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31293         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31294         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31295         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31296         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31297         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31298         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31299         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31300         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31301         * modules/uniname/uniname-tests: Likewise.
31302         * modules/uninorm/canonical-decomposition-tests: Likewise.
31303         * modules/uninorm/compat-decomposition-tests: Likewise.
31304         * modules/uninorm/composition-tests: Likewise.
31305         * modules/uninorm/decomposing-form-tests: Likewise.
31306         * modules/uninorm/decomposition-tests: Likewise.
31307         * modules/uninorm/filter-tests: Likewise.
31308         * modules/uninorm/nfc-tests: Likewise.
31309         * modules/uninorm/nfd-tests: Likewise.
31310         * modules/uninorm/nfkc-tests: Likewise.
31311         * modules/uninorm/nfkd-tests: Likewise.
31312         * modules/uninorm/u8-normcmp-tests: Likewise.
31313         * modules/uninorm/u8-normcoll-tests: Likewise.
31314         * modules/uninorm/u16-normcmp-tests: Likewise.
31315         * modules/uninorm/u16-normcoll-tests: Likewise.
31316         * modules/uninorm/u32-normcmp-tests: Likewise.
31317         * modules/uninorm/u32-normcoll-tests: Likewise.
31318         * modules/unistdio/u8-asnprintf-tests: Likewise.
31319         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31320         * modules/unistdio/u8-vasprintf-tests: Likewise.
31321         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31322         * modules/unistdio/u8-vsprintf-tests: Likewise.
31323         * modules/unistdio/u16-asnprintf-tests: Likewise.
31324         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31325         * modules/unistdio/u16-vasprintf-tests: Likewise.
31326         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31327         * modules/unistdio/u16-vsprintf-tests: Likewise.
31328         * modules/unistdio/u32-asnprintf-tests: Likewise.
31329         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31330         * modules/unistdio/u32-vasprintf-tests: Likewise.
31331         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31332         * modules/unistdio/u32-vsprintf-tests: Likewise.
31333         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31334         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31335         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31336         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31337         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31338         * modules/unistr/u8-check-tests: Likewise.
31339         * modules/unistr/u8-chr-tests: Likewise.
31340         * modules/unistr/u8-cmp-tests: Likewise.
31341         * modules/unistr/u8-cmp2-tests: Likewise.
31342         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31343         * modules/unistr/u8-cpy-tests: Likewise.
31344         * modules/unistr/u8-mblen-tests: Likewise.
31345         * modules/unistr/u8-mbsnlen-tests: Likewise.
31346         * modules/unistr/u8-mbtouc-tests: Likewise.
31347         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31348         * modules/unistr/u8-mbtoucr-tests: Likewise.
31349         * modules/unistr/u8-move-tests: Likewise.
31350         * modules/unistr/u8-next-tests: Likewise.
31351         * modules/unistr/u8-prev-tests: Likewise.
31352         * modules/unistr/u8-set-tests: Likewise.
31353         * modules/unistr/u8-stpcpy-tests: Likewise.
31354         * modules/unistr/u8-stpncpy-tests: Likewise.
31355         * modules/unistr/u8-strcat-tests: Likewise.
31356         * modules/unistr/u8-strcmp-tests: Likewise.
31357         * modules/unistr/u8-strcoll-tests: Likewise.
31358         * modules/unistr/u8-strcpy-tests: Likewise.
31359         * modules/unistr/u8-strdup-tests: Likewise.
31360         * modules/unistr/u8-strlen-tests: Likewise.
31361         * modules/unistr/u8-strmblen-tests: Likewise.
31362         * modules/unistr/u8-strmbtouc-tests: Likewise.
31363         * modules/unistr/u8-strncat-tests: Likewise.
31364         * modules/unistr/u8-strncmp-tests: Likewise.
31365         * modules/unistr/u8-strncpy-tests: Likewise.
31366         * modules/unistr/u8-strnlen-tests: Likewise.
31367         * modules/unistr/u8-to-u16-tests: Likewise.
31368         * modules/unistr/u8-to-u32-tests: Likewise.
31369         * modules/unistr/u8-uctomb-tests: Likewise.
31370         * modules/unistr/u16-check-tests: Likewise.
31371         * modules/unistr/u16-chr-tests: Likewise.
31372         * modules/unistr/u16-cmp-tests: Likewise.
31373         * modules/unistr/u16-cmp2-tests: Likewise.
31374         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31375         * modules/unistr/u16-cpy-tests: Likewise.
31376         * modules/unistr/u16-mblen-tests: Likewise.
31377         * modules/unistr/u16-mbsnlen-tests: Likewise.
31378         * modules/unistr/u16-mbtouc-tests: Likewise.
31379         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31380         * modules/unistr/u16-mbtoucr-tests: Likewise.
31381         * modules/unistr/u16-move-tests: Likewise.
31382         * modules/unistr/u16-next-tests: Likewise.
31383         * modules/unistr/u16-prev-tests: Likewise.
31384         * modules/unistr/u16-set-tests: Likewise.
31385         * modules/unistr/u16-stpcpy-tests: Likewise.
31386         * modules/unistr/u16-stpncpy-tests: Likewise.
31387         * modules/unistr/u16-strcat-tests: Likewise.
31388         * modules/unistr/u16-strcmp-tests: Likewise.
31389         * modules/unistr/u16-strcoll-tests: Likewise.
31390         * modules/unistr/u16-strcpy-tests: Likewise.
31391         * modules/unistr/u16-strdup-tests: Likewise.
31392         * modules/unistr/u16-strlen-tests: Likewise.
31393         * modules/unistr/u16-strmblen-tests: Likewise.
31394         * modules/unistr/u16-strmbtouc-tests: Likewise.
31395         * modules/unistr/u16-strncat-tests: Likewise.
31396         * modules/unistr/u16-strncmp-tests: Likewise.
31397         * modules/unistr/u16-strncpy-tests: Likewise.
31398         * modules/unistr/u16-strnlen-tests: Likewise.
31399         * modules/unistr/u16-to-u32-tests: Likewise.
31400         * modules/unistr/u16-to-u8-tests: Likewise.
31401         * modules/unistr/u16-uctomb-tests: Likewise.
31402         * modules/unistr/u32-check-tests: Likewise.
31403         * modules/unistr/u32-chr-tests: Likewise.
31404         * modules/unistr/u32-cmp-tests: Likewise.
31405         * modules/unistr/u32-cmp2-tests: Likewise.
31406         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31407         * modules/unistr/u32-cpy-tests: Likewise.
31408         * modules/unistr/u32-mblen-tests: Likewise.
31409         * modules/unistr/u32-mbsnlen-tests: Likewise.
31410         * modules/unistr/u32-mbtouc-tests: Likewise.
31411         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31412         * modules/unistr/u32-mbtoucr-tests: Likewise.
31413         * modules/unistr/u32-move-tests: Likewise.
31414         * modules/unistr/u32-next-tests: Likewise.
31415         * modules/unistr/u32-prev-tests: Likewise.
31416         * modules/unistr/u32-set-tests: Likewise.
31417         * modules/unistr/u32-stpcpy-tests: Likewise.
31418         * modules/unistr/u32-stpncpy-tests: Likewise.
31419         * modules/unistr/u32-strcat-tests: Likewise.
31420         * modules/unistr/u32-strcmp-tests: Likewise.
31421         * modules/unistr/u32-strcoll-tests: Likewise.
31422         * modules/unistr/u32-strcpy-tests: Likewise.
31423         * modules/unistr/u32-strdup-tests: Likewise.
31424         * modules/unistr/u32-strlen-tests: Likewise.
31425         * modules/unistr/u32-strmblen-tests: Likewise.
31426         * modules/unistr/u32-strmbtouc-tests: Likewise.
31427         * modules/unistr/u32-strncat-tests: Likewise.
31428         * modules/unistr/u32-strncmp-tests: Likewise.
31429         * modules/unistr/u32-strncpy-tests: Likewise.
31430         * modules/unistr/u32-strnlen-tests: Likewise.
31431         * modules/unistr/u32-to-u16-tests: Likewise.
31432         * modules/unistr/u32-to-u8-tests: Likewise.
31433         * modules/unistr/u32-uctomb-tests: Likewise.
31434         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31435         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31436         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31437         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31438         * modules/uniwidth/u8-strwidth-tests: Likewise.
31439         * modules/uniwidth/u8-width-tests: Likewise.
31440         * modules/uniwidth/u16-strwidth-tests: Likewise.
31441         * modules/uniwidth/u16-width-tests: Likewise.
31442         * modules/uniwidth/u32-strwidth-tests: Likewise.
31443         * modules/uniwidth/u32-width-tests: Likewise.
31444         * modules/uniwidth/width-tests: Likewise.
31445
31446 2010-05-18  Richard Jones  <rjones@redhat.com>
31447
31448         doc: users.txt: list hivex
31449         * users.txt: Add hivex.
31450
31451 2010-05-18  Richard Jones  <rjones@redhat.com>
31452
31453         doc: users.txt: list febootstrap
31454         * users.txt: Add febootstrap.
31455
31456 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31457
31458         bootstrap: fix an error when gnulib is not used as a git submodule
31459         * build-aux/bootstrap (gnulib_path): If its length is zero then
31460         assign "gnulib" to it.
31461         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31462
31463 2010-05-16  Bruno Haible  <bruno@clisp.org>
31464
31465         Avoid autoconf warnings about AM_ICONV.
31466         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31467         2.64.
31468
31469 2010-05-16  Bruno Haible  <bruno@clisp.org>
31470
31471         absolute-header: Make the macro usable in more situations.
31472         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31473         from gl_ABSOLUTE_HEADER.
31474         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31475
31476 2010-05-16  James Youngman  <jay@gnu.org>
31477
31478         doc: update users.txt
31479         * users.txt: Add CSSC.
31480
31481 2010-05-16  Jim Meyering  <meyering@redhat.com>
31482
31483         init.sh: fix an error in the previous change; add more comments
31484         * tests/init.sh: Compare exit code in loop against 9, not 2.
31485         Patch by Bruno Haible.
31486         Make the two tests more similar by adding an empty "then" clause.
31487         Add comments.
31488
31489         init.sh: avoid unnecessary shell re-exec
31490         * tests/init.sh: Improve the re-exec-required check to first test the
31491         current shell.  If it passes the test, do not search for a shell that
31492         does pass, and do not re-exec.  This test is particularly contorted to
31493         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31494         of $(...) evokes a syntax error and causes immediate shell exit with
31495         status 2.  Bruno Haible reported that the re-exec made it impossible
31496         to single-step through any init.sh-using script.
31497
31498 2010-05-16  Bruno Haible  <bruno@clisp.org>
31499
31500         Fix collision between gnulib's and libintl's printf replacements.
31501         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31502         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31503         (printf): When using GNU C, map the __printf__ function to rpl_printf
31504         via __asm__. When not using GNU C, define rpl_printf instead of
31505         __printf__.
31506         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
31507         commit.
31508         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
31509         commit.
31510         * m4/asm-underscore.m4: New file.
31511         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
31512         * modules/stdio (Files): Add m4/asm-underscore.m4.
31513         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
31514         Reported by Ben Pfaff.
31515
31516 2010-05-16  Bruno Haible  <bruno@clisp.org>
31517
31518         verify: Avoid skipping the test on openSUSE 11.0.
31519         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
31520
31521 2010-05-13  Bruno Haible  <bruno@clisp.org>
31522
31523         Avoid useless warnings from G++.
31524         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
31525         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
31526         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31527
31528 2010-05-11  Jim Meyering  <meyering@redhat.com>
31529
31530         maint.mk: tweak preceding change
31531         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
31532         regexps tighter by anchoring at EOL, and make the new group "shy"
31533         for slightly decreased overhead.
31534
31535 2010-05-11  Eric Blake  <eblake@redhat.com>
31536
31537         maint.mk: gnulib doesn't guarantee NSIG
31538         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
31539
31540 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31541
31542         test-pwrite.c: Remove unused variable declaration.
31543         * tests/test-pwrite.c (main): Remove read_buf declaration.
31544
31545         Remove useless test-pwrite.sh file.
31546         * tests/test-pwrite.sh: Delete file.
31547         * modules/pwrite-tests: Remove references.
31548         Reported by Bruno Haible.
31549
31550 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
31551
31552         init.sh: fix a typo
31553         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
31554
31555 2010-05-10  Jim Meyering  <meyering@redhat.com>
31556
31557         maint.mk: avoid using a temporary file in the always-defined-macros check
31558         * top/maint.mk (.re-defmac): Remove rule.
31559         (gl_trap_): Remove definition.
31560         (sc_prohibit_always-defined_macros): Rewrite not to create and
31561         depend on a temporary file.  Instead, depend on GNU grep's ability
31562         to read a list of regular expressions from stdin when given "-f -".
31563
31564 2010-05-09  Bruno Haible  <bruno@clisp.org>
31565
31566         Update to GNU gettext 0.18, part 1.
31567         * m4/gettext.m4: Update to GNU gettext 0.18.
31568         * m4/intl.m4: Likewise.
31569         * m4/po.m4: Likewise.
31570         * modules/gettext (Files): Add m4/fcntl-o.m4.
31571         (configure.ac): Require gettext infrastructure from version 0.18.
31572
31573 2010-05-09  Jim Meyering  <meyering@redhat.com>
31574
31575         init.sh: enable MALLOC_PERTURB_
31576         * tests/init.sh: Enable glibc's malloc-perturbing option.
31577
31578         maint.mk: improve sc_cross_check_PATH_usage_in_tests
31579         With my recent change in init.sh from the two-line form:
31580             -#   : ${srcdir=.}
31581             -#   . "$srcdir/init.sh"; path_prepend_ .
31582             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
31583         I noticed that using the one-line form would cause this test
31584         to fail with a false-positive, or to stop working altogether,
31585         depending on whether help-version changed or all the tests did.
31586         * top/maint.mk (_hv_regex): Remove this definition.
31587         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
31588         (_hv_regex_strong): Use a stronger regex to check for conformance.
31589         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
31590         Give a separate diagnostic for lack of conforming use.
31591
31592         maint.mk: prohibit definition of symbols defined by gnulib
31593         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
31594         definition of symbols defined by gnulib.
31595
31596 2010-05-09  Bruno Haible  <bruno@clisp.org>
31597
31598         acl: Avoid test failure on Cygwin-hosted mingw.
31599         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
31600
31601 2010-05-09  Bruno Haible  <bruno@clisp.org>
31602
31603         error: Use system's fcntl function.
31604         * lib/error.c (fcntl): Undefine.
31605
31606 2010-05-09  Jim Meyering  <meyering@redhat.com>
31607
31608         verify: adjust formatting to be more consistent
31609         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
31610         argument-list '('s, and after one comma.
31611
31612 2010-05-09  Bruno Haible  <bruno@clisp.org>
31613
31614         error: More reliable output on mingw.
31615         * lib/error.c: Include <windows.h>.
31616         (is_open): New function.
31617         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
31618         defined.
31619
31620 2010-05-09  Bruno Haible  <bruno@clisp.org>
31621
31622         vasnprintf: Fix syntax errors in libintl build on mingw.
31623         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
31624         pad_ourselves and prec_ourselves after use.
31625
31626 2010-05-08  Bruno Haible  <bruno@clisp.org>
31627
31628         * lib/config.charset: Update comments for Cygwin 1.7.
31629         * lib/localcharset.c: Likewise.
31630
31631 2010-05-07  Jim Meyering  <meyering@redhat.com>
31632
31633         init.sh: improve comments
31634         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
31635         . "${srcdir=.}/init.sh"; path_prepend_ .
31636         Add a note about path_prepend_ and the alternative of using
31637         TESTS_ENVIRONMENT.
31638
31639 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
31640
31641         exclude: Unescape hashed patterns in wildcard mode.
31642         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
31643         to the hash list.
31644         * tests/test-exclude8.sh: New test case.
31645         * modules/exclude-tests: Add new test.
31646
31647 2010-05-05  Eric Blake  <eblake@redhat.com>
31648
31649         verify: automate tests
31650         * modules/verify-tests: New module.
31651         * tests/test-verify.sh: New file.
31652         * tests/test-verify.c: Guard each negative test with a unique id.
31653         Also avoid warning about unused left hand of comma expressions.
31654
31655 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
31656
31657         Further improvements to verify.h, suggested by Eric Blake.
31658         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
31659         the GL_* versions, to avoid collision with OpenGL.
31660         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
31661         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
31662         than testing merely whether it's defined.
31663
31664         Modify verify.h to pacify gcc -Wredundant_decls.
31665         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
31666         These use the prefix "GL_" since they're likely to be useful elsewhere.
31667         We may need to break them out into a different .h file.
31668         (__COUNTER__): Define to 0 if the compiler doesn't support it.
31669         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
31670         of verify_function__.
31671
31672 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31673
31674         Tests for module pwrite.
31675         * modules/pwrite-tests: New file.
31676         * tests/test-pwrite.sh: New file.
31677         * tests/test-pwrite.c: New file.
31678
31679         New module pwrite.
31680         * lib/unistd.in.h (pwrite): New declaration.
31681         * lib/pwrite.c: New file, from glibc with modifications.
31682         * m4/pwrite.m4: New file.
31683         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
31684         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
31685         REPLACE_PWRITE.
31686         * modules/pwrite: New file.
31687         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
31688         REPLACE_PWRITE.
31689         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
31690         * doc/posix-functions/pwrite.texi: Mention the new module.
31691
31692 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
31693
31694         pread: Update documentation.
31695         * doc/posix-functions/pread.texi: Mention the 'pread' module.
31696
31697 2010-05-04  Eric Blake  <eblake@redhat.com>
31698
31699         docs: update cygwin progress
31700         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
31701         this bug.
31702         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
31703         Added in cygwin 1.7.2.
31704         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
31705         Likewise.
31706         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
31707         Likewise.
31708         * doc/glibc-functions/dup3.texi (dup3): Likewise.
31709         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
31710         * doc/glibc-functions/accept4.texi (accept4): Likewise.
31711         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
31712         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
31713         Mention nproc module.
31714         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
31715         bug in cygwin 1.7.5 addition.
31716         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
31717         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
31718         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
31719         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
31720         1.7.5.
31721         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
31722         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
31723         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
31724         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
31725         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
31726         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
31727         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
31728         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
31729         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
31730         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
31731         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
31732         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
31733         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
31734         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
31735         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
31736         Likewise.
31737         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
31738         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
31739         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
31740         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
31741         Likewise.
31742         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
31743         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
31744         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
31745         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
31746         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
31747         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
31748         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
31749         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
31750         Likewise.
31751         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
31752         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
31753         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
31754         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
31755         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
31756         Likewise.
31757         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
31758         Likewise.
31759         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
31760         Likewise.
31761         * doc/glibc-functions/xdrrec_endofrecord.texi
31762         (xdrrec_endofrecord): Likewise.
31763         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
31764         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
31765         Likewise.
31766         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
31767         Likewise.
31768
31769 2010-05-04  Jim Meyering  <meyering@redhat.com>
31770
31771         gendocs.sh: make its "-s FILE" option more useful
31772         * build-aux/gendocs.sh: When honoring the -s FILE option, update
31773         $PACKAGE to reflect the probably-different basename of "FILE".
31774
31775 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
31776
31777         bootstrap: don't ignore download_po_files failure
31778         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
31779         failure.
31780
31781 2010-05-03  Jim Meyering  <meyering@redhat.com>
31782
31783         maint.mk: allow to pass options to gendocs.sh
31784         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
31785         (gendocs_options_): New overridable variable.
31786
31787         gnu-web-doc-update: don't ignore configure or build failure
31788         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
31789
31790         announce-gen: backslash-escape '@'s in --help output
31791         * build-aux/announce-gen: Fix syntax errors.
31792
31793         maint.mk, announce-gen: allow project-specific announcement mail headers
31794         * top/maint.mk (translation_project_): Define default.
31795         (announcement_Cc_, announcement_mail_headers_): Likewise.
31796         (announcement): Invoke announce-gen with new --mail-headers option.
31797         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
31798
31799         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
31800         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
31801         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
31802         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
31803         line in the "err2" output file when running "make check" in verbose
31804         mode (i.e., with set -x enabled).
31805
31806 2010-05-03  Bruno Haible  <bruno@clisp.org>
31807
31808         wctob: Fix for weird platforms.
31809         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
31810         argument value.
31811
31812 2010-05-03  Jim Meyering  <meyering@redhat.com>
31813
31814         maint.mk: prohibit unwarranted use of <strings.h>
31815         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
31816         strings.h in a file that does not also use strcasecmp, strncasecmp,
31817         ffs or ffsll.
31818
31819         maint.mk: remove obsolete comments
31820         * top/maint.mk: Remove stale, commented-out rules.
31821
31822 2010-05-02  Bruno Haible  <bruno@clisp.org>
31823
31824         wcwidth: Declare also when it's aliased.
31825         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
31826         macro.
31827
31828 2010-05-02  Bruno Haible  <bruno@clisp.org>
31829
31830         Fix regression from 2010-04-25.
31831         * gnulib-tool (func_modules_transitive_closure): Check the status of
31832         all modules, not only of the tests that are of the form foo-tests where
31833         foo is a module.
31834
31835 2010-05-02  Bruno Haible  <bruno@clisp.org>
31836
31837         wctob: Work around nasty Cygwin 1.7.2 bug.
31838         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
31839         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
31840
31841 2010-05-01  Bruno Haible  <bruno@clisp.org>
31842
31843         fpurge: Sharper test.
31844         * tests/test-fpurge.c (main): Add one more ftell check.
31845         * modules/fpurge-tests (Depends-on): Add ftell.
31846         Suggested by Eric Blake.
31847
31848 2010-05-01  Bruno Haible  <bruno@clisp.org>
31849
31850         ftello: Another test.
31851         * tests/test-ftello3.c: New file.
31852         * modules/ftello-tests (Files): Add it.
31853         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31854         MOSTLYCLEANFILES.
31855
31856         ftell: Another test.
31857         * tests/test-ftell3.c: New file.
31858         * modules/ftell-tests (Files): Add it.
31859         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31860         MOSTLYCLEANFILES.
31861
31862 2010-05-01  Bruno Haible  <bruno@clisp.org>
31863
31864         ftell, ftello: Work around Solaris bug.
31865         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
31866         * lib/ftello.c: Include stdio-impl.h.
31867         (ftello): On Solaris, when _IOWRT is set, compute the result without
31868         looking at _IOREAD.
31869         * modules/ftello (Files): Add lib/stdio-impl.h.
31870         * doc/posix-functions/ftell.texi: Mention Solaris bug.
31871         * doc/posix-functions/ftello.texi: Likewise.
31872         Reported by Eric Blake.
31873
31874 2010-05-01  Bruno Haible  <bruno@clisp.org>
31875
31876         freading: Adapt to special meaning of _IOREAD flag on Solaris.
31877         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
31878         the _IOWRT flag is also set.
31879
31880 2010-05-01  Bruno Haible  <bruno@clisp.org>
31881
31882         Fix doc about a HP-UX stdio bug.
31883         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
31884         * doc/posix-functions/ftello.texi: Likewise.
31885
31886 2010-05-01  Bruno Haible  <bruno@clisp.org>
31887
31888         lseek test: Fix failure on Solaris.
31889         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
31890         output.
31891
31892 2010-04-30  Jim Meyering  <meyering@redhat.com>
31893
31894         bootstrap: don't ignore failure to generate po*/Makevars
31895         * build-aux/bootstrap (with_gettext): Don't ignore failure
31896         to create po/Makevars or runtime-po/Makevars.
31897
31898 2010-04-29  Eric Blake  <eblake@redhat.com>
31899
31900         headers: relax license to LGPLv2+
31901         * modules/fcntl-h (License): Relax license.
31902         * modules/getopt-posix (License): Likewise.
31903         * modules/locale (License): Likewise.
31904         * modules/math (License): Likewise.
31905         * modules/pty (License): Likewise.
31906         * modules/sched (License): Likewise.
31907         * modules/search (License): Likewise.
31908         * modules/spawn (License): Likewise.
31909         * modules/stdarg (License): Likewise.
31910         * modules/sysexits (License): Likewise.
31911
31912 2010-04-29  Jim Meyering  <meyering@redhat.com>
31913
31914         inttypes: relax license to LGPLv2+
31915         * modules/inttypes (License): Relax license.
31916
31917 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31918
31919         * top/maint.mk (indent): Run twice to produce idempotent results.
31920
31921 2010-04-28  Bruno Haible  <bruno@clisp.org>
31922
31923         getdate: Generate getdate.c in the source directory.
31924         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
31925         MOSTLYCLEANFILES.
31926         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
31927
31928 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
31929
31930         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
31931         is not declared as a const *; avoid warnings in that case.
31932
31933 2010-04-28  Eric Blake  <eblake@redhat.com>
31934
31935         canonicalize-lgpl: avoid compiler warning
31936         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
31937         declaration' / 'extraneous semicolon' warning with some compilers.
31938         Reported by Andreas Gruenbacher.
31939
31940 2010-04-28  Jim Meyering  <meyering@redhat.com>
31941
31942         init.sh: ensure a more reliable exit status when exiting via trap
31943         * tests/init.sh (setup_): Don't rely on $? in signal handler.
31944         Inspired by patches from Dmitry V. Levin.
31945         Also trap on signal 3 (SIGQUIT).
31946
31947 2010-04-27  Bruno Haible  <bruno@clisp.org>
31948
31949         Update doc about utimes().
31950         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
31951         'utimens' module.
31952         Reported by Andreas Gruenbacher <agruen@suse.de>.
31953
31954 2010-04-27  Eric Blake  <eblake@redhat.com>
31955
31956         full-read, full-write: relax license
31957         * modules/full-read (License): Drop to LGPLv2+.
31958         * modules/full-write (License): Likewise.
31959         * modules/safe-read (License): Likewise.
31960         * modules/safe-write (License): Likewise.
31961
31962         pthread: mention library for linking
31963         * modules/pthread (Link): Mention $(LIB_PTHREAD).
31964
31965 2010-04-27  Jim Meyering  <meyering@redhat.com>
31966
31967         maint.mk: fix a bug introduced in last change
31968         * top/maint.mk (gl_assured_headers_): Now that all names are on
31969         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
31970         is not anchored to end of word, it should be adequate.
31971
31972         maint.mk: avoid side-effect in latest syntax-check
31973         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
31974         to run commands via $(shell...), and hence to incur cost only when
31975         the new rule is actually run.
31976
31977         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31978         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31979         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31980         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31981         (gl_assured_headers_, az_, AZ_): Define.
31982         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31983
31984 2010-04-26  Jim Meyering  <jim@meyering.net>
31985             Bruno Haible  <bruno@clisp.org>
31986
31987         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31988         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31989         Prompted by an exchange with Gilles Espinasse.
31990
31991 2010-04-26  Jim Meyering  <meyering@redhat.com>
31992
31993         git-version-gen: aesthetic tweak
31994         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31995         so that the command remains on a single line.
31996
31997 2010-04-26  Eric Blake  <eblake@redhat.com>
31998
31999         git-version-gen: allow use on EBCDIC hosts
32000         * build-aux/git-version-gen (dirty): Use literal rather than tying
32001         ourselves to ascii.
32002         Reported by Steve Goetze.
32003
32004 2010-04-25  Bruno Haible  <bruno@clisp.org>
32005
32006         netdb: Add support for GNULIB_POSIXCHECK.
32007         * lib/netdb.in.h: Include warn-on-use.h.
32008         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32009         functions are used when GNULIB_POSIXCHECK is defined and the
32010         getaddrinfo module is not in use.
32011         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32012         freeaddrinfo, gai_strerror, getnameinfo are declared.
32013         * modules/netdb (Depends-on): Add warn-on-use.
32014         (Makefile.am): Include warn-on-use.h in netdb.h.
32015
32016 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32017
32018         build: avoid "make check" failure without .git/ directory
32019         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32020         there is no .git/ directory.
32021
32022 2010-04-25  Bruno Haible  <bruno@clisp.org>
32023
32024         ptsname: Fix misuse of ttyname_r.
32025         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32026         of errno.
32027
32028 2010-04-25  Bruno Haible  <bruno@clisp.org>
32029
32030         ttyname_r: Make it work on Solaris 10.
32031         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32032         if the system function has the POSIX declaration. Test whether the
32033         function fails if the buffer is less than 128 bytes large.
32034         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32035         system's ttyname_r function. Provide a reasonably large buffer.
32036         * modules/ttyname_r (Depends-on): Add extensions.
32037         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32038
32039 2010-04-25  Bruno Haible  <bruno@clisp.org>
32040
32041         Use the 'extensions' module for some more functions on Solaris.
32042         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32043         module.
32044         * doc/posix-functions/ctime_r.texi: Likewise.
32045         * doc/posix-functions/getgrgid_r.texi: Likewise.
32046         * doc/posix-functions/getgrnam_r.texi: Likewise.
32047         * doc/posix-functions/getpwnam_r.texi: Likewise.
32048         * doc/posix-functions/getpwuid_r.texi: Likewise.
32049         * doc/posix-functions/readdir_r.texi: Likewise.
32050         * doc/posix-functions/sigwait.texi: Likewise.
32051         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32052         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32053
32054 2010-04-25  Bruno Haible  <bruno@clisp.org>
32055
32056         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32057         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32058         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32059         * lib/ttyname_r.c: Include <limits.h>.
32060         (ttyname_r): Define using the system's ttyname_r function, if it exists
32061         and not on Solaris.
32062         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32063         set.
32064         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32065         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32066         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32067         Reported by Simon Josefsson.
32068
32069 2010-04-25  Bruno Haible  <bruno@clisp.org>
32070
32071         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32072         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32073         * doc/posix-functions/ctime_r.texi: Likewise.
32074         * doc/posix-functions/getgrgid_r.texi: Likewise.
32075         * doc/posix-functions/getgrnam_r.texi: Likewise.
32076         * doc/posix-functions/getlogin_r.texi: Likewise.
32077         * doc/posix-functions/getpwnam_r.texi: Likewise.
32078         * doc/posix-functions/getpwuid_r.texi: Likewise.
32079         * doc/posix-functions/readdir_r.texi: Likewise.
32080         * doc/posix-functions/sigwait.texi: Likewise.
32081         * doc/posix-functions/ttyname_r.texi: Likewise.
32082         Reported by Simon Josefsson.
32083
32084 2010-04-25  Bruno Haible  <bruno@clisp.org>
32085
32086         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32087         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32088         also to --create-testdir.
32089         (func_acceptable): Don't consider the status of *-tests modules here.
32090         (func_modules_transitive_closure): Consider it here, before including a
32091         test module.
32092         (func_import, func_create_testdir): Set inc_all_direct_tests,
32093         inc_all_indirect_tests.
32094         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32095         --create-testdir and --create-megatestdir.
32096
32097 2010-04-25  Bruno Haible  <bruno@clisp.org>
32098
32099         gnulib-tool: Add --without-*-tests options.
32100         * gnulib-tool (func_usage): Document the --without-*-tests options.
32101         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32102         excl_unportable_tests): New variables.
32103         Fail if they are specified with --import or --update.
32104         (func_acceptable): Respect the excl_*_tests variables.
32105         (func_import): Set the excl_*_tests variables to empty.
32106
32107 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32108             Bruno Haible  <bruno@clisp.org>
32109
32110         Work around a MacOS X 10.4 bug with openpty.
32111         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32112         * tests/test-openpty.c (main): Close the master side explicitly.
32113
32114 2010-04-25  Bruno Haible  <bruno@clisp.org>
32115
32116         strnlen: Fix a C++ test error on MacOS X and Solaris.
32117         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32118         the function is not declared.
32119         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32120         Simon Josefsson.
32121
32122 2010-04-24  Bruno Haible  <bruno@clisp.org>
32123
32124         Avoid a gcc warning.
32125         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32126         of correct type for %08lx directive.
32127         Reported by Eric Blake.
32128
32129 2010-04-24  Bruno Haible  <bruno@clisp.org>
32130
32131         vasnprintf: Correct errno value in case of out-of-memory.
32132         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32133         or sprintf. Use the errno value from SNPRINTF or sprintf.
32134         Reported by Ian Beckwith <ianb@erislabs.net>.
32135
32136 2010-04-24  Bruno Haible  <bruno@clisp.org>
32137
32138         ansi-c++-opt: Find correct compiler when cross-compiling.
32139         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32140         AC_CHECK_PROGS.
32141         Reported by Simon Josefsson.
32142
32143 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32144
32145         vc-list-files: Add support for subversion
32146         * build-aux/vc-list-files: Use "svn list" to generate the list of
32147         files controlled by subversion.
32148
32149 2010-04-23  Jim Meyering  <meyering@redhat.com>
32150
32151         vc-list-files tests: convert to use init.sh
32152         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32153         path_prepend_.
32154         Use Exit, not exit.
32155         Use skip_ rather than open coding it.
32156         Remove trap set-up and compare definitions.
32157         * tests/test-vc-list-files-git.sh: Likewise.
32158         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32159
32160 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32161
32162         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32163         backup files.
32164
32165 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32166
32167         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32168
32169 2010-04-20  Eric Blake  <eblake@redhat.com>
32170
32171         tests: be robust to ignored SIGPIPE
32172         * tests/test-select-in.sh: Consume all output.
32173         * tests/test-lseek.sh: Check correct exit status, while avoiding
32174         EPIPE.
32175
32176 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32177             Bruno Haible  <bruno@clisp.org>
32178
32179         visibility: Don't use -fvisibility if it leads to a warning.
32180         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32181         yes, don't pretend that visibility works if it leads to a warning.
32182         Reported by Mike Gran <spk121@yahoo.com>.
32183
32184 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32185
32186         * build-aux/bootstrap: Use "git -h" for testing for supported options
32187         instead of "git --help".  The short-form option only shows a summary,
32188         and doesn't layout the full man page.  Grep for the full option name
32189         in the summary, too.
32190
32191 2010-04-19  Bruno Haible  <bruno@clisp.org>
32192
32193         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32194         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32195         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32196         mention of RELOCATABLE_STRIP.
32197         Reported by Sylvain Beucler <beuc@beuc.net>.
32198
32199 2010-04-19  Bruno Haible  <bruno@clisp.org>
32200
32201         * lib/diffseq.h: Fix typo in comment.
32202         Reported by Eric Blake.
32203
32204 2010-04-19  Bruno Haible  <bruno@clisp.org>
32205
32206         ioctl: Move autoconf macro to a .m4 file.
32207         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32208         * modules/ioctl (Files): Add it.
32209         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32210         Reported by Ian Beckwith <ianb@erislabs.net>.
32211
32212 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32213             Bruno Haible  <bruno@clisp.org>
32214
32215         diffseq: Accommodate use-case with abstract arrays.
32216         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32217         is not defined.
32218         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32219         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32220
32221 2010-04-18  Bruno Haible  <bruno@clisp.org>
32222
32223         * doc/posix-headers/stdbool.texi: More precise wording.
32224
32225 2010-04-17  Jim Meyering  <meyering@redhat.com>
32226
32227         maint.mk: use gnu-style indentation in an embedded perl script
32228         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32229         Rename variable: s/two/last_two_bytes/
32230
32231 2010-04-16  Eric Blake  <eblake@redhat.com>
32232
32233         test-stdbool: skip test that fails with Solaris CC
32234         * tests/test-stdbool.c (f): Skip test that causes compilation
32235         error under buggy C++ compiler.
32236         * lib/stdbool.in.h: Document the limitation.
32237         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32238
32239         setenv: allow compilation with C++
32240         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32241         register keyword.
32242
32243         stdint: allow test to pass with C++
32244         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32245
32246         getopt: allow compilation with C++
32247         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32248         struct.
32249         * lib/getopt.c (_getopt_internal_r): Use correct type.
32250         Reported by Dagobert Michelson, via Joel E. Denny.
32251
32252 2010-04-16  Bruno Haible  <bruno@clisp.org>
32253
32254         Override netdb.h always.
32255         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32256         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32257         Reported by Ludovic Courtès <ludo@gnu.org>.
32258
32259 2010-04-15  Bruno Haible  <bruno@clisp.org>
32260
32261         openpty: Fix mistake from 2010-03-21.
32262         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32263         Reported by Simon Josefsson.
32264
32265 2010-04-15  Eric Blake  <eblake@redhat.com>
32266
32267         test-forkpty: fix expected signature
32268         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32269         Reported by Simon Josefsson.
32270
32271 2010-04-15  Jim Meyering  <meyering@redhat.com>
32272
32273         maint.mk: texinfo_suffix_re_: correct the default regexp
32274         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32275
32276         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32277         make it configurable via texinfo_suffix_re_.
32278
32279 2010-04-14  Eric Blake  <eblake@redhat.com>
32280
32281         strtok_r: relax license to LGPLv2+
32282         * modules/strtok_r (License): Relax license.
32283         Reported by Matthias Bolte.
32284
32285 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32286
32287         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32288         version 1.4.4 by default instead of requiring the libgcrypt
32289         version used during build.  This makes it possible to use the
32290         application with older but still binary compatible libgcrypt
32291         versions.
32292
32293 2010-04-13  Eric Blake  <eblake@redhat.com>
32294
32295         getopt-gnu: match recent glibc fixes and posix ruling
32296         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32297         '+' handling, when requesting extensions.
32298         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32299         'W;' handling.
32300         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32301         * doc/posix-functions/getopt.texi (getopt): Document this.
32302         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32303         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32304         Likewise.
32305
32306         getopt: merge bug fixes from glibc
32307         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32308         diagnostics.  Honor '+:' correctly.  Reject ';'.
32309
32310         getopt-posix: detect MacOS bug
32311         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32312         optind when missing a required argument.
32313         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32314         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32315         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32316         Likewise.
32317
32318         getopt-posix: avoid spurious failure on Solaris
32319         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32320         an indicator that setting optind=1 is sufficient for reset.
32321
32322         getopt-posix: avoid spurious failure on FreeBSD
32323         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32324         in POSIX mode, since the m4 test uses it.
32325
32326         gnulib-tool: silence warning on BSD sh
32327         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32328
32329 2010-04-13  Jim Meyering  <meyering@redhat.com>
32330
32331         doc: users.txt: GNU patch now uses gnulib
32332         * users.txt: Add patch.
32333
32334 2010-04-12  Jim Meyering  <meyering@redhat.com>
32335
32336         maint.mk: generate more concise timing data for syntax-check rules
32337         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32338         " done" from each line that reports a syntax-check test duration.
32339
32340 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32341
32342         git-version-gen: use "git update-index..." rather than "git status"
32343         * build-aux/git-version-gen: Use git update-index --refresh, not
32344         "git status".  With some versions of git, "git status" would fail
32345         to update the index and result in an unwarranted "-dirty" suffix.
32346
32347 2010-04-11  Jim Meyering  <meyering@redhat.com>
32348
32349         openat: correct formatting (no semantic change)
32350         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32351         Suggested by Bruno Haible.
32352
32353 2010-04-11  Bruno Haible  <bruno@clisp.org>
32354
32355         Stricter declaration checking in testdirs.
32356         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32357         If for_tests is true, augment AM_CPPFLAGS to define
32358         GNULIB_STRICT_CHECKING.
32359         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32360         GNULIB_STRICT_CHECKING is defined, verify that the function is
32361         declared.
32362
32363 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32364             Bruno Haible  <bruno@clisp.org>
32365
32366         libunistring: Improve configure output.
32367         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32368         Don't say "consider installing GNU libunistring" when checking again
32369         with libiconv.
32370
32371 2010-04-11  Bruno Haible  <bruno@clisp.org>
32372
32373         libunistring: Correct value of $LTLIBUNISTRING.
32374         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32375         correct the value of $LTLIBUNISTRING.
32376
32377 2010-04-11  Bruno Haible  <bruno@clisp.org>
32378
32379         havelib: Add static libraries to LIBS in the right order.
32380         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32381         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32382
32383 2010-04-11  Bruno Haible  <bruno@clisp.org>
32384
32385         libunistring: Detect libunistring also when it depends on libiconv.
32386         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32387         the second AC_LIB_HAVE_LINKFLAGS invocation.
32388
32389 2010-04-11  James Youngman  <jay@gnu.org>
32390
32391         close-stream: declare local scalars to be "const"
32392         * lib/close-stream.c (close_stream): Make boolean variables const
32393         to document the fact that we set but do not change them.
32394
32395 2010-04-11  Bruno Haible  <bruno@clisp.org>
32396
32397         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32398
32399 2010-04-11  Jim Meyering  <meyering@redhat.com>
32400
32401         maint.mk: don't include dist-check.mk
32402         * top/maint.mk: Remove bogus include directive.
32403
32404         maint.mk: improve empty-line-at-EOF check
32405         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32406         solution, rather than tail+Perl-based one.  The latter would read
32407         a few kilobytes from the end of each file, and did not handle empty
32408         files properly.
32409
32410         maint.mk: print the elapsed time for each syntax-check rule
32411         * top/maint.mk (sc_m_rules_): Save start time in a file.
32412         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32413         (local-check): Interpose the .z rules
32414
32415 2010-04-11  Jim Meyering  <meyering@redhat.com>
32416
32417         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32418         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32419         empty file with one that ends in an empty line.
32420
32421 2010-04-10  Bruno Haible  <bruno@clisp.org>
32422
32423         mkdir: Make it work on mingw64.
32424         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32425         * lib/mkdir.c: Update comment.
32426         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
32427
32428 2010-04-10  Bruno Haible  <bruno@clisp.org>
32429
32430         Don't override improved macro from newer autoconf.
32431         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32432         autoconf >= 2.62.
32433         Reported by Joel E. Denny <jdenny@clemson.edu>.
32434
32435 2010-04-10  Jim Meyering  <meyering@redhat.com>
32436
32437         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32438         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32439
32440         maint.mk: correct a diagnostic
32441         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32442         in diagnostic; now use $prohibit.
32443
32444 2010-04-10  Bruno Haible  <address@hidden>
32445
32446         fchownat: Fix a C++ test error on Solaris 8.
32447         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32448         the function does not exist.
32449
32450 2010-04-10  Bruno Haible  <bruno@clisp.org>
32451
32452         vasnprintf: Add more tests.
32453         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32454         (test_function): Test converting an invalid wide string.
32455
32456         vasnprintf: Correct handling of unconvertible wide string arguments.
32457         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32458         VASNPRINTF.
32459         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32460         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32461         smaller than the expected maximum need for the directive. Set errno to
32462         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32463         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32464         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32465         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32466         * modules/vasnprintf (Files): Add m4/printf.m4.
32467         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32468
32469 2010-04-10  Bruno Haible  <bruno@clisp.org>
32470
32471         vasnprintf: Fix crash in %ls directive.
32472         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32473         string is passed as argument to %ls, with no precision and no width.
32474         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32475
32476 2010-04-10  Bruno Haible  <bruno@clisp.org>
32477
32478         vasnprintf: Fix multiple test failures on mingw.
32479         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32480         _snprintf, or snwprintf, not _snwprintf.
32481
32482 2010-04-10  Bruno Haible  <bruno@clisp.org>
32483
32484         write: Fix a C++ test error on mingw.
32485         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32486
32487 2010-04-10  Bruno Haible  <bruno@clisp.org>
32488
32489         vasnprintf test: Reduce code duplication.
32490         * tests/test-vasnprintf.c (test_function): New function, extracted from
32491         test_vasnprintf.
32492         (test_vasnprintf, test_asnprintf): Invoke it.
32493
32494 2010-04-10  Bruno Haible  <bruno@clisp.org>
32495
32496         strnlen: Fix warning in C++ mode on MacOS X.
32497         * lib/string.in.h (strnlen): Use the modern idiom.
32498         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32499         defining strnlen as a macro already in <config.h>.
32500         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32501         REPLACE_STRNLEN.
32502         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32503         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32504
32505 2010-04-08  James Youngman  <jay@gnu.org>
32506
32507         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
32508         the example.
32509
32510 2010-04-09  Jim Meyering  <meyering@redhat.com>
32511
32512         maint.mk: print better diagnostic when there is no $(_hv_file)
32513         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
32514         announce that when $(_hv_file) (aka help-version) does not exist.
32515
32516         init.sh: run tr in the "C" locale to avoid multibyte interpretation
32517         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
32518         not try to interpret its random input bytes.  Jarno Rajahalme reported
32519         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
32520         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
32521         (mktempd_): Likewise, just in case.
32522
32523         ftruncate: add two years to projected module removal date: 2012
32524         * m4/ftruncate.m4: Adjust comments.
32525
32526         ftruncate: mark module as obsolete; even MinGW provides it, now
32527         * modules/ftruncate (Status): Obsolete.
32528         (Notice): Say that.
32529         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
32530         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
32531
32532 2010-04-08  Bruno Haible  <bruno@clisp.org>
32533
32534         Fix side effects from tests-related modules.
32535         * modules/dprintf-posix (Comment): New section.
32536         * modules/fprintf-posix (Comment): Likewise.
32537         * modules/obstack-printf-posix (Comment): Likewise.
32538         * modules/printf-posix (Comment): Likewise.
32539         * modules/snprintf-posix (Comment): Likewise.
32540         * modules/sprintf-posix (Comment): Likewise.
32541         * modules/vasnprintf-posix (Comment): Likewise.
32542         * modules/vasprintf-posix (Comment): Likewise.
32543         * modules/vdprintf-posix (Comment): Likewise.
32544         * modules/vfprintf-posix (Comment): Likewise.
32545         * modules/vprintf-posix (Comment): Likewise.
32546         * modules/vsnprintf-posix (Comment): Likewise.
32547         * modules/vsprintf-posix (Comment): Likewise.
32548         * modules/xprintf-posix (Comment): Likewise.
32549         * modules/xvasprintf-posix (Comment): Likewise.
32550         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
32551         * modules/floorf-tests (Depends-on): Likewise.
32552         * modules/round-tests (Depends-on): Likewise.
32553         * modules/roundf-tests (Depends-on): Likewise.
32554         * modules/trunc-tests (Depends-on): Likewise.
32555         * modules/truncf-tests (Depends-on): Likewise.
32556         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
32557         'fprintf-posix' module is not present.
32558         * tests/test-floorf2.c (check): Likewise.
32559         * tests/test-trunc2.c (check): Likewise.
32560         * tests/test-truncf2.c (check): Likewise.
32561         * tests/test-round2.c (equal): Likewise.
32562         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32563
32564 2010-04-07  Karl Berry  <karl@gnu.org>
32565
32566         * config/srclist.txt,
32567         * config/srclistvars.sh,
32568         * config/srclist-update: doc fixes.
32569
32570 2010-04-07  Jim Meyering  <meyering@redhat.com>
32571
32572         maint.mk: add a PATH crosschecking syntax-check rule
32573         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
32574         Useful if you use a test like the one in help-version (coreutils,
32575         diffutils, grep, gzip) that ensures $(VERSION) matches what is
32576         printed by prog --version.
32577
32578 2010-04-06  Bruno Haible  <bruno@clisp.org>
32579
32580         Fix link error on mingw.
32581         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
32582         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
32583
32584 2010-04-06  Bruno Haible  <bruno@clisp.org>
32585
32586         Assume rmdir exists.
32587         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
32588
32589 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
32590
32591         doc: update users.txt
32592         * users.txt: Add gcal.
32593
32594 2010-04-06  Jim Meyering  <meyering@redhat.com>
32595
32596         init.sh: simply unset TMPDIR rather than risking env -i
32597         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
32598         although it probably works fine on all Unix-based systems, some
32599         systems (Cygwin?) cannot tolerate a totally cleared environment.
32600         Suggestion from Eric Blake.
32601
32602 2010-04-06  Jim Meyering  <meyering@redhat.com>
32603
32604         init.sh: portability fix: use env's POSIX-specified -i option not -u
32605         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
32606         than unportable env -u.  Solaris 5.11's env lacks support for -u.
32607
32608 2010-04-05  Bruno Haible  <bruno@clisp.org>
32609
32610         btowc: Work around Cygwin 1.7.2 bug.
32611         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
32612         does not map NUL to 0.
32613         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
32614
32615 2010-04-05  Bruno Haible  <bruno@clisp.org>
32616
32617         Make the multithread modules work on Cygwin 1.7.2.
32618         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
32619         imported symbols can be declared weak, so that it returns "no" on
32620         Cygwin 1.7.2.
32621
32622 2010-04-05  Bruno Haible  <bruno@clisp.org>
32623
32624         Use the module 'strncat'.
32625         * modules/unistr/u8-strncat (Depends-on): Add strncat.
32626
32627         Tests for module 'strncat'.
32628         * modules/strncat-tests: New file.
32629         * tests/test-strncat.c: New file.
32630
32631         New module 'strncat'.
32632         * lib/string.in.h (strncat): New declaration.
32633         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
32634         * m4/strncat.m4: New file, based on m4/memchr.m4.
32635         * modules/strncat: New file.
32636         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
32637         is declared.
32638         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
32639         REPLACE_STRNCAT.
32640         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
32641         REPLACE_STRNCAT.
32642         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
32643         module.
32644         * tests/test-string-c++.cc: Check signature of strncat.
32645
32646 2010-04-05  Jim Meyering  <meyering@redhat.com>
32647
32648         xstrtoumax-tests: convert to use init.sh
32649         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
32650         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32651         Use Exit, not exit.
32652         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32653
32654         xstrtoimax-tests: convert to use init.sh
32655         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
32656         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32657         Use Exit, not exit.
32658         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32659
32660 2010-04-05  Bruno Haible  <bruno@clisp.org>
32661
32662         sys_socket: Avoid #define replacements in C++ mode.
32663         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
32664         warning to the function if possible, rather than #defining the symbol
32665         to a dysfunctional alias.
32666
32667 2010-04-05  Bruno Haible  <bruno@clisp.org>
32668
32669         fseeko: Fix C++ test error on mingw.
32670         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
32671         gl_FUNC_FSEEKO.
32672         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
32673         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
32674         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
32675         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
32676
32677 2010-04-05  Bruno Haible  <bruno@clisp.org>
32678
32679         duplocale: Improve test output.
32680         * tests/test-duplocale.c (main): Print reason for skipped test.
32681
32682 2010-04-05  Bruno Haible  <bruno@clisp.org>
32683
32684         Assume rmdir exists.
32685         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
32686         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
32687
32688 2010-04-05  Bruno Haible  <bruno@clisp.org>
32689
32690         Fix link error on Solaris 8 with cc.
32691         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
32692
32693 2010-04-05  Bruno Haible  <bruno@clisp.org>
32694
32695         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32696         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
32697
32698 2010-04-05  Bruno Haible  <bruno@clisp.org>
32699
32700         vasprintf: Update documentation.
32701         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
32702
32703 2010-04-05  Bruno Haible  <bruno@clisp.org>
32704
32705         ptsname: Improve test.
32706         * tests/test-ptsname.c (main): Also try the various master names of BSD
32707         systems.
32708
32709 2010-04-05  Bruno Haible  <bruno@clisp.org>
32710
32711         memchr: Avoid a possible C++ test error.
32712         * lib/string.in.h (memchr): Provide declaration if function is missing.
32713         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
32714         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
32715         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
32716         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
32717
32718 2010-04-05  Bruno Haible  <bruno@clisp.org>
32719
32720         strtok_r: Improve idiom.
32721         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
32722         AC_LIBOBJ is used.
32723
32724 2010-04-05  Bruno Haible  <bruno@clisp.org>
32725
32726         strdup: Improve idiom.
32727         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
32728         AC_LIBOBJ is used.
32729         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
32730         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
32731         when AC_LIBOBJ is used.
32732
32733 2010-04-05  Bruno Haible  <bruno@clisp.org>
32734
32735         mbsinit, mbrtowc, wcrtomb: Improve idioms.
32736         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
32737         don't set REPLACE_MBSINIT to 1.
32738         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
32739         don't set REPLACE_MBRTOWC to 1.
32740         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
32741         exist, don't set REPLACE_MBSRTOWCS to 1.
32742         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
32743         exist, don't set REPLACE_MBSNRTOWCS to 1.
32744         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
32745         don't set REPLACE_WCRTOMB to 1.
32746         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
32747         exist, don't set REPLACE_WCSRTOMBS to 1.
32748         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
32749         exist, don't set REPLACE_WCSNRTOMBS to 1.
32750
32751 2010-04-05  Bruno Haible  <bruno@clisp.org>
32752
32753         ldexpl: Improve idiom.
32754         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
32755         make sure to set HAVE_DECL_LDEXPL to 0.
32756
32757 2010-04-05  Jim Meyering  <meyering@redhat.com>
32758
32759         xstrtol-tests: convert to use init.sh
32760         * modules/xstrtol-tests (Files): Add tests/init.sh.
32761         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32762         Use Exit, not exit.
32763         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32764
32765         atexit-tests: convert to use init.sh
32766         * modules/atexit-tests (Files): Add tests/init.sh.
32767         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
32768         Use Exit, not exit.
32769         Remove uses of $EXEEXT and "./" to run a program in the current dir.
32770
32771         init.sh: fix typo
32772         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
32773
32774         init.sh: make it easier for a test script to write to the tty, ...
32775         when using automake's parallel-tests mode.
32776         * tests/init.sh (stderr_fileno_): Define overridable variable.
32777         (warn_): New function, to use it.
32778         (fail_, skip_, framework_failure_): Use warn_.
32779
32780 2010-04-04  Bruno Haible  <bruno@clisp.org>
32781
32782         btowc: Avoid warning.
32783         * lib/btowc.c: Include <stdlib.h>.
32784         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
32785
32786 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32787             Bruno Haible  <bruno@clisp.org>
32788
32789         wchar: Port to NetBSD 1.5.
32790         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
32791         * lib/wctype.in.h (WEOF): Likewise.
32792
32793 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
32794             Bruno Haible  <bruno@clisp.org>
32795
32796         Port extended stdio to NetBSD 1.5.
32797         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
32798         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
32799         older.
32800
32801 2010-04-04  Bruno Haible  <bruno@clisp.org>
32802
32803         string: Remove unused substitution.
32804         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
32805         HAVE_DECL_STRERROR.
32806         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
32807
32808 2010-04-04  Bruno Haible  <bruno@clisp.org>
32809
32810         strtod: Avoid a possible C++ test error.
32811         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
32812         set REPLACE_STRTOD.
32813
32814 2010-04-04  Bruno Haible  <bruno@clisp.org>
32815
32816         strerror: Update documentation.
32817         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
32818
32819 2010-04-04  Bruno Haible  <bruno@clisp.org>
32820
32821         stdio: Fix some C++ test errors on Solaris 8 with GCC.
32822         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
32823         _GL_CXXALIAS_SYS_CAST.
32824
32825 2010-04-04  Bruno Haible  <bruno@clisp.org>
32826
32827         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32828         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
32829         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
32830         REPLACE_FREXPL to 1.
32831         * doc/posix-functions/frexpl.texi: Update documentation.
32832
32833 2010-04-04  Bruno Haible  <bruno@clisp.org>
32834
32835         math: Fix some C++ test errors on Solaris 8 and Cygwin.
32836         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
32837
32838 2010-04-04  Bruno Haible  <bruno@clisp.org>
32839
32840         Implement nanosleep for native Windows.
32841         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
32842
32843 2010-04-04  Bruno Haible  <bruno@clisp.org>
32844
32845         math: Fix some C++ test errors on Solaris 8.
32846         * lib/math.in.h (truncf, trunc): Use simpler idiom.
32847
32848 2010-04-04  Bruno Haible  <bruno@clisp.org>
32849
32850         math: Fix some C++ test errors on Cygwin.
32851         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
32852         truncl): Provide declaration if the system does not have it.
32853         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
32854         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
32855         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
32856         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
32857         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
32858         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
32859         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
32860         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
32861         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
32862         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
32863         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
32864         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
32865         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
32866         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
32867         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
32868         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
32869         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
32870         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32871         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32872         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
32873         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32874         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32875
32876 2010-04-04  Bruno Haible  <bruno@clisp.org>
32877
32878         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
32879         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32880         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32881         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32882         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32883         * m4/isinf.m4 (gl_ISINF): Likewise.
32884         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32885
32886 2010-04-04  Bruno Haible  <bruno@clisp.org>
32887
32888         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
32889         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32890
32891 2010-04-04  Bruno Haible  <bruno@clisp.org>
32892
32893         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
32894         * modules/tmpfile (configure.ac): Update.
32895
32896         tmpfile: Fix C++ test error on mingw.
32897         * lib/stdio.in.h (tmpfile): New declaration.
32898         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32899         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32900         * modules/tmpfile (Depends-on): Add stdio.
32901         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32902         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32903         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32904         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32905         REPLACE_TMPFILE.
32906         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32907
32908 2010-04-04  Bruno Haible  <bruno@clisp.org>
32909
32910         ioctl: Fix C++ test error on mingw.
32911         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32912         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32913         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32914
32915 2010-04-03  Bruno Haible  <bruno@clisp.org>
32916
32917         wcwidth: Fix C++ test error on mingw.
32918         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32919         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32920         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
32921
32922 2010-04-03  Bruno Haible  <bruno@clisp.org>
32923
32924         nanosleep: Fix C++ test error on mingw.
32925         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
32926         * lib/time.in.h (nanosleep): Use modern idiom.
32927         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
32928         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
32929         REPLACE_NANOSLEEP to 1.
32930         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
32931         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
32932
32933 2010-04-03  Bruno Haible  <bruno@clisp.org>
32934
32935         strptime: Fix C++ test error on mingw.
32936         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
32937         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
32938         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
32939         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
32940         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
32941         not REPLACE_STRPTIME.
32942         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
32943         REPLACE_STRPTIME.
32944
32945 2010-04-03  Bruno Haible  <bruno@clisp.org>
32946
32947         timegm: Fix C++ test error on mingw.
32948         * lib/time.in.h (timegm): Use modern idiom.
32949         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
32950         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
32951         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
32952         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
32953
32954 2010-04-03  Bruno Haible  <bruno@clisp.org>
32955
32956         timegm: Assume declaration if function exists.
32957         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
32958         if it exists. Don't clobber ac_cv_func_timegm.
32959
32960 2010-04-03  Bruno Haible  <bruno@clisp.org>
32961
32962         time_r: Fix C++ test error on mingw.
32963         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
32964         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
32965         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
32966         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
32967         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
32968
32969 2010-04-03  Bruno Haible  <bruno@clisp.org>
32970
32971         time_r: Minor updates.
32972         * modules/time_r (Description): Mention the provided functions.
32973         * lib/time_r.c: Don't include <string.h>.
32974         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32975         * doc/posix-functions/localtime_r.texi: Likewise.
32976
32977 2010-04-03  Bruno Haible  <bruno@clisp.org>
32978
32979         time: Fix regression introduced on 2010-03-08.
32980         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32981         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32982
32983 2010-04-03  Jim Meyering  <meyering@redhat.com>
32984
32985         maint.mk: don't silently disable project-specific syntax-check rules
32986         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32987         that they need to convert their project-specific syntax-check rules
32988         to use the new _sc_search_regexp.
32989
32990 2010-04-03  Bruno Haible  <bruno@clisp.org>
32991
32992         fchdir: Fix regression introduced on 2010-03-08.
32993         * lib/unistd.in.h (fchdir): Fix declaration.
32994         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32996         REPLACE_FCHDIR.
32997         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32998         REPLACE_FCHDIR.
32999
33000 2010-04-03  Bruno Haible  <bruno@clisp.org>
33001
33002         getpagesize: Fix C++ test error on mingw.
33003         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33004         system does not declare the function.
33005         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33006         declared.
33007         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33008         HAVE_DECL_GETPAGESIZE.
33009         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33010
33011 2010-04-03  Bruno Haible  <bruno@clisp.org>
33012
33013         stdio: Make C++ tests work on mingw.
33014         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33015         does not declare the function.
33016
33017 2010-04-03  Bruno Haible  <bruno@clisp.org>
33018
33019         ftello: Fix C++ test error on mingw.
33020         * lib/stdio.in.h (ftello): Use modern idiom.
33021         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33022         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33023         is missing and that it needs to be replaced.
33024         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33025         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33026         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33027
33028 2010-04-03  Bruno Haible  <bruno@clisp.org>
33029
33030         fseeko: Fix C++ test error on mingw.
33031         * lib/stdio.in.h (fseeko): Use modern idiom.
33032         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33033         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33034         is missing and that it needs to be replaced.
33035         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33036         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33037         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33038
33039 2010-04-03  Bruno Haible  <bruno@clisp.org>
33040
33041         mkstemp: Fix C++ test error on mingw.
33042         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33043         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33044         function is missing and that it needs to be replaced.
33045         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33046         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33047
33048 2010-04-03  Bruno Haible  <bruno@clisp.org>
33049
33050         stpncpy: Fix C++ test error on mingw.
33051         * lib/string.in.h (stpncpy): Use modern idiom.
33052         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33053         function is missing and that it needs to be replaced.
33054         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33055         REPLACE_STPNCPY.
33056         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33057
33058 2010-04-03  Bruno Haible  <bruno@clisp.org>
33059
33060         sys_stat: Fix C++ test error on mingw.
33061         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33062         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33063
33064 2010-04-03  Bruno Haible  <bruno@clisp.org>
33065
33066         pty: Update doc.
33067         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33068
33069 2010-04-03  Bruno Haible  <bruno@clisp.org>
33070
33071         unistd: Fix C++ test error on mingw.
33072         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33073
33074 2010-04-03  Bruno Haible  <bruno@clisp.org>
33075
33076         Update doc regarding mingw.
33077         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33078         * doc/glibc-functions/login_tty.texi: Likewise.
33079         * doc/glibc-functions/forkpty.texi: Likewise.
33080
33081 2010-04-03  Bruno Haible  <bruno@clisp.org>
33082
33083         stdlib: Avoid compilation failure of c-strtold on mingw.
33084         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33085
33086 2010-04-03  Bruno Haible  <bruno@clisp.org>
33087
33088         locale: Make C++ tests work on Cygwin and mingw.
33089         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33090         cannot provide the function.
33091         Reported by Simon Josefsson.
33092
33093 2010-04-03  Bruno Haible  <bruno@clisp.org>
33094
33095         localename: Port to MacOS X 10.6.
33096         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33097         memory layout of the locales in MacOS X 10.6 as well.
33098         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33099
33100 2010-04-02  Bruno Haible  <bruno@clisp.org>
33101
33102         gnulib-tool: Ensure that long-running tests are executed last.
33103         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33104         running tests after the one for the other tests.
33105
33106 2010-04-02  Bruno Haible  <bruno@clisp.org>
33107
33108         gnulib-tool: Ensure the tests in the main directory are executed first.
33109         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33110         start with the current directory.
33111
33112 2010-04-02  Bruno Haible  <bruno@clisp.org>
33113
33114         Tests for module 'havelib', moved here from GNU gettext.
33115         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33116         modifications.
33117         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33118         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33119         with modifications.
33120         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33121         modifications.
33122         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33123         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33124         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33125         with modifications.
33126         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33127         with modifications.
33128         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33129         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33130         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33131         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33132         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33133         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33134         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33135         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33136         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33137         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33138         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33139         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33140         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33141         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33142         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33143         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33144         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33145         with modifications.
33146         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33147         with modifications.
33148         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33149         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33150         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33151         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33152         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33153         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33154         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33155         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33156         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33157         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33158         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33159         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33160         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33161         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33162         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33163         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33164         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33165         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33166         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33167         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33168         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33169         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33170         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33171         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33172         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33173         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33174         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33175         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33176         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33177         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33178         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33179         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33180         * tests/havelib/rpathx/rpathx.c: New file, from
33181         gettext/autoconf-lib-link.
33182         * tests/havelib/rpathx/Makefile.am: New file, from
33183         gettext/autoconf-lib-link.
33184         * tests/havelib/rpathx/configure.ac: New file, from
33185         gettext/autoconf-lib-link with modifications.
33186         * tests/havelib/rpathy/rpathy.c: New file, from
33187         gettext/autoconf-lib-link.
33188         * tests/havelib/rpathy/Makefile.am: New file, from
33189         gettext/autoconf-lib-link.
33190         * tests/havelib/rpathy/configure.ac: New file, from
33191         gettext/autoconf-lib-link with modifications.
33192         * tests/havelib/rpathz/rpathz.c: New file, from
33193         gettext/autoconf-lib-link.
33194         * tests/havelib/rpathz/Makefile.am: New file, from
33195         gettext/autoconf-lib-link.
33196         * tests/havelib/rpathz/configure.ac: New file, from
33197         gettext/autoconf-lib-link with modifications.
33198         * tests/havelib/rpathlx/usex.c: New file, from
33199         gettext/autoconf-lib-link.
33200         * tests/havelib/rpathlx/Makefile.am: New file, from
33201         gettext/autoconf-lib-link.
33202         * tests/havelib/rpathlx/configure.ac: New file, from
33203         gettext/autoconf-lib-link with modifications.
33204         * tests/havelib/rpathly/usey.c: New file, from
33205         gettext/autoconf-lib-link.
33206         * tests/havelib/rpathly/Makefile.am: New file, from
33207         gettext/autoconf-lib-link.
33208         * tests/havelib/rpathly/configure.ac: New file, from
33209         gettext/autoconf-lib-link with modifications.
33210         * tests/havelib/rpathlz/usez.c: New file, from
33211         gettext/autoconf-lib-link.
33212         * tests/havelib/rpathlz/Makefile.am: New file, from
33213         gettext/autoconf-lib-link.
33214         * tests/havelib/rpathlz/configure.ac: New file, from
33215         gettext/autoconf-lib-link with modifications.
33216         * tests/havelib/rpathlyx/usey.c: New file, from
33217         gettext/autoconf-lib-link.
33218         * tests/havelib/rpathlyx/Makefile.am: New file, from
33219         gettext/autoconf-lib-link.
33220         * tests/havelib/rpathlyx/configure.ac: New file, from
33221         gettext/autoconf-lib-link with modifications.
33222         * tests/havelib/rpathlzyx/usez.c: New file, from
33223         gettext/autoconf-lib-link.
33224         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33225         gettext/autoconf-lib-link.
33226         * tests/havelib/rpathlzyx/configure.ac: New file, from
33227         gettext/autoconf-lib-link with modifications.
33228         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33229         with modifications.
33230
33231 2010-04-02  Bruno Haible  <bruno@clisp.org>
33232
33233         gnulib-tool: Create distributed built sources also for the tests.
33234         * gnulib-tool (func_create_testdir): Also generate distributed built
33235         sources in the tests directory.
33236
33237 2010-04-02  Bruno Haible  <bruno@clisp.org>
33238
33239         gnulib-tool: Obey user's environment variables.
33240         * gnulib-tool (func_create_testdir): When creating built sources,
33241         respect the environment variables for autoconf, automake, etc. given by
33242         the user.
33243
33244 2010-04-02  Bruno Haible  <bruno@clisp.org>
33245
33246         gnulib-tool: Provide the value of --m4-base to modules.
33247         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33248         of gl_m4_base.
33249
33250 2010-04-02  Eric Blake  <eblake@redhat.com>
33251
33252         maint.mk: fix some fallout
33253         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33254         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33255
33256 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33257
33258         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33259         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33260         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33261         (sc_cast_of_x_alloc_return_value): Likewise.
33262         (sc_cast_of_alloca_return_value): Likewise.
33263         (sc_space_tab): Likewise.
33264         (sc_prohibit_atoi_atof): Likewise.
33265         (sc_prohibit_magic_number_exit): Likewise.
33266         (sc_error_exit_success): Likewise.
33267         (sc_file_system): Likewise.
33268         (sc_prohibit_have_config_h): Likewise.
33269         (sc_require_config_h): Likewise.
33270         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33271         (sc_obsolete_symbols): Likewise.
33272         (sc_changelog): Likewise.
33273         (sc_program_name): Likewise.
33274         (sc_the_the): Likewise.
33275         (sc_trailing_blank): Likewise.
33276         (sc_two_space_separator_in_usage): Likewise.
33277         (sc_useless_cpp_parens): Likewise.
33278         (sc_GPL_version): Likewise.
33279         (sc_GFDL_version): Likewise.
33280         (sc_texinfo_acronym): Likewise.
33281         (sc_prohibit_cvs_keyword): Likewise.
33282         (sc_prohibit_stat_st_blocks): Likewise.
33283         (sc_prohibit_S_IS_definition): Likewise.
33284         (sc_redundant_const): Likewise.
33285         (sc_makefile_TAB_only_indentation): Likewise.
33286         (sc_m4_quote_check): Likewise.
33287         (sc_makefile_path_separator_check): Likewise.
33288         (sc_copyright_check): Likewise.
33289         (sc_Wundef_boolean): Likewise.
33290         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33291
33292         maint.mk: match 0 or more whitespace-before-function-call '('
33293         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33294         that have zero or two-and-more spaces between the function name
33295         and the open parenthesis.
33296         (sc_error_message_warn_fatal): Likewise.
33297         (sc_error_message_uppercase): Likewise.
33298         (sc_error_message_period): Likewise.
33299
33300 2010-03-31  Eric Blake  <eblake@redhat.com>
33301
33302         maint.mk: check for [ as well as test
33303         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33304         Based on a libvirt report by Matthias Bolte.
33305
33306         gnumakefile: don't squelch _version output
33307         * top/GNUmakefile (_version): Create one-shot dependency rather
33308         than using $(shell) when version must be regenerated.
33309         (_autoreconf): Run verbosely, by default.
33310
33311         sys_time: avoid compiler warnings
33312         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33313         unconditional, fixing regression from 2010-03-29.
33314         Reported by Simon Josefsson.
33315
33316 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33317
33318         maint.mk: s/_header_without_use/_sc_header_without_use/
33319         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33320         (sc_prohibit_assert_without_use): Use the new name.
33321         (sc_prohibit_close_stream_without_use): Likewise.
33322         (sc_prohibit_getopt_without_use): Likewise.
33323         (sc_prohibit_quotearg_without_use): Likewise.
33324         (sc_prohibit_quote_without_use): Likewise.
33325         (sc_prohibit_long_options_without_use): Likewise.
33326         (sc_prohibit_inttostr_without_use): Likewise.
33327         (sc_prohibit_ignore_value_without_use): Likewise.
33328         (sc_prohibit_error_without_use): Likewise.
33329         (sc_prohibit_xalloc_without_use): Likewise.
33330         (sc_prohibit_hash_without_use): Likewise.
33331         (sc_prohibit_hash_pjw_without_use): Likewise.
33332         (sc_prohibit_safe_read_without_use): Likewise.
33333         (sc_prohibit_argmatch_without_use): Likewise.
33334         (sc_prohibit_canonicalize_without_use): Likewise.
33335         (sc_prohibit_root_dev_ino_without_use): Likewise.
33336         (sc_prohibit_openat_without_use): Likewise.
33337         (sc_prohibit_c_ctype_without_use): Likewise.
33338         (sc_prohibit_signal_without_use): Likewise.
33339         (sc_prohibit_intprops_without_use): Likewise.
33340
33341 2010-03-30  Eric Blake  <eblake@redhat.com>
33342
33343         maint: improve module indicators
33344         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33345         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33346         columns, and avoid extra macro expansion.
33347
33348         fdopendir: work around FreeBSD bug
33349         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33350         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33351         * modules/dirent (Makefile.am): Substitute it.
33352         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33353         declaration.
33354         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33355         fix.
33356         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33357
33358 2010-03-29  Bruno Haible  <bruno@clisp.org>
33359
33360         Emit #pragma system_header after the inclusion guard, not before.
33361         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33362         guard that spans the entire file, not before. This enables an
33363         optimization in GCC's preprocessor.
33364         * lib/ctype.in.h: Likewise.
33365         * lib/dirent.in.h: Likewise.
33366         * lib/errno.in.h: Likewise.
33367         * lib/float.in.h: Likewise.
33368         * lib/getopt.in.h: Likewise.
33369         * lib/iconv.in.h: Likewise.
33370         * lib/langinfo.in.h: Likewise.
33371         * lib/locale.in.h: Likewise.
33372         * lib/math.in.h: Likewise.
33373         * lib/netdb.in.h: Likewise.
33374         * lib/netinet_in.in.h: Likewise.
33375         * lib/pty.in.h: Likewise.
33376         * lib/sched.in.h: Likewise.
33377         * lib/se-selinux.in.h: Likewise.
33378         * lib/search.in.h: Likewise.
33379         * lib/spawn.in.h: Likewise.
33380         * lib/stdarg.in.h: Likewise.
33381         * lib/stdint.in.h: Likewise.
33382         * lib/string.in.h: Likewise.
33383         * lib/strings.in.h: Likewise.
33384         * lib/sys_file.in.h: Likewise.
33385         * lib/sys_ioctl.in.h: Likewise.
33386         * lib/sys_time.in.h: Likewise.
33387         * lib/sys_times.in.h: Likewise.
33388         * lib/sys_utsname.in.h: Likewise.
33389         * lib/sys_wait.in.h: Likewise.
33390         * lib/sysexits.in.h: Likewise.
33391         * lib/wctype.in.h: Likewise.
33392
33393 2010-03-28  James Youngman  <jay@gnu.org>
33394
33395         save-cwd: don't leak a file descriptor when the caller execs.
33396         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33397         saved file descriptor.
33398         * modules/save-cwd (Depends-on): Depend on cloexec.
33399
33400 2010-03-29  Bruno Haible  <bruno@clisp.org>
33401
33402         Remove vestiges of fts-lgpl module.
33403         * lib/fts_.h: Assume GNULIB_FTS is 1.
33404         * lib/fts.c: Likewise.
33405         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33406
33407 2010-03-28  Bruno Haible  <bruno@clisp.org>
33408
33409         Fix definition of tests witness macro.
33410         * gnulib-tool (func_import): Fix definition of witness macro.
33411
33412 2010-03-28  Bruno Haible  <bruno@clisp.org>
33413
33414         Fix ioctl's protoype on glibc systems.
33415         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33416         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33417         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33418         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33419         signature. If not, arrange to replace the ioctl function.
33420         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33421         REPLACE_IOCTL.
33422         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33423         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33424         Reported by Ludovic Courtès <ludo@gnu.org>.
33425
33426 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33427
33428         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33429         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33430         made it so grep -r --include=GLOB* ... did not work.
33431
33432 2010-03-26  Jim Meyering  <meyering@redhat.com>
33433             Eric Blake  <eblake@redhat.com>
33434
33435         maint.mk: prohibit use of test's -o and -a operators
33436         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33437
33438 2010-03-28  Bruno Haible  <bruno@clisp.org>
33439
33440         Remove unused GNULIB_XYZ macro definitions.
33441         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33442         invocation.
33443
33444 2010-03-28  Bruno Haible  <bruno@clisp.org>
33445
33446         Mark privileged tests modules.
33447         * modules/idpriv-drop-tests (Status): New section.
33448         * modules/idpriv-droptemp-tests (Status): New section.
33449
33450 2010-03-28  Bruno Haible  <bruno@clisp.org>
33451
33452         Split C++ tests into separate tests modules.
33453         * modules/dirent-c++-tests: New file, extracted from
33454         modules/dirent-tests.
33455         * modules/dirent-tests: Depend on it.
33456         * modules/fcntl-h-c++-tests: New file, extracted from
33457         modules/fcntl-h-tests.
33458         * modules/fcntl-h-tests: Depend on it.
33459         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33460         * modules/glob-tests: Depend on it.
33461         * modules/iconv-h-c++-tests: New file, extracted from
33462         modules/iconv-h-tests.
33463         * modules/iconv-h-tests: Depend on it.
33464         * modules/langinfo-c++-tests: New file, extracted from
33465         modules/langinfo-tests.
33466         * modules/langinfo-tests: Depend on it.
33467         * modules/locale-c++-tests: New file, extracted from
33468         modules/locale-tests.
33469         * modules/locale-tests: Depend on it.
33470         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33471         * modules/math-tests: Depend on it.
33472         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33473         * modules/pty-tests: Depend on it.
33474         * modules/search-c++-tests: New file, extracted from
33475         modules/search-tests.
33476         * modules/search-tests: Depend on it.
33477         * modules/signal-c++-tests: New file, extracted from
33478         modules/signal-tests.
33479         * modules/signal-tests: Depend on it.
33480         * modules/spawn-c++-tests: New file, extracted from
33481         modules/spawn-tests.
33482         * modules/spawn-tests: Depend on it.
33483         * modules/stdio-c++-tests: New file, extracted from
33484         modules/stdio-tests.
33485         * modules/stdio-tests: Depend on it.
33486         * modules/stdlib-c++-tests: New file, extracted from
33487         modules/stdlib-tests.
33488         * modules/stdlib-tests: Depend on it.
33489         * modules/string-c++-tests: New file, extracted from
33490         modules/string-tests.
33491         * modules/string-tests: Depend on it.
33492         * modules/sys_ioctl-c++-tests: New file, extracted from
33493         modules/sys_ioctl-tests.
33494         * modules/sys_ioctl-tests: Depend on it.
33495         * modules/sys_select-c++-tests: New file, extracted from
33496         modules/sys_select-tests.
33497         * modules/sys_select-tests: Depend on it.
33498         * modules/sys_socket-c++-tests: New file, extracted from
33499         modules/sys_socket-tests.
33500         * modules/sys_socket-tests: Depend on it.
33501         * modules/sys_stat-c++-tests: New file, extracted from
33502         modules/sys_stat-tests.
33503         * modules/sys_stat-tests: Depend on it.
33504         * modules/sys_time-c++-tests: New file, extracted from
33505         modules/sys_time-tests.
33506         * modules/sys_time-tests: Depend on it.
33507         * modules/time-c++-tests: New file, extracted from modules/time-tests.
33508         * modules/time-tests: Depend on it.
33509         * modules/unistd-c++-tests: New file, extracted from
33510         modules/unistd-tests.
33511         * modules/unistd-tests: Depend on it.
33512         * modules/wchar-c++-tests: New file, extracted from
33513         modules/wchar-tests.
33514         * modules/wchar-tests: Depend on it.
33515         * modules/wctype-c++-tests: New file, extracted from
33516         modules/wctype-tests.
33517         * modules/wctype-tests: Depend on it.
33518         Reported by Simon Josefsson.
33519
33520 2010-03-28  Bruno Haible  <bruno@clisp.org>
33521
33522         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
33523         * gnulib-tool (func_exists_module): New function, extracted from
33524         func_verify_module.
33525         (func_verify_module): Use it.
33526         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
33527         'foo' only if 'foo' exists.
33528         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
33529         module.
33530
33531 2010-03-28  Bruno Haible  <bruno@clisp.org>
33532
33533         gnulib-tool: Add support for special categories of tests.
33534         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
33535         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
33536         (func_usage): Document them.
33537         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
33538         inc_unportable_tests, inc_all_tests): New variables.
33539         (func_acceptable): Consider these variables.
33540         (func_modules_transitive_closure): Make it work when the 'Status' field
33541         consists of multiple words.
33542         (func_import): Store and restore the values of inc_cxx_tests,
33543         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
33544         inc_all_tests in gnulib-comp.m4.
33545         (func_create_testdir): Set inc_all_tests to true.
33546         * doc/gnulib.texi (Extra tests modules): New section.
33547         Suggested by Jim Meyering.
33548
33549 2010-03-28  Bruno Haible  <bruno@clisp.org>
33550
33551         ansi-c++-opt: Allow turning off the C++ build by default.
33552         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
33553         gl_CXX_CHOICE_DEFAULT_NO is defined.
33554         Requested by Eric Blake.
33555
33556 2010-03-28  Bruno Haible  <bruno@clisp.org>
33557
33558         unistd: Avoid #define replacements in C++ mode.
33559         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
33560         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
33561         setsockopt, shutdown, select): In C++, attach a warning to the function
33562         if possible, rather than #defining the symbol to a dysfunctional alias.
33563         Reported by John W. Eaton <jwe@gnu.org>.
33564
33565 2010-03-28  Bruno Haible  <bruno@clisp.org>
33566
33567         Fix link errors on mingw.
33568         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
33569         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
33570         $(LIBSOCKET).
33571         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
33572         $(LIBSOCKET).
33573
33574 2010-03-28  Bruno Haible  <bruno@clisp.org>
33575             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33576
33577         lib-ignore: Determine different options for different compilers.
33578         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
33579         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
33580         Add comments.
33581         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
33582         * NEWS: Mention the change.
33583
33584 2010-03-27  Bruno Haible  <bruno@clisp.org>
33585
33586         Remove unused GNULIB_XYZ macro definitions.
33587         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33588         * modules/fseek (configure.ac): Likewise.
33589         * modules/ioctl (configure.ac): Likewise.
33590         * modules/open (configure.ac): Likewise.
33591         * modules/stdlib-safer (configure.ac): Likewise.
33592
33593 2010-03-27  Bruno Haible  <bruno@clisp.org>
33594
33595         Add a remark about certain modules.
33596         * modules/malloc (Comment): New section.
33597         * modules/realloc (Comment): Likewise.
33598         * modules/sigpipe (Comment): Likewise.
33599
33600 2010-03-27  Bruno Haible  <bruno@clisp.org>
33601
33602         Resolve conflict between the two kinds of module indicators.
33603         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
33604         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
33605         * modules/canonicalize (configure.ac): Invoke
33606         gl_MODULE_INDICATOR_FOR_TESTS.
33607         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
33608         GNULIB_XYZ.
33609         * tests/test-dirent-c++.cc: Likewise.
33610         * tests/test-dirent-safer.c: Likewise.
33611         * tests/test-dup2.c: Likewise.
33612         * tests/test-fchdir.c: Likewise.
33613         * tests/test-fcntl-h-c++.cc: Likewise.
33614         * tests/test-getopt.c: Likewise.
33615         * tests/test-getopt.h: Likewise.
33616         * tests/test-langinfo-c++.cc: Likewise.
33617         * tests/test-locale-c++.cc: Likewise.
33618         * tests/test-math-c++.cc: Likewise.
33619         * tests/test-pty-c++.cc: Likewise.
33620         * tests/test-search-c++.cc: Likewise.
33621         * tests/test-signal-c++.cc: Likewise.
33622         * tests/test-spawn-c++.cc: Likewise.
33623         * tests/test-stdio-c++.cc: Likewise.
33624         * tests/test-stdlib-c++.cc: Likewise.
33625         * tests/test-string-c++.cc: Likewise.
33626         * tests/test-sys_ioctl-c++.cc: Likewise.
33627         * tests/test-sys_select-c++.cc: Likewise.
33628         * tests/test-sys_socket-c++.cc: Likewise.
33629         * tests/test-sys_stat-c++.cc: Likewise.
33630         * tests/test-sys_time-c++.cc: Likewise.
33631         * tests/test-time-c++.cc: Likewise.
33632         * tests/test-unistd-c++.cc: Likewise.
33633         * tests/test-wchar-c++.cc: Likewise.
33634         * tests/uninorm/test-u8-nfc.c: Likewise.
33635         * tests/uninorm/test-u8-nfd.c: Likewise.
33636         * tests/uninorm/test-u8-nfkc.c: Likewise.
33637         * tests/uninorm/test-u8-nfkd.c: Likewise.
33638         * tests/uninorm/test-u16-nfc.c: Likewise.
33639         * tests/uninorm/test-u16-nfd.c: Likewise.
33640         * tests/uninorm/test-u16-nfkc.c: Likewise.
33641         * tests/uninorm/test-u16-nfkd.c: Likewise.
33642         * tests/uninorm/test-u32-nfc.c: Likewise.
33643         * tests/uninorm/test-u32-nfc-big.c: Likewise.
33644         * tests/uninorm/test-u32-nfd.c: Likewise.
33645         * tests/uninorm/test-u32-nfd-big.c: Likewise.
33646         * tests/uninorm/test-u32-nfkc.c: Likewise.
33647         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
33648         * tests/uninorm/test-u32-nfkd.c: Likewise.
33649         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
33650         * tests/uninorm/test-u32-normalize-big.c: Likewise.
33651
33652 2010-03-27  Bruno Haible  <bruno@clisp.org>
33653
33654         Distinguish two kinds of module indicators.
33655         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
33656         gl_MODULE_INDICATOR.
33657         (gl_MODULE_INDICATOR): New macro.
33658         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33659         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
33660         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33661         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33662         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33663         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33664         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33665         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33666         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33667         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33668         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33669         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33670         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33671         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33672         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33673         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33674         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33675         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33676         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33677         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33678         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33679         * modules/cloexec (configure.ac): Likewise.
33680         * modules/getopt-gnu (configure.ac): Likewise.
33681         * modules/uninorm/u8-normalize (configure.ac): Likewise.
33682         * modules/uninorm/u16-normalize (configure.ac): Likewise.
33683         * modules/uninorm/u32-normalize (configure.ac): Likewise.
33684         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
33685
33686 2010-03-27  Bruno Haible  <bruno@clisp.org>
33687
33688         New module description field 'Comment'.
33689         * gnulib-tool: New option --extract-comment.
33690         (func_usage): Document it.
33691         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
33692         (func_get_comment): New function.
33693         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
33694
33695 2010-03-27  Bruno Haible  <bruno@clisp.org>
33696
33697         Addendum to 2010-02-07 commit.
33698         * gnulib-tool (func_usage): Document --extract-applicability option.
33699
33700 2010-03-27  Bruno Haible  <bruno@clisp.org>
33701
33702         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
33703         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
33704         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
33705         rather than link errors.
33706
33707 2010-03-27  Bruno Haible  <bruno@clisp.org>
33708
33709         Avoid side effects from tests-related modules on the compilation of lib.
33710         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
33711         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
33712         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
33713         parameter. Emit into AM_CPPFLAGS a definition of the designated C
33714         macro.
33715         (func_import): Define a witness macro. Assign it a value that depends
33716         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
33717         tests-related modules.
33718         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
33719         Reported by Jim Meyering.
33720
33721 2010-03-27  Bruno Haible  <bruno@clisp.org>
33722
33723         Factorize common .m4 code.
33724         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
33725         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
33726         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
33727         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
33728         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
33729         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
33730         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
33731         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
33732         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
33733         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
33734         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
33735         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
33736         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
33737         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
33738         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
33739         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
33740         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
33741         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
33742         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
33743         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
33744         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
33745         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
33746         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
33747         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
33748         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
33749         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
33750         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
33751         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
33752         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
33753         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
33754         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
33755         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
33756
33757 2010-03-27  Bruno Haible  <bruno@clisp.org>
33758
33759         Fix a compilation error on Cygwin with g++ >= 4.3.
33760         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
33761         if it is undefined or if we alias it to chmod.
33762         (lstat): Don't warn about the use of this function if it is undefined
33763         or if we alias it to stat.
33764         Reported by Simon Josefsson.
33765
33766 2010-03-27  Bruno Haible  <bruno@clisp.org>
33767
33768         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
33769         * modules/getlogin (configure.ac): Update.
33770
33771         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
33772         * modules/getlogin_r (configure.ac): Update.
33773
33774         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
33775         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
33776         * modules/inet_ntop (configure.ac): Update.
33777
33778         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
33779         * modules/inet_pton (configure.ac): Update.
33780
33781         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
33782         * modules/mbslen (configure.ac): Update.
33783
33784         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
33785         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
33786         * modules/forkpty (configure.ac): Update.
33787         * modules/openpty (configure.ac): Update.
33788
33789 2010-03-26  Simon Josefsson  <simon@josefsson.org>
33790
33791         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
33792         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
33793
33794 2010-03-25  Eric Blake  <eblake@redhat.com>
33795
33796         maint: use pragma consistently across replacement headers
33797         * lib/ctype.in.h (system_header): Hoist for consistent placement.
33798         * lib/dirent.in.h (system_header): Likewise.
33799         * lib/errno.in.h (system_header): Likewise.
33800         * lib/float.in.h (system_header): Likewise.
33801         * lib/getopt.in.h (system_header): Likewise.
33802         * lib/iconv.in.h (system_header): Likewise.
33803         * lib/inttypes.in.h (system_header): Likewise.
33804         * lib/langinfo.in.h (system_header): Likewise.
33805         * lib/locale.in.h (system_header): Likewise.
33806         * lib/math.in.h (system_header): Likewise.
33807         * lib/netdb.in.h (system_header): Likewise.
33808         * lib/netinet_in.in.h (system_header): Likewise.
33809         * lib/pty.in.h (system_header): Likewise.
33810         * lib/sched.in.h (system_header): Likewise.
33811         * lib/se-selinux.in.h (system_header): Likewise.
33812         * lib/search.in.h (system_header): Likewise.
33813         * lib/spawn.in.h (system_header): Likewise.
33814         * lib/stdarg.in.h (system_header): Likewise.
33815         * lib/stdint.in.h (system_header): Likewise.
33816         * lib/string.in.h (system_header): Likewise.
33817         * lib/strings.in.h (system_header): Likewise.
33818         * lib/sys_file.in.h (system_header): Likewise.
33819         * lib/sys_ioctl.in.h (system_header): Likewise.
33820         * lib/sys_socket.in.h (system_header): Likewise.
33821         * lib/sys_times.in.h (system_header): Likewise.
33822         * lib/sys_utsname.in.h (system_header): Likewise.
33823         * lib/sys_wait.in.h (system_header): Likewise.
33824         * lib/sysexits.in.h (system_header): Likewise.
33825         * lib/unistd.in.h (system_header): Likewise.
33826         * lib/wctype.in.h (system_header): Likewise.
33827
33828         arpa/inet: fix mingw compilation warning
33829         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
33830         Reported by Matthew Bolte.
33831
33832 2010-03-25  Bruno Haible  <bruno@clisp.org>
33833
33834         Avoid collision between gnulib wrapper and libintl wrapper.
33835         * lib/printf.c (printf): Don't define if a printf wrapper is already
33836         defined in intl/printf.c.
33837         Reported by Michel Boaventura <michel@michelboaventura.com>.
33838
33839 2010-03-25  Bruno Haible  <bruno@clisp.org>
33840
33841         Use ANSI C.
33842         * lib/readutmp.h (getutent): Provide ANSI C prototype.
33843
33844 2010-03-25  Bruno Haible  <bruno@clisp.org>
33845
33846         Minor formatting changes.
33847         * lib/acosl.c: Insert space before function argument list.
33848         * lib/argz.c: Likewise.
33849         * lib/asinl.c: Likewise.
33850         * lib/expl.c: Likewise.
33851         * lib/gen-uni-tables.c: Likewise.
33852         * lib/gettext.h: Likewise.
33853         * lib/glthread/lock.h: Likewise.
33854         * lib/tanl.c: Likewise.
33855         * lib/uniname/uniname.c: Likewise.
33856         * tests/test-idpriv-drop.c: Likewise.
33857         * tests/test-idpriv-droptemp.c: Likewise.
33858         * tests/test-lock.c: Likewise.
33859         * tests/test-tls.c: Likewise.
33860         * lib/argp-help.c: Insert space before function-like macro argument
33861         list.
33862         * lib/memcmp.c: Likewise.
33863         * tests/test-base64.c: Likewise.
33864         * lib/localename.c: Insert space before sizeof's argument list.
33865         * lib/safe-alloc.h: Likewise.
33866         * lib/file-set.h: Insert space before macro argument list.
33867         * tests/test-argp.c: Likewise.
33868         * lib/argp-namefrob.h: Insert space before function parameter list.
33869         * lib/getaddrinfo.c: Likewise.
33870         * lib/netdb.in.h: Likewise.
33871         * lib/parse-duration.h: Likewise.
33872         * lib/parse-duration.c: Likewise.
33873         * lib/poll.c: Likewise.
33874         * lib/select.c: Likewise.
33875         * lib/trim.h: Likewise.
33876         * tests/test-usleep.c: Likewise.
33877         * lib/ldexpl.c: Insert space before function parameter list and before
33878         function argument list.
33879         * lib/logl.c: Likewise.
33880         * lib/sqrtl.c: Likewise.
33881         * lib/trim.c: Likewise.
33882         * lib/cosl.c: Use GNU style indentation. Insert space before function
33883         argument list.
33884         * lib/sinl.c: Likewise.
33885         * lib/tsearch.c: Insert space after 'for'.
33886         Reported by Jim Meyering.
33887
33888 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
33889
33890         * maint.mk (sc_Wundef_boolean): Check for the presence of the
33891         config header before grepping, as it's not present before
33892         autoreconf/configure are run.  Reported by Simon Josefsson.
33893
33894 2010-03-23  Bruno Haible  <bruno@clisp.org>
33895
33896         pt_chown: Make it work with automake < 1.11.
33897         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33898         Reported by Simon Josefsson.
33899
33900 2010-03-23  Bruno Haible  <bruno@clisp.org>
33901
33902         pt_chown: Don't depend on GPLed modules.
33903         * lib/pt_chown.c: Don't include idpriv.h.
33904         (main): Don't drop privileges.
33905         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33906         Reported by Simon Josefsson.
33907
33908 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33909
33910         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33911         suggestions from karl@freefriends.org (Karl Berry).
33912
33913 2010-03-22  Eric Blake  <eblake@redhat.com>
33914
33915         gethostname: further tweaks
33916         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33917         are overriding gethostname.
33918         Suggested by Bruno Haible.
33919
33920 2010-03-21  Bruno Haible  <bruno@clisp.org>
33921
33922         Fix comments.
33923         * lib/forkpty.c (rpl_forkpty): Fix comment.
33924         * lib/openpty.c (rpl_openpty): Likewise.
33925         Reported by Eric Blake.
33926
33927 2010-03-22  Eric Blake  <eblake@redhat.com>
33928
33929         gethostname: fix build on mingw
33930         * lib/unistd.in.h (includes): Work around fact that mingw
33931         <winsock2.h> re-includes <unistd.h>, by avoiding any
33932         redeclarations if we are being included by <winsock2.h>.
33933         Reported by Matthias Bolte.
33934
33935 2010-03-21  Bruno Haible  <bruno@clisp.org>
33936
33937         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33938         * lib/forkpty.c (forkpty): New replacement function, from glibc with
33939         modifications.
33940         * lib/pty.in.h (forkpty): Update declaration. Add comments.
33941         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
33942         provide the replacement.
33943         * modules/forkpty (Depends-on): Add openpty, login_tty.
33944         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
33945         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
33946         * doc/glibc-functions/forkpty.texi: More supported platforms.
33947         * config/srclist.txt: Add forkpty.c (commented).
33948
33949 2010-03-21  Bruno Haible  <bruno@clisp.org>
33950
33951         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
33952         (Makefile.am): Verify that PTY_LIB is defined.
33953
33954         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
33955
33956 2010-03-21  Bruno Haible  <bruno@clisp.org>
33957
33958         Tests for module 'login_tty'.
33959         * modules/login_tty-tests: New file.
33960         * tests/test-login_tty.c: New file.
33961
33962         New module 'login_tty'.
33963         * lib/login_tty.c: New file.
33964         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
33965         * modules/login_tty: New file.
33966         * doc/glibc-functions/login_tty.texi: Mention the new module.
33967
33968 2010-03-21  Bruno Haible  <bruno@clisp.org>
33969
33970         login_tty: Documentation.
33971         * doc/glibc-functions/login_tty.texi: New file.
33972         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
33973
33974 2010-03-21  Bruno Haible  <bruno@clisp.org>
33975
33976         pty: Consistent macro naming.
33977         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33978         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33979         * modules/pty (configure.ac): Update.
33980
33981 2010-03-21  Bruno Haible  <bruno@clisp.org>
33982
33983         Tests for openpty: Make stricter.
33984         * tests/test-openpty.c (main): Add test of canonical processing and
33985         erase.
33986         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33987
33988         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33989         * lib/openpty.c (openpty): New replacement function.
33990         * lib/pty.in.h: Include <termios.h>.
33991         (openpty): Update declaration. Add comments.
33992         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33993         is not declared, arrange to provide the replacement. Check for _getpty
33994         and posix_openpt.
33995         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33996         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33997         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33998         * modules/pty-tests (test_pty_c___LDADD): New variable.
33999         * doc/glibc-functions/openpty.texi: More supported platforms.
34000
34001 2010-03-21  Bruno Haible  <bruno@clisp.org>
34002
34003         setenv: Tweaks.
34004         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34005         the test program.
34006         * doc/posix-functions/setenv.texi: Update platforms list.
34007
34008 2010-03-21  Bruno Haible  <bruno@clisp.org>
34009
34010         New module 'unlockpt'.
34011         * lib/unlockpt.c: New file, from glibc with modifications.
34012         * m4/unlockpt.m4: New file.
34013         * modules/unlockpt: New file.
34014         * lib/stdlib.in.h (unlockpt): New declaration.
34015         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34016         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34017         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34018         HAVE_UNLOCKPT.
34019         * doc/posix-functions/unlockpt.texi: Mention the new module.
34020         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34021         * config/srclist.txt: Add unlockpt.c (commented).
34022
34023 2010-03-21  Jim Meyering  <meyering@redhat.com>
34024
34025         maint.mk: prohibit inclusion of "intprops.h" without use
34026         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34027
34028 2010-03-21  Bruno Haible  <bruno@clisp.org>
34029
34030         New module 'grantpt'.
34031         * lib/grantpt.c: New file, from glibc with modifications.
34032         * m4/grantpt.m4: New file.
34033         * modules/grantpt: New file.
34034         * lib/stdlib.in.h (grantpt): New declaration.
34035         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34036         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34037         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34038         HAVE_GRANTPT.
34039         * doc/posix-functions/grantpt.texi: Mention the new module.
34040         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34041         * config/srclist.txt: Add grantpt.c (commented).
34042
34043 2010-03-21  Bruno Haible  <bruno@clisp.org>
34044
34045         New module 'pt_chown'.
34046         * lib/pt_chown.c: New file, from glibc with modifications.
34047         * lib/pty-private.h: New file, from glibc with modifications.
34048         * modules/pt_chown: New file.
34049         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34050
34051 2010-03-21  Bruno Haible  <bruno@clisp.org>
34052
34053         Tests for module 'ptsname'.
34054         * modules/ptsname-tests: New file.
34055         * tests/test-ptsname.c: New file.
34056
34057         New module 'ptsname'.
34058         * lib/ptsname.c: New file, from glibc with modifications.
34059         * m4/ptsname.m4: New file.
34060         * modules/ptsname: New file.
34061         * lib/stdlib.in.h (ptsname): New declaration.
34062         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34063         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34064         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34065         HAVE_PTSNAME.
34066         * doc/posix-functions/ptsname.texi: Mention the new module.
34067         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34068         * config/srclist.txt: Add ptsname.c (commented).
34069
34070 2010-03-21  Bruno Haible  <bruno@clisp.org>
34071
34072         Tests for module 'ttyname_r'.
34073         * modules/ttyname_r-tests: New file.
34074         * tests/test-ttyname_r.c: New file.
34075
34076         New module 'ttyname_r'.
34077         * lib/ttyname_r.c: New file.
34078         * m4/ttyname_r.m4: New file.
34079         * modules/ttyname_r: New file.
34080         * lib/unistd.in.h (ttyname_r): New declaration.
34081         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34082         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34083         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34084         HAVE_TTYNAME_R.
34085         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34086         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34087
34088 2010-03-20  Bruno Haible  <bruno@clisp.org>
34089
34090         signal: Undefine macro definitions in C++ mode.
34091         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34092         sigfillset): Undefine macro definitions from the system header in C++
34093         mode.
34094         Reported by John W. Eaton <jwe@gnu.org>.
34095
34096 2010-03-20  Bruno Haible  <bruno@clisp.org>
34097
34098         Ensure no #include statements inside extern "C" { ... }.
34099         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34100         contain #include statements.
34101         * lib/time.in.h: Likewise.
34102
34103 2010-03-20  Bruno Haible  <bruno@clisp.org>
34104
34105         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34106         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34107         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34108         Reported by John W. Eaton <jwe@gnu.org>.
34109
34110 2010-03-20  Bruno Haible  <bruno@clisp.org>
34111
34112         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34113         Reported by Jim Meyering.
34114
34115 2010-03-20  Bruno Haible  <bruno@clisp.org>
34116
34117         pipe: Set errno upon failure.
34118         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34119         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34120         errno value in error message.
34121
34122 2010-03-20  Bruno Haible  <bruno@clisp.org>
34123             Jim Meyering  <meyering@redhat.com>
34124
34125         lchown: Avoid "unused variable" warning.
34126         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34127
34128 2010-03-20  Bruno Haible  <bruno@clisp.org>
34129
34130         Work around unlink() bug on MacOS X 10.5.6.
34131         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34132         attempting to unlink a parent directory.
34133         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34134         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34135         activate for the replacement function.
34136         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34137
34138 2010-03-20  Bruno Haible  <bruno@clisp.org>
34139
34140         Fix link errors on Solaris 8.
34141         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34142         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34143
34144 2010-03-19  Jim Meyering  <meyering@redhat.com>
34145
34146         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34147         The _LIBC implementation of build_range_exp correctly honors the
34148         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34149         However, the non-_LIBC implementation would ignore that syntax-bit
34150         flag and return REG_ERANGE unconditionally.
34151         This change makes it honor that flag.
34152         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34153         Make two pointer parameters "const".
34154         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34155         (parse_bracket_exp): Update caller.
34156
34157         regex.m4: correct the reversed range endpoint ([b-a]) test
34158         * m4/regex.m4: When requiring that [b-a] evoke failure,
34159         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34160         test pass once again for x86-based systems.
34161
34162 2010-03-19  Bruno Haible  <bruno@clisp.org>
34163
34164         scandir: Fix link error on Solaris 8.
34165         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34166         macros.
34167
34168 2010-03-19  Bruno Haible  <bruno@clisp.org>
34169
34170         getusershell: Fix documentation.
34171         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34172         module.
34173         * doc/glibc-functions/setusershell.texi: Likewise.
34174
34175         getusershell: Provide declaration, missing on Solaris 9.
34176         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34177         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34178         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34179         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34181         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34182         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34183         HAVE_GETUSERSHELL.
34184         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34185
34186 2010-03-19  Bruno Haible  <bruno@clisp.org>
34187
34188         wctype: Provide iswblank function.
34189         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34190         exists and is fine.
34191         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34192         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34193         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34194         * doc/posix-functions/iswblank.texi: Update.
34195
34196 2010-03-19  Bruno Haible  <bruno@clisp.org>
34197
34198         Tests of module 'pty' in C++ mode.
34199         * modules/pty-tests: New file.
34200         * tests/test-pty-c++.cc: New file.
34201         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34202
34203 2010-03-19  Eric Blake  <eblake@redhat.com>
34204
34205         logb: fix documentation
34206         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34207         1.5 declaration bug.
34208
34209         forkpty, openpty: prefer glibc's const-safe prototype
34210         * lib/forkpty.c (rpl_forkpty): New file.
34211         * lib/openpty.c (rpl_openpty): Likewise.
34212         * modules/forkpty (Files): Distribute it.
34213         * modules/openpty (Files): Likewise.
34214         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34215         check...
34216         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34217         replacement for for non-const BSD signature.
34218         * modules/pty (Makefile.am): Substitute witnesses.
34219         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34220         * tests/test-forkpty.c: Update signature check.
34221         * tests/test-openpty.c: Likewise.
34222         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34223         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34224
34225         forkpty, openpty: split functions into new modules
34226         * modules/pty (Makefile.am): Substitute new witnesses.
34227         (Libraries): Move library detection...
34228         * modules/forkpty: ...into new module.
34229         * modules/openpty: Another new module.
34230         * modules/pty-tests: Rename and split...
34231         * modules/forkpty-tests: ...to this...
34232         * modules/openpty-tests: ...and this.
34233         * tests/test-pty.c: Rename and split...
34234         * tests/test-forkpty.c: ...to this...
34235         * tests/test-openpty.c: ...and this.
34236         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34237         (gl_PTY): Split library searching...
34238         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34239         (gl_FORKPTY, gl_OPENPTY): New macros.
34240         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34241         * NEWS: Mention the split.
34242         * MODULES.html.sh (Misc): Document the modules.
34243         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34244         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34245
34246         pty: improve replacement header
34247         * lib/pty.in.h: New file.
34248         * modules/pty (Files): Ship it.
34249         (Makefile.am): Always build replacement.
34250         * m4/pty.m4: Rename...
34251         * m4/pty_h.m4: ...to this.
34252         (gl_PTY): Modernize setting of witness macros; update check of
34253         forkpty to take proper advantage of cache.
34254         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34255
34256         getopt: avoid compiler warning
34257         * lib/getopt.c (attribute_hidden): Remove unused macro.
34258
34259 2010-03-18  Bruno Haible  <bruno@clisp.org>
34260
34261         Fix link errors on Solaris 8.
34262         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34263         * modules/search-tests (test_search_c___LDADD): Likewise.
34264         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34265         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34266         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34267         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34268         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34269         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34270         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34271
34272 2010-03-18  Bruno Haible  <bruno@clisp.org>
34273
34274         Fix bug introduced on 2010-03-14.
34275         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34276         (gl_SPAWN_H): Require it.
34277         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34278         Reported by Simon Josefsson.
34279
34280 2010-03-18  Bruno Haible  <bruno@clisp.org>
34281
34282         Fix typo introduced on 2009-12-31.
34283         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34284         posix_spawn_file_actions_adddup2.
34285
34286 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34287         and Eric Blake  <eblake@redhat.com>
34288
34289         test-vc-list-files-git: make more robust
34290         * tests/test-vc-list-files-git.sh: Unset problematic environment
34291         variables.  Chain commands together.
34292
34293 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34294
34295         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34296         `AC_CHECK_DECL' invocation.
34297
34298 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34299
34300         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34301         appears before executable statements. Suggested by Petr Sumbera
34302         <Petr.Sumbera@Sun.COM>.
34303
34304 2010-03-14  Bruno Haible  <bruno@clisp.org>
34305
34306         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34307         portability problems. Instead use a simpler test.
34308         (main): Check that invalid arguments are rejected only on Linux.
34309
34310 2010-03-14  Bruno Haible  <bruno@clisp.org>
34311
34312         Fix bug introduced on 2009-12-31.
34313         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34314         gl_PREREQ_SYS_H_WINSOCK2 always.
34315         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34316         SYS_SOCKET_H variable.
34317         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34318         Update comments.
34319         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34320         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34321         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34322         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34323         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34324
34325 2010-03-14  Bruno Haible  <bruno@clisp.org>
34326
34327         Fix values returned by sinl, cosl.
34328         * lib/trigl.h: Add specification comments.
34329         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34330         that combines the values from the precomputed table with the values of
34331         the Chebyshev polynomials.
34332
34333 2010-03-14  Bruno Haible  <bruno@clisp.org>
34334
34335         Fix compilation error when modules 'posix_spawn[p]' are not used.
34336         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34338
34339 2010-03-14  Bruno Haible  <bruno@clisp.org>
34340
34341         Fix compilation error on mingw when module 'time_r' is not used.
34342         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34343         is 1.
34344         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34345         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34346         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34347         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34348
34349 2010-03-14  Bruno Haible  <bruno@clisp.org>
34350
34351         Fix compilation error with Sun C.
34352         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34353         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34354         instead of GCC specific ULONG_LONG_MAX.
34355         * lib/xstrtoll.c: Likewise.
34356         * lib/xstrtoull.c: Likewise.
34357
34358 2010-03-13  Bruno Haible  <bruno@clisp.org>
34359
34360         Allow the user to disable C++ code and tests.
34361         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34362         (gl_PROG_ANSI_CXX): Require it.
34363
34364 2010-03-13  Bruno Haible  <bruno@clisp.org>
34365
34366         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34367         cases.
34368
34369 2010-03-13  Bruno Haible  <bruno@clisp.org>
34370
34371         Test that gnulib does not break the standard C++ headers.
34372         * tests/test-locale-c++2.cc: New file.
34373         * modules/locale-tests (Files): Add it.
34374         (Makefile.am): Compile it for test-locale-c++.
34375         * tests/test-math-c++2.cc: New file.
34376         * modules/math-tests (Files): Add it.
34377         (Makefile.am): Compile it for test-math-c++.
34378         * tests/test-signal-c++2.cc: New file.
34379         * modules/signal-tests (Files): Add it.
34380         (Makefile.am): Compile it for test-signal-c++.
34381         * tests/test-stdio-c++2.cc: New file.
34382         * modules/stdio-tests (Files): Add it.
34383         (Makefile.am): Compile it for test-stdio-c++.
34384         * tests/test-stdlib-c++2.cc: New file.
34385         * modules/stdlib-tests (Files): Add it.
34386         (Makefile.am): Compile it for test-stdlib-c++.
34387         * tests/test-string-c++2.cc: New file.
34388         * modules/string-tests (Files): Add it.
34389         (Makefile.am): Compile it for test-string-c++.
34390         * tests/test-time-c++2.cc: New file.
34391         * modules/time-tests (Files): Add it.
34392         (Makefile.am): Compile it for test-time-c++.
34393         Reported by John W. Eaton <jwe@gnu.org>.
34394
34395 2010-03-13  Bruno Haible  <bruno@clisp.org>
34396
34397         * gnulib-tool (func_usage): Clarify which options are available for
34398         --create-testdir and --create-megatestdir.
34399
34400 2010-03-13  Bruno Haible  <bruno@clisp.org>
34401
34402         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34403         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34404         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34405         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34406         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34407         when appropriate.
34408         Reported by Jim Meyering.
34409
34410 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34411
34412         * gnulib-tool (func_import): Explain origin of code.
34413
34414 2010-03-12  Bruno Haible  <bruno@clisp.org>
34415
34416         Fix problem with automake's definition of CXXLINK.
34417         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34418         Reported by Simon Josefsson and Ludovic Courtès.
34419
34420 2010-03-12  Bruno Haible  <bruno@clisp.org>
34421
34422         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34423         stable releases.
34424
34425 2010-03-11  Bruno Haible  <bruno@clisp.org>
34426
34427         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34428         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34429         whether the system provides one variant or multiple variants of the
34430         function.
34431         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34432         C++ compilers.
34433         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34434         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34435         Reported by Jim Meyering.
34436
34437 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34438
34439         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34440
34441 2010-03-08  Bruno Haible  <bruno@clisp.org>
34442
34443         gnulib-tool: Add support for --libtool in --create-testdir.
34444         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34445         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34446
34447 2010-03-08  Eric Blake  <eblake@redhat.com>
34448
34449         gnulib-tool.texi: mention possibility of git submodule
34450         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34451         submodules.
34452         * doc/.gitignore: Ignore another generated file.
34453
34454 2010-03-08  Karl Berry  <karl@gnu.org>
34455
34456         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34457         of committing gnulib files while skipping others.
34458
34459 2010-03-07  Bruno Haible  <bruno@clisp.org>
34460
34461         Tests of module 'wctype' in C++ mode.
34462         * tests/test-wctype-c++.cc: New file.
34463         * modules/wctype-tests (Files): Add it and tests/signature.h.
34464         (Depends-on): Add ansi-c++-opt.
34465         (Makefile.am): Arrange to compile and run test-wctype-c++.
34466
34467         Tests of module 'wchar' in C++ mode.
34468         * tests/test-wchar-c++.cc: New file.
34469         * modules/wchar-tests (Files): Add it and tests/signature.h.
34470         (Depends-on): Add ansi-c++-opt.
34471         (Makefile.am): Arrange to compile and run test-wchar-c++.
34472         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34473         gl_MODULE_INDICATOR.
34474
34475         Tests of module 'unistd' in C++ mode.
34476         * tests/test-unistd-c++.cc: New file.
34477         * modules/unistd-tests (Files): Add it and tests/signature.h.
34478         (Depends-on): Add ansi-c++-opt.
34479         (Makefile.am): Arrange to compile and run test-unistd-c++.
34480         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34481         gl_MODULE_INDICATOR.
34482
34483         Tests of module 'time' in C++ mode.
34484         * tests/test-time-c++.cc: New file.
34485         * modules/time-tests (Files): Add it and tests/signature.h.
34486         (Depends-on): Add ansi-c++-opt.
34487         (Makefile.am): Arrange to compile and run test-time-c++.
34488         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34489
34490         Tests of module 'sys_time' in C++ mode.
34491         * tests/test-sys_time-c++.cc: New file.
34492         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34493         (Depends-on): Add ansi-c++-opt.
34494         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34495         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34496         gl_MODULE_INDICATOR.
34497
34498         Tests of module 'sys_stat' in C++ mode.
34499         * tests/test-sys_stat-c++.cc: New file.
34500         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34501         (Depends-on): Add ansi-c++-opt.
34502         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34503         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34504         gl_MODULE_INDICATOR.
34505
34506         Tests of module 'sys_socket' in C++ mode.
34507         * tests/test-sys_socket-c++.cc: New file.
34508         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
34509         (Depends-on): Add ansi-c++-opt.
34510         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
34511         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
34512         gl_MODULE_INDICATOR.
34513
34514         Tests of module 'sys_select' in C++ mode.
34515         * tests/test-sys_select-c++.cc: New file.
34516         * modules/sys_select-tests (Files): Add it and tests/signature.h.
34517         (Depends-on): Add ansi-c++-opt.
34518         (Makefile.am): Arrange to compile and run test-sys_select-c++.
34519         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
34520         gl_MODULE_INDICATOR.
34521
34522         Tests of module 'sys_ioctl' in C++ mode.
34523         * tests/test-sys_ioctl-c++.cc: New file.
34524         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
34525         (Depends-on): Add ansi-c++-opt.
34526         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
34527         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
34528         gl_MODULE_INDICATOR.
34529
34530         Tests of module 'string' in C++ mode.
34531         * tests/test-string-c++.cc: New file.
34532         * modules/string-tests (Files): Add it and tests/signature.h.
34533         (Depends-on): Add ansi-c++-opt.
34534         (Makefile.am): Arrange to compile and run test-string-c++.
34535         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
34536         gl_MODULE_INDICATOR.
34537
34538         Tests of module 'stdlib' in C++ mode.
34539         * tests/test-stdlib-c++.cc: New file.
34540         * modules/stdlib-tests (Files): Add it and tests/signature.h.
34541         (Depends-on): Add ansi-c++-opt.
34542         (Makefile.am): Arrange to compile and run test-stdlib-c++.
34543         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
34544         gl_MODULE_INDICATOR.
34545
34546         Tests of module 'stdio' in C++ mode.
34547         * tests/test-stdio-c++.cc: New file.
34548         * modules/stdio-tests (Files): Add it and tests/signature.h.
34549         (Depends-on): Add ansi-c++-opt.
34550         (Makefile.am): Arrange to compile and run test-stdio-c++.
34551         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
34552         gl_MODULE_INDICATOR.
34553
34554         Tests of module 'spawn' in C++ mode.
34555         * tests/test-spawn-c++.cc: New file.
34556         * modules/spawn-tests (Files): Add it and tests/signature.h.
34557         (Depends-on): Add ansi-c++-opt.
34558         (Makefile.am): Arrange to compile and run test-spawn-c++.
34559         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
34560         gl_MODULE_INDICATOR.
34561
34562         Tests of module 'signal' in C++ mode.
34563         * tests/test-signal-c++.cc: New file.
34564         * modules/signal-tests (Files): Add it and tests/signature.h.
34565         (Depends-on): Add ansi-c++-opt.
34566         (Makefile.am): Arrange to compile and run test-signal-c++.
34567         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
34568         gl_MODULE_INDICATOR.
34569
34570         Tests of module 'search' in C++ mode.
34571         * tests/test-search-c++.cc: New file.
34572         * modules/search-tests (Files): Add it and tests/signature.h.
34573         (Depends-on): Add ansi-c++-opt.
34574         (Makefile.am): Arrange to compile and run test-search-c++.
34575         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
34576         gl_MODULE_INDICATOR.
34577
34578         Tests of module 'math' in C++ mode.
34579         * tests/test-math-c++.cc: New file.
34580         * modules/math-tests (Files): Add it and tests/signature.h.
34581         (Depends-on): Add ansi-c++-opt.
34582         (Makefile.am): Arrange to compile and run test-math-c++.
34583         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34584
34585         Tests of module 'locale' in C++ mode.
34586         * tests/test-locale-c++.cc: New file.
34587         * modules/locale-tests (Files): Add it and tests/signature.h.
34588         (Depends-on): Add ansi-c++-opt.
34589         (Makefile.am): Arrange to compile and run test-locale-c++.
34590         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
34591         gl_MODULE_INDICATOR.
34592
34593         Tests of module 'langinfo' in C++ mode.
34594         * tests/test-langinfo-c++.cc: New file.
34595         * modules/langinfo-tests (Files): Add it and tests/signature.h.
34596         (Depends-on): Add ansi-c++-opt.
34597         (Makefile.am): Arrange to compile and run test-langinfo-c++.
34598         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
34599         gl_MODULE_INDICATOR.
34600
34601         Tests of module 'iconv-h' in C++ mode.
34602         * tests/test-iconv-h-c++.cc: New file.
34603         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
34604         (Depends-on): Add ansi-c++-opt.
34605         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
34606
34607         Tests of module 'glob' in C++ mode.
34608         * tests/test-glob-c++.cc: New file.
34609         * modules/glob-tests (Files): Add it.
34610         (Depends-on): Add ansi-c++-opt.
34611         (Makefile.am): Arrange to compile and run test-glob-c++.
34612
34613         Tests of module 'fcntl-h' in C++ mode.
34614         * tests/test-fcntl-h-c++.cc: New file.
34615         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
34616         (Depends-on): Add ansi-c++-opt.
34617         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
34618         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
34619         gl_MODULE_INDICATOR.
34620
34621         Tests of module 'dirent' in C++ mode.
34622         * tests/test-dirent-c++.cc: New file.
34623         * modules/dirent-tests (Files): Add it and tests/signature.h.
34624         (Depends-on): Add ansi-c++-opt.
34625         (Makefile.am): Arrange to compile and run test-dirent-c++.
34626         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34627         gl_MODULE_INDICATOR.
34628
34629         New module 'ansi-c++-opt'.
34630         * modules/ansi-c++-opt: New file.
34631         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
34632
34633         Document C++ namespace mode.
34634         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
34635
34636         wctype: Avoid #define replacements in C++ mode.
34637         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
34638         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
34639         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
34640         In C++, define a namespaced alias symbol.
34641         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
34642         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
34643         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
34644         rule.
34645
34646         wchar: Avoid #define replacements in C++ mode.
34647         * lib/wchar.in.h: Include c++defs.h.
34648         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
34649         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
34650         symbol.
34651         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
34652         * modules/wchar (Depends-on): Add c++defs.
34653         (Makefile.am): Update wchar.h rule.
34654
34655         unistd: Avoid #define replacements in C++ mode.
34656         * lib/unistd.in.h: Include c++defs.h.
34657         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
34658         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
34659         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
34660         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
34661         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
34662         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
34663         symbol.
34664         (environ): Update.
34665         * modules/unistd (Depends-on): Add c++defs.
34666         (Makefile.am): Update unistd.h rule.
34667
34668         time: Avoid #define replacements in C++ mode.
34669         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
34670         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
34671         define a namespaced alias symbol.
34672         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
34673         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
34674         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
34675         * modules/time (Depends-on): Add c++defs, warn-on-use.
34676         (Makefile.am): Update time.h rule.
34677         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34678         * modules/nanosleep (configure.ac): Likewise.
34679         * modules/strptime (configure.ac): Likewise.
34680         * modules/timegm (configure.ac): Likewise.
34681
34682         sys_time: Avoid #define replacements in C++ mode.
34683         * lib/sys_time.in.h: Include c++defs.h.
34684         (gettimeofday): In C++, define a namespaced alias symbol.
34685         * modules/sys_time (Depends-on): Add c++defs.
34686         (Makefile.am): Update sys/time.h rule.
34687
34688         sys_stat: Avoid #define replacements in C++ mode.
34689         * lib/sys_stat.in.h: Include c++defs.h.
34690         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
34691         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
34692         namespaced alias symbol.
34693         In C++, define a namespaced alias symbol.
34694         * modules/sys_stat (Depends-on): Add c++defs.
34695         (Makefile.am): Update sys/stat.h rule.
34696
34697         sys_socket: Avoid #define replacements in C++ mode.
34698         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
34699         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
34700         definitions also when the system has a <sys/socket.h>.
34701         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
34702         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
34703         In C++, define a namespaced alias symbol.
34704         * modules/sys_socket (Depends-on): Add c++defs.
34705         (Makefile.am): Update sys/socket.h rule.
34706
34707         sys_select: Avoid #define replacements in C++ mode.
34708         * lib/sys_select.in.h: Include c++defs.h. Enable the function
34709         definitions also when the system has a <sys/select.h>.
34710         (select): In C++, define a namespaced alias symbol.
34711         * modules/sys_select (Depends-on): Add c++defs.
34712         (Makefile.am): Update sys/select.h rule.
34713
34714         sys_ioctl: Avoid #define replacements in C++ mode.
34715         * lib/sys_ioctl.in.h: Include c++defs.h.
34716         (ioctl): In C++, define a namespaced alias symbol.
34717         * modules/sys_ioctl (Depends-on): Add c++defs.
34718         (Makefile.am): Update sys/ioctl.h rule.
34719
34720         string: Avoid #define replacements in C++ mode.
34721         * lib/string.in.h: Include c++defs.h.
34722         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
34723         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34724         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34725         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
34726         strsignal, strverscmp): In C++, define a namespaced alias symbol.
34727         * modules/string (Depends-on): Add c++defs.
34728         (Makefile.am): Update string.h rule.
34729
34730         stdlib: Avoid #define replacements in C++ mode.
34731         * lib/stdlib.in.h: Include c++defs.h.
34732         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
34733         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
34734         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
34735         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
34736         symbol.
34737         * modules/stdlib (Depends-on): Add c++defs.
34738         (Makefile.am): Update stdlib.h rule.
34739
34740         stdio: Avoid #define replacements in C++ mode.
34741         * lib/stdio.in.h: Include c++defs.h.
34742         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
34743         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
34744         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
34745         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
34746         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
34747         namespaced alias symbol.
34748         * modules/stdio (Depends-on): Add c++defs.
34749         (Makefile.am): Update stdio.h rule.
34750
34751         spawn: Avoid #define replacements in C++ mode.
34752         * lib/spawn.in.h: Include c++defs.h.
34753         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34754         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34755         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34756         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34757         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34758         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34759         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34760         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34761         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34762         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34763         In C++, define a namespaced alias symbol.
34764         * modules/spawn (Depends-on): Add c++defs.
34765         (Makefile.am): Update spawn.h rule.
34766
34767         signal: Avoid #define replacements in C++ mode.
34768         * lib/signal.in.h: Include c++defs.h.
34769         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34770         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
34771         namespaced alias symbol.
34772         * modules/signal (Depends-on): Add c++defs.
34773         (Makefile.am): Update signal.h rule.
34774
34775         search: Avoid #define replacements in C++ mode.
34776         * lib/search.in.h: Include c++defs.h.
34777         (_gl_search_compar_fn, _gl_search_action_fn): New types.
34778         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
34779         symbol.
34780         * modules/search (Depends-on): Add c++defs.
34781         (Makefile.am): Update search.h rule.
34782
34783         math: Avoid #define replacements in C++ mode.
34784         * lib/math.in.h: Include c++defs.h.
34785         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
34786         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
34787         trunc, truncl): In C++, define a namespaced alias symbol.
34788         * modules/math (Depends-on): Add c++defs.
34789         (Makefile.am): Update math.h rule.
34790
34791         locale: Avoid #define replacements in C++ mode.
34792         * lib/locale.in.h: Include c++defs.h.
34793         (duplocale): In C++, define a namespaced alias symbol.
34794         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
34795         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
34796         * modules/locale (Depends-on): Add c++defs.
34797         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
34798
34799         langinfo: Avoid #define replacements in C++ mode.
34800         * lib/langinfo.in.h: Include c++defs.h.
34801         (nl_langinfo): In C++, define a namespaced alias symbol.
34802         * modules/langinfo (Depends-on): Add c++defs.
34803         (Makefile.am): Update langinfo.h rule.
34804
34805         iconv-h: Avoid #define replacements in C++ mode.
34806         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
34807         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
34808         symbol.
34809         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
34810         whenever iconv is present.
34811         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
34812         (Makefile.am): Update iconv.h rule.
34813
34814         glob: Avoid #define replacements in C++ mode.
34815         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
34816         (_gl_glob_errfunc_fn): New type.
34817         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
34818         symbol.
34819         * modules/glob (Depends-on): Add c++defs, warn-on-use.
34820         (Makefile.am): Update glob.h rule.
34821
34822         fcntl-h: Avoid #define replacements in C++ mode.
34823         * lib/fcntl.in.h: Include c++defs.h.
34824         (fcntl, open, openat): In C++, define a namespaced alias symbol.
34825         * modules/fcntl-h (Depends-on): Add c++defs.
34826         (Makefile.am): Update fcntl.h rule.
34827
34828         dirent: Avoid #define replacements in C++ mode.
34829         * lib/dirent.in.h: Include c++defs.h.
34830         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
34831         namespaced alias symbol.
34832         (dirfd): Update declaration.
34833         * modules/dirent (Depends-on): Add c++defs.
34834         (Makefile.am): Update dirent.h rule.
34835
34836         ctype: Make it usable in C++ code.
34837         * lib/ctype.in.h: Include c++defs.h.
34838         (isblank): Declare as extern "C".
34839         * modules/ctype (Depends-on): Add c++defs.
34840         (Makefile.am): Update ctype.h rule.
34841
34842         New module 'c++defs'.
34843         * modules/c++defs: New file.
34844         * build-aux/c++defs.h: New file.
34845         Reported by John W. Eaton <jwe@gnu.org>.
34846
34847 2010-03-07  Bruno Haible  <bruno@clisp.org>
34848
34849         logb: Provide missing declaration for Cygwin.
34850         * lib/math.in.h (logb): New declaration.
34851         * m4/logb.m4: New file.
34852         * modules/logb (Files): Add m4/logb.m4.
34853         (Depends-on): Add math.
34854         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
34855         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
34856         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
34857         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
34858         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
34859
34860 2010-03-07  Bruno Haible  <bruno@clisp.org>
34861
34862         Fix test-cond link error.
34863         * tests/test-cond.c: Include <stdio.h>.
34864
34865 2010-03-07  Bruno Haible  <bruno@clisp.org>
34866
34867         Fix test-dirent-safer link error.
34868         * modules/dirent-safer-tests (Makefile.am): Define
34869         test_dirent_safer_LDADD.
34870
34871 2010-03-07  Bruno Haible  <bruno@clisp.org>
34872
34873         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
34874         among default module list.
34875
34876 2010-03-07  Bruno Haible  <bruno@clisp.org>
34877
34878         Fix link error on platforms with GNU libiconv.
34879         * modules/unistr/u8-strcoll-tests (Makefile): Define
34880         test_u8_strcoll_LDADD.
34881         * modules/unistr/u16-strcoll-tests (Makefile): Define
34882         test_u16_strcoll_LDADD.
34883         * modules/unistr/u32-strcoll-tests (Makefile): Define
34884         test_u32_strcoll_LDADD.
34885
34886 2010-03-07  Bruno Haible  <bruno@clisp.org>
34887
34888         Use POSIX declarations for socket functions.
34889         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
34890         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
34891         rpl_sendto): Change declaration to match POSIX.
34892         * lib/connect.c (rpl_connect): Likewise.
34893         * lib/accept.c (rpl_accept): Likewise.
34894         * lib/bind.c (rpl_bind): Likewise.
34895         * lib/getpeername.c (rpl_getpeername): Likewise.
34896         * lib/getsockname.c (rpl_getsockname): Likewise.
34897         * lib/recv.c (rpl_recv): Likewise.
34898         * lib/send.c (rpl_send): Likewise.
34899         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34900         * lib/sendto.c (rpl_sendto): Likewise.
34901
34902 2010-03-06  Bruno Haible  <bruno@clisp.org>
34903
34904         Clarify access, euidaccess, faccessat.
34905         * doc/posix-functions/faccessat.texi: Mention security problem under
34906         "Other problems", not "Portability problems".
34907         * doc/posix-functions/access.texi: Likewise. Mention a related security
34908         problem.
34909         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34910         * lib/euidaccess.c: Add comments about platforms.
34911         * lib/unistd.in.h (access, euidaccess): Add warnings.
34912
34913 2010-03-07  Bruno Haible  <bruno@clisp.org>
34914
34915         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34916         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34917         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34918         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34919         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34920         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
34921         declare when POSIX_SPAWN_SETSCHEDULER is zero.
34922         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
34923         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
34924         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
34925         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
34926         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
34927         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
34928         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
34929         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
34930         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
34931         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
34932         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
34933         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
34934         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
34935         Likewise.
34936         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
34937         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
34938         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
34939         Likewise.
34940         * tests/test-spawn.c (main): Make it work when
34941         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34942
34943 2010-03-07  Bruno Haible  <bruno@clisp.org>
34944
34945         Fix incorrect Makefile.am generation in German locale.
34946         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34947         Execute sed command with character range in C locale.
34948
34949 2010-03-06  Bruno Haible  <bruno@clisp.org>
34950
34951         Tests for module 'iconv-h'.
34952         * modules/iconv-h-tests: New file.
34953         * tests/test-iconv-h.c: New file.
34954
34955         New module 'iconv-h'.
34956         * modules/iconv-h: New file.
34957         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
34958         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
34959         (configure.ac): Remove gl_ICONV_H.
34960         (Makefile.am): Remove rule for iconv.h.
34961
34962 2010-03-06  Bruno Haible  <bruno@clisp.org>
34963
34964         More consistent naming of *.m4 files.
34965         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
34966         * modules/wctype (Files): Update.
34967
34968         More consistent naming of *.m4 files.
34969         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
34970         * modules/wchar (Files): Update.
34971
34972 2010-03-06  Jim Meyering  <meyering@redhat.com>
34973
34974         euidaccess: relax license to LGPLv2+
34975         * modules/euidaccess (License): Relax to LGPLv2+.
34976
34977 2010-03-06  Bruno Haible  <bruno@clisp.org>
34978
34979         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34980         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34981         (Makefile.am): Augment lib_SOURCES instead.
34982
34983 2010-03-04  Jim Meyering  <meyering@redhat.com>
34984
34985         utime: remove obsolete module
34986         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34987         unnecessary for years, and has been marked as obsolete for 10 months.
34988         * modules/utime: Remove file.
34989         * lib/utime.c: Remove file.
34990         * m4/utime.m4: Remove file.
34991         * m4/utimes-null.m4: Remove file.
34992         * doc/posix-functions/utime.texi (utime): Remove reference to
34993         the module.  Move the sole "fixed by gnulib" item into the
34994         "problems not fixed by Gnulib" list.
34995         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34996
34997 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34998
34999         * modules/exit (License): Relax license to LGPLv2+.
35000         (Status): Mark as obsolete.
35001         * NEWS: Mention deprecated 'exit' module.
35002         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35003         of now obsolete 'exit'.
35004
35005 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35006
35007         fts-lgpl: remove unused module
35008         * modules/fts-lgpl: Remove.
35009         * MODULES.html.sh (func_all_modules): Adjust.
35010         * check-module (find_included_lib_files): Adjust.
35011         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35012
35013 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35014
35015         copy-acl: enhance Solaris ACL error handling
35016         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35017         * lib/set-mode-acl.c (qset_acl): Likewise.
35018
35019 2010-03-02  Bruno Haible  <bruno@clisp.org>
35020
35021         spawn: Don't override the system defined values on FreeBSD 8.
35022         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35023         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35024         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35025         if HAVE_POSIX_SPAWN is 1.
35026         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35027
35028 2010-03-01  Bruno Haible  <bruno@clisp.org>
35029
35030         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35031         regarding Automake.
35032
35033 2010-02-25  Bruno Haible  <bruno@clisp.org>
35034
35035         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35036         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35037         setting, not afterwards.
35038         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35039
35040 2010-02-24  Eric Blake  <eblake@redhat.com>
35041
35042         bootstrap, git-version-gen: use timestamp
35043         * build-aux/git-version-gen (scriptversion): Force UTC.
35044         * build-aux/bootstrap (scriptversion): New variable.
35045
35046         bootstrap: allow older git
35047         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35048         older than 1.6.4.  Requested by the libvirt project.
35049
35050 2010-02-23  Eric Blake  <eblake@redhat.com>
35051
35052         warn-on-use: work with old autoconf
35053         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35054         AS_VAR semantics of autoconf 2.60.
35055         Reported by Bruno Haible.
35056
35057         bootstrap: improve some comments
35058         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35059         clarification comments.
35060
35061         gettimeofday: provide correct function
35062         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35063         when replacement is declared, otherwise provide gettimeofday.
35064         Reported by Michael Goffioul.
35065
35066 2010-02-23  Jim Meyering  <meyering@redhat.com>
35067
35068         lib-ignore: relax license to "unlimited", not LGPLv2+
35069         * modules/lib-ignore (License): Relax to "unlimited".
35070
35071 2010-02-23  Jim Meyering  <meyering@redhat.com>
35072
35073         lib-ignore: relax license to LGPLv2+
35074         * modules/lib-ignore (License): Relax to LGPLv2+.
35075
35076 2010-02-22  Eric Blake  <eblake@redhat.com>
35077
35078         lseek: avoid bash 3.2 broken pipe bug
35079         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35080         warning from bash 3.2.
35081         Reported by Ben Pfaff, with analysis from Bruno Haible.
35082
35083         bootstrap: support non-FSF copyright holder
35084         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35085         bootstrap.conf override of COPYRIGHT_HOLDER.
35086         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35087
35088         bootstrap: interoperate with gettext 0.14.1
35089         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35090
35091         bootstrap: allow for alternate submodule location
35092         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35093         hardcoding submodule location.
35094         (gnulib_mk): Allow direct use of Makefile.am.
35095
35096         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35097         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35098         rather than reconfiguring where the submodule points.
35099
35100         gettimeofday: restore support for platforms that lack function
35101         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35102         replacement if function is missing.
35103         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35104         * modules/sys_time (Makefile.am): Substitute it.
35105         * lib/sys_time.in.h (gettimeofday): Check it.
35106         Reported by Michael Goffioul.
35107
35108 2010-02-21  Bruno Haible  <bruno@clisp.org>
35109
35110         * lib/stdio.in.h (obstack_printf): Fix typo.
35111
35112 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35113
35114         vc-list-files: use bzr ls's -R option
35115         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35116         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35117
35118 2010-02-21  Jim Meyering  <meyering@redhat.com>
35119
35120         init.sh: fix EXEEXT shims to work also for names like test-prog
35121         * tests/init.sh: Re-exec a better shell, when needed.
35122         If the current shell lacks support for posix $(...), an init.sh-using
35123         test will now try to find a shell that supports that.  If EXEEXT is
35124         nonempty, we also require support for hyphen-in-alias-name and shell
35125         substitutions like ${var#glob}.  Failure to find such a shell results
35126         in a skipped test.
35127
35128 2010-02-21  Bruno Haible  <bruno@clisp.org>
35129
35130         Really work around around "broken pipe" error message from bash 3.2.
35131         * gnulib-tool (func_reset_sigpipe): Remove function.
35132         (echo): In bash 3.2, define to a function that uses printf.
35133         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35134
35135 2010-02-20  Bruno Haible  <bruno@clisp.org>
35136
35137         Restore support for automake 1.9.6 with autoconf 2.61.
35138         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35139         Reported by James Youngman <jay@gnu.org>.
35140
35141 2010-02-20  Bruno Haible  <bruno@clisp.org>
35142
35143         Improve *printf warning condition.
35144         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35145         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35146         and the function is overridden due to SIGPIPE emulation.
35147
35148 2010-02-20  Bruno Haible  <bruno@clisp.org>
35149
35150         * lib/stdio.in.h: Tweak comments.
35151
35152 2010-02-19  Bruno Haible  <bruno@clisp.org>
35153
35154         Make it easier to find modules. New gnulib-tool option '--find'.
35155         * gnulib-tool: New option --find.
35156         (func_usage): Document it.
35157         (func_sanitize_modulelist): New function, extracted from
35158         func_all_modules.
35159         (func_all_modules): Invoke it.
35160         * doc/gnulib-tool.texi (Which modules?): New node.
35161
35162 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35163
35164         * lib/sys_select.in.h: Provide select replacement even if
35165         sys/select.h exists on a system, for Interix.
35166
35167 2010-02-18  Jim Meyering  <meyering@redhat.com>
35168
35169         init.sh: don't use $(...) just yet
35170         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35171         to accommodate e.g., Solaris' /bin/sh.
35172
35173 2010-02-17  Bruno Haible  <bruno@clisp.org>
35174
35175         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35176         Reported by Ludovic Courtès <ludo@gnu.org>.
35177
35178 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35179
35180         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35181         linking with -lintl.
35182
35183 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35184
35185         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35186         if not provided by the system's netdb.h.  Reported by
35187         ludo@gnu.org (Ludovic Courtès).
35188
35189 2010-02-15  Jim Meyering  <meyering@redhat.com>
35190
35191         init.sh: improve portability and efficiency
35192         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35193         "dummy" in a for loop.
35194         Use '!', not '^' to select the complement of a character set used
35195         in a "case" statement.
35196         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35197         Suggestions from Eric Blake.
35198
35199         init.sh: automatically accommodate programs with the .exe suffix
35200         Automatically arrange for an invocation of "prog" to execute the
35201         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35202         may use the simpler "prog", yet still work when built on a system
35203         that requires specifying the added suffix.
35204         Do this by constructing a function named "prog" that invokes
35205         "prog.exe" for each .exe file in selected directories.
35206         * tests/init.sh (find_exe_basenames_): New function.
35207         (create_exe_shim_functions_): New function.
35208         (path_prepend_): Use it.
35209
35210         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35211         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35212         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35213
35214 2010-02-14  Jim Meyering  <meyering@redhat.com>
35215
35216         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35217         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35218         (sc_prohibit_hash_pjw_without_use): New rule.
35219
35220         maint.mk: allow the default upload destination dir to be overridden
35221         * top/maint.mk (upload_dest_dir_): Define with a default that
35222         preserves the status quo.
35223         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35224         Reported by Peter Simons.
35225
35226         maint.mk: prohibit inclusion of "hash.h" without_use
35227         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35228
35229 2010-02-10  Jim Meyering  <meyering@redhat.com>
35230
35231         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35232         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35233
35234 2010-02-09  Eric Blake  <ebb9@byu.net>
35235         and Bruno Haible  <bruno@clisp.org>
35236
35237         obstack-printf-posix: ensure declaration
35238         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35239         extracted from gl_FUNC_OBSTACK_PRINTF.
35240         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35241         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35242         Likewise.
35243         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35244         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35245         0.
35246
35247 2010-02-08  Bruno Haible  <bruno@clisp.org>
35248
35249         gnulib-tool: Fix typo in 2010-02-07 commit.
35250         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35251         Reported by Eric Blake.
35252
35253 2010-02-07  Bruno Haible  <bruno@clisp.org>
35254
35255         gnulib-tool: Fix up caching patches.
35256         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35257         option --no-cache. Use associative arrays when supported by the shell.
35258         (sed_comments): New variable.
35259         (modcache): Renamed from do_cache.
35260         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35261         abbreviate unnecessarily.
35262         (have_associative): New variable.
35263         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35264         way also for ksh and zsh.
35265         (func_init_sed_convert_to_cache_statements): New function, extracted
35266         from func_cache_lookup_module. Add support for associative arrays.
35267         Don't set the c_MODULE_cached variable here. Ignore all lines before
35268         the first field header. Remove only the final newline, not all trailing
35269         newlines. Support empty fields correctly. Limit the use of 'eval' to
35270         assignments.
35271         (func_get_description, func_get_status, func_get_notice,
35272         func_get_applicability, func_get_filelist, func_get_dependencies,
35273         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35274         func_get_automake_snippet, func_get_include_directive,
35275         func_get_link_directive, func_get_license, func_get_maintainer):
35276         Update documentation. List the unoptimized code first. Add support for
35277         associative arrays. Limit the use of 'eval' to assignments.
35278         (func_get_applicability): Undo stylistic pessimisations.
35279         (func_get_automake_snippet, func_get_include_directive): Reduce code
35280         duplication.
35281         (func_modules_transitive_closure, func_modules_add_dummy,
35282         func_modules_notice, func_modules_to_filelist, func_add_file,
35283         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35284         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35285         func_create_testdir, func_create_megatestdir): Update documentation.
35286
35287 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35288
35289         * gnulib-tool (func_cache_lookup_module): Store the module name
35290         belonging to the cache variable; error out if two different
35291         module names map to the same cache variable name.
35292
35293 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35294
35295         gnulib-tool: Make caching optional.
35296         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35297         Update matching short versions of --no-changelog.
35298         (func_usage): Update.
35299         (sed_extract_cache_prog): Renamed from ...
35300         (sed_extract_prog): ... this; revert to old extraction script.
35301         (func_get_description, func_get_status)
35302         (func_get_notice, func_get_applicability, func_get_filelist)
35303         (func_get_dependencies, func_get_autoconf_early_snippet)
35304         (func_get_autoconf_snippet, func_get_automake_snippet)
35305         (func_get_include_directive, func_get_link_directive)
35306         (func_get_license, func_get_maintainer): If $do_cache is false,
35307         use old, non-caching extraction scripts.
35308         Suggestion by Bruno Haible.
35309
35310 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35311
35312         gnulib-tool: cache module metainformation.
35313         * gnulib-tool (sed_extract_prog): Match newline before each
35314         header, and rewrite header to a shell variable suffix.
35315         (func_cache_var, func_cache_lookup_module): New functions,
35316         to turn a module name into a cache variable prefix, and to
35317         look up and cache module metainformation.
35318         (func_get_description, func_get_status)
35319         (func_get_notice, func_get_applicability, func_get_filelist)
35320         (func_get_dependencies, func_get_autoconf_early_snippet)
35321         (func_get_autoconf_snippet, func_get_automake_snippet)
35322         (func_get_include_directive, func_get_link_directive)
35323         (func_get_license, func_get_maintainer): Use
35324         func_cache_lookup_module.
35325
35326 2010-02-07  Bruno Haible  <bruno@clisp.org>
35327
35328         fnctl: Fix missing dependency.
35329         * modules/fcntl (Depends-on): Add getdtablesize.
35330         Reported by John W. Eaton <jwe@gnu.org>.
35331
35332 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35333
35334         Argp: fix recognition of short alias options.
35335
35336         * lib/argp-parse.c (convert_options): Fix improper use of
35337         `|' between character values.
35338         * tests/test-argp.c (group1_option): New alias option
35339         --read (-r).
35340         (group1_parser): Special handling for 'r'.
35341         (test15): New test case.
35342         (test_fun): Add test15.
35343         * tests/test-argp-2.sh: Update expected --help and --usage
35344         outputs.
35345
35346 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35347
35348         * tests/test-argp.c: Fix indentation.
35349
35350 2010-02-04  Eric Blake  <ebb9@byu.net>
35351
35352         gettimeofday: expose type of second argument
35353         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35354         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35355         * tests/test-gettimeofday.c: Use it to silence warning.
35356         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35357         the issue.
35358
35359 2010-02-03  Jim Meyering  <meyering@redhat.com>
35360
35361         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35362         * lib/regcomp.c (TYPE_SIGNED): Define.
35363         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35364
35365         regcomp.c: avoid a new -Wshadow warning
35366         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35367
35368 2010-02-01  Jim Meyering  <meyering@redhat.com>
35369
35370         removing useless parentheses in cpp #define directives
35371         For motivation, see commit c0221df4, "define STREQ(a,b)
35372         consistently, removing useless parentheses"
35373         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35374         * lib/mountlist.c (MNT_IGNORE): Likewise.
35375         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35376
35377 2010-02-01  Eric Blake  <ebb9@byu.net>
35378
35379         sys_time: use link-warning
35380         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35381         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35382         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35383         * modules/sys_time (Depends-on): Add warn-on-use.
35384         (Makefile.am): Always build replacement.
35385         (configure.ac): Update substitutions.
35386         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35387         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35388         bother with SYS_TIME_H.
35389         * modules/gettimeofday (configure.ac): Declare indicator.
35390         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35391         in use.
35392
35393         closein-tests: silence compiler warning
35394         * tests/test-closein.c (main): Ignore fread result.
35395         * modules/closein-tests (Depends-on): Add ignore-value.
35396
35397         tests: silence warning about system return
35398         * tests/test-areadlink-with-size.c (main): Ignore system result.
35399         * tests/test-areadlink.c (main): Likewise.
35400         * tests/test-areadlinkat-with-size.c (main): Likewise.
35401         * tests/test-areadlinkat.c (main): Likewise.
35402         * tests/test-canonicalize-lgpl.c (main): Likewise.
35403         * tests/test-canonicalize.c (main): Likewise.
35404         * tests/test-chown.c (main): Likewise.
35405         * tests/test-fchownat.c (main): Likewise.
35406         * tests/test-fdutimensat.c (main): Likewise.
35407         * tests/test-fstatat.c (main): Likewise.
35408         * tests/test-futimens.c (main): Likewise.
35409         * tests/test-lchown.c (main): Likewise.
35410         * tests/test-link.c (main): Likewise.
35411         * tests/test-linkat.c (main): Likewise.
35412         * tests/test-lstat.c (main): Likewise.
35413         * tests/test-mkdir.c (main): Likewise.
35414         * tests/test-mkdirat.c (main): Likewise.
35415         * tests/test-mkfifo.c (main): Likewise.
35416         * tests/test-mkfifoat.c (main): Likewise.
35417         * tests/test-mknod.c (main): Likewise.
35418         * tests/test-readlink.c (main): Likewise.
35419         * tests/test-remove.c (main): Likewise.
35420         * tests/test-rename.c (main): Likewise.
35421         * tests/test-renameat.c (main): Likewise.
35422         * tests/test-rmdir.c (main): Likewise.
35423         * tests/test-symlink.c (main): Likewise.
35424         * tests/test-symlinkat.c (main): Likewise.
35425         * tests/test-unlink.c (main): Likewise.
35426         * tests/test-unlinkat.c (main): Likewise.
35427         * tests/test-utimens.c (main): Likewise.
35428         * tests/test-utimensat.c (main): Likewise.
35429         * modules/areadlink-tests (Depends-on): Add ignore-value.
35430         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35431         * modules/areadlinkat-tests (Depends-on): Likewise.
35432         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35433         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35434         * modules/canonicalize-tests (Depends-on): Likewise.
35435         * modules/chown-tests (Depends-on): Likewise.
35436         * modules/fdutimensat-tests (Depends-on): Likewise.
35437         * modules/futimens-tests (Depends-on): Likewise.
35438         * modules/lchown-tests (Depends-on): Likewise.
35439         * modules/link-tests (Depends-on): Likewise.
35440         * modules/linkat-tests (Depends-on): Likewise.
35441         * modules/lstat-tests (Depends-on): Likewise.
35442         * modules/mkdir-tests (Depends-on): Likewise.
35443         * modules/mkfifo-tests (Depends-on): Likewise.
35444         * modules/mkfifoat-tests (Depends-on): Likewise.
35445         * modules/mknod-tests (Depends-on): Likewise.
35446         * modules/openat-tests (Depends-on): Likewise.
35447         * modules/readlink-tests (Depends-on): Likewise.
35448         * modules/remove-tests (Depends-on): Likewise.
35449         * modules/rename-tests (Depends-on): Likewise.
35450         * modules/renameat-tests (Depends-on): Likewise.
35451         * modules/rmdir-tests (Depends-on): Likewise.
35452         * modules/symlink-tests (Depends-on): Likewise.
35453         * modules/symlinkat-tests (Depends-on): Likewise.
35454         * modules/unlink-tests (Depends-on): Likewise.
35455         * modules/utimens-tests (Depends-on): Likewise.
35456         * modules/utimensat-tests (Depends-on): Likewise.
35457
35458 2010-01-31  Bruno Haible  <bruno@clisp.org>
35459
35460         Perform the same test for many <math.h> functions.
35461         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35462         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35463         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35464         of gl_MATHFUNC.
35465         * modules/acos (configure.ac): Likewise.
35466         * modules/asin (configure.ac): Likewise.
35467         * modules/atan (configure.ac): Likewise.
35468         * modules/atan2 (configure.ac): Likewise.
35469         * modules/cbrt (configure.ac): Likewise.
35470         * modules/copysign (configure.ac): Likewise.
35471         * modules/cos (configure.ac): Likewise.
35472         * modules/cosh (configure.ac): Likewise.
35473         * modules/erf (configure.ac): Likewise.
35474         * modules/erfc (configure.ac): Likewise.
35475         * modules/exp (configure.ac): Likewise.
35476         * modules/fmod (configure.ac): Likewise.
35477         * modules/hypot (configure.ac): Likewise.
35478         * modules/j0 (configure.ac): Likewise.
35479         * modules/j1 (configure.ac): Likewise.
35480         * modules/jn (configure.ac): Likewise.
35481         * modules/lgamma (configure.ac): Likewise.
35482         * modules/log (configure.ac): Likewise.
35483         * modules/log10 (configure.ac): Likewise.
35484         * modules/log1p (configure.ac): Likewise.
35485         * modules/pow (configure.ac): Likewise.
35486         * modules/remainder (configure.ac): Likewise.
35487         * modules/sin (configure.ac): Likewise.
35488         * modules/sinh (configure.ac): Likewise.
35489         * modules/tan (configure.ac): Likewise.
35490         * modules/tanh (configure.ac): Likewise.
35491         * modules/y0 (configure.ac): Likewise.
35492         * modules/y1 (configure.ac): Likewise.
35493         * modules/yn (configure.ac): Likewise.
35494         Suggested by Paolo Bonzini.
35495
35496 2010-01-31  Bruno Haible  <bruno@clisp.org>
35497
35498         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35499
35500 2010-01-31  Bruno Haible  <bruno@clisp.org>
35501
35502         Work around getdelim() bug on FreeBSD 8.0.
35503         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35504         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35505         not work.
35506         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
35507         is 1.
35508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
35509         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
35510         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
35511         a non-zero size.
35512         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
35513
35514 2010-01-31  Bruno Haible  <bruno@clisp.org>
35515
35516         Work around getline() bug on FreeBSD 8.0.
35517         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
35518         and a non-zero size.
35519         * tests/test-getline.c (main): Likewise.
35520         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
35521         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
35522
35523 2010-01-28  Eric Blake  <ebb9@byu.net>
35524
35525         regex: fix build failure
35526         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
35527         platforms.
35528
35529 2010-01-28  Jim Meyering  <meyering@redhat.com>
35530
35531         regex: do not ignore memory allocation failure
35532         * lib/regex_internal.c (create_cd_newstate): Detect
35533         re_node_set_init_copy failure.   Extracted from glibc commit
35534         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35535
35536         regex: sync more white-space changes from libc
35537         * lib/regex_internal.c: White-space only changes.
35538         * lib/regexec.c: Likewise.
35539
35540         regex: add many uses of __attribute_warn_unused_result__
35541         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
35542         * lib/regexec.c: Likewise.
35543         Extracted from a messy glibc commit.
35544
35545         regcomp.c: spelling and merge-artifact from glibc
35546         * lib/regcomp.c: Merge remainder of glibc's
35547         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35548
35549         regcomp.c: sync white-space changes from glibc
35550         * lib/regcomp.c: Merge to accommodate white space
35551         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
35552
35553         regcomp.c: do not ignore internal return values
35554         * lib/regcomp.c: Do not ignore internal return values.
35555         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
35556         but without its white-space changes and spelling fixes.
35557
35558         regex_internal.h: define __attribute_warn_unused_result__
35559         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
35560
35561         maint: add a syntax-check rule to check for vulnerable Makefile.in
35562         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
35563
35564 2010-01-27  Jim Meyering  <meyering@redhat.com>
35565
35566         ncftpput-ftp: clean up spaces
35567         * build-aux/ncftpput-ftp: Make Copyright line consistent.
35568         Remove trailing blanks.
35569
35570 2010-01-27  Simon Josefsson  <simon@josefsson.org>
35571
35572         * build-aux/git-version-gen: Fix copyright statement.
35573         * build-aux/gnupload: Likewise.
35574         * tests/test-arcfour.c: Likewise.
35575         * tests/test-arctwo.c: Likewise.
35576         * tests/test-count-one-bits.c: Likewise.
35577         * tests/test-crc.c: Likewise.
35578         * tests/test-des.c: Likewise.
35579         * tests/test-gc-arcfour.c: Likewise.
35580         * tests/test-gc-arctwo.c: Likewise.
35581         * tests/test-gc-des.c: Likewise.
35582         * tests/test-gc-hmac-md5.c: Likewise.
35583         * tests/test-gc-hmac-sha1.c: Likewise.
35584         * tests/test-gc-md2.c: Likewise.
35585         * tests/test-gc-md4.c: Likewise.
35586         * tests/test-gc-md5.c: Likewise.
35587         * tests/test-gc-pbkdf2-sha1.c: Likewise.
35588         * tests/test-gc-rijndael.c: Likewise.
35589         * tests/test-gc-sha1.c: Likewise.
35590         * tests/test-gc.c: Likewise.
35591         * tests/test-gethostname.c: Likewise.
35592         * tests/test-gettimeofday.c: Likewise.
35593         * tests/test-hash.c: Likewise.
35594         * tests/test-hmac-md5.c: Likewise.
35595         * tests/test-hmac-sha1.c: Likewise.
35596         * tests/test-md2.c: Likewise.
35597         * tests/test-md4.c: Likewise.
35598         * tests/test-md5.c: Likewise.
35599         * tests/test-memchr.c: Likewise.
35600         * tests/test-memchr2.c: Likewise.
35601         * tests/test-memcmp.c: Likewise.
35602         * tests/test-memmem.c: Likewise.
35603         * tests/test-memrchr.c: Likewise.
35604         * tests/test-rawmemchr.c: Likewise.
35605         * tests/test-read-file.c: Likewise.
35606         * tests/test-rijndael.c: Likewise.
35607         * tests/test-sockets.c: Likewise.
35608         * tests/test-strchrnul.c: Likewise.
35609         * tests/test-strstr.c: Likewise.
35610         * tests/test-strtod.c: Likewise.
35611         * build-aux/ncftpput-ftp: Likewise.
35612
35613 2010-01-26  Eric Blake  <ebb9@byu.net>
35614
35615         ignore-value: update recommended header name
35616         * modules/ignore-value (Include): Only use <> for headers that
35617         exist in glibc.
35618
35619 2010-01-26  Jim Meyering  <meyering@redhat.com>
35620
35621         test-userspec.c: avoid compiler warnings
35622         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
35623         and "initialization discards qualifiers..." warnings.
35624         Put the first "uid" in its own scope, and make char* members "const".
35625
35626 2010-01-25  Bruno Haible  <bruno@clisp.org>
35627
35628         gnulib-tool: Make warning diagnostics consistent.
35629         * gnulib-tool (func_warning): New function.
35630         Use it everywhere where gnulib-tool produces output to stderr and it is
35631         not a fatal error.
35632
35633 2010-01-25  Bruno Haible  <bruno@clisp.org>
35634
35635         Fix test dependencies.
35636         * modules/xstrtol-tests (Depends-on): Add inttypes.
35637         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
35638
35639 2010-01-25 Pádraig Brady <P@draigBrady.com>
35640
35641         syntax-check: detect incorrect boolean macro values in config.h
35642         * modules/maintainer-makefile (configure.ac): Parameterize the location
35643         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
35644         The logic is from Eric Blake and the location indicated by Jim Meyering.
35645         Note the more natural CONFIG_HEADER name is prohibited by automake
35646         for backwards compatibility reasons.
35647         * top/maint.mk (sc_Wundef_boolean): New rule.
35648
35649 2010-01-25  Jim Meyering  <meyering@redhat.com>
35650
35651         bootstrap: detect MacOS 10.6's shasum, too
35652         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
35653         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
35654
35655 2010-01-23  Jim Meyering  <meyering@redhat.com>
35656
35657         xstrtoll: new module
35658         * modules/xstrtoll: New file.
35659         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
35660         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
35661         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
35662         ./configure fails if you use this module and lack "long long".
35663         * modules/xstrtoll-tests: New module.
35664         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
35665         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
35666         new init.sh-based test framework.
35667
35668 2010-01-24  Bruno Haible  <bruno@clisp.org>
35669
35670         Tests for module 'yn'.
35671         * modules/yn-tests: New file.
35672         * tests/test-yn.c: New file.
35673
35674         Tests for module 'y1'.
35675         * modules/y1-tests: New file.
35676         * tests/test-y1.c: New file.
35677
35678         Tests for module 'y0'.
35679         * modules/y0-tests: New file.
35680         * tests/test-y0.c: New file.
35681
35682         Tests for module 'tanh'.
35683         * modules/tanh-tests: New file.
35684         * tests/test-tanh.c: New file.
35685
35686         Tests for module 'tan'.
35687         * modules/tan-tests: New file.
35688         * tests/test-tan.c: New file.
35689
35690         Tests for module 'sqrt'.
35691         * modules/sqrt-tests: New file.
35692         * tests/test-sqrt.c: New file.
35693
35694         Tests for module 'sinh'.
35695         * modules/sinh-tests: New file.
35696         * tests/test-sinh.c: New file.
35697
35698         Tests for module 'sin'.
35699         * modules/sin-tests: New file.
35700         * tests/test-sin.c: New file.
35701
35702         Tests for module 'rint'.
35703         * modules/rint-tests: New file.
35704         * tests/test-rint.c: New file.
35705
35706         Tests for module 'remainder'.
35707         * modules/remainder-tests: New file.
35708         * tests/test-remainder.c: New file.
35709
35710         Tests for module 'pow'.
35711         * modules/pow-tests: New file.
35712         * tests/test-pow.c: New file.
35713
35714         Tests for module 'nextafter'.
35715         * modules/nextafter-tests: New file.
35716         * tests/test-nextafter.c: New file.
35717
35718         Tests for module 'modf'.
35719         * modules/modf-tests: New file.
35720         * tests/test-modf.c: New file.
35721
35722         Tests for module 'logb'.
35723         * modules/logb-tests: New file.
35724         * tests/test-logb.c: New file.
35725
35726         Tests for module 'log1p'.
35727         * modules/log1p-tests: New file.
35728         * tests/test-log1p.c: New file.
35729
35730         Tests for module 'log10'.
35731         * modules/log10-tests: New file.
35732         * tests/test-log10.c: New file.
35733
35734         Tests for module 'log'.
35735         * modules/log-tests: New file.
35736         * tests/test-log.c: New file.
35737
35738         Tests for module 'lgamma'.
35739         * modules/lgamma-tests: New file.
35740         * tests/test-lgamma.c: New file.
35741
35742         Tests for module 'ldexp'.
35743         * modules/ldexp-tests: New file.
35744         * tests/test-ldexp.c: New file.
35745
35746         Tests for module 'jn'.
35747         * modules/jn-tests: New file.
35748         * tests/test-jn.c: New file.
35749
35750         Tests for module 'j1'.
35751         * modules/j1-tests: New file.
35752         * tests/test-j1.c: New file.
35753
35754         Tests for module 'j0'.
35755         * modules/j0-tests: New file.
35756         * tests/test-j0.c: New file.
35757
35758         Tests for module 'hypot'.
35759         * modules/hypot-tests: New file.
35760         * tests/test-hypot.c: New file.
35761
35762         Tests for module 'fmod'.
35763         * modules/fmod-tests: New file.
35764         * tests/test-fmod.c: New file.
35765
35766         Tests for module 'fabs'.
35767         * modules/fabs-tests: New file.
35768         * tests/test-fabs.c: New file.
35769
35770         Tests for module 'exp'.
35771         * modules/exp-tests: New file.
35772         * tests/test-exp.c: New file.
35773
35774         Tests for module 'erfc'.
35775         * modules/erfc-tests: New file.
35776         * tests/test-erfc.c: New file.
35777
35778         Tests for module 'erf'.
35779         * modules/erf-tests: New file.
35780         * tests/test-erf.c: New file.
35781
35782         Tests for module 'cosh'.
35783         * modules/cosh-tests: New file.
35784         * tests/test-cosh.c: New file.
35785
35786         Tests for module 'cos'.
35787         * modules/cos-tests: New file.
35788         * tests/test-cos.c: New file.
35789
35790         Tests for module 'copysign'.
35791         * modules/copysign-tests: New file.
35792         * tests/test-copysign.c: New file.
35793
35794         Tests for module 'cbrt'.
35795         * modules/cbrt-tests: New file.
35796         * tests/test-cbrt.c: New file.
35797
35798         Tests for module 'atan2'.
35799         * modules/atan2-tests: New file.
35800         * tests/test-atan2.c: New file.
35801
35802         Tests for module 'atan'.
35803         * modules/atan-tests: New file.
35804         * tests/test-atan.c: New file.
35805
35806         Tests for module 'asin'.
35807         * modules/asin-tests: New file.
35808         * tests/test-asin.c: New file.
35809
35810         Tests for module 'acos'.
35811         * modules/acos-tests: New file.
35812         * tests/test-acos.c: New file.
35813
35814 2010-01-24  Bruno Haible  <bruno@clisp.org>
35815
35816         Fix tests for common <math.h> functions.
35817         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
35818         code snippet that references the function pointer, rather than merely
35819         calling the function. Substitute the FUNC_LIBM variable.
35820         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
35821         * modules/acos (configure.ac): Likewise.
35822         * modules/asin (configure.ac): Likewise.
35823         * modules/atan (configure.ac): Likewise.
35824         * modules/atan2 (configure.ac): Likewise.
35825         * modules/cbrt (configure.ac): Likewise.
35826         * modules/copysign (configure.ac): Likewise.
35827         * modules/cos (configure.ac): Likewise.
35828         * modules/cosh (configure.ac): Likewise.
35829         * modules/erf (configure.ac): Likewise.
35830         * modules/erfc (configure.ac): Likewise.
35831         * modules/exp (configure.ac): Likewise.
35832         * modules/fabs (configure.ac): Likewise.
35833         * modules/fmod (configure.ac): Likewise.
35834         * modules/hypot (configure.ac): Likewise.
35835         * modules/j0 (configure.ac): Likewise.
35836         * modules/j1 (configure.ac): Likewise.
35837         * modules/jn (configure.ac): Likewise.
35838         * modules/ldexp (configure.ac): Likewise.
35839         * modules/lgamma (configure.ac): Likewise.
35840         * modules/log (configure.ac): Likewise.
35841         * modules/log10 (configure.ac): Likewise.
35842         * modules/log1p (configure.ac): Likewise.
35843         * modules/logb (configure.ac): Likewise.
35844         * modules/modf (configure.ac): Likewise.
35845         * modules/nextafter (configure.ac): Likewise.
35846         * modules/pow (configure.ac): Likewise.
35847         * modules/remainder (configure.ac): Likewise.
35848         * modules/rint (configure.ac): Likewise.
35849         * modules/sin (configure.ac): Likewise.
35850         * modules/sinh (configure.ac): Likewise.
35851         * modules/tan (configure.ac): Likewise.
35852         * modules/tanh (configure.ac): Likewise.
35853         * modules/y0 (configure.ac): Likewise.
35854         * modules/y1 (configure.ac): Likewise.
35855         * modules/yn (configure.ac): Likewise.
35856
35857 2010-01-24  Bruno Haible  <bruno@clisp.org>
35858
35859         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
35860         * tests/test-acosl.c (x): New variable.
35861         (main): Store argument in x and fetch it from x.
35862         * tests/test-asinl.c (x): New variable.
35863         (main): Store argument in x and fetch it from x.
35864         * tests/test-atanl.c (x): New variable.
35865         (main): Store argument in x and fetch it from x.
35866         * tests/test-cosl.c (x): New variable.
35867         (main): Store argument in x and fetch it from x.
35868         * tests/test-expl.c (x): New variable.
35869         (main): Store argument in x and fetch it from x.
35870         * tests/test-logl.c (x): New variable.
35871         (main): Store argument in x and fetch it from x.
35872         * tests/test-sinl.c (x): New variable.
35873         (main): Store argument in x and fetch it from x.
35874         * tests/test-sqrtl.c (x): New variable.
35875         (main): Store argument in x and fetch it from x.
35876         * tests/test-tanl.c (x): New variable.
35877         (main): Store argument in x and fetch it from x.
35878
35879 2010-01-24  Bruno Haible  <bruno@clisp.org>
35880
35881         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
35882         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
35883         assignments to the initial TESTS_ENVIRONMENT.
35884         * doc/gnulib.texi (Unit test modules): Document it.
35885         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
35886         TESTS_ENVIRONMENT.
35887         * modules/btowc-tests (Makefile.am): Likewise.
35888         * modules/c-stack-tests (Makefile.am): Likewise.
35889         * modules/c-strcase-tests (Makefile.am): Likewise.
35890         * modules/copy-file-tests (Makefile.am): Likewise.
35891         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
35892         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
35893         * modules/mbrtowc-tests (Makefile.am): Likewise.
35894         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35895         * modules/mbscasestr-tests (Makefile.am): Likewise.
35896         * modules/mbschr-tests (Makefile.am): Likewise.
35897         * modules/mbscspn-tests (Makefile.am): Likewise.
35898         * modules/mbsinit-tests (Makefile.am): Likewise.
35899         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35900         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35901         * modules/mbspbrk-tests (Makefile.am): Likewise.
35902         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35903         * modules/mbsrchr-tests (Makefile.am): Likewise.
35904         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35905         * modules/mbsspn-tests (Makefile.am): Likewise.
35906         * modules/mbsstr-tests (Makefile.am): Likewise.
35907         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35908         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35909         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35910         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35911         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35912         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35913         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35914         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35915         * modules/wcrtomb-tests (Makefile.am): Likewise.
35916         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35917         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35918         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35919         assignments from TESTS_ENVIRONMENT.
35920         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
35921         augmentation.
35922         * modules/argp-version-etc-tests (Makefile.am): Likewise.
35923         * modules/atexit-tests (Makefile.am): Likewise.
35924         * modules/binary-io-tests (Makefile.am): Likewise.
35925         * modules/closein-tests (Makefile.am): Likewise.
35926         * modules/dprintf-posix-tests (Makefile.am): Likewise.
35927         * modules/exclude-tests (Makefile.am): Likewise.
35928         * modules/fflush-tests (Makefile.am): Likewise.
35929         * modules/fpending-tests (Makefile.am): Likewise.
35930         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35931         * modules/freadahead-tests (Makefile.am): Likewise.
35932         * modules/freadptr-tests (Makefile.am): Likewise.
35933         * modules/freadseek-tests (Makefile.am): Likewise.
35934         * modules/fseek-tests (Makefile.am): Likewise.
35935         * modules/fseeko-tests (Makefile.am): Likewise.
35936         * modules/ftell-tests (Makefile.am): Likewise.
35937         * modules/ftello-tests (Makefile.am): Likewise.
35938         * modules/idpriv-drop-tests (Makefile.am): Likewise.
35939         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
35940         * modules/lseek-tests (Makefile.am): Likewise.
35941         * modules/parse-duration-tests (Makefile.am): Likewise.
35942         * modules/perror-tests (Makefile.am): Likewise.
35943         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
35944         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
35945         * modules/pipe-tests (Makefile.am): Likewise.
35946         * modules/pread-tests (Makefile.am): Likewise.
35947         * modules/printf-posix-tests (Makefile.am): Likewise.
35948         * modules/select-tests (Makefile.am): Likewise.
35949         * modules/sigpipe-tests (Makefile.am): Likewise.
35950         * modules/tsearch-tests (Makefile.am): Likewise.
35951         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
35952         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
35953         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35954         * modules/uniwidth/width-tests (Makefile.am): Likewise.
35955         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
35956         * modules/version-etc-tests (Makefile.am): Likewise.
35957         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35958         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35959         * modules/xalloc-die-tests (Makefile.am): Likewise.
35960         * modules/xprintf-posix-tests (Makefile.am): Likewise.
35961         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35962         * modules/xstrtol-tests (Makefile.am): Likewise.
35963         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35964         * modules/yesno-tests (Makefile.am): Likewise.
35965         Suggested by Jim Meyering.
35966
35967 2010-01-24  Bruno Haible  <bruno@clisp.org>
35968
35969         More documentation.
35970         * doc/gnulib.texi (Writing modules): New chapter.
35971         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
35972         the new chapter.
35973
35974 2010-01-24  Jim Meyering  <meyering@redhat.com>
35975
35976         maint.mk: do not prepend "./" after filtering
35977         * top/maint.mk (_prepend_srcdir_prefix): New variable
35978         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35979         "./" when $(srcdir) is ".".
35980
35981         define STREQ(a,b) consistently, removing useless parentheses
35982         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35983         since the only risk is that "a" or "b" contains an unparenthesized
35984         comma, but if either did that, STREQ would have 3 or more arguments.
35985         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35986         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35987         * lib/hash-triple.c (STREQ): Likewise.
35988         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35989         * lib/getugroups.c (STREQ): Likewise.
35990
35991 2010-01-23  Jim Meyering  <meyering@redhat.com>
35992
35993         maint.mk: fix syntax-check in a non-srcdir build directory
35994         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35995         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35996
35997 2010-01-22  Jim Meyering  <meyering@redhat.com>
35998
35999         userspec: add unit tests
36000         * tests/test-userspec.c: New file.
36001         * modules/userspec-tests: Likewise.
36002
36003 2010-01-21  Jim Meyering  <meyering@redhat.com>
36004
36005         maint.mk: handle source file names containing "." robustly
36006         * top/maint.mk (_dot_escaped_srcdir): Define.
36007         (VC_LIST): Use it in LHS of sed substitution.
36008
36009 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36010
36011         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36012         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36013         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36014         from a non-srcdir build.
36015
36016 2010-01-20  Eric Blake  <ebb9@byu.net>
36017
36018         warn-on-use: use instead of link-warning
36019         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36020         * modules/unistd (Depends-on, Makefile.am): Likewise.
36021         * modules/arpa_inet (Depends-on): Replace link-warning with
36022         warn-on-use.
36023         (Makefile.am): Update rules accordingly.
36024         * modules/ctype (Depends-on, Makefile.am): Likewise.
36025         * modules/dirent (Depends-on, Makefile.am): Likewise.
36026         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36027         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36028         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36029         * modules/locale (Depends-on, Makefile.am): Likewise.
36030         * modules/math (Depends-on, Makefile.am): Likewise.
36031         * modules/search (Depends-on, Makefile.am): Likewise.
36032         * modules/signal (Depends-on, Makefile.am): Likewise.
36033         * modules/spawn (Depends-on, Makefile.am): Likewise.
36034         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36035         * modules/string (Depends-on, Makefile.am): Likewise.
36036         * modules/strings (Depends-on, Makefile.am): Likewise.
36037         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36038         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36039         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36040         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36041         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36042         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36043         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36044         * modules/wchar (Depends-on, Makefile.am): Likewise.
36045         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36046         should be poisoned.
36047         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36048         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36049         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36050         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36051         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36052         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36053         * m4/math_h.m4 (gl_MATH_H): Likewise.
36054         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36055         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36056         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36057         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36058         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36059         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36060         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36061         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36062         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36063         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36064         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36065         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36066         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36067         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36068         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36069         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36070         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36071         GL_LINK_WARNING.
36072         * lib/ctype.in.h: Likewise.
36073         * lib/dirent.in.h: Likewise.
36074         * lib/fcntl.in.h: Likewise.
36075         * lib/inttypes.in.h: Likewise.
36076         * lib/langinfo.in.h: Likewise.
36077         * lib/locale.in.h: Likewise.
36078         * lib/math.in.h: Likewise.
36079         * lib/search.in.h: Likewise.
36080         * lib/signal.in.h: Likewise.
36081         * lib/spawn.in.h: Likewise.
36082         * lib/stdio.in.h: Likewise.
36083         * lib/stdlib.in.h: Likewise.
36084         * lib/string.in.h: Likewise.
36085         * lib/strings.in.h: Likewise.
36086         * lib/sys_file.in.h: Likewise.
36087         * lib/sys_ioctl.in.h: Likewise.
36088         * lib/sys_select.in.h: Likewise.
36089         * lib/sys_socket.in.h: Likewise.
36090         * lib/sys_stat.in.h: Likewise.
36091         * lib/sys_times.in.h: Likewise.
36092         * lib/sys_utsname.in.h: Likewise.
36093         * lib/unistd.in.h: Likewise.
36094         * lib/wchar.in.h: Likewise.
36095
36096 2010-01-20  Bruno Haible  <bruno@clisp.org>
36097
36098         Avoid duplicate -lm.
36099         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36100         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36101         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36102         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36103         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36104         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36105         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36106         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36107         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36108         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36109         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36110         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36111         Reported by Paolo Bonzini.
36112
36113 2010-01-19  Bruno Haible  <bruno@clisp.org>
36114
36115         langinfo, nl_langinfo: Relicense under LGPLv2+.
36116         * modules/langinfo (License): Change to LGPLv2+.
36117         * modules/nl_langinfo (License): Likewise.
36118         Patch by David Lutterkort <lutter@redhat.com>.
36119
36120 2010-01-19  Bruno Haible  <bruno@clisp.org>
36121
36122         Avoid compilation error with cc on OSF/1 5.1.
36123         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36124         statement, not before.
36125         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36126
36127 2010-01-18  Bruno Haible  <bruno@clisp.org>
36128
36129         Avoid a link error due to the __printf__ symbol.
36130         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36131         and 2.6.x.
36132         (__format__, __printf__): Remove definitions.
36133         * lib/argp-fmtstream.h: Likewise.
36134         * lib/argp.h: Likewise.
36135         * lib/error.h: Likewise.
36136         * lib/vasnprintf.h: Likewise.
36137         * lib/xprintf.h: Likewise.
36138         * lib/xvasprintf.h: Likewise.
36139         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36140
36141 2010-01-18  Bruno Haible  <bruno@clisp.org>
36142
36143         Tests for module 'tanl'.
36144         * modules/tanl-tests: New file.
36145         * tests/test-tanl.c: New file.
36146
36147         Tests for module 'sqrtl'.
36148         * modules/sqrtl-tests: New file.
36149         * tests/test-sqrtl.c: New file.
36150
36151         Tests for module 'sinl'.
36152         * modules/sinl-tests: New file.
36153         * tests/test-sinl.c: New file.
36154
36155         Tests for module 'logl'.
36156         * modules/logl-tests: New file.
36157         * tests/test-logl.c: New file.
36158
36159         Tests for module 'expl'.
36160         * modules/expl-tests: New file.
36161         * tests/test-expl.c: New file.
36162
36163         Tests for module 'cosl'.
36164         * modules/cosl-tests: New file.
36165         * tests/test-cosl.c: New file.
36166
36167         Tests for module 'atanl'.
36168         * modules/atanl-tests: New file.
36169         * tests/test-atanl.c: New file.
36170
36171         Tests for module 'asinl'.
36172         * modules/asinl-tests: New file.
36173         * tests/test-asinl.c: New file.
36174
36175         Tests for module 'acosl'.
36176         * modules/acosl-tests: New file.
36177         * tests/test-acosl.c: New file.
36178
36179         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36180         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36181         tanl): Use the standard gnulib idiom.
36182         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36183         * lib/sinl.c: Likewise.
36184         * lib/tanl.c: Don't include trigl.c.
36185         (kernel_tanl): Make static.
36186         * lib/sincosl.c: Include trigl.h first.
36187         * lib/trigl.c: Likewise.
36188         * m4/acosl.m4: New file.
36189         * m4/asinl.m4: New file.
36190         * m4/atanl.m4: New file.
36191         * m4/cosl.m4: New file.
36192         * m4/expl.m4: New file.
36193         * m4/logl.m4: New file.
36194         * m4/sinl.m4: New file.
36195         * m4/sqrtl.m4: New file.
36196         * m4/tanl.m4: New file.
36197         * m4/mathl.m4: Remove file.
36198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36199         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36200         Don't initialize GNULIB_MATHL.
36201         * modules/acosl: New file.
36202         * modules/asinl: New file.
36203         * modules/atanl: New file.
36204         * modules/cosl: New file.
36205         * modules/expl: New file.
36206         * modules/logl: New file.
36207         * modules/sinl: New file.
36208         * modules/sqrtl: New file.
36209         * modules/tanl: New file.
36210         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36211         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36212         substitute GNULIB_MATHL.
36213         * modules/mathl: Rewritten.
36214         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36215         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36216         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36217         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36218         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36219         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36220         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36221         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36222         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36223
36224 2010-01-18  Bruno Haible  <bruno@clisp.org>
36225
36226         sqrt: Make gl_FUNC_SQRT requirable.
36227         * m4/sqrt.m4: New file.
36228         * modules/sqrt (Files): Add it.
36229         (configure.ac): Invoke gl_FUNC_SQRT.
36230
36231 2010-01-18  Bruno Haible  <bruno@clisp.org>
36232
36233         New modules for common <math.h> functions.
36234         * m4/mathfunc.m4: New file.
36235         * modules/acos: New file.
36236         * modules/asin: New file.
36237         * modules/atan: New file.
36238         * modules/atan2: New file.
36239         * modules/cbrt: New file.
36240         * modules/copysign: New file.
36241         * modules/cos: New file.
36242         * modules/cosh: New file.
36243         * modules/erf: New file.
36244         * modules/erfc: New file.
36245         * modules/exp: New file.
36246         * modules/fabs: New file.
36247         * modules/fmod: New file.
36248         * modules/hypot: New file.
36249         * modules/j0: New file.
36250         * modules/j1: New file.
36251         * modules/jn: New file.
36252         * modules/ldexp: New file.
36253         * modules/lgamma: New file.
36254         * modules/log: New file.
36255         * modules/log10: New file.
36256         * modules/log1p: New file.
36257         * modules/logb: New file.
36258         * modules/modf: New file.
36259         * modules/nextafter: New file.
36260         * modules/pow: New file.
36261         * modules/remainder: New file.
36262         * modules/rint: New file.
36263         * modules/sin: New file.
36264         * modules/sinh: New file.
36265         * modules/sqrt: New file.
36266         * modules/tan: New file.
36267         * modules/tanh: New file.
36268         * modules/y0: New file.
36269         * modules/y1: New file.
36270         * modules/yn: New file.
36271         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36272         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36273         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36274         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36275         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36276         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36277         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36278         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36279         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36280         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36281         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36282         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36283         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36284         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36285         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36286         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36287         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36288         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36289         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36290         * doc/posix-functions/log.texi: Mention the 'log' module.
36291         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36292         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36293         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36294         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36295         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36296         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36297         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36298         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36299         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36300         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36301         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36302         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36303         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36304         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36305         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36306         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36307
36308 2010-01-18  Jim Meyering  <meyering@redhat.com>
36309
36310         ignore-value: relax license to LGPLv2+
36311         * modules/ignore-value (License): Relax to LGPLv2+.
36312
36313         getdate: don't leak when TZ contains two or more '"'s
36314         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36315         double quote in TZ after the first one.
36316
36317         readtokens: do not leak internal token_lengths buffer
36318         * lib/readtokens.c (readtokens): Free the local, lengths,
36319         when the supplied "token_lengths" parameter is NULL.
36320
36321 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36322
36323         Fix a couple of missing LIBTHREAD link failures on AIX.
36324         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36325         $(LIBTHREAD).
36326         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36327
36328         Link test-poll against INET_PTON_LIB.
36329         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36330         for inet_pton on Solaris 10.
36331
36332 2010-01-17  Bruno Haible  <bruno@clisp.org>
36333
36334         unistdio/*-sprintf: Fix typo in module description.
36335         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36336         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36337         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36338         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36339         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36340         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36341         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36342         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36343
36344 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36345
36346         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36347         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36348         variables in shell case patterns, for AIX and HP-UX ksh.
36349
36350         Split large sed scripts, for HP-UX sed.
36351         * modules/stdio: Split sed scripts around 50 sed commands,
36352         to avoid HP-UX limit of 99 commands, in the near future.
36353         * modules/string: Likewise.
36354         * modules/unistd: Likewise.
36355
36356         gnulib-tool: avoid writing in the current directory.
36357         * gnulib-tool (func_emit_lib_Makefile_am)
36358         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36359         not in the current directory, so concurrent gnulib-tool
36360         instances do not interfere.
36361
36362 2010-01-16  Jim Meyering  <meyering@redhat.com>
36363
36364         doc: update users.txt
36365         * users.txt: Add grep.
36366         (diffutils, gzip): Update URLs.
36367
36368 2010-01-12  Bruno Haible  <bruno@clisp.org>
36369
36370         posix_spawn: Avoid test failure on Cygwin.
36371         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36372         characters.
36373         Reported by Simon Josefsson.
36374
36375 2010-01-12  Bruno Haible  <bruno@clisp.org>
36376
36377         * tests/test-cond.c (main): When skipping the test, show the reason.
36378
36379 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36380
36381         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36382
36383 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36384
36385         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36386         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36387
36388 2010-01-12  Eric Blake  <ebb9@byu.net>
36389
36390         build: guarantee AS_VAR_IF
36391         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36392         (gl_AS_VAR_IF): Move...
36393         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36394         Reported by Simon Josefsson.
36395
36396 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36397
36398         * lib/stdio.in.h: Fix typo.
36399
36400 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36401
36402         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36403         libgpg-error.
36404
36405 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36406
36407         * tests/test-xalloc-die.sh: Use $EXEEXT.
36408
36409 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36410             Bruno Haible  <bruno@clisp.org>
36411
36412         getlogin, getlogin_r: Avoid test failure.
36413         * tests/test-getlogin.c: Include <stdio.h>.
36414         (main): Skip the test when the function fails because stdin is not a
36415         tty.
36416         * tests/test-getlogin_r.c: Include <stdio.h>.
36417         (main): Skip the test when the function fails because stdin is not a
36418         tty.
36419
36420 2010-01-11  Eric Blake  <ebb9@byu.net>
36421
36422         tests: avoid more large file warnings
36423         * tests/test-fflush.c: Avoid warning about ftell use.
36424         * tests/test-fseek.c: Avoid warning about fseek use.
36425
36426 2010-01-10  Bruno Haible  <bruno@clisp.org>
36427
36428         nproc: Work better on Linux when /proc and /sys are not mounted.
36429         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36430         as lower bound when, on glibc/Linux systems,
36431         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36432         Suggested by Pádraig Brady <P@draigbrady.com>.
36433         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36434
36435         nproc: Refactor.
36436         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36437         extracted from num_processors.
36438         (num_processors): Call it.
36439
36440 2010-01-11  Jim Meyering  <meyering@redhat.com>
36441
36442         utimecmp: avoid new warning from upcoming gcc-4.5.0
36443         * lib/utimecmp.c (BILLION): Define using #define rather than an
36444         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36445
36446 2010-01-11  Eric Blake  <ebb9@byu.net>
36447
36448         math: add portability warnings for classification macros
36449         * modules/math (Depends-on): Add warn-on-use.
36450         (Makefile.am): Provide new substitutions.
36451         * m4/math_h.m4 (gl_MATH_H): Require inline.
36452         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36453         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36454         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36455         implement warnings.
36456
36457         unistd: warn on use of environ without module
36458         * modules/unistd (Depends-on): Add warn-on-use.
36459         (Makefile.am): Provide new substitutions.
36460         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36461         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36462
36463         stdio: warn on suspicious uses
36464         * modules/stdio (Depends-on): Add warn-on-use.
36465         (Makefile.am): Provide new substitutions.
36466         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36467         fseeko.
36468         * lib/stdio.in.h (gets): Always warn on use.
36469         (fseek, ftell): Adjust when warnings are issued, and honor
36470         _GL_NO_LARGE_FILES as a way to silence the warning.
36471         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36472         any warning about large file offsets.
36473         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36474         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36475         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36476         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36477         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36478         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36479         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36480         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36481
36482         warn-on-use: new module
36483         * modules/warn-on-use: New file.
36484         * build-aux/warn-on-use.h: Likewise.
36485         * m4/warn-on-use.m4: Likewise.
36486         * MODULES.html.sh (Support for building): Mention it.
36487
36488 2010-01-10  Bruno Haible  <bruno@clisp.org>
36489
36490         Tests for module 'unistr/u32-strdup'.
36491         * modules/unistr/u32-strdup-tests: New file.
36492         * tests/unistr/test-u32-strdup.c: New file.
36493
36494         Tests for module 'unistr/u16-strdup'.
36495         * modules/unistr/u16-strdup-tests: New file.
36496         * tests/unistr/test-u16-strdup.c: New file.
36497
36498         Tests for module 'unistr/u8-strdup'.
36499         * modules/unistr/u8-strdup-tests: New file.
36500         * tests/unistr/test-u8-strdup.c: New file.
36501         * tests/unistr/test-strdup.h: New file.
36502
36503         Tests for module 'unistr/u32-strncmp'.
36504         * modules/unistr/u32-strncmp-tests: New file.
36505         * tests/unistr/test-u32-strncmp.c: New file.
36506
36507         Tests for module 'unistr/u16-strncmp'.
36508         * modules/unistr/u16-strncmp-tests: New file.
36509         * tests/unistr/test-u16-strncmp.c: New file.
36510
36511         Tests for module 'unistr/u8-strncmp'.
36512         * modules/unistr/u8-strncmp-tests: New file.
36513         * tests/unistr/test-u8-strncmp.c: New file.
36514         * tests/unistr/test-strncmp.h: New file.
36515
36516         Tests for module 'unistr/u32-strcoll'.
36517         * modules/unistr/u32-strcoll-tests: New file.
36518         * tests/unistr/test-u32-strcoll.c: New file.
36519
36520         Tests for module 'unistr/u16-strcoll'.
36521         * modules/unistr/u16-strcoll-tests: New file.
36522         * tests/unistr/test-u16-strcoll.c: New file.
36523
36524         Tests for module 'unistr/u8-strcoll'.
36525         * modules/unistr/u8-strcoll-tests: New file.
36526         * tests/unistr/test-u8-strcoll.c: New file.
36527
36528         Tests for module 'unistr/u32-strcmp'.
36529         * modules/unistr/u32-strcmp-tests: New file.
36530         * tests/unistr/test-u32-strcmp.c: New file.
36531         * tests/unistr/test-u32-strcmp.h: New file.
36532
36533         Tests for module 'unistr/u16-strcmp'.
36534         * modules/unistr/u16-strcmp-tests: New file.
36535         * tests/unistr/test-u16-strcmp.c: New file.
36536         * tests/unistr/test-u16-strcmp.h: New file.
36537
36538         Tests for module 'unistr/u8-strcmp'.
36539         * modules/unistr/u8-strcmp-tests: New file.
36540         * tests/unistr/test-u8-strcmp.c: New file.
36541         * tests/unistr/test-u8-strcmp.h: New file.
36542         * tests/unistr/test-strcmp.h: New file.
36543
36544         Tests for module 'unistr/u32-strncat'.
36545         * modules/unistr/u32-strncat-tests: New file.
36546         * tests/unistr/test-u32-strncat.c: New file.
36547
36548         Tests for module 'unistr/u16-strncat'.
36549         * modules/unistr/u16-strncat-tests: New file.
36550         * tests/unistr/test-u16-strncat.c: New file.
36551
36552         Tests for module 'unistr/u8-strncat'.
36553         * modules/unistr/u8-strncat-tests: New file.
36554         * tests/unistr/test-u8-strncat.c: New file.
36555         * tests/unistr/test-strncat.h: New file.
36556
36557         Tests for module 'unistr/u32-strcat'.
36558         * modules/unistr/u32-strcat-tests: New file.
36559         * tests/unistr/test-u32-strcat.c: New file.
36560
36561         Tests for module 'unistr/u16-strcat'.
36562         * modules/unistr/u16-strcat-tests: New file.
36563         * tests/unistr/test-u16-strcat.c: New file.
36564
36565         Tests for module 'unistr/u8-strcat'.
36566         * modules/unistr/u8-strcat-tests: New file.
36567         * tests/unistr/test-u8-strcat.c: New file.
36568         * tests/unistr/test-strcat.h: New file.
36569
36570         Tests for module 'unistr/u32-stpncpy'.
36571         * modules/unistr/u32-stpncpy-tests: New file.
36572         * tests/unistr/test-u32-stpncpy.c: New file.
36573
36574         Tests for module 'unistr/u16-stpncpy'.
36575         * modules/unistr/u16-stpncpy-tests: New file.
36576         * tests/unistr/test-u16-stpncpy.c: New file.
36577
36578         Tests for module 'unistr/u8-stpncpy'.
36579         * modules/unistr/u8-stpncpy-tests: New file.
36580         * tests/unistr/test-u8-stpncpy.c: New file.
36581         * tests/unistr/test-stpncpy.h: New file.
36582
36583         Tests for module 'unistr/u32-strncpy'.
36584         * modules/unistr/u32-strncpy-tests: New file.
36585         * tests/unistr/test-u32-strncpy.c: New file.
36586
36587         Tests for module 'unistr/u16-strncpy'.
36588         * modules/unistr/u16-strncpy-tests: New file.
36589         * tests/unistr/test-u16-strncpy.c: New file.
36590
36591         Tests for module 'unistr/u8-strncpy'.
36592         * modules/unistr/u8-strncpy-tests: New file.
36593         * tests/unistr/test-u8-strncpy.c: New file.
36594         * tests/unistr/test-strncpy.h: New file.
36595
36596         Tests for module 'unistr/u32-stpcpy'.
36597         * modules/unistr/u32-stpcpy-tests: New file.
36598         * tests/unistr/test-u32-stpcpy.c: New file.
36599
36600         Tests for module 'unistr/u16-stpcpy'.
36601         * modules/unistr/u16-stpcpy-tests: New file.
36602         * tests/unistr/test-u16-stpcpy.c: New file.
36603
36604         Tests for module 'unistr/u8-stpcpy'.
36605         * modules/unistr/u8-stpcpy-tests: New file.
36606         * tests/unistr/test-u8-stpcpy.c: New file.
36607         * tests/unistr/test-stpcpy.h: New file.
36608
36609         Tests for module 'unistr/u32-strcpy'.
36610         * modules/unistr/u32-strcpy-tests: New file.
36611         * tests/unistr/test-u32-strcpy.c: New file.
36612
36613         Tests for module 'unistr/u16-strcpy'.
36614         * modules/unistr/u16-strcpy-tests: New file.
36615         * tests/unistr/test-u16-strcpy.c: New file.
36616
36617         Tests for module 'unistr/u8-strcpy'.
36618         * modules/unistr/u8-strcpy-tests: New file.
36619         * tests/unistr/test-u8-strcpy.c: New file.
36620         * tests/unistr/test-strcpy.h: New file.
36621
36622         Tests for module 'unistr/u32-strnlen'.
36623         * modules/unistr/u32-strnlen-tests: New file.
36624         * tests/unistr/test-u32-strnlen.c: New file.
36625
36626         Tests for module 'unistr/u16-strnlen'.
36627         * modules/unistr/u16-strnlen-tests: New file.
36628         * tests/unistr/test-u16-strnlen.c: New file.
36629
36630         Tests for module 'unistr/u8-strnlen'.
36631         * modules/unistr/u8-strnlen-tests: New file.
36632         * tests/unistr/test-u8-strnlen.c: New file.
36633         * tests/unistr/test-strnlen.h: New file.
36634
36635         Tests for module 'unistr/u32-strlen'.
36636         * modules/unistr/u32-strlen-tests: New file.
36637         * tests/unistr/test-u32-strlen.c: New file.
36638
36639         Tests for module 'unistr/u16-strlen'.
36640         * modules/unistr/u16-strlen-tests: New file.
36641         * tests/unistr/test-u16-strlen.c: New file.
36642
36643         Tests for module 'unistr/u8-strlen'.
36644         * modules/unistr/u8-strlen-tests: New file.
36645         * tests/unistr/test-u8-strlen.c: New file.
36646
36647         Tests for module 'unistr/u32-prev'.
36648         * modules/unistr/u32-prev-tests: New file.
36649         * tests/unistr/test-u32-prev.c: New file.
36650
36651         Tests for module 'unistr/u16-prev'.
36652         * modules/unistr/u16-prev-tests: New file.
36653         * tests/unistr/test-u16-prev.c: New file.
36654
36655         Tests for module 'unistr/u8-prev'.
36656         * modules/unistr/u8-prev-tests: New file.
36657         * tests/unistr/test-u8-prev.c: New file.
36658
36659         Tests for module 'unistr/u32-next'.
36660         * modules/unistr/u32-next-tests: New file.
36661         * tests/unistr/test-u32-next.c: New file.
36662
36663         Tests for module 'unistr/u16-next'.
36664         * modules/unistr/u16-next-tests: New file.
36665         * tests/unistr/test-u16-next.c: New file.
36666
36667         Tests for module 'unistr/u8-next'.
36668         * modules/unistr/u8-next-tests: New file.
36669         * tests/unistr/test-u8-next.c: New file.
36670
36671         Tests for module 'unistr/u32-strmbtouc'.
36672         * modules/unistr/u32-strmbtouc-tests: New file.
36673         * tests/unistr/test-u32-strmbtouc.c: New file.
36674
36675         Tests for module 'unistr/u16-strmbtouc'.
36676         * modules/unistr/u16-strmbtouc-tests: New file.
36677         * tests/unistr/test-u16-strmbtouc.c: New file.
36678
36679         Tests for module 'unistr/u8-strmbtouc'.
36680         * modules/unistr/u8-strmbtouc-tests: New file.
36681         * tests/unistr/test-u8-strmbtouc.c: New file.
36682
36683         Tests for module 'unistr/u32-strmblen'.
36684         * modules/unistr/u32-strmblen-tests: New file.
36685         * tests/unistr/test-u32-strmblen.c: New file.
36686
36687         Tests for module 'unistr/u16-strmblen'.
36688         * modules/unistr/u16-strmblen-tests: New file.
36689         * tests/unistr/test-u16-strmblen.c: New file.
36690
36691         Tests for module 'unistr/u8-strmblen'.
36692         * modules/unistr/u8-strmblen-tests: New file.
36693         * tests/unistr/test-u8-strmblen.c: New file.
36694
36695         Tests for module 'unistr/u32-cpy-alloc'.
36696         * modules/unistr/u32-cpy-alloc-tests: New file.
36697         * tests/unistr/test-u32-cpy-alloc.c: New file.
36698
36699         Tests for module 'unistr/u16-cpy-alloc'.
36700         * modules/unistr/u16-cpy-alloc-tests: New file.
36701         * tests/unistr/test-u16-cpy-alloc.c: New file.
36702
36703         Tests for module 'unistr/u8-cpy-alloc'.
36704         * modules/unistr/u8-cpy-alloc-tests: New file.
36705         * tests/unistr/test-u8-cpy-alloc.c: New file.
36706         * tests/unistr/test-cpy-alloc.h: New file.
36707
36708         Tests for module 'unistr/u32-mbsnlen'.
36709         * modules/unistr/u32-mbsnlen-tests: New file.
36710         * tests/unistr/test-u32-mbsnlen.c: New file.
36711
36712         Tests for module 'unistr/u16-mbsnlen'.
36713         * modules/unistr/u16-mbsnlen-tests: New file.
36714         * tests/unistr/test-u16-mbsnlen.c: New file.
36715
36716         Tests for module 'unistr/u8-mbsnlen'.
36717         * modules/unistr/u8-mbsnlen-tests: New file.
36718         * tests/unistr/test-u8-mbsnlen.c: New file.
36719
36720         Tests for module 'unistr/u32-chr'.
36721         * modules/unistr/u32-chr-tests: New file.
36722         * tests/unistr/test-u32-chr.c: New file.
36723
36724         Tests for module 'unistr/u16-chr'.
36725         * modules/unistr/u16-chr-tests: New file.
36726         * tests/unistr/test-u16-chr.c: New file.
36727
36728         Tests for module 'unistr/u8-chr'.
36729         * modules/unistr/u8-chr-tests: New file.
36730         * tests/unistr/test-u8-chr.c: New file.
36731         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
36732
36733         Tests for module 'unistr/u32-cmp2'.
36734         * modules/unistr/u32-cmp2-tests: New file.
36735         * tests/unistr/test-u32-cmp2.c: New file.
36736
36737         Tests for module 'unistr/u16-cmp2'.
36738         * modules/unistr/u16-cmp2-tests: New file.
36739         * tests/unistr/test-u16-cmp2.c: New file.
36740
36741         Tests for module 'unistr/u8-cmp2'.
36742         * modules/unistr/u8-cmp2-tests: New file.
36743         * tests/unistr/test-u8-cmp2.c: New file.
36744         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
36745
36746         Tests for module 'unistr/u32-cmp'.
36747         * modules/unistr/u32-cmp-tests: New file.
36748         * tests/unistr/test-u32-cmp.c: New file.
36749
36750         Tests for module 'unistr/u16-cmp'.
36751         * modules/unistr/u16-cmp-tests: New file.
36752         * tests/unistr/test-u16-cmp.c: New file.
36753
36754         Tests for module 'unistr/u8-cmp'.
36755         * modules/unistr/u8-cmp-tests: New file.
36756         * tests/unistr/test-u8-cmp.c: New file.
36757         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
36758
36759         Tests for module 'unistr/u32-set'.
36760         * modules/unistr/u32-set-tests: New file.
36761         * tests/unistr/test-u32-set.c: New file.
36762
36763         Tests for module 'unistr/u16-set'.
36764         * modules/unistr/u16-set-tests: New file.
36765         * tests/unistr/test-u16-set.c: New file.
36766
36767         Tests for module 'unistr/u8-set'.
36768         * modules/unistr/u8-set-tests: New file.
36769         * tests/unistr/test-u8-set.c: New file.
36770         * tests/unistr/test-set.h: New file.
36771
36772         Tests for module 'unistr/u32-move'.
36773         * modules/unistr/u32-move-tests: New file.
36774         * tests/unistr/test-u32-move.c: New file.
36775
36776         Tests for module 'unistr/u16-move'.
36777         * modules/unistr/u16-move-tests: New file.
36778         * tests/unistr/test-u16-move.c: New file.
36779
36780         Tests for module 'unistr/u8-move'.
36781         * modules/unistr/u8-move-tests: New file.
36782         * tests/unistr/test-u8-move.c: New file.
36783         * tests/unistr/test-move.h: New file.
36784
36785         Tests for module 'unistr/u32-cpy'.
36786         * modules/unistr/u32-cpy-tests: New file.
36787         * tests/unistr/test-u32-cpy.c: New file.
36788
36789         Tests for module 'unistr/u16-cpy'.
36790         * modules/unistr/u16-cpy-tests: New file.
36791         * tests/unistr/test-u16-cpy.c: New file.
36792
36793         Tests for module 'unistr/u8-cpy'.
36794         * modules/unistr/u8-cpy-tests: New file.
36795         * tests/unistr/test-u8-cpy.c: New file.
36796         * tests/unistr/test-cpy.h: New file.
36797
36798 2010-01-09  Bruno Haible  <bruno@clisp.org>
36799
36800         Tests for module 'unistr/u32-uctomb'.
36801         * modules/unistr/u32-uctomb-tests: New file.
36802         * tests/unistr/test-u32-uctomb.c: New file.
36803
36804         Tests for module 'unistr/u16-uctomb'.
36805         * modules/unistr/u16-uctomb-tests: New file.
36806         * tests/unistr/test-u16-uctomb.c: New file.
36807
36808         Tests for module 'unistr/u8-uctomb'.
36809         * modules/unistr/u8-uctomb-tests: New file.
36810         * tests/unistr/test-u8-uctomb.c: New file.
36811
36812         Tests for module 'unistr/u32-mbtoucr'.
36813         * modules/unistr/u32-mbtoucr-tests: New file.
36814         * tests/unistr/test-u32-mbtoucr.c: New file.
36815
36816         Tests for module 'unistr/u16-mbtoucr'.
36817         * modules/unistr/u16-mbtoucr-tests: New file.
36818         * tests/unistr/test-u16-mbtoucr.c: New file.
36819
36820         Tests for module 'unistr/u8-mbtoucr'.
36821         * modules/unistr/u8-mbtoucr-tests: New file.
36822         * tests/unistr/test-u8-mbtoucr.c: New file.
36823
36824         Tests for module 'unistr/u32-mbtouc'.
36825         * modules/unistr/u32-mbtouc-tests: New file.
36826         * tests/unistr/test-u32-mbtouc.c: New file.
36827
36828         Tests for module 'unistr/u16-mbtouc'.
36829         * modules/unistr/u16-mbtouc-tests: New file.
36830         * tests/unistr/test-u16-mbtouc.c: New file.
36831
36832         Tests for module 'unistr/u8-mbtouc'.
36833         * modules/unistr/u8-mbtouc-tests: New file.
36834         * tests/unistr/test-u8-mbtouc.c: New file.
36835
36836         Tests for module 'unistr/u32-mbtouc-unsafe'.
36837         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
36838         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
36839         * tests/unistr/test-u32-mbtouc.h: New file.
36840
36841         Tests for module 'unistr/u16-mbtouc-unsafe'.
36842         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
36843         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
36844         * tests/unistr/test-u16-mbtouc.h: New file.
36845
36846         Tests for module 'unistr/u8-mbtouc-unsafe'.
36847         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
36848         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
36849         * tests/unistr/test-u8-mbtouc.h: New file.
36850
36851         Tests for module 'unistr/u32-mblen'.
36852         * modules/unistr/u32-mblen-tests: New file.
36853         * tests/unistr/test-u32-mblen.c: New file.
36854
36855         Tests for module 'unistr/u16-mblen'.
36856         * modules/unistr/u16-mblen-tests: New file.
36857         * tests/unistr/test-u16-mblen.c: New file.
36858
36859         Tests for module 'unistr/u8-mblen'.
36860         * modules/unistr/u8-mblen-tests: New file.
36861         * tests/unistr/test-u8-mblen.c: New file.
36862
36863         Tests for module 'unistr/u32-to-u16'.
36864         * modules/unistr/u32-to-u16-tests: New file.
36865         * tests/unistr/test-u32-to-u16.c: New file.
36866
36867         Tests for module 'unistr/u32-to-u8'.
36868         * modules/unistr/u32-to-u8-tests: New file.
36869         * tests/unistr/test-u32-to-u8.c: New file.
36870
36871         Tests for module 'unistr/u16-to-u32'.
36872         * modules/unistr/u16-to-u32-tests: New file.
36873         * tests/unistr/test-u16-to-u32.c: New file.
36874
36875         Tests for module 'unistr/u16-to-u8'.
36876         * modules/unistr/u16-to-u8-tests: New file.
36877         * tests/unistr/test-u16-to-u8.c: New file.
36878
36879         Tests for module 'unistr/u8-to-u32'.
36880         * modules/unistr/u8-to-u32-tests: New file.
36881         * tests/unistr/test-u8-to-u32.c: New file.
36882
36883         Tests for module 'unistr/u8-to-u16'.
36884         * modules/unistr/u8-to-u16-tests: New file.
36885         * tests/unistr/test-u8-to-u16.c: New file.
36886
36887         Tests for module 'unistr/u32-check'.
36888         * modules/unistr/u32-check-tests: New file.
36889         * tests/unistr/test-u32-check.c: New file.
36890
36891         Tests for module 'unistr/u16-check'.
36892         * modules/unistr/u16-check-tests: New file.
36893         * tests/unistr/test-u16-check.c: New file.
36894
36895         Tests for module 'unistr/u8-check'.
36896         * modules/unistr/u8-check-tests: New file.
36897         * tests/unistr/test-u8-check.c: New file.
36898
36899         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36900         (category_equals): New function.
36901         (main): Add more tests.
36902         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36903
36904         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36905
36906 2010-01-10  Bruno Haible  <bruno@clisp.org>
36907
36908         unistr/u*-strcoll: Try harder to distinguish different strings.
36909         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36910         compare s1 and s2 to see if they are different.
36911
36912 2010-01-10  Bruno Haible  <bruno@clisp.org>
36913
36914         unistr/u*-stpncpy: Fix the return value.
36915         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36916         description of the return value consistent with stpncpy in glibc.
36917         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36918         written non-NUL unit.
36919
36920 2010-01-10  Bruno Haible  <bruno@clisp.org>
36921
36922         unistr/u*-next: Add missing dependencies.
36923         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
36924         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
36925         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
36926
36927 2010-01-10  Bruno Haible  <bruno@clisp.org>
36928
36929         unistr/u8-mbsnlen: Fix return value for incomplete character.
36930         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
36931         u8_mblen.
36932         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
36933         Remove unistr/u8-mblen.
36934         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
36935         u16_mblen.
36936         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
36937         Remove unistr/u16-mblen.
36938
36939 2010-01-10  Bruno Haible  <bruno@clisp.org>
36940
36941         wchar: Fix compilation error when <wchar.h> is used from coreutils.
36942         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
36943         Reported by Brian Gough <bjg@gnu.org> and
36944         Chris Clayton <chris2553@googlemail.com> via
36945         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
36946
36947 2010-01-09  Bruno Haible  <bruno@clisp.org>
36948
36949         unistr/u16-to-u32: Reject invalid input.
36950         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
36951         u16_mbtouc.
36952         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
36953         Remove unistr/u16-mbtouc.
36954
36955         unistr/u16-to-u8: Reject invalid input.
36956         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
36957         u16_mbtouc.
36958         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
36959         Remove unistr/u16-mbtouc.
36960
36961         unistr/u8-to-u32: Reject invalid input.
36962         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
36963         u8_mbtouc.
36964         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
36965         Remove unistr/u8-mbtouc.
36966
36967         unistr/u8-to-u16: Reject invalid input.
36968         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
36969         u8_mbtouc.
36970         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
36971         Remove unistr/u8-mbtouc.
36972
36973 2010-01-09  Bruno Haible  <bruno@clisp.org>
36974
36975         Tests for module 'getlogin'.
36976         * modules/getlogin-tests: New file.
36977         * tests/test-getlogin.c: New file.
36978
36979         New module 'getlogin'.
36980         * lib/unistd.in.h (getlogin): New declaration.
36981         * lib/getlogin.c: New file.
36982         * m4/getlogin.m4: New file.
36983         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36984         HAVE_GETLOGIN.
36985         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36986         HAVE_GETLOGIN.
36987         * modules/getlogin: New file.
36988         * doc/posix-functions/getlogin.texi: Mention the new module.
36989         Reported by John W. Eaton <jwe@gnu.org>.
36990
36991 2010-01-09  Bruno Haible  <bruno@clisp.org>
36992
36993         getlogin_r: Support for native Windows.
36994         * lib/getlogin_r.c: Include <windows.h>
36995         (getlogin_r): Implement for native Windows.
36996         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36997         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36998         via John W. Eaton <jwe@gnu.org>.
36999
37000 2010-01-09  Bruno Haible  <bruno@clisp.org>
37001
37002         getlogin_r: Small fixes.
37003         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37004         succeeds.
37005         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37006         before testing whether getlogin_r is declared. No need to set
37007         HAVE_DECL_GETLOGIN_R to 1.
37008         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37009
37010 2010-01-09  Bruno Haible  <bruno@clisp.org>
37011
37012         * lib/unistd.in.h (getlogin_r): Add comment.
37013
37014 2010-01-09  Bruno Haible  <bruno@clisp.org>
37015
37016         Tests for module 'getlogin_r'.
37017         * modules/getlogin_r-tests: New file.
37018         * tests/test-getlogin_r.c: New file.
37019
37020 2010-01-09  Jim Meyering  <meyering@redhat.com>
37021
37022         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37023         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37024         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37025
37026 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37027
37028         * lib/dup2.c (rpl_dup2): Improve comment.
37029
37030 2010-01-08  Eric Blake  <ebb9@byu.net>
37031
37032         maint.mk: allow packages to add makefile @@ exceptions
37033         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37034         (sc_makefile_check): Rename...
37035         (sc_makefile_at_at_check): ...to this, and use hook.
37036
37037         dup2: work around mingw bug
37038         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37039         Reported by Simon Josefsson.
37040
37041 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37042
37043         glob: Fix C++ compilation.
37044         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37045         C++.
37046
37047 2010-01-07  Bruno Haible  <bruno@clisp.org>
37048
37049         Fix indentation of wctype.in.h, broken since 2007-01-06.
37050         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37051
37052 2010-01-07  Bruno Haible  <bruno@clisp.org>
37053
37054         mbslen: Avoid collision with system function.
37055         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37056         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37057         * m4/mbslen.m4: New file.
37058         * modules/mbslen (Files): Add it.
37059         (configure.ac): Invoke gl_MBSLEN.
37060         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37061         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37062         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37063         via Ian Beckwith <ianb@erislabs.net>.
37064
37065 2010-01-07  Bruno Haible  <bruno@clisp.org>
37066
37067         dirent: Document the last fix.
37068         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37069
37070 2010-01-07  Bruno Haible  <bruno@clisp.org>
37071
37072         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37073         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37074         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37075         va_list are defined.
37076         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37077         Reported by Eric Blake.
37078
37079 2010-01-07  Bruno Haible  <bruno@clisp.org>
37080
37081         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37082         * modules/xlist (Depends-on): Add 'list',
37083         * modules/xoset (Depends-on): Add 'oset'.
37084         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37085
37086 2010-01-07  Bruno Haible  <bruno@clisp.org>
37087
37088         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37089         * doc/posix-functions/strncasecmp.texi: Likewise.
37090
37091 2010-01-07  Bruno Haible  <bruno@clisp.org>
37092
37093         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37094
37095 2010-01-07  John W. Eaton  <jwe@octave.org>
37096
37097         wctype: allow C++ use
37098         * lib/wctype.in.h: Add extern "C" block for C++.
37099
37100 2010-01-06  Eric Blake  <ebb9@byu.net>
37101
37102         maint.mk: detect incorrect GFDL usage
37103         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37104
37105 2010-01-06  Jim Meyering  <meyering@redhat.com>
37106         and Eric Blake  <ebb9@byu.net>
37107
37108         maint.mk: ignore multi-line copyright in NEWS
37109         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37110
37111 2010-01-06  Eric Blake  <ebb9@byu.net>
37112
37113         select: add missing dependency
37114         * modules/select-tests (Depends-on): Move sockets dependency...
37115         * modules/select (Depends-on): ...here.
37116         Reported by Ian Beckwith.
37117
37118         doc: regenerate INSTALL
37119         * doc/INSTALL: Reflect recent autoconf update.
37120         * doc/INSTALL.ISO: Likewise.
37121         * doc/INSTALL.UTF-8: Likewise.
37122
37123         pread: fix compilation on glibc
37124         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37125         Reported by Ralf Wildenhues.
37126
37127         dirent: fix test failure
37128         * lib/dirent.in.h (includes): Guarantee ino_t.
37129         Reported by Ralf Wildenhues.
37130
37131 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37132
37133         linkat, renameat: avoid bad free
37134         * lib/at-func2.c (at_func2): Fix typo.
37135         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37136
37137 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37138
37139         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37140         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37141         to avoid failure of symlink test later.
37142
37143 2010-01-06  Eric Blake  <ebb9@byu.net>
37144
37145         stdio, unistd: guarantee ssize_t
37146         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37147         2008 are exposed when needed.
37148         * lib/stdio.in.h (includes): Likewise.
37149         Reported by Ralf Wildenhues.
37150
37151 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37152
37153         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37154         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37155         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37156
37157 2010-01-06  Jim Meyering  <meyering@redhat.com>
37158
37159         readtokens: this module *does* require xalloc.h
37160         It uses only functions that were omitted by the old syntax-check rule.
37161         * lib/readtokens.c: Include "xalloc.h" once again.
37162         * modules/readtokens (Depends-on): Add xalloc.
37163         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37164
37165 2010-01-05  Eric Blake  <ebb9@byu.net>
37166
37167         maint: support 'make announcement' from a VPATH build
37168         * top/maint.mk (announcement): Look for correct NEWS file.
37169
37170 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37171
37172         utimens (fdutimens): ignore a negative FD, per contract
37173         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37174         when we have a valid file descriptor.  Otherwise, using a brand
37175         new glibc (with just-patched futimens that now fails with EBADF)
37176         would cause this function to fail with ENOSYS.
37177         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37178         See also http://bugzilla.redhat.com/552320.
37179
37180 2010-01-05  Eric Blake  <ebb9@byu.net>
37181
37182         strcase: document what it provides
37183         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37184         gnulib module.
37185         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37186         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37187
37188 2010-01-05  Jim Meyering  <meyering@redhat.com>
37189
37190         maint: remove useless inclusions of "xalloc.h"
37191         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37192         * lib/readtokens.c: Likewise.
37193         * lib/same.c: Likewise.
37194         * modules/getloadavg (Depends-on): Remove xalloc.
37195         * modules/readtokens: Likewise.
37196         * modules/same: Likewise.
37197
37198         maint.mk: include 4 more function names in alloca.h-checking regexp
37199         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37200         regexp.  Before, we would give a false-positive (saying alloca.h
37201         is included unnecessarily) when the only uses involved omitted symbols.
37202
37203         xalloc.h: use consistent formatting
37204         * lib/xalloc.h: Move declarations to start in the first column.
37205
37206 2010-01-05  Eric Blake  <ebb9@byu.net>
37207
37208         mkdir: avoid xalloc
37209         * lib/mkdir.c (includes): Drop unused header.
37210         Reported by John W. Eaton.
37211
37212 2010-01-04  Jim Meyering  <meyering@redhat.com>
37213
37214         nl_langinfo: avoid configure-time syntax error
37215         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37216         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37217         the empty string.  Don't let that provoke a shell syntax error.
37218
37219         regcomp, regexec, fnmatch: avoid array bounds read error
37220         * lib/regcomp.c (build_equiv_class): From glibc:
37221         Use only the low 24 bits of a findidx return value as an index
37222         into the weights array.  Patch by Ulrich Drepper:
37223         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37224         * lib/regexec.c (check_node_accept_bytes): Likewise.
37225         * lib/fnmatch_loop.c (FCT): Likewise.
37226
37227         regcomp: skip collseq lookup when there are no rules
37228         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37229         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37230
37231         regcomp: recognize ill-formed { } expressions
37232         * lib/regcomp.c (parse_dup_op): From glibc:
37233         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37234
37235         regcomp: fix typo in comment
37236         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37237         s/satisfy/satisfies/.
37238
37239         regcomp: sync from glibc: remove dead store
37240         * lib/regcomp.c (duplicate_node_closure): Remove useless
37241         search_duplicated_node call and dead store.
37242
37243         regcomp: sync from glibc; always use nl_langinfo
37244         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37245         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37246         * modules/regex (Depends-on): Add nl_langinfo.
37247
37248 2010-01-04  Eric Blake  <ebb9@byu.net>
37249
37250         fdopendir: fix configure test
37251         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37252
37253 2010-01-01  Bruno Haible  <bruno@clisp.org>
37254
37255         wchar: Remove unused configure check.
37256         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37257
37258 2010-01-01  Eric Blake  <ebb9@byu.net>
37259
37260         headers: make check of system header explicit
37261         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37262         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37263         ourselves.
37264         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37265         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37266         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37267         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37268         internals.
37269         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37270         missing.
37271         Suggested by Bruno Haible.
37272
37273 2010-01-01  Jim Meyering  <meyering@redhat.com>
37274
37275         ChangeLog: tweak to eliminate unnecessary copyright line
37276         * ChangeLog: Remove a copyright line that was mistakenly updated
37277         by today's update-copyright run.  Reported by Eric Blake.
37278
37279         test-update-copyright: don't let envvar setting cause test failure
37280         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37281
37282 2010-01-01  Bruno Haible  <bruno@clisp.org>
37283
37284         localename: Avoid gcc warning.
37285         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37286         function if it is not used.
37287
37288 2010-01-01  Jim Meyering  <meyering@redhat.com>
37289
37290         update nearly all FSF copyright year lists to include 2010
37291         Use the same procedure as for 2009, outlined in
37292         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37293
37294         version-etc: set COPYRIGHT_YEAR to 2010
37295         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37296
37297 2009-12-31  Eric Blake  <ebb9@byu.net>
37298
37299         doc: correct availability of cygwin 1.5.x getopt
37300         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37301         variables.
37302         * doc/posix-functions/opterr.texi (opterr): Likewise.
37303         * doc/posix-functions/optind.texi (optind): Likewise.
37304         * doc/posix-functions/optopt.texi (optopt): Likewise.
37305         * doc/posix-functions/tzname.texi (tzname): Likewise.
37306
37307         openat: update maintainer
37308         * modules/openat (Maintainer): Add myself.
37309
37310         utimens: avoid shadowing warning
37311         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37312         buffers into one, to avoid shadowing, as well as avoiding a
37313         redundant stat.
37314         Reported by Jim Meyering.
37315
37316         test-dup2: avoid compiler warning
37317         * tests/test-dup2.c (is_inheritable): Only define if used.
37318
37319 2010-01-01  Bruno Haible  <bruno@clisp.org>
37320
37321         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37322         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37323         defined, use wctomb instead of wcrtomb.
37324
37325 2010-01-01  Bruno Haible  <bruno@clisp.org>
37326
37327         iconv: Reject native Solaris iconv.
37328         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37329         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37330
37331 2009-12-31  Bruno Haible  <bruno@clisp.org>
37332
37333         * tests/test-signal.c (main): Remove test of 'SIG'.
37334
37335 2009-12-31  Bruno Haible  <bruno@clisp.org>
37336
37337         spawn: Fix incomplete fix.
37338         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37339         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37340         warnings for GNULIB_POSIXCHECK again.
37341         Reported by Eric Blake.
37342
37343 2009-12-31  Bruno Haible  <bruno@clisp.org>
37344
37345         Avoid namespace pollution on glibc systems.
37346         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37347         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37348         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37349         glibc systems.
37350
37351 2009-12-31  Bruno Haible  <bruno@clisp.org>
37352
37353         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37354         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37355         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37356         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37357         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37358         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37359         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37360
37361 2009-12-31  Bruno Haible  <bruno@clisp.org>
37362
37363         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37364         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37365         afterwards.
37366
37367 2009-12-31  Bruno Haible  <bruno@clisp.org>
37368
37369         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37370         SYS_UTSNAME_H.
37371
37372 2009-12-31  Bruno Haible  <bruno@clisp.org>
37373
37374         spawn: Fix misapplied patch.
37375         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37376         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37377         warnings for GNULIB_POSIXCHECK.
37378
37379 2009-12-31  Bruno Haible  <bruno@clisp.org>
37380
37381         times: Update after sys_times changed.
37382         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37383         * modules/times (Files): Add it.
37384         (configure.ac): Invoke gl_FUNC_TIMES.
37385
37386 2009-12-31  Bruno Haible  <bruno@clisp.org>
37387
37388         Use AC_C_INLINE where necessary.
37389         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37390         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37391         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37392         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37393         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37394         * m4/mbiter.m4 (gl_MBITER): Likewise.
37395         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37396         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37397         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37398         * modules/u64 (configure.ac): Likewise.
37399
37400 2009-12-31  Bruno Haible  <bruno@clisp.org>
37401
37402         Use AC_C_INLINE instead of module 'inline' where possible.
37403         * modules/inline (Description): Clarify purpose.
37404         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37405         * modules/count-one-bits (Depends-on): Remove inline.
37406         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37407         * modules/openat (Depends-on): Remove inline.
37408         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37409         instead of depending on module 'inline'.
37410         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37411         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37412         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37413         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37414         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37415         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37416         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37417         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37418         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37419         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37420         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37421         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37422         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37423         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37424         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37425         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37426         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37427         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37428         Likewise.
37429         * modules/unictype/property-ascii-hex-digit (Depends-on,
37430         configure.ac): Likewise.
37431         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37432         configure.ac): Likewise.
37433         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37434         configure.ac): Likewise.
37435         * modules/unictype/property-bidi-block-separator (Depends-on,
37436         configure.ac): Likewise.
37437         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37438         configure.ac): Likewise.
37439         * modules/unictype/property-bidi-common-separator (Depends-on,
37440         configure.ac): Likewise.
37441         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37442         Likewise.
37443         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37444         configure.ac): Likewise.
37445         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37446         configure.ac): Likewise.
37447         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37448         configure.ac): Likewise.
37449         * modules/unictype/property-bidi-european-digit (Depends-on,
37450         configure.ac): Likewise.
37451         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37452         configure.ac): Likewise.
37453         * modules/unictype/property-bidi-left-to-right (Depends-on,
37454         configure.ac): Likewise.
37455         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37456         configure.ac): Likewise.
37457         * modules/unictype/property-bidi-other-neutral (Depends-on,
37458         configure.ac): Likewise.
37459         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37460         Likewise.
37461         * modules/unictype/property-bidi-segment-separator (Depends-on,
37462         configure.ac): Likewise.
37463         * modules/unictype/property-bidi-whitespace (Depends-on,
37464         configure.ac): Likewise.
37465         * modules/unictype/property-combining (Depends-on, configure.ac):
37466         Likewise.
37467         * modules/unictype/property-composite (Depends-on, configure.ac):
37468         Likewise.
37469         * modules/unictype/property-currency-symbol (Depends-on,
37470         configure.ac): Likewise.
37471         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37472         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37473         Likewise.
37474         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37475         configure.ac): Likewise.
37476         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37477         Likewise.
37478         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37479         Likewise.
37480         * modules/unictype/property-extender (Depends-on, configure.ac):
37481         Likewise.
37482         * modules/unictype/property-format-control (Depends-on, configure.ac):
37483         Likewise.
37484         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37485         Likewise.
37486         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37487         Likewise.
37488         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37489         Likewise.
37490         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37491         Likewise.
37492         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37493         Likewise.
37494         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37495         Likewise.
37496         * modules/unictype/property-id-start (Depends-on, configure.ac):
37497         Likewise.
37498         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37499         Likewise.
37500         * modules/unictype/property-ids-binary-operator (Depends-on,
37501         configure.ac): Likewise.
37502         * modules/unictype/property-ids-trinary-operator (Depends-on,
37503         configure.ac): Likewise.
37504         * modules/unictype/property-ignorable-control (Depends-on,
37505         configure.ac): Likewise.
37506         * modules/unictype/property-iso-control (Depends-on, configure.ac):
37507         Likewise.
37508         * modules/unictype/property-join-control (Depends-on, configure.ac):
37509         Likewise.
37510         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
37511         Likewise.
37512         * modules/unictype/property-line-separator (Depends-on, configure.ac):
37513         Likewise.
37514         * modules/unictype/property-logical-order-exception (Depends-on,
37515         configure.ac): Likewise.
37516         * modules/unictype/property-lowercase (Depends-on, configure.ac):
37517         Likewise.
37518         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
37519         * modules/unictype/property-non-break (Depends-on, configure.ac):
37520         Likewise.
37521         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
37522         Likewise.
37523         * modules/unictype/property-numeric (Depends-on, configure.ac):
37524         Likewise.
37525         * modules/unictype/property-other-alphabetic (Depends-on,
37526         configure.ac): Likewise.
37527         * modules/unictype/property-other-default-ignorable-code-point
37528         (Depends-on, configure.ac): Likewise.
37529         * modules/unictype/property-other-grapheme-extend (Depends-on,
37530         configure.ac): Likewise.
37531         * modules/unictype/property-other-id-continue (Depends-on,
37532         configure.ac): Likewise.
37533         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
37534         Likewise.
37535         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
37536         Likewise.
37537         * modules/unictype/property-other-math (Depends-on, configure.ac):
37538         Likewise.
37539         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
37540         Likewise.
37541         * modules/unictype/property-paired-punctuation (Depends-on,
37542         configure.ac): Likewise.
37543         * modules/unictype/property-paragraph-separator (Depends-on,
37544         configure.ac): Likewise.
37545         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
37546         Likewise.
37547         * modules/unictype/property-pattern-white-space (Depends-on,
37548         configure.ac): Likewise.
37549         * modules/unictype/property-private-use (Depends-on, configure.ac):
37550         Likewise.
37551         * modules/unictype/property-punctuation (Depends-on, configure.ac):
37552         Likewise.
37553         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
37554         Likewise.
37555         * modules/unictype/property-radical (Depends-on, configure.ac):
37556         Likewise.
37557         * modules/unictype/property-sentence-terminal (Depends-on,
37558         configure.ac): Likewise.
37559         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
37560         Likewise.
37561         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
37562         * modules/unictype/property-terminal-punctuation (Depends-on,
37563         configure.ac): Likewise.
37564         * modules/unictype/property-titlecase (Depends-on, configure.ac):
37565         Likewise.
37566         * modules/unictype/property-unassigned-code-value (Depends-on,
37567         configure.ac): Likewise.
37568         * modules/unictype/property-unified-ideograph (Depends-on,
37569         configure.ac): Likewise.
37570         * modules/unictype/property-uppercase (Depends-on, configure.ac):
37571         Likewise.
37572         * modules/unictype/property-variation-selector (Depends-on,
37573         configure.ac): Likewise.
37574         * modules/unictype/property-white-space (Depends-on, configure.ac):
37575         Likewise.
37576         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
37577         Likewise.
37578         * modules/unictype/property-xid-start (Depends-on, configure.ac):
37579         Likewise.
37580         * modules/unictype/property-zero-width (Depends-on, configure.ac):
37581         Likewise.
37582         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
37583         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
37584         Likewise.
37585
37586 2009-12-31  Bruno Haible  <bruno@clisp.org>
37587
37588         Remove unnecessary AC_C_INLINE invocation.
37589         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
37590         since 2009-08-21.
37591
37592 2009-12-31  Jim Meyering  <meyering@redhat.com>
37593
37594         maint.mk: don't require explicit gpg_key_ID in cfg.mk
37595         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
37596         With this change, we can all remove the gpg_key_ID = ... definition
37597         from our respective cfg.mk files.
37598
37599         maint.mk: create announcement template in ~/, not in /tmp
37600         * top/maint.mk (emit_upload_commands): Adjust.
37601         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
37602         Remove temporary file, .ci-msg.
37603
37604 2009-12-31  Eric Blake  <ebb9@byu.net>
37605
37606         link-warning: always build headers with link warnings
37607         * modules/arpa_inet (Makefile.am): Always build replacement
37608         header.
37609         * modules/ctype (Makefile.am): Likewise.
37610         * modules/dirent (Makefile.am): Likewise.
37611         * modules/inttypes (Makefile.am): Likewise.
37612         * modules/langinfo (Makefile.am): Likewise.
37613         * modules/locale (Makefile.am): Likewise.
37614         * modules/spawn (Makefile.am): Likewise.
37615         * modules/sys_file (Makefile.am): Likewise.
37616         * modules/sys_ioctl (Makefile.am): Likewise.
37617         * modules/sys_select (Makefile.am): Likewise.
37618         * modules/sys_socket (Makefile.am): Likewise.
37619         * modules/sys_times (Makefile.am): Likewise.
37620         * modules/sys_utsname (Makefile.am): Likewise.
37621         * modules/sys_wait (Makefile.am): Likewise.
37622         * modules/wchar (Makefile.am): Likewise.
37623         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
37624         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
37625         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
37626         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
37627         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
37628         Likewise.
37629         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
37630         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
37631         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
37632         Likewise.
37633         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
37634         Likewise.
37635         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
37636         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
37637         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
37638         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37639         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
37640         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37641         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37642         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
37643         (gl_WCHAR_H_DEFAULTS): Likewise.
37644
37645 2009-12-31  Eric Blake  <ebb9@byu.net>
37646
37647         signal, spawn: use link warnings
37648         * lib/signal.in.h (sigset_t): Make unconditional.
37649         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
37650         (sigpending, sigprocmask, sigaction): Add link warnings.
37651         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
37652         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
37653         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
37654         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
37655         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
37656         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
37657         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
37658         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
37659         (posix_spawn_file_actions_destroy)
37660         (posix_spawn_file_actions_addopen)
37661         (posix_spawn_file_actions_addclose)
37662         (posix_spawn_file_actions_adddup2): Likewise.
37663         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
37664         * tests/test-signal.c (main): Enhance test.
37665
37666         spawn: improve wrapper support
37667         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
37668         (gl_SPAWN_H_DEFAULTS): New defaults.
37669         * modules/spawn (Makefile.am): Substitute them.
37670         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
37671         Only declare if missing or broken.
37672
37673         sys_times, sys_utsname: use include_next
37674         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
37675         header.
37676         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
37677         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
37678         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
37679         * modules/sys_times (Depends-on): Add include_next.
37680         (Makefile.am): Substitute additional values.
37681         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
37682         * lib/sys_times.in.h (includes): Include native header, if
37683         available.
37684         * lib/sys_utsname.in.h (includes): Likewise.
37685         * tests/test-sys_times.c (main): Enhance test.
37686
37687         fdutimensat: revert prior patch
37688         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
37689         utimens.h.
37690         Reported by Bruno Haible.
37691
37692 2009-12-30  Eric Blake  <ebb9@byu.net>
37693
37694         sys_wait: drop link-warning dependency
37695         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
37696         link-warning efforts.
37697         * lib/sys_wait.in.h: Likewise.
37698
37699         fdutimensat: remove bogus dependency
37700         * modules/fdutimensat (Depends-on): Drop inline.
37701
37702         unistd: fix typo
37703         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
37704
37705 2009-12-30  Bruno Haible  <bruno@clisp.org>
37706
37707         Fix compilation error with Solaris cc.
37708         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
37709         * lib/unicase/u16-is-invariant.c: Likewise.
37710         * lib/unicase/u32-is-invariant.c: Likewise.
37711         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
37712
37713 2009-12-30  Bruno Haible  <bruno@clisp.org>
37714
37715         Fix test crash.
37716         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
37717         locales.
37718         Reported by Simon Josefsson <simon@josefsson.org>.
37719
37720 2009-12-30  Bruno Haible  <bruno@clisp.org>
37721
37722         Fix compilation error on most platforms.
37723         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
37724         Reported by Simon Josefsson <simon@josefsson.org>
37725         and Nelson H. F. Beebe <beebe@math.utah.edu>.
37726
37727 2009-12-30  Eric Blake  <ebb9@byu.net>
37728
37729         futimens, utimensat: work around ntfs-3g bug
37730         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
37731         a ctime bug is present, and expand workaround to cover ntfs-3g.
37732         * lib/utimens.c (fdutimens, lutimens): Likewise.
37733         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
37734         (validate_timespec): Adjust return value.
37735         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
37736         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
37737         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
37738
37739 2009-12-29  Eric Blake  <ebb9@byu.net>
37740
37741         link-warning: make usage consistent
37742         * modules/ctype (Depends-on): Add link-warning.
37743         (Makefile.am): Update rules accordingly.
37744         * modules/langinfo (Depends-on, Makefile.am): Likewise.
37745         * modules/locale (Depends-on, Makefile.am): Likewise.
37746         * modules/sys_file (Makefile.am): Likewise.
37747         * modules/getopt-posix (Makefile.am): Delete unused link warning
37748         efforts.
37749         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
37750         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
37751         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
37752         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
37753
37754         stdio: remove unused variables
37755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
37756         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
37757         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
37758
37759         tests: test more substitute headers
37760         * modules/ctype-tests: New file.
37761         * modules/dirent-tests: Likewise.
37762         * modules/spawn-tests: Likewise.
37763         * modules/sys_file-tests: Likewise.
37764         * modules/sys_ioctl-tests: Likewise.
37765         * modules/sys_wait-tests: Likewise.
37766         * tests/test-ctype.c: Likewise.
37767         * tests/test-dirent.c: Likewise.
37768         * tests/test-spawn.c: Likewise.
37769         * tests/test-sys_file.c: Likewise.
37770         * tests/test-sys_ioctl.c: Likewise.
37771         * tests/test-sys_wait.c: Likewise.
37772         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
37773         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
37774         whether or not flock is in use.
37775
37776         tests: remove License section from module
37777         * modules/arpa_inet-tests: Remove unneeded section.
37778         * modules/byteswap-tests: Likewise.
37779         * modules/ceilf-tests: Likewise.
37780         * modules/ceill-tests: Likewise.
37781         * modules/crypto/des-tests: Likewise.
37782         * modules/crypto/gc-arcfour-tests: Likewise.
37783         * modules/crypto/gc-arctwo-tests: Likewise.
37784         * modules/crypto/gc-des-tests: Likewise.
37785         * modules/crypto/gc-hmac-md5-tests: Likewise.
37786         * modules/crypto/gc-hmac-sha1-tests: Likewise.
37787         * modules/crypto/gc-md2-tests: Likewise.
37788         * modules/crypto/gc-md4-tests: Likewise.
37789         * modules/crypto/gc-md5-tests: Likewise.
37790         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
37791         * modules/crypto/gc-rijndael-tests: Likewise.
37792         * modules/crypto/gc-sha1-tests: Likewise.
37793         * modules/crypto/gc-tests: Likewise.
37794         * modules/crypto/md2-tests: Likewise.
37795         * modules/crypto/md4-tests: Likewise.
37796         * modules/fcntl-h-tests: Likewise.
37797         * modules/floorf-tests: Likewise.
37798         * modules/floorl-tests: Likewise.
37799         * modules/frexp-nolibm-tests: Likewise.
37800         * modules/frexp-tests: Likewise.
37801         * modules/frexpl-nolibm-tests: Likewise.
37802         * modules/frexpl-tests: Likewise.
37803         * modules/getaddrinfo-tests: Likewise.
37804         * modules/inttypes-tests: Likewise.
37805         * modules/isfinite-tests: Likewise.
37806         * modules/isinf-tests: Likewise.
37807         * modules/ldexpl-tests: Likewise.
37808         * modules/locale-tests: Likewise.
37809         * modules/math-tests: Likewise.
37810         * modules/netdb-tests: Likewise.
37811         * modules/netinet_in-tests: Likewise.
37812         * modules/printf-frexp-tests: Likewise.
37813         * modules/printf-frexpl-tests: Likewise.
37814         * modules/priv-set-tests: Likewise.
37815         * modules/random_r-tests: Likewise.
37816         * modules/round-tests: Likewise.
37817         * modules/roundf-tests: Likewise.
37818         * modules/roundl-tests: Likewise.
37819         * modules/search-tests: Likewise.
37820         * modules/select-tests: Likewise.
37821         * modules/signal-tests: Likewise.
37822         * modules/stdbool-tests: Likewise.
37823         * modules/stddef-tests: Likewise.
37824         * modules/stdint-tests: Likewise.
37825         * modules/stdio-tests: Likewise.
37826         * modules/stdlib-tests: Likewise.
37827         * modules/string-tests: Likewise.
37828         * modules/strings-tests: Likewise.
37829         * modules/sys_select-tests: Likewise.
37830         * modules/sys_socket-tests: Likewise.
37831         * modules/sys_stat-tests: Likewise.
37832         * modules/sys_time-tests: Likewise.
37833         * modules/sys_utsname-tests: Likewise.
37834         * modules/sysexits-tests: Likewise.
37835         * modules/time-tests: Likewise.
37836         * modules/trunc-tests: Likewise.
37837         * modules/truncf-tests: Likewise.
37838         * modules/truncl-tests: Likewise.
37839         * modules/tsearch-tests: Likewise.
37840         * modules/unistd-tests: Likewise.
37841         * modules/wchar-tests: Likewise.
37842         * modules/wctype-tests: Likewise.
37843
37844         tests: fix license on several tests
37845         * tests/test-des.c: Update to GPLv3+.
37846         * tests/test-flock.c: Likewise.
37847         * tests/test-fsync.c: Likewise.
37848         * tests/test-futimens.h: Likewise.
37849         * tests/test-gc-arcfour.c: Likewise.
37850         * tests/test-gc-arctwo.c: Likewise.
37851         * tests/test-gc-des.c: Likewise.
37852         * tests/test-gc-hmac-md5.c: Likewise.
37853         * tests/test-gc-hmac-sha1.c: Likewise.
37854         * tests/test-gc-md2.c: Likewise.
37855         * tests/test-gc-md4.c: Likewise.
37856         * tests/test-gc-md5.c: Likewise.
37857         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37858         * tests/test-gc-rijndael.c: Likewise.
37859         * tests/test-gc-sha1.c: Likewise.
37860         * tests/test-gc.c: Likewise.
37861         * tests/test-getcwd.c: Likewise.
37862         * tests/test-link.c: Likewise.
37863         * tests/test-link.h: Likewise.
37864         * tests/test-lutimens.h: Likewise.
37865         * tests/test-md2.c: Likewise.
37866         * tests/test-md4.c: Likewise.
37867         * tests/test-mkdir.h: Likewise.
37868         * tests/test-rename.c: Likewise.
37869         * tests/test-rename.h: Likewise.
37870         * tests/test-safe-alloc.c: Likewise.
37871         * tests/test-utimens-common.h: Likewise.
37872         * tests/test-utimens.h: Likewise.
37873
37874         maint: sync license texts
37875         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
37876         * doc/gpl-3.0.texi: Revert copyright year update.
37877         * doc/lgpl-3.0.texi: Likewise.
37878
37879 2009-12-29  Jim Meyering  <meyering@redhat.com>
37880
37881         update nearly all FSF copyright year lists to include 2009
37882         The files named by the following are exempted:
37883             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
37884               test -f "$dst" && { echo "$dst"; continue; }
37885               test -d "$dst" || continue
37886               echo "$dst"/$(basename "$src")
37887             done > exempt
37888             git ls-files tests/unictype >> exempt
37889         In the remaining files, convert to all-interval notation if
37890         - there is already at least one year interval like 2000-2003
37891         - the file is maintained by me
37892         - the file is in lib/uni*/, where that style already prevails
37893         Otherwise, use update-copyright's default.
37894
37895 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37896         and Eric Blake  <ebb9@byu.net>
37897
37898         tests: don't require debug system() to pass
37899         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37900         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37901         * tests/test-unlink.h (test_unlink_func): Likewise.
37902         * tests/test-fstatat.c (main): ...into callers.
37903         * tests/test-lstat.c (main): Likewise.
37904         * tests/test-rmdir.c (main): Likewise.
37905         * tests/test-unlink.c (main): Likewise.
37906         * tests/test-unlinkat.c (main): Likewise.
37907         * tests/test-areadlink-with-size.c (main): Don't require a
37908         debug-only system call to pass, aiding cross-testing to mingw.
37909         * tests/test-areadlink.c (main): Likewise.
37910         * tests/test-areadlinkat-with-size.c (main): Likewise.
37911         * tests/test-areadlinkat.c (main): Likewise.
37912         * tests/test-canonicalize-lgpl.c (main): Likewise.
37913         * tests/test-canonicalize.c (main): Likewise.
37914         * tests/test-chown.c (main): Likewise.
37915         * tests/test-fchownat.c (main): Likewise.
37916         * tests/test-lchown.c (main): Likewise.
37917         * tests/test-fdutimensat.c (main): Likewise.
37918         * tests/test-futimens.c (main): Likewise.
37919         * tests/test-link.c (main): Likewise.
37920         * tests/test-linkat.c (main): Likewise.
37921         * tests/test-mkdir.c (main): Likewise.
37922         * tests/test-mkdirat.c (main): Likewise.
37923         * tests/test-mkfifo.c (main): Likewise.
37924         * tests/test-mkfifoat.c (main): Likewise.
37925         * tests/test-mknod.c (main): Likewise.
37926         * tests/test-readlink.c (main): Likewise.
37927         * tests/test-remove.c (main): Likewise.
37928         * tests/test-rename.c (main): Likewise.
37929         * tests/test-renameat.c (main): Likewise.
37930         * tests/test-symlink.c (main): Likewise.
37931         * tests/test-symlinkat.c (main): Likewise.
37932         * tests/test-utimens.c (main): Likewise.
37933         * tests/test-utimensat.c (main): Likewise.
37934
37935 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37936
37937         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
37938         on $(UNUSED_PARAMETER_H) to avoid build failure.
37939
37940 2009-12-28  Jim Meyering  <meyering@redhat.com>
37941
37942         update-copyright: you may specify a max. line length other than 72
37943         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37944
37945         maint: use consistent FSF copyright line syntax
37946         * lib/posixtm.c: Add missing comma in FSF copyright line.
37947         * lib/posixtm.h: Likewise.
37948         * lib/getugroups.c: Add missing ", Inc.".
37949
37950         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
37951         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
37952         FSF copyright line.  Remove trailing blanks.
37953
37954 2009-12-28  Eric Blake  <ebb9@byu.net>
37955
37956         test-dup2: reduce dependencies
37957         * modules/cloexec (Configure.ac): Set witness.
37958         * modules/dup2-tests (Depends-on): Drop cloexec.
37959         * tests/test-dup2.c (main): Skip portion of test if cloexec module
37960         not present.
37961         Suggested by Bruno Haible.
37962
37963 2009-12-26  Bruno Haible  <bruno@clisp.org>
37964
37965         Remove an unneeded dependency.
37966         * modules/fseterr (Depends-on): Remove dup2.
37967
37968 2009-12-26  Eric Blake  <ebb9@byu.net>
37969
37970         tests: use macros.h in more places
37971         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
37972         (ASSERT_STREAM): Provide default of stderr.
37973         * tests/test-dirent-safer.c: Include macros.h, using alternate
37974         stream for assertions.
37975         * tests/test-dup-safer.c: Likewise.
37976         * tests/test-freopen-safer.c: Likewise.
37977         * tests/test-getopt.c: Likewise.
37978         * tests/test-openat-safer.c: Likewise.
37979         * tests/test-pipe.c: Likewise.
37980         * tests/test-popen-safer.c: Likewise.
37981         * modules/dirent-safer-tests (Files): Include macros.h.
37982         * modules/unistd-safer-tests (Files): Likewise.
37983         * modules/freopen-safer-tests (Files): Likewise.
37984         * modules/getopt-posix-tests (Files): Likewise.
37985         * modules/openat-safer-tests (Files): Likewise.
37986         * modules/pipe-tests (Files): Likewise.
37987
37988 2009-12-26  Bruno Haible  <bruno@clisp.org>
37989
37990         javacomp: Portability fix.
37991         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37992         that it also works on Solaris.
37993
37994 2009-12-26  Bruno Haible  <bruno@clisp.org>
37995
37996         localename: Fix storage allocation of gl_locale_name_thread's result.
37997         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37998         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37999         all platforms that have 'uselocale'.
38000         (gl_locale_name_thread_unsafe): New function, extracted from
38001         gl_locale_name_thread.
38002         (gl_locale_name_thread): Call struniq on all platforms that have
38003         'uselocale'.
38004         * tests/test-localename.c (test_locale_name_thread): Check that the
38005         resulting strings are permanently allocated.
38006         * modules/localename-tests (Depends-on): Add strdup.
38007
38008 2009-12-26  Bruno Haible  <bruno@clisp.org>
38009
38010         * tests/test-localename.c (categories): Fill in the strings.
38011
38012 2009-12-26  Jim Meyering  <meyering@redhat.com>
38013
38014         isdir: complete the removal of m4/isdir.m4
38015         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38016
38017         isdir: clean up, since at least grep still uses it
38018         * lib/isdir.c: Include "isdir.h".
38019         (S_ISDIR): Remove now-unneeded definition.
38020         * modules/isdir (Files): Add lib/isdir.h.
38021         * lib/isdir.h: New file, with declaration.
38022         * m4/isdir.m4: Remove file -- unneeded.
38023
38024 2009-12-25  Bruno Haible  <bruno@clisp.org>
38025
38026         selinux-h: Make generated .h files standalone.
38027         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38028         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38029         * lib/se-selinux.in.h: Likewise.
38030         * modules/selinux-h (Depends-on): Add unused-parameter.
38031         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38032         selinux/selinux.h and selinux/context.h.
38033         Suggested by Eric Blake.
38034
38035 2009-12-25  Bruno Haible  <bruno@clisp.org>
38036
38037         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38038         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38039         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38040         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38041         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38042
38043 2009-12-24  Bruno Haible  <bruno@clisp.org>
38044
38045         openat: Fix warning.
38046         * lib/openat-proc.c: Include <unistd.h>.
38047
38048 2009-12-24  Bruno Haible  <bruno@clisp.org>
38049
38050         New module 'unused-parameter'.
38051         * build-aux/unused-parameter.h: New file, extracted from earlier
38052         gnulib-common.m4.
38053         * modules/unused-parameter: New file.
38054         * lib/unistr.h: Include unused-parameter.h.
38055         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38056         _GL_UNUSED.
38057         * modules/unistr/base (Depends-on): Add unused-parameter.
38058
38059 2009-12-24  Bruno Haible  <bruno@clisp.org>
38060
38061         Add missing dependencies to 'extensions' module.
38062         * m4/extensions.m4: Add comment.
38063         * modules/accept4 (Depends-on): Add extensions.
38064         * modules/dup3 (Depends-on): Likewise.
38065         * modules/fcntl (Depends-on): Likewise.
38066         * modules/futimens (Depends-on): Likewise.
38067         * modules/mknod (Depends-on): Likewise.
38068         * modules/pipe2 (Depends-on): Likewise.
38069         * modules/stat-time (Depends-on): Likewise.
38070         * modules/strcasestr-simple (Depends-on): Likewise.
38071         * modules/strsignal (Depends-on): Likewise.
38072         * modules/utimensat (Depends-on): Likewise.
38073         * modules/localcharset (Depends-on): Likewise. Needed because of
38074         gl_FCNTL_O_FLAGS.
38075         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38076         AC_TYPE_MBSTATE_T.
38077         * modules/wcsnrtombs (Depends-on): Likewise.
38078         * modules/wcsrtombs (Depends-on): Likewise.
38079
38080 2009-12-24  Bruno Haible  <bruno@clisp.org>
38081
38082         binary-io: Avoid gcc warning due to SET_BINARY.
38083         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38084         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38085
38086 2009-12-24  Bruno Haible  <bruno@clisp.org>
38087
38088         Avoid future namespace pollution on glibc systems.
38089         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38090         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38091         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38092         glibc systems.
38093
38094 2009-12-24  Bruno Haible  <bruno@clisp.org>
38095
38096         Refactor common macros used in tests.
38097         * tests/macros.h: New file.
38098         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38099         and/or <stdlib.h>, if appropriate.
38100         (ASSERT, SIZEOF): Remove macros.
38101         * tests/test-areadlink-with-size.c: Likewise.
38102         * tests/test-areadlinkat.c: Likewise.
38103         * tests/test-areadlinkat-with-size.c: Likewise.
38104         * tests/test-argmatch.c: Likewise.
38105         * tests/test-argv-iter.c: Likewise.
38106         * tests/test-array-mergesort.c: Likewise.
38107         * tests/test-array_list.c: Likewise.
38108         * tests/test-array_oset.c: Likewise.
38109         * tests/test-avltree_list.c: Likewise.
38110         * tests/test-avltree_oset.c: Likewise.
38111         * tests/test-avltreehash_list.c: Likewise.
38112         * tests/test-base64.c: Likewise.
38113         * tests/test-binary-io.c: Likewise.
38114         * tests/test-bitrotate.c: Likewise.
38115         * tests/test-btowc.c: Likewise.
38116         * tests/test-byteswap.c: Likewise.
38117         * tests/test-c-ctype.c: Likewise.
38118         * tests/test-c-stack.c: Likewise.
38119         * tests/test-c-strcasecmp.c: Likewise.
38120         * tests/test-c-strcasestr.c: Likewise.
38121         * tests/test-c-strncasecmp.c: Likewise.
38122         * tests/test-c-strstr.c: Likewise.
38123         * tests/test-canonicalize-lgpl.c: Likewise.
38124         * tests/test-canonicalize.c: Likewise.
38125         * tests/test-carray_list.c: Likewise.
38126         * tests/test-ceilf1.c: Likewise.
38127         * tests/test-ceilf2.c: Likewise.
38128         * tests/test-ceill.c: Likewise.
38129         * tests/test-chown.c: Likewise.
38130         * tests/test-cloexec.c: Likewise.
38131         * tests/test-copy-acl.c: Likewise.
38132         * tests/test-copy-file.c: Likewise.
38133         * tests/test-count-one-bits.c: Likewise.
38134         * tests/test-dprintf-posix.c: Likewise.
38135         * tests/test-dup2.c: Likewise.
38136         * tests/test-dup3.c: Likewise.
38137         * tests/test-duplocale.c: Likewise.
38138         * tests/test-fbufmode.c: Likewise.
38139         * tests/test-fchdir.c: Likewise.
38140         * tests/test-fchownat.c: Likewise.
38141         * tests/test-fcntl-safer.c: Likewise.
38142         * tests/test-fcntl.c: Likewise.
38143         * tests/test-fdopendir.c: Likewise.
38144         * tests/test-fdutimensat.c: Likewise.
38145         * tests/test-fflush2.c: Likewise.
38146         * tests/test-file-has-acl.c: Likewise.
38147         * tests/test-filevercmp.c: Likewise.
38148         * tests/test-flock.c: Likewise.
38149         * tests/test-floorf1.c: Likewise.
38150         * tests/test-floorf2.c: Likewise.
38151         * tests/test-floorl.c: Likewise.
38152         * tests/test-fnmatch.c: Likewise.
38153         * tests/test-fopen.h: Likewise.
38154         * tests/test-fpending.c: Likewise.
38155         * tests/test-fprintf-posix.c: Likewise.
38156         * tests/test-fpurge.c: Likewise.
38157         * tests/test-freadable.c: Likewise.
38158         * tests/test-freadahead.c: Likewise.
38159         * tests/test-freading.c: Likewise.
38160         * tests/test-freadptr.c: Likewise.
38161         * tests/test-freadptr2.c: Likewise.
38162         * tests/test-freadseek.c: Likewise.
38163         * tests/test-freopen.c: Likewise.
38164         * tests/test-frexp.c: Likewise.
38165         * tests/test-frexpl.c: Likewise.
38166         * tests/test-fseek.c: Likewise.
38167         * tests/test-fseeko.c: Likewise.
38168         * tests/test-fstatat.c: Likewise.
38169         * tests/test-fstrcmp.c: Likewise.
38170         * tests/test-fsync.c: Likewise.
38171         * tests/test-ftell.c: Likewise.
38172         * tests/test-ftello.c: Likewise.
38173         * tests/test-func.c: Likewise.
38174         * tests/test-futimens.c: Likewise.
38175         * tests/test-fwritable.c: Likewise.
38176         * tests/test-fwriting.c: Likewise.
38177         * tests/test-getcwd.c: Likewise.
38178         * tests/test-getdate.c: Likewise.
38179         * tests/test-getdelim.c: Likewise.
38180         * tests/test-getdtablesize.c: Likewise.
38181         * tests/test-getgroups.c: Likewise.
38182         * tests/test-getline.c: Likewise.
38183         * tests/test-getndelim2.c: Likewise.
38184         * tests/test-glob.c: Likewise.
38185         * tests/test-hash.c: Likewise.
38186         * tests/test-i-ring.c: Likewise.
38187         * tests/test-iconv-utf.c: Likewise.
38188         * tests/test-iconv.c: Likewise.
38189         * tests/test-idpriv-drop.c: Likewise.
38190         * tests/test-idpriv-droptemp.c: Likewise.
38191         * tests/test-inet_ntop.c: Likewise.
38192         * tests/test-inet_pton.c: Likewise.
38193         * tests/test-isblank.c: Likewise.
38194         * tests/test-isfinite.c: Likewise.
38195         * tests/test-isinf.c: Likewise.
38196         * tests/test-isnan.c: Likewise.
38197         * tests/test-isnand.h: Likewise.
38198         * tests/test-isnanf.h: Likewise.
38199         * tests/test-isnanl.h: Likewise.
38200         * tests/test-lchown.c: Likewise.
38201         * tests/test-ldexpl.c: Likewise.
38202         * tests/test-link.c: Likewise.
38203         * tests/test-linkat.c: Likewise.
38204         * tests/test-linked_list.c: Likewise.
38205         * tests/test-linkedhash_list.c: Likewise.
38206         * tests/test-localename.c: Likewise.
38207         * tests/test-lseek.c: Likewise.
38208         * tests/test-lstat.c: Likewise.
38209         * tests/test-mbmemcasecmp.c: Likewise.
38210         * tests/test-mbmemcasecoll.c: Likewise.
38211         * tests/test-mbrtowc.c: Likewise.
38212         * tests/test-mbscasecmp.c: Likewise.
38213         * tests/test-mbscasestr1.c: Likewise.
38214         * tests/test-mbscasestr2.c: Likewise.
38215         * tests/test-mbscasestr3.c: Likewise.
38216         * tests/test-mbscasestr4.c: Likewise.
38217         * tests/test-mbschr.c: Likewise.
38218         * tests/test-mbscspn.c: Likewise.
38219         * tests/test-mbsinit.c: Likewise.
38220         * tests/test-mbsncasecmp.c: Likewise.
38221         * tests/test-mbsnrtowcs.c: Likewise.
38222         * tests/test-mbspbrk.c: Likewise.
38223         * tests/test-mbspcasecmp.c: Likewise.
38224         * tests/test-mbsrchr.c: Likewise.
38225         * tests/test-mbsrtowcs.c: Likewise.
38226         * tests/test-mbsspn.c: Likewise.
38227         * tests/test-mbsstr1.c: Likewise.
38228         * tests/test-mbsstr2.c: Likewise.
38229         * tests/test-mbsstr3.c: Likewise.
38230         * tests/test-memchr.c: Likewise.
38231         * tests/test-memchr2.c: Likewise.
38232         * tests/test-memcmp.c: Likewise.
38233         * tests/test-memmem.c: Likewise.
38234         * tests/test-memrchr.c: Likewise.
38235         * tests/test-mkdir.c: Likewise.
38236         * tests/test-mkdirat.c: Likewise.
38237         * tests/test-mkfifo.c: Likewise.
38238         * tests/test-mkfifoat.c: Likewise.
38239         * tests/test-mknod.c: Likewise.
38240         * tests/test-nanosleep.c: Likewise.
38241         * tests/test-nl_langinfo.c: Likewise.
38242         * tests/test-obstack-printf.c: Likewise.
38243         * tests/test-open.c: Likewise.
38244         * tests/test-openat.c: Likewise.
38245         * tests/test-pipe-filter-gi1.c: Likewise.
38246         * tests/test-pipe-filter-gi2-main.c: Likewise.
38247         * tests/test-pipe-filter-ii1.c: Likewise.
38248         * tests/test-pipe-filter-ii2-main.c: Likewise.
38249         * tests/test-pipe2.c: Likewise.
38250         * tests/test-popen.h: Likewise.
38251         * tests/test-posixtm.c: Likewise.
38252         * tests/test-pread.c: Likewise.
38253         * tests/test-printf-frexp.c: Likewise.
38254         * tests/test-printf-frexpl.c: Likewise.
38255         * tests/test-printf-posix.c: Likewise.
38256         * tests/test-priv-set.c: Likewise.
38257         * tests/test-quotearg.c: Likewise.
38258         * tests/test-random_r.c: Likewise.
38259         * tests/test-rawmemchr.c: Likewise.
38260         * tests/test-rbtree_list.c: Likewise.
38261         * tests/test-rbtree_oset.c: Likewise.
38262         * tests/test-rbtreehash_list.c: Likewise.
38263         * tests/test-readlink.c: Likewise.
38264         * tests/test-remove.c: Likewise.
38265         * tests/test-rename.c: Likewise.
38266         * tests/test-renameat.c: Likewise.
38267         * tests/test-rmdir.c: Likewise.
38268         * tests/test-round1.c: Likewise.
38269         * tests/test-roundf1.c: Likewise.
38270         * tests/test-roundl.c: Likewise.
38271         * tests/test-safe-alloc.c: Likewise.
38272         * tests/test-sameacls.c: Likewise.
38273         * tests/test-set-mode-acl.c: Likewise.
38274         * tests/test-setenv.c: Likewise.
38275         * tests/test-sigaction.c: Likewise.
38276         * tests/test-signbit.c: Likewise.
38277         * tests/test-sleep.c: Likewise.
38278         * tests/test-snprintf-posix.c: Likewise.
38279         * tests/test-snprintf.c: Likewise.
38280         * tests/test-sprintf-posix.c: Likewise.
38281         * tests/test-stat-time.c: Likewise.
38282         * tests/test-stat.c: Likewise.
38283         * tests/test-strcasestr.c: Likewise.
38284         * tests/test-strchrnul.c: Likewise.
38285         * tests/test-strerror.c: Likewise.
38286         * tests/test-striconv.c: Likewise.
38287         * tests/test-striconveh.c: Likewise.
38288         * tests/test-striconveha.c: Likewise.
38289         * tests/test-strsignal.c: Likewise.
38290         * tests/test-strstr.c: Likewise.
38291         * tests/test-strtod.c: Likewise.
38292         * tests/test-strverscmp.c: Likewise.
38293         * tests/test-symlink.c: Likewise.
38294         * tests/test-symlinkat.c: Likewise.
38295         * tests/test-trunc1.c: Likewise.
38296         * tests/test-trunc2.c: Likewise.
38297         * tests/test-truncf1.c: Likewise.
38298         * tests/test-truncf2.c: Likewise.
38299         * tests/test-truncl.c: Likewise.
38300         * tests/test-uname.c: Likewise.
38301         * tests/test-unlink.c: Likewise.
38302         * tests/test-unlinkat.c: Likewise.
38303         * tests/test-unsetenv.c: Likewise.
38304         * tests/test-usleep.c: Likewise.
38305         * tests/test-utimens.c: Likewise.
38306         * tests/test-utimensat.c: Likewise.
38307         * tests/test-vasnprintf-posix.c: Likewise.
38308         * tests/test-vasnprintf-posix2.c: Likewise.
38309         * tests/test-vasnprintf.c: Likewise.
38310         * tests/test-vasprintf-posix.c: Likewise.
38311         * tests/test-vasprintf.c: Likewise.
38312         * tests/test-vdprintf-posix.c: Likewise.
38313         * tests/test-vfprintf-posix.c: Likewise.
38314         * tests/test-vprintf-posix.c: Likewise.
38315         * tests/test-vsnprintf-posix.c: Likewise.
38316         * tests/test-vsnprintf.c: Likewise.
38317         * tests/test-vsprintf-posix.c: Likewise.
38318         * tests/test-wcrtomb.c: Likewise.
38319         * tests/test-wcsnrtombs.c: Likewise.
38320         * tests/test-wcsrtombs.c: Likewise.
38321         * tests/test-wctype.c: Likewise.
38322         * tests/test-wcwidth.c: Likewise.
38323         * tests/test-xfprintf-posix.c: Likewise.
38324         * tests/test-xmemdup0.c: Likewise.
38325         * tests/test-xprintf-posix.c: Likewise.
38326         * tests/test-xvasprintf.c: Likewise.
38327         * tests/unicase/test-locale-language.c: Likewise.
38328         * tests/unicase/test-mapping-part1.h: Likewise.
38329         * tests/unicase/test-predicate-part1.h: Likewise.
38330         * tests/unicase/test-u8-casecmp.c: Likewise.
38331         * tests/unicase/test-u8-casecoll.c: Likewise.
38332         * tests/unicase/test-u8-casefold.c: Likewise.
38333         * tests/unicase/test-u8-is-cased.c: Likewise.
38334         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38335         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38336         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38337         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38338         * tests/unicase/test-u8-tolower.c: Likewise.
38339         * tests/unicase/test-u8-totitle.c: Likewise.
38340         * tests/unicase/test-u8-toupper.c: Likewise.
38341         * tests/unicase/test-u16-casecmp.c: Likewise.
38342         * tests/unicase/test-u16-casecoll.c: Likewise.
38343         * tests/unicase/test-u16-casefold.c: Likewise.
38344         * tests/unicase/test-u16-is-cased.c: Likewise.
38345         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38346         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38347         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38348         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38349         * tests/unicase/test-u16-tolower.c: Likewise.
38350         * tests/unicase/test-u16-totitle.c: Likewise.
38351         * tests/unicase/test-u16-toupper.c: Likewise.
38352         * tests/unicase/test-u32-casecmp.c: Likewise.
38353         * tests/unicase/test-u32-casecoll.c: Likewise.
38354         * tests/unicase/test-u32-casefold.c: Likewise.
38355         * tests/unicase/test-u32-is-cased.c: Likewise.
38356         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38357         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38358         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38359         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38360         * tests/unicase/test-u32-tolower.c: Likewise.
38361         * tests/unicase/test-u32-totitle.c: Likewise.
38362         * tests/unicase/test-u32-toupper.c: Likewise.
38363         * tests/unicase/test-ulc-casecmp.c: Likewise.
38364         * tests/unicase/test-ulc-casecoll.c: Likewise.
38365         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38366         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38367         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38368         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38369         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38370         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38371         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38372         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38373         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38374         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38375         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38376         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38377         * tests/unictype/test-bidi_byname.c: Likewise.
38378         * tests/unictype/test-bidi_name.c: Likewise.
38379         * tests/unictype/test-bidi_of.c: Likewise.
38380         * tests/unictype/test-bidi_test.c: Likewise.
38381         * tests/unictype/test-block_list.c: Likewise.
38382         * tests/unictype/test-block_of.c: Likewise.
38383         * tests/unictype/test-block_test.c: Likewise.
38384         * tests/unictype/test-categ_and.c: Likewise.
38385         * tests/unictype/test-categ_and_not.c: Likewise.
38386         * tests/unictype/test-categ_byname.c: Likewise.
38387         * tests/unictype/test-categ_name.c: Likewise.
38388         * tests/unictype/test-categ_none.c: Likewise.
38389         * tests/unictype/test-categ_of.c: Likewise.
38390         * tests/unictype/test-categ_or.c: Likewise.
38391         * tests/unictype/test-categ_test_withtable.c: Likewise.
38392         * tests/unictype/test-combining.c: Likewise.
38393         * tests/unictype/test-decdigit.c: Likewise.
38394         * tests/unictype/test-digit.c: Likewise.
38395         * tests/unictype/test-mirror.c: Likewise.
38396         * tests/unictype/test-numeric.c: Likewise.
38397         * tests/unictype/test-pr_byname.c: Likewise.
38398         * tests/unictype/test-pr_test.c: Likewise.
38399         * tests/unictype/test-predicate-part1.h: Likewise.
38400         * tests/unictype/test-scripts.c: Likewise.
38401         * tests/unictype/test-sy_c_ident.c: Likewise.
38402         * tests/unictype/test-sy_java_ident.c: Likewise.
38403         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38404         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38405         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38406         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38407         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38408         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38409         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38410         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38411         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38412         * tests/uninorm/test-compat-decomposition.c: Likewise.
38413         * tests/uninorm/test-composition.c: Likewise.
38414         * tests/uninorm/test-decomposing-form.c: Likewise.
38415         * tests/uninorm/test-decomposition.c: Likewise.
38416         * tests/uninorm/test-u8-nfc.c: Likewise.
38417         * tests/uninorm/test-u8-nfd.c: Likewise.
38418         * tests/uninorm/test-u8-nfkc.c: Likewise.
38419         * tests/uninorm/test-u8-nfkd.c: Likewise.
38420         * tests/uninorm/test-u8-normcmp.c: Likewise.
38421         * tests/uninorm/test-u8-normcoll.c: Likewise.
38422         * tests/uninorm/test-u16-nfc.c: Likewise.
38423         * tests/uninorm/test-u16-nfd.c: Likewise.
38424         * tests/uninorm/test-u16-nfkc.c: Likewise.
38425         * tests/uninorm/test-u16-nfkd.c: Likewise.
38426         * tests/uninorm/test-u16-normcmp.c: Likewise.
38427         * tests/uninorm/test-u16-normcoll.c: Likewise.
38428         * tests/uninorm/test-u32-nfc.c: Likewise.
38429         * tests/uninorm/test-u32-nfd.c: Likewise.
38430         * tests/uninorm/test-u32-nfkc.c: Likewise.
38431         * tests/uninorm/test-u32-nfkd.c: Likewise.
38432         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38433         * tests/uninorm/test-u32-normcmp.c: Likewise.
38434         * tests/uninorm/test-u32-normcoll.c: Likewise.
38435         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38436         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38437         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38438         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38439         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38440         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38441         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38442         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38443         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38444         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38445         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38446         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38447         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38448         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38449         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38450         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38451         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38452         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38453         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38454         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38455         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38456         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38457         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38458         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38459         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38460         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38461         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38462         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38463         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38464         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38465         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38466         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38467         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38468         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38469         * tests/uniwidth/test-u8-width.c: Likewise.
38470         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38471         * tests/uniwidth/test-u16-width.c: Likewise.
38472         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38473         * tests/uniwidth/test-u32-width.c: Likewise.
38474         * tests/uniwidth/test-uc_width.c: Likewise.
38475         * tests/uniwidth/test-uc_width2.c: Likewise.
38476         * modules/acl-tests (Files): Add tests/macros.h.
38477         * modules/areadlink-tests (Files): Likewise.
38478         * modules/areadlink-with-size-tests (Files): Likewise.
38479         * modules/areadlinkat-tests (Files): Likewise.
38480         * modules/areadlinkat-with-size-tests (Files): Likewise.
38481         * modules/argmatch-tests (Files): Likewise.
38482         * modules/argv-iter-tests (Files): Likewise.
38483         * modules/array-list-tests (Files): Likewise.
38484         * modules/array-mergesort-tests (Files): Likewise.
38485         * modules/array-oset-tests (Files): Likewise.
38486         * modules/avltree-list-tests (Files): Likewise.
38487         * modules/avltree-oset-tests (Files): Likewise.
38488         * modules/avltreehash-list-tests (Files): Likewise.
38489         * modules/base64-tests (Files): Likewise.
38490         * modules/binary-io-tests (Files): Likewise.
38491         * modules/bitrotate-tests (Files): Likewise.
38492         * modules/btowc-tests (Files): Likewise.
38493         * modules/byteswap-tests (Files): Likewise.
38494         * modules/c-ctype-tests (Files): Likewise.
38495         * modules/c-stack-tests (Files): Likewise.
38496         * modules/c-strcase-tests (Files): Likewise.
38497         * modules/c-strcasestr-tests (Files): Likewise.
38498         * modules/c-strstr-tests (Files): Likewise.
38499         * modules/canonicalize-lgpl-tests (Files): Likewise.
38500         * modules/canonicalize-tests (Files): Likewise.
38501         * modules/carray-list-tests (Files): Likewise.
38502         * modules/ceilf-tests (Files): Likewise.
38503         * modules/ceill-tests (Files): Likewise.
38504         * modules/chown-tests (Files): Likewise.
38505         * modules/cloexec-tests (Files): Likewise.
38506         * modules/copy-file-tests (Files): Likewise.
38507         * modules/count-one-bits-tests (Files): Likewise.
38508         * modules/dprintf-posix-tests (Files): Likewise.
38509         * modules/dup2-tests (Files): Likewise.
38510         * modules/dup3-tests (Files): Likewise.
38511         * modules/duplocale-tests (Files): Likewise.
38512         * modules/fbufmode-tests (Files): Likewise.
38513         * modules/fchdir-tests (Files): Likewise.
38514         * modules/fcntl-safer-tests (Files): Likewise.
38515         * modules/fcntl-tests (Files): Likewise.
38516         * modules/fdopendir-tests (Files): Likewise.
38517         * modules/fdutimensat-tests (Files): Likewise.
38518         * modules/fflush-tests (Files): Likewise.
38519         * modules/filevercmp-tests (Files): Likewise.
38520         * modules/flock-tests (Files): Likewise.
38521         * modules/floorf-tests (Files): Likewise.
38522         * modules/floorl-tests (Files): Likewise.
38523         * modules/fnmatch-tests (Files): Likewise.
38524         * modules/fopen-safer-tests (Files): Likewise.
38525         * modules/fopen-tests (Files): Likewise.
38526         * modules/fpending-tests (Files): Likewise.
38527         * modules/fprintf-posix-tests (Files): Likewise.
38528         * modules/fpurge-tests (Files): Likewise.
38529         * modules/freadable-tests (Files): Likewise.
38530         * modules/freadahead-tests (Files): Likewise.
38531         * modules/freading-tests (Files): Likewise.
38532         * modules/freadptr-tests (Files): Likewise.
38533         * modules/freadseek-tests (Files): Likewise.
38534         * modules/freopen-tests (Files): Likewise.
38535         * modules/frexp-nolibm-tests (Files): Likewise.
38536         * modules/frexp-tests (Files): Likewise.
38537         * modules/frexpl-nolibm-tests (Files): Likewise.
38538         * modules/frexpl-tests (Files): Likewise.
38539         * modules/fseek-tests (Files): Likewise.
38540         * modules/fseeko-tests (Files): Likewise.
38541         * modules/fstrcmp-tests (Files): Likewise.
38542         * modules/fsync-tests (Files): Likewise.
38543         * modules/ftell-tests (Files): Likewise.
38544         * modules/ftello-tests (Files): Likewise.
38545         * modules/func-tests (Files): Likewise.
38546         * modules/futimens-tests (Files): Likewise.
38547         * modules/fwritable-tests (Files): Likewise.
38548         * modules/fwriting-tests (Files): Likewise.
38549         * modules/getcwd-tests (Files): Likewise.
38550         * modules/getdate-tests (Files): Likewise.
38551         * modules/getdelim-tests (Files): Likewise.
38552         * modules/getdtablesize-tests (Files): Likewise.
38553         * modules/getgroups-tests (Files): Likewise.
38554         * modules/getline-tests (Files): Likewise.
38555         * modules/getndelim2-tests (Files): Likewise.
38556         * modules/glob-tests (Files): Likewise.
38557         * modules/hash-tests (Files): Likewise.
38558         * modules/i-ring-tests (Files): Likewise.
38559         * modules/iconv-tests (Files): Likewise.
38560         * modules/iconv_open-utf-tests (Files): Likewise.
38561         * modules/idpriv-drop-tests (Files): Likewise.
38562         * modules/idpriv-droptemp-tests (Files): Likewise.
38563         * modules/inet_ntop-tests (Files): Likewise.
38564         * modules/inet_pton-tests (Files): Likewise.
38565         * modules/isblank-tests (Files): Likewise.
38566         * modules/isfinite-tests (Files): Likewise.
38567         * modules/isinf-tests (Files): Likewise.
38568         * modules/isnan-tests (Files): Likewise.
38569         * modules/isnand-nolibm-tests (Files): Likewise.
38570         * modules/isnand-tests (Files): Likewise.
38571         * modules/isnanf-nolibm-tests (Files): Likewise.
38572         * modules/isnanf-tests (Files): Likewise.
38573         * modules/isnanl-nolibm-tests (Files): Likewise.
38574         * modules/isnanl-tests (Files): Likewise.
38575         * modules/lchown-tests (Files): Likewise.
38576         * modules/ldexpl-tests (Files): Likewise.
38577         * modules/link-tests (Files): Likewise.
38578         * modules/linkat-tests (Files): Likewise.
38579         * modules/linked-list-tests (Files): Likewise.
38580         * modules/linkedhash-list-tests (Files): Likewise.
38581         * modules/localename-tests (Files): Likewise.
38582         * modules/lseek-tests (Files): Likewise.
38583         * modules/lstat-tests (Files): Likewise.
38584         * modules/mbmemcasecmp-tests (Files): Likewise.
38585         * modules/mbmemcasecoll-tests (Files): Likewise.
38586         * modules/mbrtowc-tests (Files): Likewise.
38587         * modules/mbscasecmp-tests (Files): Likewise.
38588         * modules/mbscasestr-tests (Files): Likewise.
38589         * modules/mbschr-tests (Files): Likewise.
38590         * modules/mbscspn-tests (Files): Likewise.
38591         * modules/mbsinit-tests (Files): Likewise.
38592         * modules/mbsncasecmp-tests (Files): Likewise.
38593         * modules/mbsnrtowcs-tests (Files): Likewise.
38594         * modules/mbspbrk-tests (Files): Likewise.
38595         * modules/mbspcasecmp-tests (Files): Likewise.
38596         * modules/mbsrchr-tests (Files): Likewise.
38597         * modules/mbsrtowcs-tests (Files): Likewise.
38598         * modules/mbsspn-tests (Files): Likewise.
38599         * modules/mbsstr-tests (Files): Likewise.
38600         * modules/memchr-tests (Files): Likewise.
38601         * modules/memchr2-tests (Files): Likewise.
38602         * modules/memcmp-tests (Files): Likewise.
38603         * modules/memmem-tests (Files): Likewise.
38604         * modules/memrchr-tests (Files): Likewise.
38605         * modules/mkdir-tests (Files): Likewise.
38606         * modules/mkfifo-tests (Files): Likewise.
38607         * modules/mkfifoat-tests (Files): Likewise.
38608         * modules/mknod-tests (Files): Likewise.
38609         * modules/nanosleep-tests (Files): Likewise.
38610         * modules/nl_langinfo-tests (Files): Likewise.
38611         * modules/obstack-printf-tests (Files): Likewise.
38612         * modules/open-tests (Files): Likewise.
38613         * modules/openat-tests (Files): Likewise.
38614         * modules/pipe-filter-gi-tests (Files): Likewise.
38615         * modules/pipe-filter-ii-tests (Files): Likewise.
38616         * modules/pipe2-tests (Files): Likewise.
38617         * modules/popen-safer-tests (Files): Likewise.
38618         * modules/popen-tests (Files): Likewise.
38619         * modules/posixtm-tests (Files): Likewise.
38620         * modules/pread-tests (Files): Likewise.
38621         * modules/printf-frexp-tests (Files): Likewise.
38622         * modules/printf-frexpl-tests (Files): Likewise.
38623         * modules/printf-posix-tests (Files): Likewise.
38624         * modules/priv-set-tests (Files): Likewise.
38625         * modules/quotearg-tests (Files): Likewise.
38626         * modules/random_r-tests (Files): Likewise.
38627         * modules/rawmemchr-tests (Files): Likewise.
38628         * modules/rbtree-list-tests (Files): Likewise.
38629         * modules/rbtree-oset-tests (Files): Likewise.
38630         * modules/rbtreehash-list-tests (Files): Likewise.
38631         * modules/readlink-tests (Files): Likewise.
38632         * modules/remove-tests (Files): Likewise.
38633         * modules/rename-tests (Files): Likewise.
38634         * modules/renameat-tests (Files): Likewise.
38635         * modules/rmdir-tests (Files): Likewise.
38636         * modules/round-tests (Files): Likewise.
38637         * modules/roundf-tests (Files): Likewise.
38638         * modules/roundl-tests (Files): Likewise.
38639         * modules/safe-alloc-tests (Files): Likewise.
38640         * modules/setenv-tests (Files): Likewise.
38641         * modules/sigaction-tests (Files): Likewise.
38642         * modules/signbit-tests (Files): Likewise.
38643         * modules/sleep-tests (Files): Likewise.
38644         * modules/snprintf-posix-tests (Files): Likewise.
38645         * modules/snprintf-tests (Files): Likewise.
38646         * modules/sprintf-posix-tests (Files): Likewise.
38647         * modules/stat-tests (Files): Likewise.
38648         * modules/stat-time-tests (Files): Likewise.
38649         * modules/strcasestr-tests (Files): Likewise.
38650         * modules/strchrnul-tests (Files): Likewise.
38651         * modules/strerror-tests (Files): Likewise.
38652         * modules/striconv-tests (Files): Likewise.
38653         * modules/striconveh-tests (Files): Likewise.
38654         * modules/striconveha-tests (Files): Likewise.
38655         * modules/strsignal-tests (Files): Likewise.
38656         * modules/strstr-tests (Files): Likewise.
38657         * modules/strtod-tests (Files): Likewise.
38658         * modules/strverscmp-tests (Files): Likewise.
38659         * modules/symlink-tests (Files): Likewise.
38660         * modules/symlinkat-tests (Files): Likewise.
38661         * modules/trunc-tests (Files): Likewise.
38662         * modules/truncf-tests (Files): Likewise.
38663         * modules/truncl-tests (Files): Likewise.
38664         * modules/uname-tests (Files): Likewise.
38665         * modules/unicase/cased-tests (Files): Likewise.
38666         * modules/unicase/ignorable-tests (Files): Likewise.
38667         * modules/unicase/locale-language-tests (Files): Likewise.
38668         * modules/unicase/tolower-tests (Files): Likewise.
38669         * modules/unicase/totitle-tests (Files): Likewise.
38670         * modules/unicase/toupper-tests (Files): Likewise.
38671         * modules/unicase/u8-casecmp-tests (Files): Likewise.
38672         * modules/unicase/u8-casecoll-tests (Files): Likewise.
38673         * modules/unicase/u8-casefold-tests (Files): Likewise.
38674         * modules/unicase/u8-is-cased-tests (Files): Likewise.
38675         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
38676         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
38677         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
38678         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
38679         * modules/unicase/u8-tolower-tests (Files): Likewise.
38680         * modules/unicase/u8-totitle-tests (Files): Likewise.
38681         * modules/unicase/u8-toupper-tests (Files): Likewise.
38682         * modules/unicase/u16-casecmp-tests (Files): Likewise.
38683         * modules/unicase/u16-casecoll-tests (Files): Likewise.
38684         * modules/unicase/u16-casefold-tests (Files): Likewise.
38685         * modules/unicase/u16-is-cased-tests (Files): Likewise.
38686         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
38687         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
38688         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
38689         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
38690         * modules/unicase/u16-tolower-tests (Files): Likewise.
38691         * modules/unicase/u16-totitle-tests (Files): Likewise.
38692         * modules/unicase/u16-toupper-tests (Files): Likewise.
38693         * modules/unicase/u32-casecmp-tests (Files): Likewise.
38694         * modules/unicase/u32-casecoll-tests (Files): Likewise.
38695         * modules/unicase/u32-casefold-tests (Files): Likewise.
38696         * modules/unicase/u32-is-cased-tests (Files): Likewise.
38697         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
38698         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
38699         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
38700         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
38701         * modules/unicase/u32-tolower-tests (Files): Likewise.
38702         * modules/unicase/u32-totitle-tests (Files): Likewise.
38703         * modules/unicase/u32-toupper-tests (Files): Likewise.
38704         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
38705         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
38706         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
38707         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
38708         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
38709         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
38710         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
38711         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
38712         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
38713         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
38714         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
38715         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
38716         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
38717         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
38718         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
38719         * modules/unictype/bidicategory-name-tests (Files): Likewise.
38720         * modules/unictype/bidicategory-of-tests (Files): Likewise.
38721         * modules/unictype/bidicategory-test-tests (Files): Likewise.
38722         * modules/unictype/block-list-tests (Files): Likewise.
38723         * modules/unictype/block-of-tests (Files): Likewise.
38724         * modules/unictype/block-test-tests (Files): Likewise.
38725         * modules/unictype/category-C-tests (Files): Likewise.
38726         * modules/unictype/category-Cc-tests (Files): Likewise.
38727         * modules/unictype/category-Cf-tests (Files): Likewise.
38728         * modules/unictype/category-Cn-tests (Files): Likewise.
38729         * modules/unictype/category-Co-tests (Files): Likewise.
38730         * modules/unictype/category-Cs-tests (Files): Likewise.
38731         * modules/unictype/category-L-tests (Files): Likewise.
38732         * modules/unictype/category-Ll-tests (Files): Likewise.
38733         * modules/unictype/category-Lm-tests (Files): Likewise.
38734         * modules/unictype/category-Lo-tests (Files): Likewise.
38735         * modules/unictype/category-Lt-tests (Files): Likewise.
38736         * modules/unictype/category-Lu-tests (Files): Likewise.
38737         * modules/unictype/category-M-tests (Files): Likewise.
38738         * modules/unictype/category-Mc-tests (Files): Likewise.
38739         * modules/unictype/category-Me-tests (Files): Likewise.
38740         * modules/unictype/category-Mn-tests (Files): Likewise.
38741         * modules/unictype/category-N-tests (Files): Likewise.
38742         * modules/unictype/category-Nd-tests (Files): Likewise.
38743         * modules/unictype/category-Nl-tests (Files): Likewise.
38744         * modules/unictype/category-No-tests (Files): Likewise.
38745         * modules/unictype/category-P-tests (Files): Likewise.
38746         * modules/unictype/category-Pc-tests (Files): Likewise.
38747         * modules/unictype/category-Pd-tests (Files): Likewise.
38748         * modules/unictype/category-Pe-tests (Files): Likewise.
38749         * modules/unictype/category-Pf-tests (Files): Likewise.
38750         * modules/unictype/category-Pi-tests (Files): Likewise.
38751         * modules/unictype/category-Po-tests (Files): Likewise.
38752         * modules/unictype/category-Ps-tests (Files): Likewise.
38753         * modules/unictype/category-S-tests (Files): Likewise.
38754         * modules/unictype/category-Sc-tests (Files): Likewise.
38755         * modules/unictype/category-Sk-tests (Files): Likewise.
38756         * modules/unictype/category-Sm-tests (Files): Likewise.
38757         * modules/unictype/category-So-tests (Files): Likewise.
38758         * modules/unictype/category-Z-tests (Files): Likewise.
38759         * modules/unictype/category-Zl-tests (Files): Likewise.
38760         * modules/unictype/category-Zp-tests (Files): Likewise.
38761         * modules/unictype/category-Zs-tests (Files): Likewise.
38762         * modules/unictype/category-and-not-tests (Files): Likewise.
38763         * modules/unictype/category-and-tests (Files): Likewise.
38764         * modules/unictype/category-byname-tests (Files): Likewise.
38765         * modules/unictype/category-name-tests (Files): Likewise.
38766         * modules/unictype/category-none-tests (Files): Likewise.
38767         * modules/unictype/category-of-tests (Files): Likewise.
38768         * modules/unictype/category-or-tests (Files): Likewise.
38769         * modules/unictype/category-test-withtable-tests (Files): Likewise.
38770         * modules/unictype/combining-class-tests (Files): Likewise.
38771         * modules/unictype/ctype-alnum-tests (Files): Likewise.
38772         * modules/unictype/ctype-alpha-tests (Files): Likewise.
38773         * modules/unictype/ctype-blank-tests (Files): Likewise.
38774         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
38775         * modules/unictype/ctype-digit-tests (Files): Likewise.
38776         * modules/unictype/ctype-graph-tests (Files): Likewise.
38777         * modules/unictype/ctype-lower-tests (Files): Likewise.
38778         * modules/unictype/ctype-print-tests (Files): Likewise.
38779         * modules/unictype/ctype-punct-tests (Files): Likewise.
38780         * modules/unictype/ctype-space-tests (Files): Likewise.
38781         * modules/unictype/ctype-upper-tests (Files): Likewise.
38782         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
38783         * modules/unictype/decimal-digit-tests (Files): Likewise.
38784         * modules/unictype/digit-tests (Files): Likewise.
38785         * modules/unictype/mirror-tests (Files): Likewise.
38786         * modules/unictype/numeric-tests (Files): Likewise.
38787         * modules/unictype/property-alphabetic-tests (Files): Likewise.
38788         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
38789         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
38790         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
38791         Likewise.
38792         * modules/unictype/property-bidi-block-separator-tests (Files):
38793         Likewise.
38794         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
38795         Likewise.
38796         * modules/unictype/property-bidi-common-separator-tests (Files):
38797         Likewise.
38798         * modules/unictype/property-bidi-control-tests (Files): Likewise.
38799         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
38800         Likewise.
38801         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
38802         Likewise.
38803         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
38804         Likewise.
38805         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
38806         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
38807         Likewise.
38808         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
38809         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
38810         Likewise.
38811         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
38812         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
38813         * modules/unictype/property-bidi-segment-separator-tests (Files):
38814         Likewise.
38815         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
38816         * modules/unictype/property-byname-tests (Files): Likewise.
38817         * modules/unictype/property-combining-tests (Files): Likewise.
38818         * modules/unictype/property-composite-tests (Files): Likewise.
38819         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
38820         * modules/unictype/property-dash-tests (Files): Likewise.
38821         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
38822         * modules/unictype/property-default-ignorable-code-point-tests (Files):
38823         Likewise.
38824         * modules/unictype/property-deprecated-tests (Files): Likewise.
38825         * modules/unictype/property-diacritic-tests (Files): Likewise.
38826         * modules/unictype/property-extender-tests (Files): Likewise.
38827         * modules/unictype/property-format-control-tests (Files): Likewise.
38828         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
38829         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
38830         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
38831         * modules/unictype/property-hex-digit-tests (Files): Likewise.
38832         * modules/unictype/property-hyphen-tests (Files): Likewise.
38833         * modules/unictype/property-id-continue-tests (Files): Likewise.
38834         * modules/unictype/property-id-start-tests (Files): Likewise.
38835         * modules/unictype/property-ideographic-tests (Files): Likewise.
38836         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
38837         * modules/unictype/property-ids-trinary-operator-tests (Files):
38838         Likewise.
38839         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
38840         * modules/unictype/property-iso-control-tests (Files): Likewise.
38841         * modules/unictype/property-join-control-tests (Files): Likewise.
38842         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
38843         * modules/unictype/property-line-separator-tests (Files): Likewise.
38844         * modules/unictype/property-logical-order-exception-tests (Files):
38845         Likewise.
38846         * modules/unictype/property-lowercase-tests (Files): Likewise.
38847         * modules/unictype/property-math-tests (Files): Likewise.
38848         * modules/unictype/property-non-break-tests (Files): Likewise.
38849         * modules/unictype/property-not-a-character-tests (Files): Likewise.
38850         * modules/unictype/property-numeric-tests (Files): Likewise.
38851         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
38852         * modules/unictype/property-other-default-ignorable-code-point-tests
38853         (Files): Likewise.
38854         * modules/unictype/property-other-grapheme-extend-tests (Files):
38855         Likewise.
38856         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
38857         * modules/unictype/property-other-id-start-tests (Files): Likewise.
38858         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
38859         * modules/unictype/property-other-math-tests (Files): Likewise.
38860         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
38861         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
38862         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
38863         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
38864         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
38865         * modules/unictype/property-private-use-tests (Files): Likewise.
38866         * modules/unictype/property-punctuation-tests (Files): Likewise.
38867         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
38868         * modules/unictype/property-radical-tests (Files): Likewise.
38869         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
38870         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
38871         * modules/unictype/property-space-tests (Files): Likewise.
38872         * modules/unictype/property-terminal-punctuation-tests (Files):
38873         Likewise.
38874         * modules/unictype/property-test-tests (Files): Likewise.
38875         * modules/unictype/property-titlecase-tests (Files): Likewise.
38876         * modules/unictype/property-unassigned-code-value-tests (Files):
38877         Likewise.
38878         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
38879         * modules/unictype/property-uppercase-tests (Files): Likewise.
38880         * modules/unictype/property-variation-selector-tests (Files): Likewise.
38881         * modules/unictype/property-white-space-tests (Files): Likewise.
38882         * modules/unictype/property-xid-continue-tests (Files): Likewise.
38883         * modules/unictype/property-xid-start-tests (Files): Likewise.
38884         * modules/unictype/property-zero-width-tests (Files): Likewise.
38885         * modules/unictype/scripts-tests (Files): Likewise.
38886         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
38887         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
38888         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
38889         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
38890         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
38891         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
38892         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
38893         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
38894         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
38895         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
38896         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
38897         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38898         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38899         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38900         * modules/uninorm/composition-tests (Files): Likewise.
38901         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38902         * modules/uninorm/decomposition-tests (Files): Likewise.
38903         * modules/uninorm/filter-tests (Files): Likewise.
38904         * modules/uninorm/nfc-tests (Files): Likewise.
38905         * modules/uninorm/nfd-tests (Files): Likewise.
38906         * modules/uninorm/nfkc-tests (Files): Likewise.
38907         * modules/uninorm/nfkd-tests (Files): Likewise.
38908         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38909         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38910         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38911         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38912         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38913         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38914         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38915         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38916         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38917         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38918         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38919         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38920         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38921         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
38922         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
38923         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
38924         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
38925         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38926         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
38927         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
38928         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
38929         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
38930         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38931         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
38932         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
38933         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
38934         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
38935         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
38936         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
38937         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
38938         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
38939         * modules/uniwidth/u8-width-tests (Files): Likewise.
38940         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
38941         * modules/uniwidth/u16-width-tests (Files): Likewise.
38942         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
38943         * modules/uniwidth/u32-width-tests (Files): Likewise.
38944         * modules/uniwidth/width-tests (Files): Likewise.
38945         * modules/unlink-tests (Files): Likewise.
38946         * modules/unsetenv-tests (Files): Likewise.
38947         * modules/usleep-tests (Files): Likewise.
38948         * modules/utimens-tests (Files): Likewise.
38949         * modules/utimensat-tests (Files): Likewise.
38950         * modules/vasnprintf-posix-tests (Files): Likewise.
38951         * modules/vasnprintf-tests (Files): Likewise.
38952         * modules/vasprintf-posix-tests (Files): Likewise.
38953         * modules/vasprintf-tests (Files): Likewise.
38954         * modules/vdprintf-posix-tests (Files): Likewise.
38955         * modules/vfprintf-posix-tests (Files): Likewise.
38956         * modules/vprintf-posix-tests (Files): Likewise.
38957         * modules/vsnprintf-posix-tests (Files): Likewise.
38958         * modules/vsnprintf-tests (Files): Likewise.
38959         * modules/vsprintf-posix-tests (Files): Likewise.
38960         * modules/wcrtomb-tests (Files): Likewise.
38961         * modules/wcsnrtombs-tests (Files): Likewise.
38962         * modules/wcsrtombs-tests (Files): Likewise.
38963         * modules/wctype-tests (Files): Likewise.
38964         * modules/wcwidth-tests (Files): Likewise.
38965         * modules/xmemdup0-tests (Files): Likewise.
38966         * modules/xprintf-posix-tests (Files): Likewise.
38967         * modules/xvasprintf-tests (Files): Likewise.
38968
38969 2009-12-24  Eric Blake  <ebb9@byu.net>
38970
38971         test-nanosleep: fix typo
38972         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
38973         patch.
38974         Reported by Bruno Haible.
38975
38976 2009-12-24  Bruno Haible  <bruno@clisp.org>
38977
38978         Reduce namespace pollution on glibc systems.
38979         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38980         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38981         systems.
38982         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38983         <getopt.h> on glibc systems.
38984         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38985         systems.
38986         * lib/fcntl.c: Include <unistd.h> here instead.
38987
38988 2009-12-24  Bruno Haible  <bruno@clisp.org>
38989
38990         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38991
38992 2009-12-24  Eric Blake  <ebb9@byu.net>
38993
38994         tests: add signature checks
38995         * tests/signature.h (SIGNATURE_CHECK): New file.
38996         * modules/atexit-tests (Files): Use it.
38997         * modules/btowc-tests (Files): Likewise.
38998         * modules/canonicalize-lgpl-tests (Files): Likewise.
38999         * modules/ceilf-tests (Files): Likewise.
39000         * modules/ceill-tests (Files): Likewise.
39001         * modules/chown-tests (Files): Likewise.
39002         * modules/dprintf-posix-tests (Files): Likewise.
39003         * modules/dup2-tests (Files): Likewise.
39004         * modules/dup3-tests (Files): Likewise.
39005         * modules/duplocale-tests (Files): Likewise.
39006         * modules/fchdir-tests (Files): Likewise.
39007         * modules/fcntl-tests (Files): Likewise.
39008         * modules/fdopendir-tests (Files): Likewise.
39009         * modules/fflush-tests (Files): Likewise.
39010         * modules/flock-tests (Files): Likewise.
39011         * modules/floorf-tests (Files): Likewise.
39012         * modules/floorl-tests (Files): Likewise.
39013         * modules/fnmatch-tests (Files): Likewise.
39014         * modules/fopen-tests (Files): Likewise.
39015         * modules/fprintf-posix-tests (Files): Likewise.
39016         * modules/freopen-tests (Files): Likewise.
39017         * modules/frexp-nolibm-tests (Files): Likewise.
39018         * modules/frexp-tests (Files): Likewise.
39019         * modules/frexpl-nolibm-tests (Files): Likewise.
39020         * modules/frexpl-tests (Files): Likewise.
39021         * modules/fseek-tests (Files): Likewise.
39022         * modules/fseeko-tests (Files): Likewise.
39023         * modules/fsync-tests (Files): Likewise.
39024         * modules/ftell-tests (Files): Likewise.
39025         * modules/ftello-tests (Files): Likewise.
39026         * modules/futimens-tests (Files): Likewise.
39027         * modules/getaddrinfo-tests (Files): Likewise.
39028         * modules/getcwd-tests (Files): Likewise.
39029         * modules/getdelim-tests (Files): Likewise.
39030         * modules/getdtablesize-tests (Files): Likewise.
39031         * modules/getgroups-tests (Files): Likewise.
39032         * modules/gethostname-tests (Files): Likewise.
39033         * modules/getline-tests (Files): Likewise.
39034         * modules/getopt-posix-tests (Files): Likewise.
39035         * modules/gettimeofday-tests (Files): Likewise.
39036         * modules/glob-tests (Files): Likewise.
39037         * modules/iconv-tests (Files): Likewise.
39038         * modules/inet_ntop-tests (Files): Likewise.
39039         * modules/inet_pton-tests (Files): Likewise.
39040         * modules/isblank-tests (Files): Likewise.
39041         * modules/lchown-tests (Files): Likewise.
39042         * modules/ldexpl-tests (Files): Likewise.
39043         * modules/link-tests (Files): Likewise.
39044         * modules/linkat-tests (Files): Likewise.
39045         * modules/lseek-tests (Files): Likewise.
39046         * modules/lstat-tests (Files): Likewise.
39047         * modules/mbrtowc-tests (Files): Likewise.
39048         * modules/mbsinit-tests (Files): Likewise.
39049         * modules/mbsnrtowcs-tests (Files): Likewise.
39050         * modules/mbsrtowcs-tests (Files): Likewise.
39051         * modules/memchr-tests (Files): Likewise.
39052         * modules/memcmp-tests (Files): Likewise.
39053         * modules/memmem-tests (Files): Likewise.
39054         * modules/memrchr-tests (Files): Likewise.
39055         * modules/mkdir-tests (Files): Likewise.
39056         * modules/mkfifo-tests (Files): Likewise.
39057         * modules/mkfifoat-tests (Files): Likewise.
39058         * modules/mknod-tests (Files): Likewise.
39059         * modules/nanosleep-tests (Files): Likewise.
39060         * modules/nl_langinfo-tests (Files): Likewise.
39061         * modules/obstack-printf-tests (Files): Likewise.
39062         * modules/open-tests (Files): Likewise.
39063         * modules/openat-tests (Files): Likewise.
39064         * modules/perror-tests (Files): Likewise.
39065         * modules/pipe2-tests (Files): Likewise.
39066         * modules/poll-tests (Files): Likewise.
39067         * modules/popen-tests (Files): Likewise.
39068         * modules/posix_spawn-tests (Files): Likewise.
39069         * modules/posix_spawnp-tests (Files): Likewise.
39070         * modules/pread-tests (Files): Likewise.
39071         * modules/printf-posix-tests (Files): Likewise.
39072         * modules/pty-tests (Files): Likewise.
39073         * modules/random_r-tests (Files): Likewise.
39074         * modules/rawmemchr-tests (Files): Likewise.
39075         * modules/readlink-tests (Files): Likewise.
39076         * modules/remove-tests (Files): Likewise.
39077         * modules/rename-tests (Files): Likewise.
39078         * modules/renameat-tests (Files): Likewise.
39079         * modules/rmdir-tests (Files): Likewise.
39080         * modules/round-tests (Files): Likewise.
39081         * modules/roundf-tests (Files): Likewise.
39082         * modules/roundl-tests (Files): Likewise.
39083         * modules/select-tests (Files): Likewise.
39084         * modules/setenv-tests (Files): Likewise.
39085         * modules/sigaction-tests (Files): Likewise.
39086         * modules/sleep-tests (Files): Likewise.
39087         * modules/snprintf-posix-tests (Files): Likewise.
39088         * modules/snprintf-tests (Files): Likewise.
39089         * modules/sprintf-posix-tests (Files): Likewise.
39090         * modules/stat-tests (Files): Likewise.
39091         * modules/strcasestr-tests (Files): Likewise.
39092         * modules/strchrnul-tests (Files): Likewise.
39093         * modules/strerror-tests (Files): Likewise.
39094         * modules/strsignal-tests (Files): Likewise.
39095         * modules/strstr-tests (Files): Likewise.
39096         * modules/strtod-tests (Files): Likewise.
39097         * modules/strverscmp-tests (Files): Likewise.
39098         * modules/symlink-tests (Files): Likewise.
39099         * modules/symlinkat-tests (Files): Likewise.
39100         * modules/times-tests (Files): Likewise.
39101         * modules/trunc-tests (Files): Likewise.
39102         * modules/truncf-tests (Files): Likewise.
39103         * modules/truncl-tests (Files): Likewise.
39104         * modules/tsearch-tests (Files): Likewise.
39105         * modules/uname-tests (Files): Likewise.
39106         * modules/unlink-tests (Files): Likewise.
39107         * modules/unsetenv-tests (Files): Likewise.
39108         * modules/usleep-tests (Files): Likewise.
39109         * modules/utimensat-tests (Files): Likewise.
39110         * modules/vasprintf-tests (Files): Likewise.
39111         * modules/vdprintf-posix-tests (Files): Likewise.
39112         * modules/vfprintf-posix-tests (Files): Likewise.
39113         * modules/vprintf-posix-tests (Files): Likewise.
39114         * modules/vsnprintf-posix-tests (Files): Likewise.
39115         * modules/vsnprintf-tests (Files): Likewise.
39116         * modules/vsprintf-posix-tests (Files): Likewise.
39117         * modules/wcrtomb-tests (Files): Likewise.
39118         * modules/wcsnrtombs-tests (Files): Likewise.
39119         * modules/wcsrtombs-tests (Files): Likewise.
39120         * modules/wcwidth-tests (Files): Likewise.
39121         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39122         * tests/test-isinf.c (isinf): Likewise.
39123         * tests/test-isnan.c (isnan): Likewise.
39124         * tests/test-signbit.c (signbit): Likewise.
39125         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39126         declaration, either as macro or with correct signature.
39127         (select): Ensure function under test is declared with correct
39128         signature in correct header.
39129         * tests/test-atexit.c (atexit): Likewise.
39130         * tests/test-btowc.c (btowc): Likewise.
39131         * tests/test-canonicalize-lgpl.c (realpath)
39132         (canonicalize_file_name): Likewise.
39133         * tests/test-ceilf1.c (ceilf): Likewise.
39134         * tests/test-ceill.c (ceill): Likewise.
39135         * tests/test-chown.c (chown): Likewise.
39136         * tests/test-dprintf-posix.c (dprintf): Likewise.
39137         * tests/test-dup2.c (dup2): Likewise.
39138         * tests/test-dup3.c (dup3): Likewise.
39139         * tests/test-duplocale.c (duplocale): Likewise.
39140         * tests/test-fchdir.c (fchdir): Likewise.
39141         * tests/test-fchownat.c (fchownat): Likewise.
39142         * tests/test-fcntl.c (fcntl): Likewise.
39143         * tests/test-fdopendir.c (fdopendir): Likewise.
39144         * tests/test-fflush.c (fflush): Likewise.
39145         * tests/test-flock.c (flock): Likewise.
39146         * tests/test-floorf1.c (floorf): Likewise.
39147         * tests/test-floorl.c (floorl): Likewise.
39148         * tests/test-fnmatch.c (fnmatch): Likewise.
39149         * tests/test-fopen.c (fopen): Likewise.
39150         * tests/test-fprintf-posix.c (fprintf): Likewise.
39151         * tests/test-freopen.c (freopen): Likewise.
39152         * tests/test-frexp.c (frexp): Likewise.
39153         * tests/test-frexpl.c (frexpl): Likewise.
39154         * tests/test-fseek.c (fseek): Likewise.
39155         * tests/test-fseeko.c (fseeko): Likewise.
39156         * tests/test-fstatat.c (fstatat): Likewise.
39157         * tests/test-fsync.c (fsync): Likewise.
39158         * tests/test-ftell.c (ftell): Likewise.
39159         * tests/test-ftello.c (ftello): Likewise.
39160         * tests/test-futimens.c (futimens): Likewise.
39161         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39162         (gai_strerror): Likewise.
39163         * tests/test-getcwd.c (getcwd): Likewise.
39164         * tests/test-getdelim.c (getdelim): Likewise.
39165         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39166         * tests/test-getgroups.c (getgroups): Likewise.
39167         * tests/test-gethostname.c (gethostname): Likewise.
39168         * tests/test-getline.c (getline): Likewise.
39169         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39170         Likewise.
39171         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39172         * tests/test-glob.c (glob, globfree): Likewise.
39173         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39174         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39175         * tests/test-inet_pton.c (inet_pton): Likewise.
39176         * tests/test-isblank.c (isblank): Likewise.
39177         * tests/test-lchown.c (lchown): Likewise.
39178         * tests/test-ldexpl.c (ldexpl): Likewise.
39179         * tests/test-link.c (link): Likewise.
39180         * tests/test-linkat.c (linkat): Likewise.
39181         * tests/test-lseek.c (lseek): Likewise.
39182         * tests/test-lstat.c (lstat): Likewise.
39183         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39184         * tests/test-mbsinit.c (mbsinit): Likewise.
39185         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39186         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39187         * tests/test-memchr.c (memchr): Likewise.
39188         * tests/test-memcmp.c (memcmp): Likewise.
39189         * tests/test-memmem.c (memmem): Likewise.
39190         * tests/test-memrchr.c (memrchr): Likewise.
39191         * tests/test-mkdir.c (mkdir): Likewise.
39192         * tests/test-mkdirat.c (mkdirat): Likewise.
39193         * tests/test-mkfifo.c (mkfifo): Likewise.
39194         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39195         * tests/test-mknod.c (mknod): Likewise.
39196         * tests/test-nanosleep.c (nanosleep): Likewise.
39197         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39198         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39199         Likewise.
39200         * tests/test-open.c (open): Likewise.
39201         * tests/test-openat.c (openat): Likewise.
39202         * tests/test-perror.c (perror): Likewise.
39203         * tests/test-pipe2.c (pipe2): Likewise.
39204         * tests/test-poll.c (poll): Likewise.
39205         * tests/test-popen.c (popen, pclose): Likewise.
39206         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39207         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39208         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39209         (posix_spawn_file_actions_destroy)
39210         (posix_spawn_file_actions_addclose)
39211         (posix_spawn_file_actions_addopen)
39212         (posix_spawn_file_actions_adddup2): Likewise.
39213         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39214         * tests/test-pread.c (pread): Likewise.
39215         * tests/test-printf-posix.c (printf): Likewise.
39216         * tests/test-pty.c (openpty, forkpty): Likewise.
39217         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39218         (random_r): Likewise.
39219         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39220         * tests/test-readlink.c (readlink): Likewise.
39221         * tests/test-remove.c (remove): Likewise.
39222         * tests/test-rename.c (rename): Likewise.
39223         * tests/test-renameat.c (renameat): Likewise.
39224         * tests/test-rmdir.c (rmdir): Likewise.
39225         * tests/test-round1.c (round): Likewise.
39226         * tests/test-roundf1.c (roundf): Likewise.
39227         * tests/test-roundl.c (roundl): Likewise.
39228         * tests/test-setenv.c (setenv): Likewise.
39229         * tests/test-sigaction.c (sigaction): Likewise.
39230         * tests/test-sleep.c (sleep): Likewise.
39231         * tests/test-snprintf.c (snprintf): Likewise.
39232         * tests/test-sprintf-posix.c (sprintf): Likewise.
39233         * tests/test-stat.c (stat): Likewise.
39234         * tests/test-stpncpy.c (stpncpy): Likewise.
39235         * tests/test-strcasestr.c (strcasestr): Likewise.
39236         * tests/test-strchrnul.c (strchrnul): Likewise.
39237         * tests/test-strerror.c (strerror): Likewise.
39238         * tests/test-strsignal.c (strsignal): Likewise.
39239         * tests/test-strstr.c (strstr): Likewise.
39240         * tests/test-strtod.c (strtod): Likewise.
39241         * tests/test-strverscmp.c (strverscmp): Likewise.
39242         * tests/test-symlink.c (symlink): Likewise.
39243         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39244         * tests/test-times.c (times): Likewise.
39245         * tests/test-trunc1.c (trunc): Likewise.
39246         * tests/test-truncf1.c (truncf): Likewise.
39247         * tests/test-truncl.c (truncl): Likewise.
39248         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39249         Likewise.
39250         * tests/test-uname.c (uname): Likewise.
39251         * tests/test-unlink.c (unlink): Likewise.
39252         * tests/test-unlinkat.c (unlinkat): Likewise.
39253         * tests/test-unsetenv.c (unsetenv): Likewise.
39254         * tests/test-usleep.c (usleep): Likewise.
39255         * tests/test-utimensat.c (utimensat): Likewise.
39256         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39257         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39258         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39259         * tests/test-vprintf-posix.c (vprintf): Likewise.
39260         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39261         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39262         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39263         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39264         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39265         * tests/test-wcwidth.c (wcwidth): Likewise.
39266
39267         build: pull in conditional headers during GNULIB_POSIXCHECK
39268         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39269         definitions from any conditionally-included headers.
39270         * lib/stdlib.in.h (includes): Likewise.
39271         * lib/unistd.in.h (includes): Likewise.
39272
39273 2009-12-24  Bruno Haible  <bruno@clisp.org>
39274
39275         * tests/test-argv-iter.c: Include header file being tested immediately
39276         after config.h.
39277         * tests/test-base64.c: Likewise.
39278         * tests/test-flock.c: Likewise.
39279         * tests/test-fsync.c: Likewise.
39280         * tests/test-getdate.c: Likewise.
39281         * tests/test-getndelim2.c: Likewise.
39282         * tests/test-isfinite.c: Likewise.
39283         * tests/test-isinf.c: Likewise.
39284         * tests/test-strerror.c: Likewise.
39285         * tests/test-strsignal.c: Likewise.
39286
39287 2009-12-23  Eric Blake  <ebb9@byu.net>
39288
39289         unistd: work around cygwin bug
39290         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39291         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39292         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39293
39294 2009-12-23  Bruno Haible  <bruno@clisp.org>
39295
39296         localename: More tests.
39297         * tests/test-localename.c (SIZEOF): New macro.
39298         (categories): New variable.
39299         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39300         test_locale_name_default): Add test w.r.t. thread locale.
39301         (test_locale_name_thread): New function.
39302         (main): Invoke it.
39303
39304         localename: Make aware of thread locale.
39305         * lib/localename.h (gl_locale_name_thread): New declaration.
39306         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39307         behaviour with respect to thread locale.
39308         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39309         <langinfo.h>, glthread/lock.h.
39310         (SIZE_BITS): New macro.
39311         (string_hash): New function.
39312         (struct hash_node): New type.
39313         (HASH_TABLE_SIZE): New macro.
39314         (struniq_hash_table, struniq_lock): New variables.
39315         (struniq): New function.
39316         (gl_locale_name_thread): New function.
39317         (gl_locale_name): Invoke it.
39318         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39319         * modules/localename (Depends-on): Add lock.
39320         Reported by Mike Gran <spk121@yahoo.com>.
39321
39322 2009-12-23  Eric Blake  <ebb9@byu.net>
39323
39324         va-args: new module
39325         * modules/va-args: New file.
39326         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39327         * MODULES.html.sh (Core language properties): Mention it.
39328
39329         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39330         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39331         named alias for __attribute__((__unused__)).
39332         * lib/chown.c: Update client.
39333         * lib/fchmodat.c: Likewise.
39334         * lib/fts.c: Likewise.
39335         * lib/getdate.y: Likewise.
39336         * lib/getgroups.c: Likewise.
39337         * lib/getopt.c: Likewise.
39338         * lib/getugroups.c: Likewise.
39339         * lib/mkdir.c: Likewise.
39340         * lib/mkfifo.c: Likewise.
39341         * lib/mkfifoat.c: Likewise.
39342         * lib/mknod.c: Likewise.
39343         * lib/mknodat.c: Likewise.
39344         * lib/readlink.c: Likewise.
39345         * lib/se-context.in.h: Likewise.
39346         * lib/se-selinux.in.h: Likewise.
39347         * lib/sockets.c: Likewise.
39348         * lib/symlink.c: Likewise.
39349         * lib/symlinkat.c: Likewise.
39350         * lib/unicodeio.c: Likewise.
39351         * lib/unistr.h: Likewise.
39352         * tests/test-areadlink.c: Likewise.
39353         * tests/test-areadlinkat.c: Likewise.
39354         * tests/test-filenamecat.c: Likewise.
39355         * tests/test-fseeko.c: Likewise.
39356         * tests/test-ftello.c: Likewise.
39357         * tests/test-getdate.c: Likewise.
39358         * tests/test-getgroups.c: Likewise.
39359         * tests/test-gethostname.c: Likewise.
39360         * tests/test-quotearg.c: Likewise.
39361         * tests/test-version-etc.c: Likewise.
39362         * tests/test-xalloc-die.c: Likewise.
39363         * tests/test-xfprintf-posix.c: Likewise.
39364         * tests/test-xprintf-posix.c: Likewise.
39365         * tests/test-xvasprintf.c: Likewise.
39366
39367         tests: avoid compiler warnings
39368         * tests/test-fcntl.c (main): Delete unused parameters.
39369         * tests/test-freopen-safer.c (main): Likewise.
39370         * tests/test-xalloc-die.c (main): Mark unused parameters.
39371         * tests/test-fseeko.c (main): Likewise.
39372         * tests/test-ftello.c (main): Likewise.
39373         * tests/test-nanosleep.c (main): Avoid declaration warning.
39374         * tests/test-sleep.c (main): Likewise.
39375         * tests/test-unsetenv.c (main): Silence warning about string
39376         literal.
39377         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39378
39379 2009-12-23  Bruno Haible  <bruno@clisp.org>
39380
39381         * tests/test-localename.c (test_locale_name): New function, extracted
39382         from main. Also test mixed situations.
39383         (test_locale_name_posix, test_locale_name_environ,
39384         test_locale_name_default): New functions.
39385         (main): Invoke them all.
39386         * modules/localename-tests (configure.ac): Test for newlocale.
39387
39388 2009-12-23  Bruno Haible  <bruno@clisp.org>
39389
39390         unistd: Ensure getcwd gets declared before being overridden.
39391         * lib/unistd.in.h: Conditionally include <io.h>.
39392
39393 2009-12-22  Bruno Haible  <bruno@clisp.org>
39394
39395         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39396         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39397         (gl_WCHAR_H): Invoke it.
39398         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39399         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39400         Reported by Karl Berry <karl@freefriends.org>.
39401
39402 2009-12-22  Eric Blake  <ebb9@byu.net>
39403
39404         math, unistd: avoid redundant includes
39405         * lib/math.in.h (isnan): No need to re-include <math.h>.
39406         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39407
39408         getsubopt: work around cygwin bug
39409         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39410         avoid conflicting with system getsubopt.
39411         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39412         bug.
39413
39414         getopt: synchronize from glibc
39415         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39416         parameter order.  Adjust all callers.
39417         (_getopt_internal_r, main): Adjust quoting in error messages.
39418         Drop considerations for outdated POSIX 1003.2 error message.
39419         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39420         callers.
39421         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39422
39423         test-getopt: test stderr behavior
39424         * modules/getopt-posix-tests (Depends-on): Add dup2.
39425         * tests/test-getopt.c (ASSERT): Avoid stderr.
39426         (main): Move stderr to a temporary file.
39427         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39428         Instead, add parameter to inform caller if output occurred.
39429         (test_getopt): Adjust all existing tests to expect silence, and
39430         add new tests of leading ":".
39431         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39432         glibc shortcomings with leading "-:" or "+:" in optstring.
39433         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39434         Likewise.
39435         * doc/posix-functions/getopt.texi (getopt): Likewise.
39436
39437         test-getopt: enhance test
39438         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39439         supports optind=0.
39440         * tests/test-getopt.c (OPTIND_MIN): Move...
39441         * tests/test-getopt.h (OPTIND_MIN): ...here.
39442         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39443         Require that optind=0 works, since modern BSD supports it in
39444         addition to optreset, and since coreutils expects it.
39445         (test_getopt_long_only): New test.
39446         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39447         glibc shortcomings with 'W;', and enforcement of optind=0.
39448         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39449         Likewise.
39450
39451 2009-12-21  Bruno Haible  <bruno@clisp.org>
39452
39453         localename: Improvements for MacOS X and Cygwin.
39454         * lib/localename.h (gl_locale_name_environ): New declaration.
39455         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39456         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39457         (gl_locale_name_posix): Invoke it.
39458         (gl_locale_name_default): Add comments. Use Windows native API also on
39459         Cygwin.
39460
39461 2009-12-21  Bruno Haible  <bruno@clisp.org>
39462
39463         Update list of Win32 locale ids.
39464         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39465         (LANG_SAMI): Renamed from LANG_SAAMI.
39466         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39467         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39468         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39469         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39470         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39471         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39472         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39473         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39474         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39475         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39476         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39477         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39478         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39479         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39480         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39481         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39482         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39483         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39484         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39485         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39486         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39487         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39488         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39489         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39490         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39491         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39492         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39493         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39494         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39495         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39496         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39497         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39498         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39499         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39500         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39501         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39502         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39503         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39504         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39505         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39506         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
39507         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
39508         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
39509         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
39510         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
39511         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
39512         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
39513         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
39514         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
39515         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
39516         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
39517         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
39518         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
39519         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
39520         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
39521         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
39522         Add more languages and countries for Sami, Sorbian. Add more countries
39523         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
39524         for Pashto. Change country for Syriac, Tswana.
39525
39526 2009-12-21  Eric Blake  <ebb9@byu.net>
39527
39528         test-utimens: avoid spurious failure
39529         * tests/test-chown.h (nap): Factor...
39530         * tests/nap.h: ...into new file.
39531         * tests/test-lchown.h (nap): Avoid duplication.
39532         * tests/test-utimens-common.h (nap): Use shared implementation,
39533         necessary on file systems with 1-second resolution.
39534         * modules/chown-tests (Files): Include new file.
39535         * modules/fdutimensat-tests (Files): Likewise.
39536         * modules/futimens-tests (Files): Likewise.
39537         * modules/lchown-tests (Files): Likewise.
39538         * modules/openat-tests (Files): Likewise.
39539         * modules/utimens-tests (Files): Likewise.
39540         * modules/utimensat-tests (Files): Likewise.
39541
39542 2009-12-19  Eric Blake  <ebb9@byu.net>
39543
39544         futimens, utimensat: work around Linux bug
39545         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
39546         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
39547         * lib/utimensat.c (rpl_utimensat): Work around it.
39548         * lib/futimens.c (rpl_futimens): Adjust comment.
39549
39550         utimens: work around Linux ctime bug
39551         * lib/utimens.c (detect_ctime_bug): New helper function.
39552         (update_timespec): Differentiate between workaround needed for
39553         this bug vs. what is needed for systems that lack utimensat.
39554         (fdutimens, lutimens): Work around bug.
39555
39556         utimens: check for ctime update
39557         * tests/test-utimens-common.h (check_ctime): Define.
39558         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
39559         * tests/test-futimens.h (test_futimens): Likewise.
39560         * tests/test-lutimens.h (test_lutimens): Likewise.
39561         * doc/posix-functions/futimens.texi (futimens): Document the bug.
39562         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
39563
39564 2009-12-19  Bruno Haible  <bruno@clisp.org>
39565
39566         dprintf-posix: Check against memory leak fixed on 2009-12-15.
39567         * tests/test-dprintf-posix2.sh: New file.
39568         * tests/test-dprintf-posix2.c: New file.
39569         * modules/dprintf-posix-tests (Files): Add them.
39570         (configure.ac): Check for getrlimit and setrlimit.
39571         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39572
39573 2009-12-19  Bruno Haible  <bruno@clisp.org>
39574
39575         fprintf-posix: Check against memory leak fixed on 2009-12-15.
39576         * tests/test-fprintf-posix3.sh: New file.
39577         * tests/test-fprintf-posix3.c: New file.
39578         * modules/fprintf-posix-tests (Files): Add them.
39579         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
39580
39581 2009-12-19  Eric Blake  <ebb9@byu.net>
39582
39583         dirfd: fix prototype
39584         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
39585         * lib/dirfd.c (dirfd): Likewise.
39586
39587         canonicalize: reduce memory usage
39588         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
39589         allocation to size.
39590         Reported by Solar Designer <solar@openwall.com>.
39591
39592 2009-12-19  Bruno Haible  <bruno@clisp.org>
39593
39594         New module attribute 'Applicability'.
39595         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
39596         * gnulib-tool: New option --extract-applicability.
39597         (func_usage): Document it.
39598         (sed_extract_prog): Recognize it.
39599         (func_get_applicability): New function.
39600         (func_import): Generalize handling of 'link-warning' module.
39601         * modules/link-warning (Applicability): New section.
39602         * modules/arg-nonnull (Applicability): New section.
39603         Repoted by Simon Josefsson <simon@josefsson.org>.
39604
39605 2009-12-19  Bruno Haible  <bruno@clisp.org>
39606
39607         fflush: tweak
39608         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
39609         * lib/fseeko.c (rpl_fseeko): Likewise.
39610
39611 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
39612
39613         * lib/gl_list.h: Fix typo in comment.
39614
39615 2009-12-16  Eric Blake  <ebb9@byu.net>
39616
39617         fcntl: use to simplify other modules
39618         * modules/cloexec (Depends-on): Add fcntl.
39619         * modules/fchdir (Depends-on): Likewise.
39620         * modules/fd-safer-flag (Depends-on): Likewise.
39621         * modules/unistd-safer (Depends-on): Likewise.
39622         * modules/dup3 (configure.ac): Set module indicator.
39623         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
39624         missing.
39625         * lib/fchdir.c (_gl_register_dup): Fix comment.
39626         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
39627         * lib/dup-safer.c (dup_safer): Likewise.
39628         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
39629         * lib/dup3.c (dup3): Likewise.
39630         * tests/test-fchdir.c (main): Enhance test.
39631         Fixes a dup_cloexec bug reported by Ondřej Vašík.
39632
39633         fcntl: port portions of fcntl to mingw
39634         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
39635         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
39636         replacement for mingw.
39637         * modules/fcntl (Description): Update.
39638         (Depends-on): Add dup2.
39639         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
39640         * modules/fcntl-h (Makefile.am): Substitute it.
39641         * lib/fcntl.in.h (fcntl): Update declaration.
39642         (F_DUPFD, F_GETFD): New macros, when needed.
39643         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
39644         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
39645         * tests/test-fcntl.c (check_flags, main): Enhance test for items
39646         we now guarantee.
39647
39648         fcntl: work around cygwin bug in F_DUPFD
39649         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
39650         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
39651         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
39652         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
39653         * doc/posix-functions/fcntl.texi (fcntl): Document it.
39654
39655         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
39656         * modules/fcntl (Files): List new files.
39657         (configure.ac): Run a test.
39658         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
39659         * lib/fcntl.c (rpl_fcntl): Likewise.
39660         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
39661         (gl_FCNTL_H): Always replace fcntl.h.
39662         * modules/fcntl-h (Makefile.am): Substitute witnesses.
39663         * lib/fcntl.in.h (fcntl): Declare replacement.
39664         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
39665         needed, plus a witness.
39666         * doc/posix-functions/fcntl.texi (fcntl): Document this.
39667         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
39668         * tests/test-fcntl.c: New file.
39669         * modules/fcntl-tests: Likewise.
39670
39671         binary-io: avoid potential compilation warning
39672         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
39673         directives.
39674
39675         fflush: avoid compilation error on NetBSD
39676         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
39677         between off_t and fpos_t, since the latter is sometimes a struct.
39678         * lib/fseeko.c (rpl_fseeko): Likewise.
39679         Reported by Alexander Nasonov <alnsn@yandex.ru>.
39680
39681 2009-12-15  Eric Blake  <ebb9@byu.net>
39682
39683         fcntl-h, stdio, sys_ioctl: fix declarations
39684         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
39685         function must not take arguments.
39686         * lib/sys_ioctl.in.h (ioctl): Likewise.
39687         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
39688         (open): Add a link warning.
39689
39690 2009-12-15  Jim Meyering  <meyering@redhat.com>
39691
39692         areadlink, areadlink-with-size: relax license to LGPLv2+
39693         * modules/areadlink (License): Relax to LGPLv2+.
39694         * modules/areadlink-with-size (License): Likewise.
39695
39696 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
39697             Bruno Haible  <bruno@clisp.org>
39698
39699         *printf: Fix memory leak.
39700         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
39701         * lib/vfprintf.c (vfprintf): Likewise.
39702         * lib/dprintf.c (dprintf): Likewise.
39703         * lib/vdprintf.c (vdprintf): Likewise.
39704
39705 2009-12-14  Eric Blake  <ebb9@byu.net>
39706
39707         accept4: adjust module dependencies
39708         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
39709
39710         utimens: one more try at avoiding compiler warning
39711         * lib/utimens.c (lutimens): Lower scope of result.
39712
39713 2009-12-13  Bruno Haible  <bruno@clisp.org>
39714
39715         Move the malloc checking from module 'list' to new module 'xlist'.
39716         * modules/xlist: New file.
39717         * lib/gl_xlist.h: New file.
39718         * lib/gl_xlist.c: New file.
39719         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
39720         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
39721         gl_list_add_last, gl_list_add_before, gl_list_add_after,
39722         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
39723         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
39724         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
39725         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
39726         gl_sortedlist_nx_add): New declarations.
39727         (struct gl_list_implementation): Rename and change methods accordingly.
39728         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
39729         (gl_list_nx_create): Renamed from gl_list_create.
39730         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39731         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39732         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39733         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39734         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39735         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39736         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39737         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39738         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
39739         gl_list_create_empty.
39740         (gl_list_nx_create): Renamed from gl_list_create.
39741         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
39742         (gl_list_nx_set_at): Renamed from gl_list_set_at.
39743         (gl_list_nx_add_first): Renamed from gl_list_add_first.
39744         (gl_list_nx_add_last): Renamed from gl_list_add_last.
39745         (gl_list_nx_add_before): Renamed from gl_list_add_before.
39746         (gl_list_nx_add_after): Renamed from gl_list_add_after.
39747         (gl_list_nx_add_at): Renamed from gl_list_add_at.
39748         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
39749         * lib/gl_array_list.c: Don't include xalloc.h.
39750         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
39751         NULL upon out-of-memory.
39752         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
39753         out-of-memory.
39754         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
39755         Change return type to 'int'.
39756         (gl_array_nx_set_at): Renamed from gl_array_set_at.
39757         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39758         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
39759         upon out-of-memory.
39760         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
39761         upon out-of-memory.
39762         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
39763         upon out-of-memory.
39764         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
39765         upon out-of-memory.
39766         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
39767         out-of-memory.
39768         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
39769         Update.
39770         (gl_array_list_implementation): Update.
39771         * lib/gl_carray_list.c: Don't include xalloc.h.
39772         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
39773         Return NULL upon out-of-memory.
39774         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
39775         out-of-memory.
39776         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
39777         Change return type to 'int'.
39778         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
39779         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
39780         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
39781         upon out-of-memory.
39782         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
39783         upon out-of-memory.
39784         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
39785         out-of-memory.
39786         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
39787         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
39788         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
39789         Update.
39790         (gl_carray_list_implementation): Update.
39791         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
39792         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
39793         gl_linked_create_empty. Return NULL upon out-of-memory.
39794         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
39795         out-of-memory.
39796         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
39797         Change return type to 'int'. Return -1 upon out-of-memory.
39798         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
39799         out-of-memory.
39800         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
39801         upon out-of-memory.
39802         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
39803         upon out-of-memory.
39804         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
39805         NULL upon out-of-memory.
39806         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
39807         upon out-of-memory.
39808         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
39809         out-of-memory.
39810         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
39811         Update.
39812         * lib/gl_linked_list.c: Don't include xalloc.h.
39813         (gl_linked_list_implementation): Update.
39814         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
39815         (add_to_bucket): Change return type to 'int'.
39816         (gl_linkedhash_list_implementation): Update.
39817         * lib/gl_anytree_list1.h (free_subtree): New function.
39818         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
39819         gl_tree_create_empty. Return NULL upon out-of-memory.
39820         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
39821         Change return type to 'int'. Return -1 upon out-of-memory.
39822         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
39823         out-of-memory.
39824         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
39825         (gl_tree_remove_node): New function, moved here from
39826         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
39827         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
39828         Update.
39829         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
39830         malloc, not xmalloc. Return NULL upon out-of-memory.
39831         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39832         out-of-memory.
39833         (gl_tree_remove_node_from_tree): New function, extracted from
39834         gl_tree_remove_node.
39835         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39836         upon out-of-memory.
39837         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39838         out-of-memory.
39839         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39840         upon out-of-memory.
39841         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39842         upon out-of-memory.
39843         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39844         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
39845         not xmalloc. Return NULL upon out-of-memory.
39846         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39847         out-of-memory.
39848         (gl_tree_remove_node_from_tree): New function, extracted from
39849         gl_tree_remove_node.
39850         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39851         upon out-of-memory.
39852         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39853         out-of-memory.
39854         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39855         upon out-of-memory.
39856         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39857         upon out-of-memory.
39858         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39859         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
39860         gl_anytree_list1.h before gl_anyavltree_list2.h.
39861         (gl_avltree_list_implementation): Update.
39862         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
39863         gl_anytree_list1.h before gl_anyavltree_list2.h.
39864         (gl_rbtree_list_implementation): Update.
39865         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
39866         Change return type to 'int'. Return -1 upon out-of-memory. Use
39867         __builtin_expect.
39868         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
39869         (gl_avltreehash_list_implementation): Update.
39870         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
39871         (gl_rbtreehash_list_implementation): Update.
39872         * modules/array-list (Depends-on): Remove xalloc.
39873         * modules/carray-list (Depends-on): Likewise.
39874         * modules/linked-list (Depends-on): Likewise.
39875         * modules/linkedhash-list (Depends-on): Likewise.
39876         * modules/avltree-list (Depends-on): Likewise.
39877         * modules/rbtree-list (Depends-on): Likewise.
39878         * modules/avltreehash-list (Depends-on): Likewise.
39879         * modules/rbtreehash-list (Depends-on): Likewise.
39880
39881         * modules/xsublist: New file.
39882         * lib/gl_xsublist.h: New file.
39883         * lib/gl_xsublist.c: New file.
39884         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
39885         (gl_sublist_nx_create): New declaration.
39886         * lib/gl_sublist.c: Don't include xalloc.h.
39887         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
39888         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
39889         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
39890         Change return type to 'int'. Return -1 upon out-of-memory.
39891         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
39892         upon out-of-memory.
39893         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
39894         NULL upon out-of-memory.
39895         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
39896         upon out-of-memory.
39897         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39898         NULL upon out-of-memory.
39899         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39900         NULL upon out-of-memory.
39901         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39902         upon out-of-memory.
39903         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39904         (gl_sublist_list_implementation): Update.
39905         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39906         upon out-of-memory.
39907         * modules/sublist (Depends-on): Remove xalloc.
39908
39909         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39910         * tests/test-carray_list.c: Likewise.
39911         * tests/test-linked_list.c: Likewise.
39912         * tests/test-linkedhash_list.c: Likewise.
39913         * tests/test-avltree_list.c: Likewise.
39914         * tests/test-rbtree_list.c: Likewise.
39915         * tests/test-avltreehash_list.c: Likewise.
39916         * tests/test-rbtreehash_list.c: Likewise.
39917         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39918         * modules/carray-list-tests (Makefile.am): Likewise.
39919         * modules/linked-list-tests (Makefile.am): Likewise.
39920         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39921         * modules/avltree-list-tests (Makefile.am): Likewise.
39922         * modules/rbtree-list-tests (Makefile.am): Likewise.
39923         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39924         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39925
39926         * NEWS: Mention the changes.
39927
39928         * lib/clean-temp.c: Include gl_xlist.h.
39929         * modules/clean-temp (Depends-on): Add xlist.
39930
39931         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
39932         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
39933
39934         * tests/test-array_oset.c: Include gl_xlist.h.
39935         * modules/array-oset-tests (Depends-on): Add xlist.
39936
39937         Reported by José E. Marchesi <jemarch@gnu.org>.
39938
39939 2009-12-13  Bruno Haible  <bruno@clisp.org>
39940
39941         Move the malloc checking from module 'oset' to new module 'xoset'.
39942         * modules/xoset: New file.
39943         * lib/gl_xoset.h: New file.
39944         * lib/gl_xoset.c: New file.
39945         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
39946         declarations.
39947         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
39948         (struct gl_oset_implementation): Rename and change methods accordingly.
39949         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
39950         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39951         'int'. Mark as __warn_unused_result__.
39952         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
39953         gl_oset_create_empty.
39954         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39955         'int'.
39956         * lib/gl_array_oset.c: Don't include xalloc.h.
39957         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
39958         malloc, not xmalloc.
39959         (grow): Change return type to 'int'. Don't call xalloc_die.
39960         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
39961         to 'int'.
39962         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
39963         'int'.
39964         (gl_array_oset_implementation): Update.
39965         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
39966         gl_tree_create_empty.
39967         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
39968         'int'.
39969         * lib/gl_avltree_oset.c: Don't include xalloc.h.
39970         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39971         xmalloc.
39972         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39973         not xmalloc.
39974         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39975         xmalloc.
39976         (gl_avltree_oset_implementation): Update.
39977         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39978         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39979         xmalloc.
39980         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39981         not xmalloc.
39982         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39983         xmalloc.
39984         (gl_rbtree_oset_implementation): Update.
39985         * modules/array-oset (Depends-on): Remove xalloc.
39986         * modules/avltree-oset (Depends-on): Likewise.
39987         * modules/rbtree-oset (Depends-on): Likewise.
39988         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39989         * tests/test-avltree_oset.c: Likewise.
39990         * tests/test-rbtree_oset.c: Likewise.
39991         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39992         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39993         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39994         * NEWS: Mention the change.
39995
39996 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39997
39998         maint.mk: allow a project to override release-prep commands
39999         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40000         commands into a new rule.
40001         (release-prep): New rule.
40002         (release-prep-hook): New overridable variable.
40003
40004 2009-12-13  Bruno Haible  <bruno@clisp.org>
40005
40006         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40007
40008 2009-12-13  Jim Meyering  <meyering@redhat.com>
40009
40010         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40011         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40012
40013 2009-12-12  Bruno Haible  <bruno@clisp.org>
40014
40015         duplocale: Tweak.
40016         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40017
40018 2009-12-12  Karl Berry  <karl@gnu.org>
40019
40020         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40021
40022 2009-12-12  Bruno Haible  <bruno@clisp.org>
40023
40024         * m4/po.m4: Undo incorrect untabification.
40025
40026 2009-12-12  Bruno Haible  <bruno@clisp.org>
40027
40028         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40029         * modules/c-strtod (Depends-on): Add locale.
40030         * modules/c-strtold (Depends-on): Likewise.
40031
40032 2009-12-12  Bruno Haible  <bruno@clisp.org>
40033
40034         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40035
40036 2009-12-11  Eric Blake  <ebb9@byu.net>
40037
40038         setenv: relax requirement in light of POSIX ruling
40039         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40040         not NULL.
40041         * tests/test-setenv.c (main): Relax test.
40042         * tests/test-unsetenv.c (main): Likewise.
40043         * doc/posix-functions/setenv.texi (setenv): Document this.
40044         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40045
40046 2009-12-11  Bruno Haible  <bruno@clisp.org>
40047
40048         New module 'fd-safer-flag'.
40049         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40050         * lib/dup-safer.c (dup_safer_flag): Remove function.
40051         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40052         * lib/fd-safer.c (fd_safer_flag): Remove function.
40053         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40054         * modules/cloexec (configure.ac): Drop indicator macro.
40055         * modules/fd-safer-flag: New file.
40056         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40057         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40058         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40059
40060 2009-12-11  Bruno Haible  <bruno@clisp.org>
40061
40062         Tests for module 'nl_langinfo'.
40063         * modules/nl_langinfo-tests: New file.
40064         * tests/test-nl_langinfo.sh: New file.
40065         * tests/test-nl_langinfo.c: New file.
40066
40067         New module 'nl_langinfo'.
40068         * lib/nl_langinfo.c: New file.
40069         * m4/nl_langinfo.m4: New file.
40070         * modules/nl_langinfo: New file.
40071         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40072
40073 2009-12-11  Bruno Haible  <bruno@clisp.org>
40074
40075         Tests for module 'langinfo'.
40076         * modules/langinfo-tests: New file.
40077         * tests/test-langinfo.c: New file.
40078
40079         New module 'langinfo'.
40080         * lib/langinfo.in.h: New file.
40081         * m4/langinfo_h.m4: New file.
40082         * modules/langinfo: New file.
40083         * doc/posix-headers/langinfo.texi: Mention the new module.
40084
40085 2009-12-11  Bruno Haible  <bruno@clisp.org>
40086
40087         * lib/config.charset: Untabify.
40088
40089 2009-12-11  Bruno Haible  <bruno@clisp.org>
40090
40091         * modules/unistd-safer (configure.ac): Drop indicator macro.
40092
40093 2009-12-11  Bruno Haible  <bruno@clisp.org>
40094
40095         Move pipe2-safer code to its own file.
40096         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40097         * lib/pipe-safer.c (pipe2_safer): Remove function.
40098         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40099         (Makefile.am): Add it to lib_SOURCES.
40100
40101 2009-12-10  Bruno Haible  <bruno@clisp.org>
40102
40103         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40104
40105 2009-12-10  Bruno Haible  <bruno@clisp.org>
40106
40107         Declare which arguments expect non-NULL values, for GCC and clang.
40108         * build-aux/arg-nonnull.h: New file.
40109         * modules/arg-nonnull: New file.
40110         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40111         (inet_ntop, inet_pton): Use it.
40112         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40113         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40114         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40115         (open, openat): Use it.
40116         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40117         (fnmatch): Use it.
40118         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40119         (getopt, getopt_long, getopt_long_only): Use it.
40120         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40121         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40122         Use it.
40123         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40124         (iconv_open): Use it.
40125         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40126         (strtoimax, strtoumax): Use it.
40127         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40128         (duplocale): Use it.
40129         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40130         (frexp, frexpl): Use it.
40131         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40132         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40133         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40134         (tsearch, tfind, tdelete, twalk): Use it.
40135         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40136         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40137         sigpending): Use it.
40138         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40139         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40140         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40141         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40142         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40143         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40144         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40145         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40146         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40147         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40148         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40149         Use it.
40150         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40151         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40152         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40153         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40154         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40155         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40156         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40157         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40158         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40159         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40160         strtoull, unsetenv): Use it.
40161         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40162         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40163         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40164         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40165         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40166         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40167         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40168         (strcasecmp, strncasecmp): Use it.
40169         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40170         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40171         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40172         rpl_setsockopt): Use it.
40173         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40174         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40175         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40176         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40177         (gettimeofday): Use it.
40178         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40179         (times): Use it.
40180         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40181         (uname): Use it.
40182         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40183         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40184         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40185         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40186         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40187         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40188         unlinkat, write): Use it.
40189         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40190         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40191         * lib/argv-iter.h: Include arg-nonnull.h.
40192         (_ATTRIBUTE_NONNULL_): Remove macro.
40193         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40194         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40195         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40196         optimization.
40197         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40198         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40199         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40200         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40201         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40202         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40203         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40204         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40205         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40206         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40207         * modules/dirent (Depends-on): Add arg-nonnull.
40208         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40209         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40210         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40211         * modules/fnmatch (Depends-on): Add arg-nonnull.
40212         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40213         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40214         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40215         * modules/glob (Depends-on): Add arg-nonnull.
40216         (Makefile.am): Insert arg-nonnull.h into glob.h.
40217         * modules/iconv_open (Depends-on): Add arg-nonnull.
40218         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40219         * modules/inttypes (Depends-on): Add arg-nonnull.
40220         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40221         * modules/locale (Depends-on): Add arg-nonnull.
40222         (Makefile.am): Insert arg-nonnull.h into locale.h.
40223         * modules/math (Depends-on): Add arg-nonnull.
40224         (Makefile.am): Insert arg-nonnull.h into math.h.
40225         * modules/netdb (Depends-on): Add arg-nonnull.
40226         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40227         * modules/search (Depends-on): Add arg-nonnull.
40228         (Makefile.am): Insert arg-nonnull.h into search.h.
40229         * modules/signal (Depends-on): Add arg-nonnull.
40230         (Makefile.am): Insert arg-nonnull.h into signal.h.
40231         * modules/spawn (Depends-on): Add arg-nonnull.
40232         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40233         * modules/stdio (Depends-on): Add arg-nonnull.
40234         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40235         * modules/stdlib (Depends-on): Add arg-nonnull.
40236         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40237         * modules/string (Depends-on): Add arg-nonnull.
40238         (Makefile.am): Insert arg-nonnull.h into string.h.
40239         * modules/strings (Depends-on): Add arg-nonnull.
40240         (Makefile.am): Insert arg-nonnull.h into strings.h.
40241         * modules/sys_socket (Depends-on): Add arg-nonnull.
40242         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40243         * modules/sys_stat (Depends-on): Add arg-nonnull.
40244         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40245         * modules/sys_time (Depends-on): Add arg-nonnull.
40246         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40247         * modules/sys_times (Depends-on): Add arg-nonnull.
40248         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40249         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40250         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40251         * modules/time (Depends-on): Add arg-nonnull.
40252         (Makefile.am): Insert arg-nonnull.h into time.h.
40253         * modules/unistd (Depends-on): Add arg-nonnull.
40254         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40255         * modules/wchar (Depends-on): Add arg-nonnull.
40256         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40257         * modules/argv-iter (Depends-on): Add arg-nonnull.
40258         * tests/test-canonicalize.c (null_ptr): New function.
40259         (main): Use it.
40260         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40261         (main): Use it.
40262         * tests/test-memmem.c (null_ptr): New function.
40263         (main): Use it.
40264         Reported by Jim Meyering.
40265
40266 2009-12-10  Bruno Haible  <bruno@clisp.org>
40267
40268         Use spaces for indentation, not tabs.
40269         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40270         * m4/*.m4: Untabify.
40271         * build-aux/*.h: Untabify.
40272         * tests/**/*.[hc]: Untabify.
40273         * README: New section "Indent with spaces, not TABs", based on
40274         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40275         * NEWS: Mention the change.
40276
40277 2009-12-10  Bruno Haible  <bruno@clisp.org>
40278
40279         pty test: Fix link error.
40280         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40281         test_pty_LDADD.
40282
40283 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40284
40285         * modules/pty: New file.
40286         * modules/pty-tests: New file.
40287         * m4/pty.m4: New file.
40288         * tests/test-pty.c: New file.
40289         * doc/glibc-headers/pty.texi: Modified.
40290         * doc/glibc-functions/forkpty.texi: Modified.
40291         * doc/glibc-functions/openpty.texi: Modified.
40292
40293 2009-12-10  Bruno Haible  <bruno@clisp.org>
40294
40295         Avoid syntax error in C++ mode.
40296         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40297
40298 2009-12-10  Bruno Haible  <bruno@clisp.org>
40299
40300         Use sed with option -e.
40301         * gnulib-tool (func_version, func_emit_copyright_notice,
40302         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40303         option -e to sed.
40304         * modules/link-warning (Makefile.am): Likewise.
40305
40306 2009-12-10  Jim Meyering  <meyering@redhat.com>
40307
40308         mgetgroups: do not write bytes beyond end of malloc'd buffer
40309         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40310         username, we call getgroups with a one-element-shorter buffer,
40311         but still told it the length was original, max_n_groups.
40312
40313 2009-12-09  Eric Blake  <ebb9@byu.net>
40314
40315         cloexec: relax license
40316         * modules/cloexec (Maintainer): Add myself.
40317         (License): Use LGPL, not GPL.
40318
40319         link-warning: optimize generation
40320         * modules/link-warning (Makefile.am): Reduce process usage.
40321
40322 2009-12-09  Bruno Haible  <bruno@clisp.org>
40323
40324         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40325         workaround was added on 2009-11-17.
40326
40327 2009-12-09  Jim Meyering  <meyering@redhat.com>
40328             Bruno Haible  <bruno@clisp.org>
40329
40330         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40331         * modules/link-warning (Makefile.am): Make the comment-removing sed
40332         command more robust in the face of bootstrap-prepended comment lines.
40333
40334 2009-12-09  Bruno Haible  <bruno@clisp.org>
40335
40336         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40337         most one group.
40338
40339 2009-12-09  Simon Josefsson <simon@josefsson.org>
40340             Bruno Haible  <bruno@clisp.org>
40341
40342         * build-aux/link-warning.h: Add copyright notice.
40343         * modules/link-warning (Makefile.am): Generate link-warning.h from
40344         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40345         * NEWS: Mention change in link-warning module.
40346         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40347         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40348         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40349         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40350         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40351         * modules/math (Makefile.am): Add dependency to math.h.
40352         * modules/search (Makefile.am): Add dependency to search.h.
40353         * modules/signal (Makefile.am): Add dependency to signal.h.
40354         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40355         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40356         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40357         * modules/string (Makefile.am): Add dependency to string.h.
40358         * modules/strings (Makefile.am): Add dependency to strings.h.
40359         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40360         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40361         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40362         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40363         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40364         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40365         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40366         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40367         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40368
40369 2009-12-09  Bruno Haible  <bruno@clisp.org>
40370
40371         fchdir: Optimize away rpl_fstat when possible.
40372         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40373         REPLACE_OPEN_DIRECTORY.
40374         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40375
40376 2009-12-09  Bruno Haible  <bruno@clisp.org>
40377
40378         * lib/fchdir.c: Update comment.
40379
40380 2009-12-09  Bruno Haible  <bruno@clisp.org>
40381
40382         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40383
40384 2009-12-08  Eric Blake  <ebb9@byu.net>
40385
40386         fchdir: avoid memory leak on re-registration.
40387         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40388
40389 2009-12-08  Jim Meyering  <meyering@redhat.com>
40390
40391         init.sh: avoid Solaris 10 /bin/sh portability problem
40392         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40393         sourced script:
40394           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40395           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40396           bar
40397         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40398         and two tests used that idiom.
40399         * tests/init.sh: Update suggested usage comments.
40400         (path_prepend_): New function, to be used in place
40401         of the --src-path=DIR option.
40402         (setup_): Move PATH-prepending code into path_prepend_.
40403         * tests/test-pread.sh: Adapt to new usage.
40404         * tests/test-xalloc-die.sh: Likewise.
40405
40406 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40407
40408         * doc/gnulib.texi (Glibc pty.h): Add.
40409         * doc/glibc-functions/forkpty.texi: Add.
40410         * doc/glibc-functions/openpty.texi: Add.
40411         Suggested by Bruno Haible.
40412
40413 2009-12-08  Eric Blake  <ebb9@byu.net>
40414
40415         fchdir: fix logic bugs
40416         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40417         * tests/test-fchdir.c (main): Enhance test.
40418         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40419         is in use.
40420
40421         dup2: fix logic bugs
40422         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40423         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40424         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40425         exists.
40426         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40427
40428 2009-12-07  Eric Blake  <ebb9@byu.net>
40429
40430         unlink: fix m4 detection
40431         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40432
40433         unistd-safer: add unit test
40434         * modules/unistd-safer-tests: New file.
40435         * tests/test-dup-safer.c: Likewise.
40436         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40437         * tests/test-dup2.c (setmode): Likewise.
40438         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40439
40440         cloexec: preserve text vs. binary across dup_cloexec
40441         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40442         mode.
40443         * modules/dup2-tests (Depends-on): Add binary-io.
40444         * modules/cloexec-tests (Depends-on): Likewise.
40445         * tests/test-dup2.c (setmode, is_mode): New helpers.
40446         (main): Add tests that translation mode is preserved.
40447         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40448         Reported by Bruno Haible.
40449
40450         mgetgroups: reduce duplicate listings
40451         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40452         resulting array.
40453         * tests/test-chown.h (test_chown): Simplify client.
40454         * tests/test-lchown.h (test_lchown): Likewise.
40455
40456 2009-12-06  Bruno Haible  <bruno@clisp.org>
40457
40458         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40459         value.
40460
40461 2009-12-06  Bruno Haible  <bruno@clisp.org>
40462
40463         * lib/progname.c: Include stdio.h, stdlib.h.
40464         (set_program_name): Reject a NULL argument.
40465
40466 2009-12-05  Eric Blake  <ebb9@byu.net>
40467
40468         pipe2-safer: new module
40469         * modules/pipe2-safer: New file.
40470         * lib/unistd-safer.h (pipe2_safer): New prototype.
40471         * lib/unistd--.h (pipe2): New wrapper.
40472         * lib/pipe-safer.c (pipe2_safer): New function.
40473         * modules/pipe (Depends-on): Add pipe2-safer.
40474         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40475
40476         stdlib-safer: preserve cloexec flag for mkostemp[s]
40477         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40478         fd_safer_flag.
40479
40480         unistd-safer: allow preservation of cloexec status via flag
40481         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40482         prototypes.
40483         * lib/dup-safer.c (dup_safer_flag): New function.
40484         * lib/fd-safer.c (fd_safer_flag): Likewise.
40485         * modules/cloexec (configure.ac): Set witness.
40486
40487         test-dup2: enhance test
40488         * modules/dup2-tests (Depends-on): Add cloexec.
40489         * tests/test-dup2.c (main): Enhance test.
40490
40491         cloexec: add dup_cloexec
40492         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40493         header and comments.
40494         * lib/cloexec.c (set_cloexec_flag): Add comments.
40495         (dup_cloexec): New function, with mingw implementation borrowed
40496         from...
40497         * lib/w32spawn.h (dup_noinherit): ...here.
40498         * modules/execute (Depends-on): Add cloexec.
40499         * modules/pipe (Depends-on): Likewise.
40500         * modules/cloexec (Depends-on): Add dup2.
40501         * modules/cloexec-tests (Files): New file.
40502         * tests/test-cloexec.c: Likewise.
40503
40504         test-xalloc-die: fix test for mingw
40505         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40506         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
40507         directory and .exe suffix off argv[0] output.
40508
40509         test-fseeko: fix test for mingw
40510         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
40511         than undefining fseek, so test will pass on mingw.
40512
40513 2009-12-05  Bruno Haible  <bruno@clisp.org>
40514
40515         * lib/progname.h (set_program_name): Clarify specification.
40516         * lib/progname.c (set_program_name): Likewise.
40517         Reported by Jim Meyering.
40518
40519 2009-12-05  Jim Meyering  <meyering@redhat.com>
40520
40521         maint.mk: backslash-escape parens in default regexp
40522         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
40523         backslash-escape the literal parentheses.
40524
40525         maint.mk: news-date-check: use grep -E
40526         * top/maint.mk (today): Define a Make variable, not a...
40527         (news-date-check): ...shell variable.
40528         (news-date-regexp): Use the Make variable.
40529         Use grep's -E option.  Change the failing diagnostic to mention
40530         the variable, $(news-date-regexp).
40531
40532 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
40533
40534         maintainer-makefile: allow customization of NEWS entry format
40535         * top/maint.mk (news-date-regexp): New overridable variable.
40536         (news-date-check): Use it.
40537
40538 2009-12-04  Eric Blake  <ebb9@byu.net>
40539
40540         mgetgroups: add xgetgroups, and avoid ENOSYS failures
40541         * lib/mgetgroups.h (xgetgroups): New prototype.
40542         * lib/mgetgroups.c (xgetgroups): New wrapper.
40543         (mgetgroups): Handle ENOSYS.
40544         * modules/mgetgroups (Depends-on): Add realloc.
40545         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
40546
40547         mgetgroups: avoid argument promotion issues with -1
40548         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
40549         for invalid gid_t.
40550         * tests/test-chown.h (getegid, test_chown): Likewise.
40551         * tests/test-lchown.h (getegid, test_lchown): Likewise.
40552
40553 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
40554
40555         exclude: Fix header file problems.
40556         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
40557
40558 2009-12-01  Jim Meyering  <meyering@redhat.com>
40559
40560         fts: fts_open: do not let an empty string cause immediate failure
40561         This is required in support of GNU rm, for which the command
40562         "rm A '' B" must process and remove both A and B, in spite of
40563         the empty string argument.
40564         * lib/fts.c (fts_open): Do not let the presence of an empty string
40565         cause fts_open to fail immediately.  Most fts-using tools must be
40566         able to process all arguments, in order, and can be expected to
40567         diagnose such arguments themselves.
40568
40569 2009-11-30  Eric Blake  <ebb9@byu.net>
40570
40571         utimens: fix compilation error
40572         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
40573         Declare variable at right scope.
40574
40575 2009-11-29  Jim Meyering  <meyering@redhat.com>
40576
40577         bootstrap: handle perl-5.11's changed --version output
40578         * build-aux/bootstrap (get_version): Handle perl separately,
40579         since perl-5.11's --version output is different.
40580
40581 2009-11-28  Jim Meyering  <meyering@redhat.com>
40582
40583         userspec: depend on the inttostr module, too
40584         * modules/userspec (Depends-on): Add inttostr.
40585
40586         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
40587         * lib/userspec.c (parse_with_separator): Do not accept a user ID
40588         number of MAXUID when it evaluates to (uid_t) -1.
40589         Likewise for group ID.  Reported by Matt McCutchen in
40590         <http://savannah.gnu.org/bugs/?28113>
40591
40592         userspec: reformat to use spaces, not TABs
40593         * lib/userspec.c: Expand TABs to spaces.
40594         Add Emacs' "indent-tabs-mode: nil" hint.
40595
40596 2009-11-27  Eric Blake  <ebb9@byu.net>
40597
40598         getopt-gnu: flush out another BSD bug
40599         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
40600         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
40601         flush out BSD bug.
40602         * tests/test-getopt.h (test_getopt): End lists with NULL.
40603         * tests/test-getopt_long.h (test_getopt_long): Likewise.
40604         (test_getopt_long_posix): Enhance test.
40605         * modules/getopt-posix-tests (Depends-on): Add stdbool.
40606         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
40607         getopt-gnu.
40608         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
40609         Likewise.
40610
40611 2009-11-27  Simon Josefsson  <simon@josefsson.org>
40612
40613         * modules/idpriv-droptemp-tests (Notice): Fix text.
40614
40615 2009-11-27  Jim Meyering  <meyering@redhat.com>
40616
40617         test-xalloc-die: avoid spurious failure due to libtool argv difference
40618         In a libtool-enabled project, this test would fail due to a difference
40619         in the emitted program name, e.g.,
40620         -test-xalloc-die: memory exhausted
40621         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
40622         Use program to avoid that.
40623         * modules/xalloc-die-tests (Depends-on): Add progname.
40624         * tests/test-xalloc-die.c: Include progname.h".
40625         (program_name): Remove decl.
40626         (main): Call set_program_name.
40627         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
40628
40629 2009-11-26  Richard Jones  <rjones@redhat.com>
40630
40631         w32sock: leave win32 error in place.
40632         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
40633
40634 2009-11-26  Eric Blake  <ebb9@byu.net>
40635
40636         init.sh: suggest to use skip_ and fail_ functions in comments
40637         * tests/init.sh: Add a sentence.
40638
40639 2009-11-25  Bruno Haible  <bruno@clisp.org>
40640
40641         init.sh: add documentation in comments
40642         * tests/init.sh: Add some developer and user documentation.
40643
40644 2009-11-26  Jim Meyering  <meyering@redhat.com>
40645
40646         init.sh: accommodate even those who specify bogus srcdir manually
40647         * tests/init.sh: Normally, srcdir is guaranteed by automake and
40648         configure-time tests to be sanitized, so that there is no need to
40649         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
40650         (with no double quotes) suffices.  However, since tests may be
40651         invoked manually, and since you may explicitly set srcdir to the
40652         name of a directory containing spaces, do quote its uses here.
40653         * tests/test-pread.sh: Likewise.
40654         Suggested by Bruno Haible.
40655
40656         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
40657         * tests/test-pread.sh: Write no data into the pipe, because
40658         test-pread actually reads none.  This avoids a diagnostic,
40659         "bash: echo: write error: Broken pipe", that arises in the unusual
40660         event something is ignoring SIGPIPE, and might be interpreted
40661         as some sort of failure.  Reported by Bruno Haible.
40662
40663 2009-11-25  Jim Meyering  <meyering@redhat.com>
40664
40665         test-pread: cover failure with ESPIPE and EINVAL
40666         * tests/test-pread.c (main): Test for failure, too.
40667         * tests/test-pread.sh: Invoke with stdin on a pipe.
40668         Suggested by Eric Blake.
40669
40670         pread: improvement and fix
40671         * modules/pread (Depends-on): Depend on lseek, for portability to
40672         e.g., mingw.  Suggested by Eric Blake.
40673         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
40674
40675         unistd.in.h: correct declaration of pread
40676         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
40677         Reported by Richard W.M. Jones.
40678
40679         test-pread.sh: distribute the test script
40680         * modules/pread-tests (Files): Include test-pread.sh.
40681
40682         test-pread.sh: clean up
40683         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
40684         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
40685         That is unnecessary, since it's always ".".
40686         Suggestion from Eric Blake.
40687
40688         test-pread.sh: make executable
40689         * tests/test-pread.sh: Set executable bit.
40690         Reported by Eric Blake.
40691
40692         correct typo in test-pread.sh
40693         * tests/test-pread.sh: Add #! line.
40694
40695         test pread
40696         * tests/test-pread.c: New file.
40697         * tests/test-pread.sh: Likewise.
40698         * modules/pread-tests: Likewise.
40699
40700         pread: new module
40701         * modules/pread: New file.
40702         * lib/unistd.in.h (pread): Define/declare.
40703         * lib/pread.c (pread): New file.
40704         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
40705         * modules/unistd (Makefile.am): Substitute witnesses.
40706         * doc/posix-functions/pread.texi (pread): Update.
40707         * MODULES.html.sh: Add pread.
40708
40709 2009-11-25  Jim Meyering  <meyering@redhat.com>
40710
40711         tests/init.sh: new file to be used via most *.sh tests
40712         * tests/init.sh: New file.
40713
40714 2009-11-25  Eric Blake  <ebb9@byu.net>
40715
40716         utimens: work around older Linux failure with symlinks
40717         * lib/utimens.c (lutimensat_works_really): New variable.
40718         (fdutimens, lutimens): Use it to manage kernels that support
40719         nanosecond times on files, but not on symlinks.
40720         Reported by Ondřej Vašík.
40721
40722         utimes: fix configure grammar
40723         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
40724
40725 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
40726
40727         regex: Fix fastmap for multibyte character ranges.
40728         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
40729         characters when a multibyte character range is included.
40730
40731 2009-11-22  Andy Wingo  <wingo@pobox.com>
40732
40733         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
40734         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
40735
40736 2009-11-24  Bruno Haible  <bruno@clisp.org>
40737
40738         doc: Most *_l functions exist in MacOS X 10.5.
40739         * doc/posix-functions/duplocale.texi: Update platforms list.
40740         * doc/posix-functions/freelocale.texi: Likewise.
40741         * doc/posix-functions/newlocale.texi: Likewise.
40742         * doc/posix-functions/uselocale.texi: Likewise.
40743         * doc/posix-functions/isalnum_l.texi: Likewise.
40744         * doc/posix-functions/isalpha_l.texi: Likewise.
40745         * doc/posix-functions/isblank_l.texi: Likewise.
40746         * doc/posix-functions/iscntrl_l.texi: Likewise.
40747         * doc/posix-functions/isdigit_l.texi: Likewise.
40748         * doc/posix-functions/isgraph_l.texi: Likewise.
40749         * doc/posix-functions/islower_l.texi: Likewise.
40750         * doc/posix-functions/isprint_l.texi: Likewise.
40751         * doc/posix-functions/ispunct_l.texi: Likewise.
40752         * doc/posix-functions/isspace_l.texi: Likewise.
40753         * doc/posix-functions/isupper_l.texi: Likewise.
40754         * doc/posix-functions/iswalnum_l.texi: Likewise.
40755         * doc/posix-functions/iswalpha_l.texi: Likewise.
40756         * doc/posix-functions/iswblank_l.texi: Likewise.
40757         * doc/posix-functions/iswcntrl_l.texi: Likewise.
40758         * doc/posix-functions/iswctype_l.texi: Likewise.
40759         * doc/posix-functions/iswdigit_l.texi: Likewise.
40760         * doc/posix-functions/iswgraph_l.texi: Likewise.
40761         * doc/posix-functions/iswlower_l.texi: Likewise.
40762         * doc/posix-functions/iswprint_l.texi: Likewise.
40763         * doc/posix-functions/iswpunct_l.texi: Likewise.
40764         * doc/posix-functions/iswspace_l.texi: Likewise.
40765         * doc/posix-functions/iswupper_l.texi: Likewise.
40766         * doc/posix-functions/iswxdigit_l.texi: Likewise.
40767         * doc/posix-functions/isxdigit_l.texi: Likewise.
40768         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
40769         * doc/posix-functions/strcasecmp_l.texi: Likewise.
40770         * doc/posix-functions/strcoll_l.texi: Likewise.
40771         * doc/posix-functions/strfmon_l.texi: Likewise.
40772         * doc/posix-functions/strftime_l.texi: Likewise.
40773         * doc/posix-functions/strncasecmp_l.texi: Likewise.
40774         * doc/posix-functions/strxfrm_l.texi: Likewise.
40775         * doc/posix-functions/tolower_l.texi: Likewise.
40776         * doc/posix-functions/toupper_l.texi: Likewise.
40777         * doc/posix-functions/towctrans_l.texi: Likewise.
40778         * doc/posix-functions/towlower_l.texi: Likewise.
40779         * doc/posix-functions/towupper_l.texi: Likewise.
40780         * doc/posix-functions/wcscoll_l.texi: Likewise.
40781         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
40782         * doc/posix-functions/wctrans_l.texi: Likewise.
40783         * doc/posix-functions/wctype_l.texi: Likewise.
40784         * doc/glibc-functions/strptime_l.texi: Likewise.
40785         * doc/glibc-functions/strtod_l.texi: Likewise.
40786         * doc/glibc-functions/strtof_l.texi: Likewise.
40787         * doc/glibc-functions/strtol_l.texi: Likewise.
40788         * doc/glibc-functions/strtold_l.texi: Likewise.
40789         * doc/glibc-functions/strtoll_l.texi: Likewise.
40790         * doc/glibc-functions/strtoul_l.texi: Likewise.
40791         * doc/glibc-functions/strtoull_l.texi: Likewise.
40792         * doc/glibc-functions/wcsftime_l.texi: Likewise.
40793         * doc/glibc-functions/wcstod_l.texi: Likewise.
40794         * doc/glibc-functions/wcstof_l.texi: Likewise.
40795         * doc/glibc-functions/wcstol_l.texi: Likewise.
40796         * doc/glibc-functions/wcstold_l.texi: Likewise.
40797         * doc/glibc-functions/wcstoll_l.texi: Likewise.
40798         * doc/glibc-functions/wcstoul_l.texi: Likewise.
40799         * doc/glibc-functions/wcstoull_l.texi: Likewise.
40800
40801 2009-11-24  Bruno Haible  <bruno@clisp.org>
40802
40803         duplocale: Fix logic bug.
40804         * lib/duplocale.c: Don't include <langinfo.h>.
40805         (_NL_LOCALE_NAME): Remove macro.
40806         (rpl_duplocale): Use setlocale instead of nl_langinfo.
40807         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
40808
40809 2009-11-23  Jim Meyering  <meyering@redhat.com>
40810
40811         test-update-copyright: don't hard-code /usr/bin/perl
40812         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
40813         perl to print the current year.  Gilles Espinasse reported that
40814         the replaced use of perl was hard-coded as /usr/bin/perl.
40815
40816 2009-11-23  Bruno Haible  <bruno@clisp.org>
40817
40818         duplocale: Add support for glibc 2.3.x.
40819         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
40820
40821 2009-11-22  Bruno Haible  <bruno@clisp.org>
40822
40823         vasnprintf: Tiny optimization.
40824         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
40825         MacOS X.
40826
40827 2009-11-22  Bruno Haible  <bruno@clisp.org>
40828
40829         Tests for module 'duplocale'.
40830         * modules/duplocale-tests: New file.
40831         * tests/test-duplocale.c: New file.
40832
40833         New module 'duplocale'.
40834         * m4/duplocale.m4: New file.
40835         * lib/locale.in.h (duplocale): New declaration.
40836         * lib/duplocale.c: New file.
40837         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
40838         gl_LOCALE_H_DEFAULTS): New macros.
40839         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
40840         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
40841         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
40842         REPLACE_DUPLOCALE.
40843         * modules/duplocale: New file.
40844         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
40845
40846 2009-11-22  Bruno Haible  <bruno@clisp.org>
40847
40848         * modules/locale-tests (configure.ac): Test for newlocale function.
40849         * tests/test-locale.c: When the system has extended locale functions,
40850         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
40851
40852         locale: Make locale_t available when possible.
40853         * lib/locale.in.h: Include <xlocale.h> when it exists.
40854         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
40855         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
40856         * modules/locale (Depends-on): Add extensions.
40857         (Makefile.am): Also substitute HAVE_XLOCALE_H.
40858         * doc/posix-headers/locale.texi: Document the problem with locale_t.
40859
40860 2009-11-22  Bruno Haible  <bruno@clisp.org>
40861
40862         Add comments.
40863         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
40864         invocation.
40865         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40866         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40867         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40868
40869 2009-11-22  Bruno Haible  <bruno@clisp.org>
40870
40871         error: account for the possibility of freopen (stdout).
40872         * lib/error.c: Include <unistd.h>.
40873         (flush_stdout): New function, extracted from error and error_at_line.
40874         Determine stdout's fd dynamically.
40875         (error, error_at_line): Invoke flush_stdout.
40876         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
40877         * modules/error (Depends-on): Add unistd.
40878
40879 2009-11-22  Bruno Haible  <bruno@clisp.org>
40880
40881         diffseq: Add comment.
40882         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
40883
40884 2009-11-22  Jim Meyering  <meyering@redhat.com>
40885
40886         c-stack: avoid defining an unused static function
40887         * lib/c-stack.c (find_stack_direction): Do not define this function
40888         when it will not be used.
40889
40890         diffseq: avoid spurious gcc warnings
40891         * lib/diffseq.h (IF_LINT2): Define.
40892         (compareseq): Use it to initialize two members of "part".
40893         This avoids two used-uninitialized warnings.
40894
40895 2009-11-21  Jim Meyering  <meyering@redhat.com>
40896
40897         c-stack: avoid "ignoring return value of `write'" warning
40898         * lib/c-stack.c: Include "ignore-value.h".
40899         (die): Explicitly ignore each write return value.
40900         * modules/c-stack (Depends-on): Add ignore-value.
40901
40902 2009-11-21  Bruno Haible  <bruno@clisp.org>
40903
40904         diffseq: reduce scope of variable 'best'.
40905         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40906         variable, earlier used for two different purposes.
40907
40908 2009-11-21  Jim Meyering  <meyering@redhat.com>
40909
40910         diffseq: remove useless assignment to "best"
40911         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40912         assignment.  At that point "best" is already guaranteed to be zero.
40913
40914 2009-11-20  Eric Blake  <ebb9@byu.net>
40915
40916         build: mention ftp redirector in release announcements
40917         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40918         values that used to come from cfg.mk; mention FTP redirect URL.
40919         * build-aux/announce-gen: Mention the mirror list.
40920         Suggested by Karl Berry.
40921
40922         nanosleep: improve port to mingw
40923         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
40924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
40925         LIB_NANOSLEEP, but only when needed.
40926         * modules/select (Link): Document LIBSOCKET.
40927         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
40928         enough.
40929
40930         nanosleep: work around cygwin bug
40931         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
40932         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
40933         bug.
40934         (getnow): Delete, not needed.
40935         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
40936         LIB_CLOCK_GETTIME.
40937         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
40938         clock-time, gettime.
40939         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
40940         bug.
40941         * modules/nanosleep-tests: New test.
40942         * tests/test-nanosleep.c: New file.
40943
40944         sleep: work around cygwin bug
40945         * lib/sleep.c (rpl_sleep): Work around the bug.
40946         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
40947         (gl_PREREQ_SLEEP): Delete unused macro.
40948         * modules/sleep (Depends-on): Add verify.
40949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40950         * modules/unistd (Makefile.am): Substitute witness.
40951         * lib/unistd.in.h (sleep): Update prototype.
40952         * doc/posix-functions/sleep.texi (sleep): Document the bug.
40953         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
40954         * modules/sleep-tests (Depends-on): Check for alarm.
40955
40956 2009-11-20  Jim Meyering  <meyering@redhat.com>
40957
40958         maint.mk: improve sc_prohibit_magic_number_exit
40959         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
40960         so it does not match uses like System.exit(1).
40961         Add comments showing how to correct all offenders.
40962
40963 2009-11-19  Eric Blake  <ebb9@byu.net>
40964
40965         xalloc-die-tests: add missing library
40966         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
40967
40968         test-xvasprintf: silence compiler warnings
40969         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
40970         empty string from gcc.
40971
40972 2009-11-19  Jim Meyering  <meyering@redhat.com>
40973
40974         xfreopen: new module, from coreutils
40975         * modules/xfreopen: New module.
40976         * lib/xfreopen.c: New file.
40977         * lib/xfreopen.h: New file.
40978         * MODULES.html.sh (File stream based Input/Output"): Add it.
40979
40980 2009-11-19  Eric Blake  <ebb9@byu.net>
40981
40982         manywarnings: depend on warnings
40983         * modules/manywarnings (Depends-on): Add warnings.
40984
40985         build: avoid compiler warnings
40986         * lib/select.c (rpl_select): Delete unused variable.
40987         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40988
40989 2009-11-18  Eric Blake  <ebb9@byu.net>
40990
40991         tests: avoid false negative with --with-packager
40992         * tests/test-version-etc.sh: Discard packager information.
40993         * tests/test-argp-version-etc-1.sh: Likewise.
40994         Reported by Mike Frysinger.
40995
40996         utimens: fix regression on Solaris
40997         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40998         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40999         can only change fd timestamps via futimesat.  Instead, use an
41000         additional witness macro to avoid BSD bug.
41001         Reported by Jim Meyering.
41002
41003 2009-11-17  Eric Blake  <ebb9@byu.net>
41004
41005         usleep: use it to simplify tests
41006         * modules/stat-time-tests (Depends-on): Add usleep.
41007         (configure.ac): Drop usleep check.
41008         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41009         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41010         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41011         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41012         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41013         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41014         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41015         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41016         Likewise.
41017         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41018         * tests/test-lchown.h (nap): Likewise.
41019         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41020         * tests/test-stat-time.c (nap): Likewise.
41021         * tests/test-utimens-common.h (nap): Update comments.
41022
41023         usleep: new module
41024         * modules/usleep: New file.
41025         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41026         * lib/usleep.c (usleep): Likewise.
41027         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41028         * modules/unistd (Makefile.am): Substitute witnesses.
41029         * lib/unistd.in.h (usleep): Add declaration.
41030         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41031         * MODULES.html.sh (Date and time): Likewise.
41032         * modules/usleep-tests (Depends-on): New test.
41033         * tests/test-usleep.c: New file.
41034
41035         chown: work around OpenBSD bug
41036         * lib/chown.c (rpl_chown): Work around the bug.
41037         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41038         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41039         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41040         * modules/chown (Depends-on): Add stdbool.
41041         * modules/lchown (Depends-on): Likewise.
41042         * doc/posix-functions/chown.texi (chown): Document the bug.
41043         * doc/posix-functions/lchown.texi (lchown): Likewise.
41044         * tests/test-lchown.h (test_chown): Relax test.
41045
41046         mkstemp: avoid conflict with C++ keyword template
41047         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41048         * lib/mkostemp.c (mkostemp): Likewise.
41049         * lib/mkostemps.c (mkostemps): Likewise.
41050         * lib/mkstemp.c (mkstemp): Likewise.
41051         * lib/mkstemps.c (mkstemps): Likewise.
41052
41053         xalloc-die-tests: optimize
41054         * tests/test-xalloc-die.sh: Reduce number of processes.
41055
41056 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41057
41058         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41059         patch from ludo@gnu.org (Ludovic Courtès).
41060
41061 2009-11-17  Jim Meyering  <meyering@redhat.com>
41062
41063         version-etc: use proper license string
41064         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41065         * modules/version-etc-fsf: Likewise.
41066
41067 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41068
41069         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41070         printed to stdout.  Deal with EOL differences.
41071
41072 2009-11-17  Eric Blake  <ebb9@byu.net>
41073
41074         unsetenv: work around Solaris bug
41075         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41076         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41077         Reported by Jim Meyering.
41078
41079         vasnprintf: avoid compiler warnings
41080         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41081         variables.
41082         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41083
41084 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41085
41086         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41087         settings since xalloc-die is no longer the self test,
41088         xalloc-die.sh is.
41089
41090 2009-11-17  Jim Meyering  <meyering@redhat.com>
41091
41092         test-xalloc-die.sh: make the code agree with the commit log
41093         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41094         at the end, just in case you happen to have a test-xalloc-die
41095         program in some other PATH directory.
41096
41097         test-xalloc-die.sh: fix a portability bug
41098         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41099         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41100         Otherwise, argv[0] (as often seen in diagnostics) would be too
41101         system-dependent, sometimes with, and sometimes without the leading "./".
41102
41103         version-etc-fsf: relax license to LGPLv3+
41104         * modules/version-etc-fsf (License): Relax license.
41105
41106 2009-11-16  Eric Blake  <ebb9@byu.net>
41107
41108         xalloc-die-tests: avoid printing null pointer
41109         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41110         shell script.
41111         * tests/test-xalloc-die.c (program_name): Declare.
41112         * tests/test-xalloc-die.sh (tmpfiles): New file.
41113
41114         setenv, unsetenv: work around various bugs
41115         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41116         (setenv) [HAVE_SETENV]: Work around bugs.
41117         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41118         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41119         for bugs.
41120         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41121         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41122         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41123         * modules/stdlib (Makefile.am): Update substitutions.
41124         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41125         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41126         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41127         * modules/setenv-tests: New test.
41128         * modules/unsetenv-tests: Likewise.
41129         * tests/test-setenv.c: New file.
41130         * tests/test-unsetenv.c: Likewise.
41131
41132 2009-11-16  Jim Meyering  <meyering@redhat.com>
41133
41134         version-etc: relax license to LGPLv3+
41135         * modules/version-etc (License): Relax license.
41136
41137         better AC_REQUIRE expanded-before-required-warning avoidance
41138         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41139         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41140         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41141         which is no longer needed.
41142
41143 2009-11-16  Eric Blake  <ebb9@byu.net>
41144
41145         test-freading: clean up temporary file
41146         * tests/test-freading.c (main): Remove file on success, and use
41147         ASSERT more liberally.
41148         Reported by Jim Meyering.
41149
41150 2009-11-16  Jim Meyering  <meyering@redhat.com>
41151
41152         avoid new AC_REQUIRE expanded-before-required warnings
41153         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41154         merely using it.
41155         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41156         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41157
41158 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41159
41160         * tests/test-xalloc-die.c: New file.
41161         * modules/xalloc-die-tests: New file.
41162         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41163         XFAIL_TESTS so it can be appended by modules.
41164
41165 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41166
41167         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41168         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41169
41170 2009-11-14  Eric Blake  <ebb9@byu.net>
41171
41172         fnmatch: avoid compiler warning
41173         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41174         to silence compiler warning about mismatch signedness in ?:.
41175         Reported by Robert Millan.
41176
41177         intprops: add double-inclusion guard
41178         * lib/intprops.h: Allow idempotent includes.
41179         Suggested by Bruce Korb.
41180
41181         openat: detect Solaris fchownat bug
41182         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41183         penalizing glibc chownat when only lchownat is broken.
41184         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41185         trailing slash bugs.
41186         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41187         * modules/openat-tests (Files): Include more files.
41188         (Depends-on): Add mgetgroups, sleep, stat-time.
41189         (configure.ac): Add additional checks.
41190         (Makefile.am): Build new test.
41191         * tests/test-fchownat.c: New file.
41192
41193         lchown: detect Solaris and FreeBSD bug
41194         * lib/lchown.c (rpl_lchown): Work around bug.
41195         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41196         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41197         * modules/unistd (Makefile.am): Populate it.
41198         * lib/unistd.in.h (lchown): Update declaration.
41199         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41200         * modules/lchown-tests: New file.
41201         * tests/test-lchown.h (test_lchown): Likewise.
41202         * tests/test-lchown.c (main): Likewise.
41203
41204         chown: detect Solaris and FreeBSD bug
41205         * lib/chown.c (rpl_chown): Work around bug.
41206         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41207         (gl_PREREQ_CHOWN): Delete.
41208         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41209         * modules/unistd (Makefile.am): Populate it.
41210         * lib/unistd.in.h (chown): Update declaration.
41211         * lib/lchown.c (chown): Update client.
41212         * modules/lchown (Depends-on): Add lstat.
41213         * doc/posix-functions/chown.texi (chown): Document the bug.
41214         * doc/posix-functions/getgroups.texi (getgroups): Document
41215         getgroups pitfall.
41216         * modules/chown-tests: New file.
41217         * tests/test-chown.h (test_chown): Likewise.
41218         * tests/test-chown.c (main): Likewise.
41219
41220 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41221
41222         gnulib-tool: correctly detect absence of m4 directories
41223         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41224
41225 2009-11-14  Jim Meyering  <meyering@redhat.com>
41226
41227         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41228         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41229
41230 2009-11-14  John W. Eaton  <jwe@gnu.org>
41231
41232         strftime.h: wrap function declaration in extern "C" block
41233         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41234
41235 2009-11-13  Eric Blake  <ebb9@byu.net>
41236
41237         getgroups: avoid compiler warning
41238         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41239
41240         getgroups: work around FreeBSD bug
41241         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41242         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41243         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41244         * tests/test-getgroups.c (main): Fix buffer overrun.
41245
41246         getgroups: avoid compilation failure
41247         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41248         * modules/getgroups (Depends-on): Add stdint.
41249
41250 2009-11-13  Jim Meyering  <meyering@redhat.com>
41251
41252         test-getgroups: avoid compilation failure
41253         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41254
41255 2009-11-13  Eric Blake  <ebb9@byu.net>
41256
41257         mgetgroups: new module, taken from coreutils
41258         * modules/mgetgroups: New file.
41259         * lib/mgetgroups.h: Likewise.
41260         * lib/mgetgroups.c (mgetgroups): Likewise.
41261         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41262         * MODULES.html.sh (Users and groups): Mention it.
41263
41264         getgroups: don't expose GETGROUPS_T to user
41265         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41266         an element at a time if GETGROUPS_T is wrong size.
41267         * lib/getugroups.h (getugroups): Change signature.
41268         * lib/unistd.in.h (getgroups): Likewise.
41269         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41270         signature needs fixing.
41271         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41272         AC_TYPE_GETGROUPS.
41273         * modules/group-member (Depends-on): Add getgroups.
41274         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41275         (group_member): Rely on getgroups replacement.
41276         * lib/getugroups.c (getugroups): Use gid_t.
41277         * tests/test-getgroups.c (main): Likewise.
41278         * NEWS: Mention the signature change.
41279         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41280         problem with signature.
41281         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41282         GETGROUPS_T is still useful for setgroups.
41283
41284         getgroups, getugroups: provide stubs for mingw
41285         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41286         * lib/getugroups.c (getugroups): Likewise.
41287         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41288         function.  Modernize replacement scheme.
41289         (gl_PREREQ_GETGROUPS): Delete.
41290         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41291         * modules/getgroups (configure.ac): Declare witness.
41292         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41293         * modules/unistd (Depends-on): Substitute witness.
41294         * lib/unistd.in.h (getgroups): Declare replacement.
41295
41296         getgroups: avoid calling exit
41297         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41298         drop xalloc.
41299         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41300         dependencies.
41301         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41302         exiting, in the rare case of malloc failure.
41303
41304         getgroups: fix logic error
41305         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41306         has more than 20 groups.
41307         * modules/getgroups-tests: New test.
41308         * tests/test-getgroups.c: New file.
41309
41310 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41311
41312         * tests/test-base64.c: Improve.
41313
41314 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41315
41316         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41317         Blake <ebb9@byu.net>.
41318
41319 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41320
41321         * tests/test-xvasprintf.c: Add %s%s related checks.
41322
41323 2009-11-12  Eric Blake  <ebb9@byu.net>
41324
41325         version-etc: match standards.texi style
41326         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41327         and use <> only for URLs.
41328
41329 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41330
41331         fts: do not fail on a submount during traversal
41332         * lib/fts.c (fts_build): Read the stat info again after opening
41333         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41334         Original report at http://bugzilla.redhat.com/501848.
41335
41336 2009-11-12  Jim Meyering  <meyering@redhat.com>
41337
41338         bootstrap: sync from coreutils
41339         * build-aux/bootstrap (bootstrap_epilogue): New function.
41340         Use git_modules_config in one more place.  This make bootstrap's
41341         --gnulib-srcdir option more useful for testing.
41342
41343         bootstrap: generalize autoheader check
41344         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41345         AC_CONFIG_HEADERS.
41346
41347 2009-11-11  Eric Blake  <ebb9@byu.net>
41348
41349         mkfifoat: use new modules for Solaris and BSD bugs
41350         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41351         * lib/mkfifoat.c (mknodat): Split...
41352         * lib/mknodat.c (mknodat): ...into new file.
41353         * modules/mkfifoat (Files): Ship new file.
41354         (Depends-on): Add mkfifo, mknod.
41355         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41356         (Depends-on): Add symlink.
41357         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41358         redundant with test_mkfifo.h.
41359         (do_mkfifoat, do_mknodat): New helpers.
41360
41361         mknod: new module
41362         * modules/mknod: New file.
41363         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41364         * lib/mknod.c (mknod): Likewise.
41365         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41366         defaults.
41367         * modules/sys_stat (Makefile.am): Substitute them.
41368         * lib/sys_stat.in.h (mknod): Declare replacement.
41369         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41370         Document it.
41371         * doc/posix-functions/mknod.texi (mknod): Likewise.
41372         * modules/mknod-tests: New test.
41373         * tests/test-mknod.c: Likewise.
41374
41375         mkfifo: new module
41376         * modules/mkfifo: New file.
41377         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41378         * lib/mkfifo.c (mkfifo): Likewise.
41379         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41380         defaults.
41381         * modules/sys_stat (Makefile.am): Substitute them.
41382         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41383         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41384         Document it.
41385         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41386         * modules/mkfifo-tests: New test.
41387         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41388         from test-mkfifoat.c.
41389         * tests/test-mkfifo.c: New file.
41390
41391         readlink: detect FreeBSD bug
41392         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41393         slash on symlink.
41394         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41395         * tests/test-readlink.h (test_readlink): Enhance test.
41396
41397         symlink: detect FreeBSD bug
41398         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41399         slash on symlink.
41400         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41401         * tests/test-symlink.h (test_symlink): Enhance test.
41402
41403 2009-11-10  Eric Blake  <ebb9@byu.net>
41404
41405         link: detect FreeBSD bug
41406         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41407         symlink.
41408         * doc/posix-functions/link.texi (link): Document the bug.
41409         * tests/test-link.h (test_link): Enhance test.
41410         * tests/test-linkat.c (main): Update caller.
41411
41412         unlink, remove: detect FreeBSD bug
41413         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41414         slash on symlink.
41415         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41416         * doc/posix-functions/remove.texi (remove): Likewise.
41417         * tests/test-unlink.h (test_unlink): Enhance test.
41418         * tests/test-remove.c (main): Likewise.
41419
41420 2009-11-09  Eric Blake  <ebb9@byu.net>
41421
41422         rename: detect FreeBSD bug
41423         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41424         slash on symlink.
41425         * modules/renameat-tests (Depends-on): Add filenamecat.
41426         * tests/test-rename.h (test_rename): Allow one more errno.
41427         * tests/test-renameat.c (main): Likewise.
41428         * doc/posix-functions/rename.texi (rename): Document the bug.
41429
41430         open: detect FreeBSD bug
41431         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41432         symlink.
41433         * doc/posix-functions/open.texi (open): Document the bug.
41434         * doc/posix-functions/utimes.texi (utimes): Likewise.
41435         * tests/test-open.h (test_open): Add parameters, and test symlink
41436         handling.
41437         * tests/test-open.c (main): Adjust caller.
41438         * tests/test-fcntl-safer.c (main): Likewise.
41439         * modules/open-tests (Depends-on): Add stdbool, symlink.
41440         * modules/fcntl-safer-tests (Depends-on): Likewise.
41441         * tests/test-openat.c (main): Add test-open tests.
41442
41443         stat: detect FreeBSD bug
41444         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41445         symlink.
41446         * doc/posix-functions/stat.texi (stat): Document the bug.
41447         * tests/test-stat.h (test_stat_func): Add argument.
41448         * tests/test-stat.c (main): Adjust caller.
41449         * tests/test-fstatat.c (main): Likewise.
41450         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41451         Reported by Jim Meyering.
41452
41453 2009-11-09  James Youngman  <jay@gnu.org>
41454
41455         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41456         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41457
41458 2009-11-08  Jim Meyering  <meyering@redhat.com>
41459
41460         utimens: remove invalid futimesat call
41461         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41462         It used the file descriptor of the target file as the DIR_FD
41463         parameter and NULL as the file name.  That caused failure with
41464         errno == EFAULT on FreeBSD-8.0-rc2
41465
41466 2009-11-07  Eric Blake  <ebb9@byu.net>
41467
41468         fflush, freadseek: use fseeko, not fseek
41469         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41470         (clear_ungetc_buffer): Avoid potential problems on large files.
41471         * lib/freadseek.c (freadseek): Likewise.
41472         * modules/freadseek (Depends-on): Add fseeko.
41473         * modules/fseek (configure.ac): Set a witness.
41474         * tests/test-fflush.c (main): Use fseeko.
41475         * tests/test-fpurge.c (fseek): Disable link warning.
41476         * tests/test-freadable.c (fseek): Likewise.
41477         * tests/test-freading.c (fseek): Likewise.
41478         * tests/test-fseeko.c (fseek): Likewise.
41479         * tests/test-ftell.c (fseek): Likewise.
41480         * tests/test-ftello.c (fseek): Likewise.
41481         * tests/test-fwritable.c (fseek): Likewise.
41482         * tests/test-fwriting.c (fseek): Likewise.
41483
41484 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41485
41486         * modules/memchr (Depends-on): Drop getpagesize dependency.
41487
41488 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41489
41490         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41491         Reported by Ludovic Courtès.
41492         * build-aux/pmccabe2html: Improve example usage.
41493         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41494
41495 2009-11-06  Jim Meyering  <meyering@redhat.com>
41496
41497         do-release-commit-and-tag: New module.
41498         Automate the release-commit and tag process.
41499         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41500         * modules/do-release-commit-and-tag: New file.
41501         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41502
41503 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41504
41505         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41506         because test-select.c uses inet_pton.
41507
41508 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41509
41510         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
41511         GETADDRINFO_LIB.  Bump serial number.
41512         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
41513         Suggested by Eric Blake <ebb9@byu.net>.
41514
41515 2009-11-05  Eric Blake  <ebb9@byu.net>
41516
41517         strtod: detect darwin bug
41518         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
41519         Reported by Leo Davis.
41520
41521         freopen-safer: new module
41522         * modules/freopen-safer: New module.
41523         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
41524         * lib/freopen-safer.c (freopen_safer): New file.
41525         * lib/stdio-safer.h (freopen_safer): New declaration.
41526         * lib/stdio--.h (freopen): New override.
41527         * MODULES.html.sh (File stream based Input/Output): Mention it.
41528         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
41529         freopen-safer module.
41530         * doc/posix-functions/stderr.texi (stderr): Likewise.
41531         * doc/posix-functions/stdin.texi (stdin): Likewise.
41532         * doc/posix-functions/stdout.texi (stdout): Likewise.
41533         * modules/freopen-safer-tests: New test.
41534         * tests/test-reopen-safer.c: New file.
41535
41536 2009-11-05  Jim Meyering  <meyering@redhat.com>
41537
41538         maint.mk: Prohibit inclusion of "close-stream.h" without use.
41539         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41540
41541 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41542
41543         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
41544
41545 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41546
41547         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
41548
41549 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41550
41551         Fix link error.
41552         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41553         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41554
41555 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41556
41557         * tests/test-func.c: Also test value of __func__.
41558
41559 2009-11-05  Simon Josefsson  <simon@josefsson.org>
41560
41561         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
41562         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
41563
41564 2009-11-05  Bruno Haible  <bruno@clisp.org>
41565
41566         Fix link error.
41567         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
41568         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
41569         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
41570
41571 2009-11-05  Bruno Haible  <bruno@clisp.org>
41572
41573         Tests for module 'inet_pton'.
41574         * modules/inet_pton-tests: New file.
41575         * tests/test-inet_pton.c: New file.
41576
41577 2009-11-05  Bruno Haible  <bruno@clisp.org>
41578
41579         Tests for module 'inet_ntop'.
41580         * modules/inet_ntop-tests: New file.
41581         * tests/test-inet_ntop.c: New file.
41582
41583 2009-11-04  Eric Blake  <ebb9@byu.net>
41584
41585         stdlib-safer: wrap all mkstemp variants
41586         * modules/mkostemp (configure.ac): Set witness.
41587         * modules/mkostemps (configure.ac): Likewise.
41588         * modules/mkstemps (configure.ac): Likewise.
41589         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
41590         (mkstemps_safer): Wrap more functions.
41591         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
41592         wrapping.
41593         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
41594         (mkstemps_safer): Implement the wrappers.
41595
41596         mkstemps, mkostemps: new modules
41597         * modules/mkostemps: New module.
41598         * modules/mkstemps: Likewise.
41599         * lib/mkostemps.c (mkostemps): New file.
41600         * lib/mkstemps.c (mkstemps): Likewise.
41601         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
41602         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
41603         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
41604         * modules/stdlib (Makefile.am): Substitute them.
41605         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
41606         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
41607         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
41608         * doc/gnulib.texi (Glibc stdlib.h): Include them.
41609         * MODULES.html.sh (File system functions): Mention them.
41610
41611         tempname: resync from glibc
41612         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
41613         same values for __GT_FILE as glibc.  Abort even when assertions
41614         are disabled.
41615         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
41616         match its value otherwise.  Allow idempotent inclusion.
41617         * lib/mkdtemp.c (mkdtemp): Adjust caller.
41618         * lib/mkostemp.c (mkostemp): Likewise.
41619         * lib/mkstemp.c (mkstemp): Likewise.
41620         * lib/tmpfile.c (tmpfile): Likewise.
41621         * NEWS: Document this.
41622
41623         utimens: fix use of futimens on older Linux
41624         * lib/utimens.c (fdutimens): Use updated, rather than original,
41625         timespec to avoid bug in older Linux kernel.
41626         Reported by Simon Josefsson.
41627
41628 2009-11-04  Bruno Haible  <bruno@clisp.org>
41629
41630         Make num_processors more flexible and consistent.
41631         * lib/nproc.h (enum nproc_query): New type.
41632         (num_processors): Add a 'query' argument.
41633         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
41634         (num_processors): Add a 'query' argument. Test the value of the
41635         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
41636         mingw, count the number of CPUs available for the current process.
41637         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
41638         Check for sched_getaffinity and sched_getaffinity_np.
41639         * modules/nproc (Depends-on): Add c-ctype, extensions.
41640         * NEWS: Mention the change.
41641
41642 2009-11-03  Bruno Haible  <bruno@clisp.org>
41643
41644         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
41645
41646 2009-11-03  Jim Meyering  <meyering@redhat.com>
41647
41648         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
41649         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
41650         if it is defined.
41651
41652 2009-11-02  Eric Blake  <ebb9@byu.net>
41653
41654         mktime, timegm: share common declaration
41655         * lib/mktime-internal.h: New file.
41656         * lib/mktime.c: Use it rather than open-coding a declaration.
41657         * lib/timegm.c: Likewise.
41658         * modules/mktime (Files): Ship it.
41659         * modules/timegm (Files): Likewise.
41660         Suggested by Bruno Haible.
41661
41662         test-update-copyright: update test to match script changes
41663         * tests/test-update-copyright.sh: Avoid hard-coding perl
41664         location.  Don't update *.bak created by earlier runs.
41665
41666 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
41667             Simon Josefsson  <simon@josefsson.org>
41668             Bruno Haible  <bruno@clisp.org>
41669
41670         Fix link error on Solaris 8.
41671         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
41672         also in libnsl. Define also INET_PTON_LIB.
41673         * modules/inet_pton (Link): New section.
41674
41675 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41676             Bruno Haible  <bruno@clisp.org>
41677
41678         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
41679         * modules/inet_ntop (Link): New section.
41680         Reported by Boyan Kasarov <bkasarov@gmail.com>.
41681
41682 2009-11-02  Eric Blake  <ebb9@byu.net>
41683
41684         maint: avoid compiler warnings in m4 macros
41685         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
41686         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
41687
41688 2009-11-02  Simon Josefsson  <simon@josefsson.org>
41689
41690         * m4/pmccabe2html.m4: Remove file.
41691         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
41692         function.  Change maintainer.
41693         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
41694         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
41695         Courtès).
41696
41697 2009-10-31  Eric Blake  <ebb9@byu.net>
41698
41699         fseeko: fix m4 regression
41700         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
41701         regression from 2009-10-27.
41702         Reported by Ralf Wildenhues.
41703
41704 2009-10-31  Jim Meyering  <meyering@redhat.com>
41705
41706         inttostr: aesthetics and improved (compile-time) safety
41707         Define inttype_is_signed rather than inttype_is_unsigned,
41708         since the sole use is via "#if inttype_is_signed".
41709         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
41710         inttype_is_unsigned.
41711         * lib/offtostr.c (inttype_is_signed): Likewise.
41712         * lib/uinttostr.c (inttype_is_signed): Likewise.
41713         * lib/umaxtostr.c (inttype_is_signed): Likewise.
41714         * lib/inttostr.c (inttostr): Use verify to cross-check the
41715         inttype_is_signed value and the signedness of the actual type.
41716         * modules/inttostr (Depends-on): Add verify.
41717
41718 2009-10-30  Eric Blake  <ebb9@byu.net>
41719
41720         build: avoid compiler warnings
41721         * lib/fchmodat.c (lchmod): Mark unused variables.
41722         * lib/getopt.c (_getopt_initialize): Likewise.
41723         * lib/mktime.c (__mktime_internal): Provide prototype.
41724         * lib/inttostr.c (inttostr): Avoid compiler warning even with
41725         older gcc that do not understand #pragma GCC diagnostic.
41726         * lib/uinttostr.c (inttype_is_unsigned): Define.
41727         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
41728
41729 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
41730
41731         stat: fix compilation on AIX
41732         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
41733         only see struct stat64.
41734
41735 2009-10-30  Eric Blake  <ebb9@byu.net>
41736
41737         exclude: make more robust
41738         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
41739         rather than masking a coding bug.
41740         Suggested by Bruno Haible.
41741
41742 2009-10-30  Jim Meyering  <meyering@redhat.com>
41743
41744         perl scripts: remove #!/usr/bin/perl in favor of more portable...
41745         Rather than putting #!/usr/bin/perl on the first line,
41746         start with a variant of what's recommended by "man perlrun" that
41747         invokes the first "perl" program from your shell's search path.
41748         * build-aux/gitlog-to-changelog: Replace #!... as above.
41749         Add a "Local Variables" perl mode setting.
41750         Prompted by a patch from Ludovic Courtès.
41751         Improved by Eric Blake.
41752         * build-aux/useless-if-before-free: Likewise.
41753         * build-aux/announce-gen: Likewise.
41754         * build-aux/update-copyright: Likewise.
41755
41756 2009-10-29  Eric Blake  <ebb9@byu.net>
41757
41758         filenamecat-lgpl: adjust clients
41759         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
41760         filenamecat.
41761         * modules/renameat (Depends-on): Likewise.
41762
41763         filenamecat: split into filenamecat-lgpl
41764         * modules/filenamecat-lgpl: New module.
41765         * modules/filenamecat (Files): Move library-safe files into
41766         filenamecat-lgpl.
41767         (Depends-on): Add filenamecat-lgpl.
41768         (configure.ac): Declare witness.
41769         * lib/filenamecat.h (file_name_concat): Only declare when using
41770         GPL module.
41771         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
41772         Move...
41773         * lib/filenamecat-lgpl.c: ...into new file.
41774         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
41775         (gl_FILE_NAME_CONCAT): Use it.
41776         * MODULES.html.sh (File system functions): Mention new module.
41777
41778         argp: avoid memory leak
41779         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
41780         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
41781         base_name, since the latter malloc()s and can call exit().
41782         Leak introduced 2006-07-03.
41783
41784         dirname-lgpl: adjust clients that don't need full dirname
41785         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
41786         * modules/filenamecat (Depends-on): Likewise.
41787         * modules/linkat (Depends-on): Likewise.
41788         * modules/mkancesdirs (Depends-on): Likewise.
41789         * modules/mkdir (Depends-on): Likewise.
41790         * modules/openat (Depends-on): Likewise.
41791         * modules/savewd (Depends-on): Likewise.
41792         * modules/rename (Depends-on): Likewise.
41793         (License): Relax license.
41794         * modules/mkdir-tests (Depends-on): Drop progname.
41795         (Makefile.am): Delete unneeded LDADD.
41796         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
41797
41798         dirname: split into dirname-lgpl
41799         * modules/dirname-lgpl: New module.
41800         * modules/dirname (Files): Move library-safe files into
41801         dirname-lgpl.
41802         (Depends-on): Add dirname-lgpl.
41803         (configure.ac): Declare witness.
41804         * modules/double-slash-root (License): Relax license.
41805         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
41806         module.
41807         * lib/dirname.c (dir_len, mdir_name): Move...
41808         * lib/dirname-lgpl.c: ...into new file.
41809         * lib/basename.c (last_component, base_len): Move...
41810         * lib/basename-lgpl.c: ...into new file.
41811         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
41812         (gl_DIRNAME): Use it.
41813         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
41814         Mention new module.
41815         * modules/dirname-tests (Depends-on): Add progname.
41816         * tests/test-dirname.c (program_name): Delete.
41817
41818         mkdir: make safe for libraries
41819         * modules/mkdir (Depends-on): Drop xalloc.
41820         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
41821         exit.
41822
41823         tests: avoid some compiler warnings
41824         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
41825         literals.
41826         * tests/test-memchr.c (main): Avoid type mismatch.
41827         * tests/test-arpa_inet.c (main): Avoid unused parameters.
41828         * tests/test-base64.c (main): Likewise.
41829         * tests/test-getdelim.c (main): Likewise.
41830         * tests/test-gethostname.c (main): Likewise.
41831         * tests/test-getline.c (main): Likewise.
41832         * tests/test-netinet_in.c (main): Likewise.
41833         * tests/test-select.c (open_server_socket, main): Likewise.
41834         * tests/test-select-stdin.c (main): Likewise.
41835         * tests/test-sockets.c (main): Likewise.
41836         * tests/test-strsignal.c (main): Likewise.
41837         * tests/test-sys_select.c (main): Likewise.
41838         * tests/test-sys_socket.c (main): Likewise.
41839         * tests/test-u64.c (main): Likewise.
41840         * tests/test-xfprintf-posix.c (main): Likewise.
41841         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
41842
41843         sockets: avoid compiler warning
41844         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
41845
41846         maint: detect usage(1) and other suspicious exits
41847         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
41848
41849 2009-10-29  Jim Meyering  <meyering@redhat.com>
41850
41851         timespec: long-to-int truncation could make timespec_cmp malfunction
41852         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
41853         a multiple of 2^32 nanoseconds as no difference.
41854
41855 2009-10-28  Jim Meyering  <meyering@redhat.com>
41856
41857         fprintftime: wrap macro code argument in "do {...} while(0)"
41858         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
41859         cpy macro must be a statement that can be followed by a semicolon.
41860         Now that the else clause contains a comment and is hence longer
41861         than one line, I require curly braces.  That in turn requires
41862         that we wrap this code block in the standard do...while(0).
41863
41864         fprintftime: remove stray semicolon from previous change
41865         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
41866
41867         fprintftime: avoid a warning about ignored fwrite return value
41868         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
41869         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
41870         that is unsafe.
41871         * modules/fprintftime (Depends-on): Add ignore-value.
41872
41873         exclude: avoid an unwarranted warning
41874         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
41875
41876 2009-10-27  Eric Blake  <ebb9@byu.net>
41877
41878         fseek: avoid compilation failure when fflush is replaced
41879         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
41880         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
41881         module is in use.
41882         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
41883         module is not in use; since REPLACE_FSEEK worked otherwise.
41884         (GNULIB_FTELLO): Likewise for ftell.
41885         Reported by Ian Beckwith and others.
41886
41887 2009-10-27  Bruno Haible  <bruno@clisp.org>
41888
41889         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
41890         Reported by Jim Meyering.
41891
41892 2009-10-27  Jim Meyering  <jim@meyering.net>
41893             Bruno Haible  <bruno@clisp.org>
41894
41895         Avoid warning despite dropping the return value of fwrite.
41896         * lib/unicodeio.c: Include ignore-value.h.
41897         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41898         * modules/unicodeio (Depends-on): Add ignore-value.
41899
41900 2009-10-26  Eric Blake  <ebb9@byu.net>
41901
41902         areadlinkat: fix fallback path
41903         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41904         pointer and zero.
41905
41906 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41907
41908         Use a better IO block size for modern systems
41909         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41910         * lib/md2.c: Likewise.
41911         * lib/md4.c: Likewise.
41912         * lib/md5.c: Likewise.
41913         * lib/sha1.c: Likewise.
41914         * lib/sha256.c: Likewise.
41915         * lib/sha512.c: Likewise.
41916
41917 2009-10-22  Eric Blake  <ebb9@byu.net>
41918
41919         tests: avoid several compiler warnings
41920         * tests/test-getcwd.c (main): Avoid buffer underflow.
41921         * tests/test-getdate.c (main): String literals are not safe with
41922         putenv, so use setenv.  Declare unused argument.
41923         * modules/getdate-tests (Depends-on): Add setenv.
41924         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
41925         problems with string literals in char *.
41926         * tests/test-hash.c (main): Avoid shadowing declaration.
41927         (insert_new): Treat string literals as char const *.
41928         * tests/test-getopt.h (test_getopt): Likewise.
41929         (getopt_loop): Alter types to minimize casting elsewhere.
41930         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
41931         (test_getopt_long_posix): Likewise.
41932         (do_getopt_long): Add wrapper to minimize casting.
41933         * tests/test-atexit.c (clear_temp_file): Use void.
41934         * tests/test-areadlink-with-size.c (main): Declare unused
41935         arguments.
41936         * tests/test-areadlink.c (main): Likewise.
41937         * tests/test-areadlinkat-with-size.c (main): Likewise.
41938         * tests/test-areadlinkat.c (main): Likewise.
41939         * tests/test-canonicalize-lgpl.c (main): Likewise.
41940         * tests/test-canonicalize.c (main): Likewise.
41941         * tests/test-dirent-safer.c (main): Likewise.
41942         * tests/test-dirname.c (main): Likewise.
41943         * tests/test-dup2.c (main): Likewise.
41944         * tests/test-fchdir.c (main): Likewise.
41945         * tests/test-fcntl-h.c (main): Likewise.
41946         * tests/test-fcntl-safer.c (main): Likewise.
41947         * tests/test-fdopendir.c (main): Likewise.
41948         * tests/test-fdutimensat.c (main): Likewise.
41949         * tests/test-fflush.c (main): Likewise.
41950         * tests/test-filenamecat.c (main): Likewise.
41951         * tests/test-filevercmp.c (main): Likewise.
41952         * tests/test-fopen-safer.c (main): Likewise.
41953         * tests/test-fopen.c (main): Likewise.
41954         * tests/test-fpending.c (main): Likewise.
41955         * tests/test-fpurge.c (main): Likewise.
41956         * tests/test-freading.c (main): Likewise.
41957         * tests/test-fstatat.c (main): Likewise.
41958         * tests/test-fsync.c (main): Likewise.
41959         * tests/test-futimens.c (main): Likewise.
41960         * tests/test-getndelim2.c (main): Likewise.
41961         * tests/test-gettimeofday.c (main): Likewise.
41962         * tests/test-getopt.c (main): Likewise.
41963         * tests/test-i-ring.c (main): Likewise.
41964         * tests/test-inttypes.c (main): Likewise.
41965         * tests/test-link.c (main): Likewise.
41966         * tests/test-lstat.c (main): Likewise.
41967         * tests/test-math.c (main): Likewise.
41968         * tests/test-md5.c (main): Likewise.
41969         * tests/test-memchr2.c (main): Likewise.
41970         * tests/test-memrchr.c (main): Likewise.
41971         * tests/test-mkdir.c (main): Likewise.
41972         * tests/test-mkdirat.c (main): Likewise.
41973         * tests/test-mkfifoat.c (main): Likewise.
41974         * tests/test-open.c (main): Likewise.
41975         * tests/test-openat-safer.c (main): Likewise.
41976         * tests/test-openat.c (main): Likewise.
41977         * tests/test-quotearg.c (main): Likewise.
41978         * tests/test-rawmemchr.c (main): Likewise.
41979         * tests/test-readlink.c (main): Likewise.
41980         * tests/test-remove.c (main): Likewise.
41981         * tests/test-rename.c (main): Likewise.
41982         * tests/test-renameat.c (main): Likewise.
41983         * tests/test-rmdir.c (main): Likewise.
41984         * tests/test-sha1.c (main): Likewise.
41985         * tests/test-signal.c (main): Likewise.
41986         * tests/test-sigaction.c (main): Likewise.
41987         * tests/test-stat.c (main): Likewise.
41988         * tests/test-stat-time.c (main): Likewise.
41989         * tests/test-stddef.c (main): Likewise.
41990         * tests/test-stdint.c (main): Likewise.
41991         * tests/test-stdio.c (main): Likewise.
41992         * tests/test-stdlib.c (main): Likewise.
41993         * tests/test-strchrnul.c (main): Likewise.
41994         * tests/test-strerror.c (main): Likewise.
41995         * tests/test-string.c (main): Likewise.
41996         * tests/test-strtod.c (main): Likewise.
41997         * tests/test-strverscmp.c (main): Likewise.
41998         * tests/test-symlink.c (main): Likewise.
41999         * tests/test-symlinkat.c (main): Likewise.
42000         * tests/test-sys_stat.c (main): Likewise.
42001         * tests/test-sys_time.c (main): Likewise.
42002         * tests/test-time.c (main): Likewise.
42003         * tests/test-unistd.c (main): Likewise.
42004         * tests/test-unlink.c (main): Likewise.
42005         * tests/test-unlinkat.c (main): Likewise.
42006         * tests/test-utimens.c (main): Likewise.
42007         * tests/test-utimensat.c (main): Likewise.
42008         * tests/test-version-etc.c (main): Likewise.
42009         * tests/test-wchar.c (main): Likewise.
42010         * tests/test-wctype.c (main): Likewise.
42011         * tests/test-xprintf-posix.c (main): Likewise.
42012         * tests/test-posixtm.c (main): Likewise.
42013         (STREQ): Delete unused macro.
42014         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42015         shadowed variables.
42016         * tests/test-memchr.c (main): Likewise.
42017
42018 2009-10-21  Eric Blake  <ebb9@byu.net>
42019
42020         areadlinkat: avoid failure on older glibc
42021         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42022         rather than mis-comparing 0 against FUNC_RESULT of char*.
42023
42024 2009-10-21  Bruno Haible  <bruno@clisp.org>
42025
42026         * modules/stpncpy (License): Relicense under LGPLv2+.
42027         Reported by David Lutterkort <lutter@redhat.com>.
42028
42029 2009-10-20  Eric Blake  <ebb9@byu.net>
42030
42031         utimensat: work around Solaris 9 bug
42032         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42033         has trailing slash bugs.
42034         * tests/test-lutimens.h (test_lutimens): Enhance test.
42035         * tests/test-utimens.h (test_utimens): Likewise.
42036         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42037         * doc/posix-functions/utimes.texi (utimes): Likewise.
42038         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42039         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42040         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42041         * doc/posix-functions/futimens.texi (futimens): Likewise.
42042
42043         fdutimensat: new module
42044         * modules/fdutimensat: New file.
42045         * lib/fdutimensat.c (fdutimensat): Likewise.
42046         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42047         * MODULES.html.sh (File system functions): Mention module.
42048         * modules/fdutimensat-tests: New test.
42049         * tests/test-fdutimensat.c: Likewise.
42050
42051         doc: regenerate INSTALL
42052         * doc/INSTALL: Reflect recent autoconf update.
42053         * doc/INSTALL.ISO: Likewise.
42054         * doc/INSTALL.UTF-8: Likewise.
42055
42056 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42057
42058         acl: warn if ACL support is not detected
42059         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42060
42061 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42062
42063         * lib/nproc.h: Add extern "C" block for C++.
42064
42065 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42066             Bruno Haible  <bruno@clisp.org>
42067
42068         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42069         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42070         * doc/posix-functions/isalpha.texi: Likewise.
42071         * doc/posix-functions/isblank.texi: Likewise.
42072         * doc/posix-functions/iscntrl.texi: Likewise.
42073         * doc/posix-functions/isdigit.texi: Likewise.
42074         * doc/posix-functions/isgraph.texi: Likewise.
42075         * doc/posix-functions/islower.texi: Likewise.
42076         * doc/posix-functions/isprint.texi: Likewise.
42077         * doc/posix-functions/ispunct.texi: Likewise.
42078         * doc/posix-functions/isspace.texi: Likewise.
42079         * doc/posix-functions/isupper.texi: Likewise.
42080         * doc/posix-functions/isxdigit.texi: Likewise.
42081
42082 2009-10-18  Bruno Haible  <bruno@clisp.org>
42083
42084         Tests for module 'isblank'.
42085         * modules/isblank-tests: New file.
42086         * tests/test-isblank.c: New file.
42087
42088         New module 'isblank'.
42089         * lib/isblank.c: New file.
42090         * m4/isblank.m4: New file.
42091         * modules/isblank: New file.
42092         * doc/posix-functions/isblank.texi: Mention the new module.
42093
42094 2009-10-18  Bruno Haible  <bruno@clisp.org>
42095
42096         New module 'ctype'.
42097         * lib/ctype.in.h: New file.
42098         * m4/ctype.m4: New file.
42099         * modules/ctype: New file.
42100         * doc/posix-headers/ctype.texi: Mention the new module.
42101
42102 2009-10-18  Jim Meyering  <meyering@redhat.com>
42103
42104         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42105         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42106         right after its initialization, rather than farther down.
42107         Keeping these in close proximity makes it easier to ensure
42108         that each such variable is initialized.  E.g.,
42109
42110             LIB_CLOCK_GETTIME=
42111             AC_SUBST([LIB_CLOCK_GETTIME])
42112
42113         This change also increments these serial numbers.
42114         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42115         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42116         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42117
42118 2009-10-18  Bruno Haible  <bruno@clisp.org>
42119
42120         Don't let environment variables perturb build.
42121         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42122         (gl_PREREQ_GETHRXTIME): ... not here.
42123
42124 2009-10-18  Bruno Haible  <bruno@clisp.org>
42125
42126         Avoid symlink attack in localcharset module.
42127         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42128         (O_NOFOLLOW): Define fallback.
42129         (get_charset_aliases): Don't open the file if it is a symbolic link.
42130         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42131         gl_FCNTL_H.
42132         (gl_FCNTL_H): Require it.
42133         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42134         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42135         Reported by Fergal Glynn <fglynn@veracode.com>.
42136
42137 2009-10-18  Bruno Haible  <bruno@clisp.org>
42138
42139         Implement nproc for mingw.
42140         * lib/nproc.c: Include <windows.h>
42141         (num_processors): On native Windows platforms, try GetSystemInfo.
42142
42143 2009-10-18  Bruno Haible  <bruno@clisp.org>
42144
42145         Implement nproc for IRIX.
42146         * lib/nproc.c: Include <sys/sysmp.h>.
42147         (num_processors): On IRIX systems, try sysmp.
42148         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42149
42150 2009-10-18  Bruno Haible  <bruno@clisp.org>
42151
42152         Implement nproc for HP-UX.
42153         * lib/nproc.c: Include <sys/pstat.h>
42154         (num_processors): On HP-UX systems, try pstat_getdynamic.
42155         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42156         pstat_getdynamic.
42157
42158 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42159             Bruno Haible  <bruno@clisp.org>
42160
42161         Implement nproc for NetBSD, OpenBSD.
42162         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42163         (ARRAY_SIZE): New macro.
42164         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42165         * m4/nproc.m4: New file.
42166         * modules/nproc (Files): Add m4/nproc.m4.
42167         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42168         (Makefile.am): Instead, augment lib_SOURCES.
42169
42170 2009-10-18  Bruno Haible  <bruno@clisp.org>
42171
42172         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42173         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42174         sys/param.h.
42175
42176 2009-10-16  Eric Blake  <ebb9@byu.net>
42177
42178         utimensat: new module
42179         * modules/utimensat: New file.
42180         * lib/utimensat.c (utimensat): Likewise.
42181         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42182         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42183         so we can work around Linux bugs.
42184         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42185         * modules/sys_stat (Makefile.am): Substitute them.
42186         * lib/sys_stat.in.h (utimensat): Declare it.
42187         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42188         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42189         * modules/utimensat-tests: New test.
42190         * tests/test-utimensat.c: Likewise.
42191
42192         utimens: let lutimens work on non-symlinks
42193         * lib/utimens.c (lutimens): Fall back to utimens rather than
42194         failing with ENOSYS, when file is not a symlink.
42195         (utimens): Reduce redirection.
42196         * tests/test-lutimens.h (test_lutimens): Update test to cover
42197         non-symlinks.
42198         * tests/test-utimens.h (test_utimens): Update test to cover
42199         symlinks.
42200         * tests/test-utimens.c (main): Update caller.
42201
42202         utimens: cache whether utimensat syscall works
42203         * lib/utimens.c (utimensat_works_really): New cache variable.
42204         (fdutimens, lutimens): Use it to avoid failing syscall.
42205
42206         test-stat-time, test-utimens: improve portability
42207         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42208         ext4 on alpha, and for cygwin.
42209         * tests/test-utimens-common.h: New file.
42210         (nap): Factor delays into single function.
42211         * tests/test-lutimens.h (test_lutimens): Use new header.
42212         * tests/test-futimens.h (test_futimens): Likewise.
42213         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42214         timestamps to occur from same machine, as was done previously for
42215         test_utimens.
42216         * modules/utimens-tests (Files): Ship new file.
42217         * modules/futimens-tests (Files): Likewise.
42218         Reported in part by Jim Meyering.
42219
42220         sys_stat: sort replacement declarations
42221         * lib/sys_stat.in.h: Sort declarations.
42222         * lib/futimens.c (futimens): Fix typo.
42223
42224 2009-10-15  Jim Meyering  <meyering@redhat.com>
42225
42226         don't let environment settings perturb build
42227         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42228         could cause a configure-time and/or build-time malfunction.
42229         Typically, a configure-time function-in-library test is performed
42230         via code like this:
42231
42232           LIB_VAR=
42233           AC_SUBST([LIB_VAR])
42234           prefix_saved_LIBS=$LIBS
42235             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42236                        [test "$ac_cv_search_FUNC" = "none required" ||
42237                         LIB_VAR=$ac_cv_search_FUNC])
42238           LIBS=$prefix_saved_LIBS
42239
42240         However, in each of the files affected by this change, the LIB_VAR=
42241         initialization was omitted.  Thus, when set in the environment, its
42242         value would propagate into generated Makefiles when FUNC is not found
42243         in LIB_NAME.
42244         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42245         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42246         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42247
42248 2009-10-14  Eric Blake  <ebb9@byu.net>
42249
42250         fchdir: avoid infinite recursion in mingw
42251         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42252         recursing.
42253
42254         test-stat-time: port to mingw
42255         * tests/test-stat-time.c (force_unlink): Return a value.
42256         (test_ctime) [W32]: Fix compilation error.
42257         (nap): Don't call usleep with too large an argument.  Use
42258         force_unlink.
42259         * doc/pastposix-functions/usleep.texi (usleep): Document the
42260         portability issue.
42261
42262 2009-10-13  Jim Meyering  <meyering@redhat.com>
42263
42264         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42265         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42266         * modules/pipe-filter-ii: Likewise.
42267         * modules/sys_socket-tests: Likewise.
42268         * modules/tsearch-tests: Likewise.
42269         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42270         (check): Depend on it.
42271
42272 2009-10-12  Eric Blake  <ebb9@byu.net>
42273
42274         utimens-tests: port to NFS file systems
42275         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42276         comparisons to avoid spurious failures from timestamp drift
42277         between NFS machines.
42278
42279 2009-10-12  Eric Blake  <ebb9@byu.net>
42280
42281         stat-time-tests: minor cleanups
42282         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42283         * tests/test-stat-time.c (nap): Separate assignment from call.
42284         Suggested by Paolo Bonzini and Bruno Haible.
42285
42286         sys_stat: guarantee struct timespec
42287         * lib/sys_stat.in.h (includes): Always include <time.h>
42288         * modules/sys_stat (Depends-on): Add time.
42289         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42290         mode_t permission values.
42291         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42292         get at subsecond timestamps.
42293
42294 2009-10-10  Eric Blake  <ebb9@byu.net>
42295
42296         futimens: new module
42297         * modules/futimens: New file.
42298         * lib/futimens.c (futimens): Likewise.
42299         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42300         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42301         we can work around Linux bugs.
42302         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42303         * modules/sys_stat (Makefile.am): Substitute them.
42304         * lib/sys_stat.in.h (futimens): Declare it.
42305         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42306         * doc/posix-functions/futimens.texi (futimens): Likewise.
42307         * modules/futimens-tests: New test.
42308         * tests/test-futimens.c: Likewise.
42309
42310         utimens: introduce fdutimens
42311         * lib/utimens.h (fdutimens): New prototype.
42312         * lib/utimens.c (gl_futimens): Move guts...
42313         (fdutimens): ...to new interface.
42314         * tests/test-utimens.c (do_fdutimens): Use it.
42315
42316         utimens: add UTIME_NOW and UTIME_OMIT support
42317         * lib/utimens.c (validate_timespec, update_timespec): New helper
42318         functions.
42319         (gl_futimens, lutimens): Use them.
42320         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42321         stdbool, sys_stat.
42322         (Link): Mention resulting library dependency.
42323         * modules/utimecmp (Link): Likewise.
42324         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42325         (Makefile.am): Pick up library dependency.
42326         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42327         definition.
42328         * tests/test-sys_stat.c: Test the definitions.
42329         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42330         * NEWS: Document library dependency.
42331
42332         utimecmp: support symlink timestamps
42333         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42334         hashing when possible.  Use pathconf when available.
42335         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42336         * modules/utimecmp (Depends-on): Add lstat.
42337
42338         utimens: add lutimens interface
42339         * lib/utimens.c (lutimens): New function.
42340         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42341         * lib/utimens.h (lutimens): Declare new interface.
42342         * tests/test-utimens.c (main): Enhance test.
42343         * tests/test-lutimens.h (test_lutimens): New file.
42344         * modules/utimens-tests (Files): Distribute it.
42345         (Depends-on): Add symlink.
42346         (configure.ac): Check for usleep.
42347
42348         utimens: validate futimens usage
42349         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42350         fewer syscalls on failure later on.  Avoid compiler warning on
42351         mingw.
42352         * modules/utimens (Depends-on): Add dup2.
42353
42354         utimens: add test
42355         * modules/utimens-tests: New test.
42356         * tests/test-utimens.h: New file.
42357         * tests/test-futimens.h: Likewise.
42358         * tests/test-utimens.c: Likewise.
42359
42360         doc: mention timestamp portability issues
42361         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42362         instead.
42363         * doc/posix-functions/utime.texi (utime): Likewise.
42364         * doc/posix-functions/utimes.texi (utimes): Likewise.
42365         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42366         instead.
42367         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42368         module.
42369         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42370         Mention weakness with symlink timestamps.
42371         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42372         to utimensat/futimens instead.
42373         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42374
42375         test-dup2: enhance test
42376         * tests/test-dup2.c (main): Also check AT_FDCWD.
42377
42378         test-stat-time: avoid more spurious failures
42379         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42380         xfs; and avoid race if the two timestamps cross quantization edge.
42381
42382         relocatable: prefer 'file system' over 'filesystem'
42383         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42384         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42385         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42386         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42387         * lib/relocatable.c (compute_curr_prefix): Likewise.
42388
42389 2009-10-10  Jim Meyering  <meyering@redhat.com>
42390
42391         stat-time-tests: check for the usleep function
42392         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42393
42394 2009-10-10  Bruno Haible  <bruno@clisp.org>
42395
42396         * modules/xnanosleep: Put the Link section after the Include section.
42397
42398 2009-10-09  Eric Blake  <ebb9@byu.net>
42399
42400         dup2: work around FreeBSD 6.1 bug
42401         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42402         * doc/posix-functions/dup2.texi (dup2): Document it.
42403         Reported by Nelson H. F. Beebe and Jim Meyering.
42404
42405         test-stat-time: port to buggy NFS clients
42406         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42407         (test_ctime): Also skip test if mtime and ctime are skewed.
42408
42409         maint: prefer 'file system' over 'filesystem'
42410         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42411         * doc/posix-functions/lstat.texi (lstat): Likewise.
42412         * lib/file-has-acl.c (file_has_acl): Likewise.
42413         * lib/fwriteerror.c [TEST]: Likewise.
42414         * tests/test-areadlink.h (test_areadlink): Likewise.
42415         * tests/test-areadlinkat-with-size.c (main): Likewise.
42416         * tests/test-areadlinkat.c (main): Likewise.
42417         * tests/test-canonicalize-lgpl.c (main): Likewise.
42418         * tests/test-canonicalize.c (main): Likewise.
42419         * tests/test-fstatat.c (main): Likewise.
42420         * tests/test-linkat.c (main): Likewise.
42421         * tests/test-lstat.h (test_lstat_func): Likewise.
42422         * tests/test-mkdir.h (test_mkdir): Likewise.
42423         * tests/test-readlink.h (test_readlink): Likewise.
42424         * tests/test-remove.c (main): Likewise.
42425         * tests/test-rename.h (test_rename): Likewise.
42426         * tests/test-renameat.c (main): Likewise.
42427         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42428         * tests/test-symlink.h (test_symlink): Likewise.
42429         * tests/test-symlinkat.c (main): Likewise.
42430         * tests/test-unlink.h (test_unlink_func): Likewise.
42431         * tests/test-unlinkat.c (main): Likewise.
42432
42433         maint: make realtime library usage explicit
42434         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42435         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42436         * modules/settime (Link): Likewise.
42437         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42438
42439         test-stat-time: speed up execution
42440         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42441         warning on mingw.
42442         (nap): New helper function.
42443         (prepare_test): Use it to reduce sleep time.
42444         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42445         execution.
42446         * modules/stat-time-tests (configure.ac): Check for usleep.
42447
42448 2009-10-09  Jim Meyering  <meyering@redhat.com>
42449
42450         selinux-h: always use getfilecon wrappers
42451         * lib/getfilecon.c: New file.
42452         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42453         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42454         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42455         (fgetfilecon): Provide a stub.
42456         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42457         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42458         file unconditionally.
42459         When <selinux/selinux.h> is found, arrange to use wrappers.
42460         * modules/selinux-h (Files): Add getfilecon.c.
42461         (Makefile.am): Substitute include-next-related bits
42462         into the now-always-generated selinux/selinux.h file.
42463         * doc/glibc-functions/lgetfilecon.texi: New file.
42464         * doc/glibc-functions/fgetfilecon.texi: New file.
42465         * doc/glibc-functions/getfilecon.texi: New file.
42466         * doc/glibc-functions/getfilecon-desc.texi: New file.
42467         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42468         which to pull in the new files.
42469         * MODULES.html.sh (Misc): Add selinux-h.
42470
42471 2009-10-08  Jim Meyering  <meyering@redhat.com>
42472
42473         unistd: fix comment typo
42474         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42475
42476 2009-10-08  Eric Blake  <ebb9@byu.net>
42477
42478         areadlink: use SIZE_MAX consistently
42479         * modules/areadlink (Depends-on): Add stdint.
42480         * modules/areadlink-with-size (Depends-on): Likewise.
42481         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42482         gives NULL; drop sys/types, since unistd gives size_t; and add
42483         stdint for SIZE_MAX.
42484         (SIZE_MAX): Rely on headers.
42485         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42486         and add stdint.
42487         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42488         (SIZE_MAX): Likewise.
42489         (INITIAL_BUF_SIZE): Turn into enum.
42490         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42491
42492 2009-10-08  Jim Meyering  <meyering@redhat.com>
42493
42494         areadlinkat: avoid compilation failure
42495         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42496         Fix typo in comment.
42497
42498 2009-10-07  Eric Blake  <ebb9@byu.net>
42499
42500         areadlinkat-with-size: new module
42501         * modules/areadlinkat-with-size: New module.
42502         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42503         * lib/areadlink.h (areadlinkat): Declare it.
42504         * MODULES.html.sh (File system functions): Mention it.
42505         * modules/areadlinkat-with-size-tests: New test.
42506         * tests/test-areadlinkat-with-size.c: New file.
42507
42508         xreadlinkat: new module
42509         * modules/xreadlinkat: New module.
42510         * lib/xreadlinkat.c (xreadlinkat): New file.
42511         * lib/xreadlink.h (xreadlinkat): Declare it.
42512         * MODULES.html.sh (File system functions): Mention it.
42513
42514         areadlinkat: new module
42515         * lib/at-func.c (FUNC_FAIL): New define.
42516         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
42517         * modules/areadlinkat: New module.
42518         * lib/linkat.c (areadlinkat): Move...
42519         * lib/areadlinkat.c (areadlinkat): ...to new file.
42520         * lib/areadlink.h (areadlinkat): Declare it.
42521         * modules/linkat (Depends-on): Add areadlinkat.
42522         * MODULES.html.sh (File system functions): Mention it.
42523         * modules/areadlinkat-tests: New test.
42524         * tests/test-areadlinkat.c: New file.
42525
42526         areadlink, areadlink-with-size: add tests
42527         * modules/areadlink-tests: New test.
42528         * modules/areadlink-with-size-tests: Likewise.
42529         * tests/test-areadlink.h: New file.
42530         * tests/test-areadlink.c: Likewise.
42531         * tests/test-areadlink-with-size.c: Likewise.
42532
42533         maint: minor cleanups
42534         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
42535         _UNUSED_PARAMETER_ instead.
42536         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
42537         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
42538         * modules/linkat-tests (Files): Distribute test-link.h.
42539
42540         openat, utimens: whitespace cleanup
42541         * lib/openat.c: Prefer space throughout, rather than mix of 8
42542         spaces vs. tabs.
42543         * lib/at-func.c: Likewise.
42544         * lib/utimens.c: Likewise.
42545
42546         openat: avoid using wrong fd
42547         * lib/openat.c (openat_permissive): Reject user's fd if saving the
42548         working directory chooses same fd.
42549         * lib/at-func.c (AT_FUNC_NAME): Likewise.
42550
42551         mkdir, mkdirat: fix cygwin 1.5.x bug
42552         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
42553         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
42554         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
42555         bug.
42556         (gl_PREREQ_MKDIR): Delete unused macro.
42557         * modules/mkdir (Files): Track file rename.
42558         (configure.ac): Update macro name.
42559         * modules/openat (Depends-on): Add mkdir.
42560         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
42561
42562         mkdir, mkdirat: add tests
42563         * modules/mkdir-tests: New test.
42564         * tests/test-mkdir.h: New file.
42565         * tests/test-mkdir.c: Likewise.
42566         * tests/test-mkdirat.c: Likewise.
42567         * modules/openat-tests (Files): Add new files.
42568         (Makefile.am): Run new test.
42569
42570 2009-10-06  Eric Blake  <ebb9@byu.net>
42571
42572         doc: tweak *at function documentation
42573         * doc/posix-functions/faccessat.texi (faccessat): Mention
42574         known issue with replacement.
42575         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
42576         * doc/posix-functions/linkat.texi (linkat): Likewise.
42577         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42578         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42579         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42580         * doc/posix-functions/renameat.texi (renameat): Likewise.
42581         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
42582
42583         openat: fix GNU/Hurd bug in unlinkat
42584         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
42585         broken.
42586         * doc/posix-functions/unlink.texi (unlink): Document this.
42587         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
42588
42589         fdopendir: fix GNU/Hurd bug
42590         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
42591         allowing non-directory fds.
42592         * lib/fdopendir.c (rpl_fdopendir): Work around it.
42593         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
42594         * modules/dirent (Makefile.am): Substitute it.
42595         * lib/dirent.in.h (fdopendir): Declare replacement.
42596         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
42597         * tests/test-fdopendir.c (main): Test something other than
42598         /dev/null, since on Hurd that behaves like a directory.
42599
42600         test-symlink: port to GNU/Hurd
42601         * tests/test-symlink.h (test_symlink): Relax expected errno.
42602
42603         doc: tweak more cygwin information
42604         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
42605         now compatible with glibc.
42606         * doc/posix-functions/getopt.texi (getopt): Likewise.
42607
42608         getopt-gnu: add another test
42609         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
42610         guarantee behavior relied on by m4.
42611         * tests/test-getopt.c (main): Use it.
42612         * modules/getopt-posix-tests (Depends-on): Add setenv.
42613         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
42614
42615         getopt: fix compilation on darwin
42616         * lib/getopt.in.h (includes): Leave breadcrumbs during system
42617         include.
42618         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
42619         Reported by Ludovic Courtès.
42620
42621 2009-10-06  Bruno Haible  <bruno@clisp.org>
42622
42623         * modules/size_max (Description): Discourage its use.
42624         Reported by Simon Josefsson.
42625
42626 2009-10-06  Jim Meyering  <meyering@redhat.com>
42627
42628         linkat: avoid compilation failure
42629         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
42630
42631 2009-10-05  Eric Blake  <ebb9@byu.net>
42632
42633         linkat: support Linux 2.6.17
42634         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
42635         linkat on Linux, but allow cache variable override.
42636         * lib/linkat.c (rpl_linkat): Define override.
42637         * modules/linkat (Depends-on): Add symlinkat.
42638         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
42639         * modules/unistd (Makefile.am): Substitute it.
42640         * lib/unistd.in.h (linkat): Declare replacement.
42641         Reported by Pádraig Brady.
42642
42643         quotearg: port test to systems with C.UTF-8 locale
42644         * tests/test-quotearg.c (struct result_strings): Add another
42645         member, differentiating between C.ASCII and C.UTF-8 handling.
42646         (compare_strings): Add parameter.
42647         (main): Adjust all callers.
42648
42649         getopt: avoid clash with FreeBSD _getopt_internal
42650         * lib/getopt.in.h (_getopt_internal): Override the name.
42651         * lib/getopt_int.h (includes): Pick up any overrides.
42652         Reported by Reuben Thomas.
42653
42654         hash: allow C89 compilation
42655         * lib/hash.c (check_tuning): Move declaration before statement.
42656         Reported by Reuben Thomas.
42657
42658 2009-10-05  Karl Berry  <karl@gnu.org>
42659
42660         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
42661
42662 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
42663             Bruno Haible  <bruno@clisp.org>
42664
42665         * lib/uname.c (uname): Use a table-driven algorithm to compute
42666         Windows NT versions.
42667
42668 2009-10-04  Bruno Haible  <bruno@clisp.org>
42669
42670         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
42671         program_invocation_short_name.
42672         * modules/progname (configure.ac): Test for presence of
42673         program_invocation_short_name.
42674         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
42675
42676 2009-10-04  Bruno Haible  <bruno@clisp.org>
42677
42678         * lib/progname.c (set_program_name): Fix comment.
42679         Reported by Jim Meyering.
42680
42681 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42682             Bruno Haible  <bruno@clisp.org>
42683
42684         * lib/uname.c: Include <string.h>.
42685         (uname): Do only one call to GetVersionEx in the common case.
42686
42687 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
42688             Bruno Haible  <bruno@clisp.org>
42689
42690         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
42691         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
42692         (uname): Add support for Windows CE and various non-x86 CPU types.
42693
42694 2009-10-03  Bruno Haible  <bruno@clisp.org>
42695
42696         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
42697         invocation to tests/configure.ac.
42698         Reported by Ian Beckwith <ianb@erislabs.net>.
42699
42700 2009-10-02  Eric Blake  <ebb9@byu.net>
42701
42702         fchdir: avoid compiler warning
42703         * lib/fchdir.c (canonicalize_file_name)
42704         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
42705
42706         test-open: support mingw errno values
42707         * tests/test-open.h (test_open): Relax test.
42708         * tests/test-fopen.h (test_fopen): Likewise.
42709         * tests/test-openat-safer.c (main): Likewise.
42710
42711         open: fix opening directory on mingw
42712         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
42713
42714         test-open: on GNU/Hurd, /dev/null is a directory
42715         * tests/test-fopen.h (main): Rename...
42716         (test_fopen): ...to this.  Use a guaranteed non-directory when
42717         confirming open behavior on trailing slash.
42718         * tests/test-openat-safer.c (main): Likewise.
42719         * tests/test-open.h (main): Likewise....
42720         (test_open): ...to this.
42721         * tests/test-fopen.c (main): Adjust caller.
42722         * tests/test-fopen-safer.c (main): Likewise.
42723         * tests/test-open.c (main): Likewise.
42724         * tests/test-fcntl-safer.c (main): Likewise.
42725         Reported by Samuel Thibault.
42726
42727         rename, fchdir: don't ignore chdir failure
42728         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
42729         * lib/rename.c (rpl_rename) [W32]: Likewise.
42730         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
42731         an empty destination directory if source cannot be renamed,
42732         although there is still possibility for failure.
42733         * doc/posix-functions/rename.texi (rename): Document the race.
42734         Reported by Jim Meyering.
42735
42736         maint: cleanup whitespace in recent commits
42737         * lib/rename.c (rpl_rename): Remove tabs.
42738         * tests/test-link.h (test_link): Likewise.
42739         * lib/fchdir.c (get_name): Likewise.
42740         Reported by Jim Meyering.
42741
42742 2009-10-02  Ben Pfaff  <blp@gnu.org>
42743
42744         relocatable-prog-wrapper: Add missing dependency on
42745         double-slash-root.
42746         * modules/relocatable-prog-wrapper: Add dependency.
42747         Reported by Ian Beckwith <ianb@erislabs.net>.
42748
42749 2009-10-02  Eric Blake  <ebb9@byu.net>
42750
42751         renameat: fix Solaris bugs
42752         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
42753         needed fixing.
42754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
42755         * modules/stdio (Makefile.am): Substitute it.
42756         * lib/stdio.in.h (renameat): Declare replacement.
42757         * lib/renameat.c (rpl_renameat): Implement fix.
42758
42759         renameat: new module
42760         * modules/renameat: New file.
42761         * lib/renameat.c (renameat): Likewise.
42762         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
42763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42764         * modules/stdio (Makefile.am): Substitute them.
42765         * lib/stdio.in.h (renameat): Declare it.
42766         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42767         * doc/posix-functions/renameat.texi (renameat): Likewise.
42768         * modules/renameat-tests: New test.
42769         * tests/test-renameat.c: Likewise.
42770
42771         rename: fix mingw bugs
42772         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
42773         directory overwrite bugs.
42774
42775         rename: fix another cygwin 1.5 bug
42776         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
42777         checks.
42778         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
42779         unnecessary cygwin workarounds.  Also work around bug with moving
42780         full directory onto an empty one.
42781         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
42782
42783         rename-dest-slash: merge into rename module
42784         * modules/rename-dest-slash (Status): Mark obsolete.
42785         (Depends-on): Add rename.
42786         (Files): Let rename do it all.
42787         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
42788         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
42789         * m4/rename-dest-slash.m4: ...so this file can be deleted.
42790         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
42791         * lib/rename.c (rpl_rename): Update comments.
42792
42793         rename: fix cygwin 1.5.x bugs
42794         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
42795         * lib/rename.c (rpl_rename): Work around them.
42796         * modules/rename (Depends-on): Add same-inode.
42797
42798         rename: fix Solaris 10 bug
42799         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42800         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
42801         was the only bug.
42802
42803         rename: fix Solaris 9 bug
42804         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
42805         on non-directory.  Avoid calling exit.
42806         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
42807         strdup.
42808         * modules/rename-tests (Depends-on): Drop lstat.
42809         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
42810         (gl_PREREQ_RENAME): Delete unused macro.
42811
42812         rename-dest-slash: fix NetBSD bug
42813         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
42814         links.
42815         * modules/rename-dest-slash (Depends-on): Add same-inode.
42816
42817         rename-tests: new test, exposes several platform bugs
42818         * modules/rename-tests: New file.
42819         * tests/test-rename.h: Likewise.
42820         * tests/test-rename.c: Likewise.
42821         * doc/posix-functions/rename.texi (rename): Improve documentation,
42822         including bugs that will eventually be fixed in gnulib.
42823
42824 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
42825
42826         * lib/uname.c: Include <stdlib.h>
42827         (uname): Assume version info is available.
42828
42829 2009-10-02  Jim Meyering  <meyering@redhat.com>
42830
42831         gnu-web-doc-update: correct --help output
42832         * build-aux/gnu-web-doc-update: Make --help output relevant.
42833
42834         gnu-web-doc-update: add standard options
42835         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
42836
42837         gnu-web-doc-update: New module.
42838         Use this script to automatically update the on-line web documentation
42839         for your GNU project at http://www.gnu.org/software/$pkg/manual/
42840         * modules/gnu-web-doc-update: New file, from coreutils.
42841         * build-aux/gnu-web-doc-update: New script.
42842
42843 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
42844
42845         link: LoadLibrary is not needed.
42846         * lib/link.c: Use GetModuleHandle.
42847
42848 2009-10-01  Eric Blake  <ebb9@byu.net>
42849
42850         getopt: bump serial number
42851         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
42852         change.
42853
42854         tests: tighten link, rmdir, and remove tests
42855         * tests/test-link.h (includes): No need to use <config.h> here.
42856         Clean up if directory hard link was created, otherwise test for
42857         trailing '.'.
42858         * tests/test-linkat.c (main): Simplify.
42859         * tests/test-remove.c (main): Enhance test for trailing '.'.
42860         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42861
42862 2009-10-01  Jim Meyering  <meyering@redhat.com>
42863
42864         maint.mk: requiring "make major" was annoying, for a "minor" release.
42865         What is intended is "stable", to contrast with alpha and beta,
42866         so require "make stable", not "make major".
42867         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
42868         (get_tool_versions): Likewise.
42869         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
42870
42871 2009-09-30  Ben Pfaff  <blp@gnu.org>
42872
42873         Fix broken build of replacement for Windows tmpfile().
42874         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
42875         flags argument added along with the 'mkostemp' module.
42876
42877 2009-09-28  Bruno Haible  <bruno@clisp.org>
42878
42879         Avoid identifier clash with POSIX function 'remove' defined as a macro.
42880         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
42881         to 'remove_elt'.
42882         (gl_list_remove): Update.
42883         * lib/gl_list.c (gl_list_remove): Update.
42884         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
42885         to 'remove_elt'.
42886         (gl_oset_remove): Update.
42887         * lib/gl_list.c (gl_oset_remove): Update.
42888         Reported by Eric Blake.
42889
42890 2009-09-28  Eric Blake  <ebb9@byu.net>
42891
42892         doc: mention yet more cygwin 1.7 status
42893         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
42894         cygwin.
42895         * doc/glibc-functions/execvpe.texi (execvpe): New file.
42896         * doc/gnulib.texi (Glibc unistd.h): Mention it.
42897
42898         argp: fix test failure
42899         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42900         that are not upper-case.  Pass correct range to tolower.
42901
42902 2009-09-27  Jim Meyering  <meyering@redhat.com>
42903
42904         test-yesno: work around sparc-dash here-document infelicity
42905         Without this change, the literal \177 byte in a here document
42906         would make dash 0.5.5.1-3 access uninitialized memory.
42907         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42908         Instead, use a marker, "@", and filter through tr to create the desired
42909         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42910
42911 2009-09-27  Bruno Haible  <bruno@clisp.org>
42912
42913         Disable untested support for new flavours of ACLs on AIX.
42914         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42915         progress.
42916         * lib/set-mode-acl.c (qset_acl): Likewise.
42917
42918 2008-12-07  Bruno Haible  <bruno@clisp.org>
42919
42920         Add support for new flavours of ACLs on AIX. (Untested.)
42921         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
42922         (file_has_acl): Add support for newer AIX.
42923         * lib/set-mode-acl.c (qset_acl): Likewise.
42924         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
42925         Rainer Tammer <tammer@tammer.net>.
42926
42927 2009-09-26  Eric Blake  <ebb9@byu.net>
42928
42929         argp: fix compilation of getopt
42930         * lib/getopt.in.h (includes): Use different guard than glibc.
42931         Reported by Sergey Poznyakoff.
42932
42933         doc: mention more cygwin 1.7 status
42934         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
42935         bug.
42936         * doc/posix-functions/execl.texi (execl): Likewise.
42937         * doc/posix-functions/execle.texi (execle): Likewise.
42938         * doc/posix-functions/execlp.texi (execlp): Likewise.
42939         * doc/posix-functions/execv.texi (execv): Likewise.
42940         * doc/posix-functions/execve.texi (execve): Likewise.
42941         * doc/posix-functions/execvp.texi (execvp): Likewise.
42942         * doc/glibc-functions/canonicalize_file_name.texi
42943         (canonicalize_file_name): Cygwin 1.7 now provides this.
42944         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
42945         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
42946         on AT_SYMLINK_NOFOLLOW.
42947
42948 2009-09-24  Eric Blake  <ebb9@byu.net>
42949
42950         test-linkat: make test more robust
42951         * tests/test-linkat.c (main): Avoid collision with EEXIST.
42952
42953         getopt: fix inclusion guards for cygwin
42954         * modules/getopt-posix (Depends-on): Add include-next.
42955         (Makefile.am): Substitute more items in replacement header.
42956         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
42957         <getopt.h>.
42958         * lib/getopt.in.h (includes): Use split inclusion guard, and
42959         prefer <getopt.h> over include <unistd.h> when one is present.
42960         (option): Also override name of 'struct option'.
42961
42962         same-inode: revert prior change; it is not yet ready
42963         * NEWS: Undo mention of this change.
42964         * lib/same-inode.h (same-inode.h): Undo tri-state change.
42965         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42966         * lib/cycle-check.c (cycle_check): Likewise.
42967         * lib/same.c (same_name): Likewise.
42968         * lib/at-func2.c (at_func2): Likewise.
42969
42970 2009-09-23  Eric Blake  <ebb9@byu.net>
42971
42972         linkat: new module
42973         * modules/linkat: New file.
42974         * lib/at-func2.c (at_func2): Likewise.
42975         * lib/linkat.c (linkat): Likewise.
42976         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42977         * lib/openat-priv.h (at_func2): Add declaration.
42978         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42979         * modules/unistd (Makefile.am): Substitute them.
42980         * lib/unistd.in.h (linkat): Declare it.
42981         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42982         * doc/posix-functions/linkat.texi (linkat): Likewise.
42983         * doc/posix-functions/link.texi (link): Tweak wording.
42984         * tests/test-link.c (main): Move guts...
42985         * tests/test-link.h (test_link): ...into new file.
42986         * modules/linkat-tests: New test.
42987         * tests/test-linkat.c: Likewise.
42988         * modules/link-tests (Files): Ship new file.
42989         (Depends-on): Add stdbool.
42990
42991         dirname: add library-safe mdir_name
42992         * lib/dirname.h (mdir_name): New prototype.
42993         * lib/dirname.c (dir_name): Move guts...
42994         (mdir_name): ...to new function that avoids xalloc_die.
42995
42996         fchdir: another mingw fix
42997         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42998         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42999         on mingw (where it has not yet been ported), and make it optional
43000         elsewhere.
43001         (_gl_register_fd): Use it.
43002
43003         same-inode: make SAME_INODE tri-state, to port to mingw
43004         * NEWS: Mention this change.
43005         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43006         st_ino always being 0.
43007         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43008         * lib/cycle-check.c (cycle_check): Likewise.
43009         * lib/same.c (same_name): Likewise.
43010
43011         lstat: avoid mingw compilation error
43012         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43013         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43014         lstat ourselves.
43015         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43016         was adequate.
43017         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43018         the checks for lstat.
43019         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43020
43021         link: fix test failure on Solaris 9
43022         * lib/link.c (rpl_link): Don't assume link will catch bogus
43023         trailing slash on source.
43024
43025         test-symlinkat: enhance test
43026         * tests/test-readlink.c (main): Move guts...
43027         * tests/test-readlink.h (test_readlink): ...into new file.
43028         * tests/test-symlink.c (main): Move guts...
43029         * tests/test-symlink.h (test_symlink): ...into new file.
43030         * tests/test-symlinkat.c (main): Use new files for further
43031         coverage.
43032         (do_symlink, do_readlink): New helper functions.
43033         * modules/symlink-tests (Files): Ship new file.
43034         (Depends-on): Add stdbool.
43035         * modules/readlink-tests (Files): Ship new file.
43036         (Depends-on): Add stdbool.
43037         * modules/symlinkat-tests (Files): Use new files.
43038
43039 2009-09-23  Eric Blake  <ebb9@byu.net>
43040
43041         readlink: document portability issue with symlink length
43042         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43043         systems have bogus st_size on symlinks, and mention the
43044         areadlink-with-size module.
43045         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43046         * doc/posix-functions/readlink.texi (readlink): Mention the
43047         areadlink module, and ERANGE failure.
43048         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43049         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43050
43051         readlink: fix Solaris 9 bug with trailing slash
43052         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43053         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43054         * doc/posix-functions/readlink.texi (readlink): Document this.
43055         * modules/readlink-tests: New test.
43056         * tests/test-readlink.c: Likewise.
43057
43058         readlink: fix cygwin 1.5.x bug with return type
43059         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43060         * lib/unistd.in.h (readlink): Use ssize_t.
43061         * lib/readlink.c (readlink): Likewise.
43062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43063         * modules/unistd (Makefile.am): Substitute it.
43064         * lib/unistd.in.h (readlink): Declare replacement.
43065         * doc/posix-functions/readlink.texi (readlink): Document this.
43066
43067         symlink: use throughout gnulib
43068         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43069         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43070         symlink is not used.
43071         * modules/symlinkat (Depends-on): Add symlink.
43072         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43073         * modules/canonicalize-tests (Depends-on): Likewise.
43074         * modules/lstat-tests (Depends-on): Likewise.
43075         * modules/openat-tests (Depends-on): Likewise.
43076         * modules/remove-tests (Depends-on): Likewise.
43077         * modules/rmdir-tests (Depends-on): Likewise.
43078         * modules/unlink-tests (Depends-on): Likewise.
43079         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43080         * tests/test-canonicalize.c (symlink): Likewise.
43081         * tests/test-fstatat.c (symlink): Likewise.
43082         * tests/test-lstat.c (symlink): Likewise.
43083         * tests/test-remove.c (symlink): Likewise.
43084         * tests/test-rmdir.c (symlink): Likewise.
43085         * tests/test-unlink.c (symlink): Likewise.
43086         * tests/test-unlinkat.c (symlink): Likewise.
43087
43088         symlink: new module, for Solaris 9 bug
43089         * modules/symlink: New file.
43090         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43091         * lib/symlink.c: Likewise.
43092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43093         * modules/unistd (Makefile.am): Substitute them.
43094         * lib/unistd.in.h (symlink): Declare replacement.
43095         * MODULES.html.sh (File system functions): Mention it.
43096         * doc/posix-functions/symlink.texi (symlink): Likewise.
43097         * modules/symlink-tests: New test.
43098         * tests/test-symlink.c: Likewise.
43099
43100 2009-09-23  Bruno Haible  <bruno@clisp.org>
43101
43102         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43103         when needed.
43104         Test case: gnulib-tool --import --with-tests atexit inttypes.
43105         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43106
43107 2009-09-23  Bruno Haible  <bruno@clisp.org>
43108
43109         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43110         subcommand, not in a subshell.
43111
43112 2009-09-22  Eric Blake  <ebb9@byu.net>
43113
43114         unistd: sort replacement declarations
43115         * lib/unistd.in.h: Sort declarations.
43116
43117         open, openat: minor optimization
43118         * lib/open.c (open): If open succeeded, len is non-zero.
43119         * lib/openat.c (rpl_openat): Likewise.
43120
43121         link-follow: ensure correct result
43122         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43123         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43124         distinguish between possible failures.
43125
43126 2009-09-21  Eric Blake  <ebb9@byu.net>
43127
43128         fts: avoid compiler warning
43129         * lib/fts.c (dirent_inode_sort_may_be_useful)
43130         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43131
43132 2009-09-19  Bruno Haible  <bruno@clisp.org>
43133
43134         * lib/progreloc.c (canonicalize_file_name): New declaration.
43135
43136 2009-09-19  Eric Blake  <ebb9@byu.net>
43137
43138         link: fix quoting
43139         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43140
43141         openat: fix openat bugs on Solaris 9
43142         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43143         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43144         * modules/openat (Depends-on): Add open.
43145         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43146         * modules/fcntl-h (Makefile.am): Substitute it.
43147         * lib/fcntl.in.h (openat): Declare replacement.
43148         * doc/posix-functions/openat.texi (openat): Document this.
43149
43150         openat: move fstatat and unlinkat into correct files
43151         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43152         compiled.
43153         * lib/openat.c (fstatat, unlinkat): Move...
43154         * lib/fstatat.c (fstatat): ...into correct files.
43155         * lib/unlinkat.c (unlinkat): Likewise.
43156
43157         openat: fix unlinkat bugs on Solaris 9
43158         * lib/unlinkat.c (unlinkat): New file.
43159         * modules/openat (Depends-on): Add unlink.
43160         (Files): Distribute it.
43161         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43162         trailing slash behavior is broken.
43163         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43164         * modules/unistd (Makefile.am): Substitute it.
43165         * lib/unistd.in.h (unlinkat): Declare replacement.
43166         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43167
43168         openat: fix fstatat bugs on Solaris 9
43169         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43170         stat.
43171         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43172
43173         test-unlinkat: enhance test, to expose Solaris 9 bug
43174         * tests/test-unlink.c (main): Factor guts...
43175         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43176         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43177         * tests/test-rmdir.c (main): Adjust caller.
43178         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43179         (unlinker): New helper function.
43180         (rmdirat): Enhance check.
43181         * modules/rmdir-tests (Depends-on): Add stdbool.
43182         * modules/unlink-tests (Depends-on): Likewise.
43183         (Files): Add test-unlink.h.
43184         * modules/openat-tests (Files): Likewise.
43185         (Depends-on): Add unlinkdir.
43186
43187         test-fstatat: new test, to expose Solaris 9 bugs
43188         * tests/test-stat.c (main): Factor guts...
43189         * tests/test-stat.h (test_stat_func): ...into new file.
43190         * tests/test-lstat.c (main): Factor guts...
43191         * tests/test-lstat.h (test_lstat_func): ...into new file.
43192         * tests/test-fstatat.c: New file.
43193         * modules/stat-tests (Files): Add test-stat.h.
43194         * modules/lstat-tests (Files): Add test-lstat.h.
43195         (Depends-on): Add stdbool.
43196         * modules/openat-tests (Depends-on): Add pathmax.
43197         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43198         (Makefile.am): Run new test.
43199
43200         remove: new module, for mingw and Solaris 9 bugs
43201         * modules/remove: New file.
43202         * lib/remove.c: Likewise.
43203         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43204         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43205         * modules/stdio (Makefile.am): Use them.
43206         * lib/stdio.in.h (remove): Declare replacement.
43207         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43208         * doc/posix-functions/remove.texi (remove): Likewise.
43209         * modules/remove-tests: New test.
43210         * tests/test-remove.c: Likewise.
43211
43212         unlink: new module, for Solaris 9 bug
43213         * modules/unlink: New file.
43214         * lib/unlink.c: Likewise.
43215         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43217         * modules/unistd (Makefile.am): Use them.
43218         * lib/unistd.in.h (stat): Declare replacement.
43219         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43220         * doc/posix-functions/unlink.texi (unlink): Likewise.
43221         * modules/unlink-tests: New test.
43222         * tests/test-unlink.c: Likewise.
43223
43224         lstat: fix Solaris 9 bug
43225         * lib/lstat.c (lstat): Also check for trailing slash on
43226         non-symlink, non-directories.  Use stat module to simplify logic.
43227         * doc/posix-functions/lstat.texi (lstat): Document it.
43228         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43229         (configure.ac): Check for symlink.
43230         * tests/test-lstat.c (main): Add more tests.
43231
43232         stat: add as dependency to other modules
43233         * modules/chown (Depends-on): Add stat.
43234         * modules/euidaccess (Depends-on): Likewise.
43235         * modules/fchdir (Depends-on): Likewise.
43236         * modules/isdir (Depends-on): Likewise.
43237         * modules/link (Depends-on): Likewise.
43238         * modules/lstat (Depends-on): Likewise.
43239         * modules/mkdir-p (Depends-on): Likewise.
43240         * modules/modechange (Depends-on): Likewise.
43241         * modules/open (Depends-on): Likewise.
43242         * modules/readlink (Depends-on): Likewise.
43243         * modules/same (Depends-on): Likewise.
43244
43245         stat: fix Solaris 9 bug
43246         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43247         slash.
43248         * lib/stat.c (rpl_stat): Work around it.
43249         * doc/posix-functions/stat.texi (stat): Update documentation.
43250
43251         stat: new module, for mingw bug
43252         * modules/stat: New file.
43253         * lib/stat.c: Likewise.
43254         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43255         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43256         * modules/sys_stat (Makefile.am): Use them.
43257         * lib/sys_stat.in.h (stat): Declare replacement.
43258         * lib/openat.c (fstatat): Deal with lstat and stat being function
43259         macros.
43260         * modules/openat (Depends-on): Add inline.
43261         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43262         * doc/posix-functions/stat.texi (stat): Likewise.
43263         * modules/stat-tests: New test.
43264         * tests/test-stat.c: Likewise.
43265
43266 2009-09-19  Jim Meyering  <meyering@redhat.com>
43267
43268         syntax-check: detect unnecessary inclusion of canonicalize.h
43269         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43270
43271 2009-09-19  Eric Blake  <ebb9@byu.net>
43272
43273         canonicalize-lgpl: adjust clients to use correct header
43274         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43275         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43276         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43277         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43278         * lib/progreloc.c (includes): Likewise.
43279
43280 2009-09-19  Jim Meyering  <meyering@redhat.com>
43281
43282         test-posixtm.c: correct a comment
43283         * tests/test-posixtm.c: Correct first-line comment.
43284         Spotted by Eric Blake.
43285
43286 2009-09-16  Jim Meyering  <meyering@redhat.com>
43287
43288         posixtm-tests: make T const-correct; add a test case
43289         * tests/test-posixtm.c (T): Declare const.
43290         Add a test for -(2^31+1).
43291         Remove useless can-succeed-only-in-2002 test.
43292
43293         posixtm-tests: adjust the sole failing test
43294         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43295         expected output matches what mktime now produces.  Cross-checked via
43296         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43297
43298         posixtm: move #ifdef'd tests into a new module
43299         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43300         * tests/test-posixtm.c: ... this new file.
43301         * modules/posixtm-tests: New module.
43302
43303 2009-09-19  Eric Blake  <ebb9@byu.net>
43304
43305         openat: simplify use of at-func.c
43306         * lib/at-func.c (includes): Include prerequisites here, to
43307         simplify requirements on client files.
43308         * lib/openat-priv.h: Add double-inclusion guard.
43309         * lib/faccessat.c (includes): Simplify.
43310         * lib/fchmodat.c (includes): Likewise.
43311         * lib/fchownat.c (includes): Likewise.
43312         * lib/mkdirat.c (includes): Likewise.
43313         * lib/mkfifoat.c (includes): Likewise.
43314         * lib/symlinkat.c (includes): Likewise.
43315
43316         openat: allow return of fd 0
43317         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43318         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43319         unistd-safer.
43320         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43321         <fcntl.h>; this module does not leak fds.
43322         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43323         must be allowed to return 0, leaving openat_safer to add the
43324         safety.
43325         (openat_permissive): Avoid writing to just-opened fd 2 if
43326         restoring the current directory fails.
43327         * lib/openat-die.c (openat_restore_fail): Add comment.
43328         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43329         (save_cwd): Guarantee safe fd, but without use of open_safer.
43330         * tests/test-openat.c: New test.
43331         * modules/openat-tests (Files, Makefile.am): Distribute and build
43332         new file.
43333
43334         relocatable-prog-wrapper: fix build
43335         * modules/relocatable-prog-wrapper (Files): Update name of
43336         canonicalize m4 file, broken on 2009-09-17.
43337         Reported by emad hajjar <aleppos@hotmail.com>.
43338
43339 2009-09-19  Bruno Haible  <bruno@clisp.org>
43340
43341         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43342         * lib/safe-alloc.c: Likewise.
43343         Reported by Ian Beckwith <ianb@erislabs.net>.
43344
43345 2009-09-18  Bruno Haible  <bruno@clisp.org>
43346
43347         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43348         Reported by <erobles@sensacd.com.mx>.
43349
43350 2009-09-17  Eric Blake  <ebb9@byu.net>
43351
43352         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43353         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43354         slashes when checking if last component is missing.
43355         * tests/test-canonicalize.c (main): Test this.
43356
43357         canonicalize, canonicalize-lgpl: honor // if distinct from /
43358         * modules/canonicalize (Files): Add double-slash-root.m4.
43359         * modules/canonicalize-lgpl (Files): Likewise.
43360         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43361         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43362         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43363         fallback definition.
43364         (canonicalize_filename_mode): Use it to protect //.
43365         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43366         (__realpath): Likewise.
43367         * tests/test-canonicalize.c (main): Test this.
43368         * tests/test-canonicalize-lgpl.c (main): Likewise.
43369         * modules/canonicalize-tests (Depends-on): Add same-inode.
43370         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43371
43372         canonicalize-lgpl: fix glibc bug with trailing slash
43373         * m4/canonicalize-lgpl.m4: Move contents...
43374         * m4/canonicalize.m4: ...here.
43375         (gl_CANONICALIZE_LGPL): Factor realpath check...
43376         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43377         glibc 2.3.5 bug, fixed 2005-04-27.
43378         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43379         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43380         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43381         * modules/canonicalize-lgpl (Files): Manage file rename.
43382         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43383         * modules/stdlib (Makefile.am): Substitute witness.
43384         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43385         is needed.
43386         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43387         replacement is required.
43388         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43389         * doc/glibc-functions/canonicalize_file_name.texi
43390         (canonicalize_file_name): Document this.
43391         * doc/posix-functions/realpath.texi (realpath): Likewise.
43392
43393         canonicalize-lgpl: reject non-directory with trailing slash
43394         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43395         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43396         catches failures in glibc 2.3.5.
43397         * tests/test-canonicalize.c (main): Likewise.
43398
43399         canonicalize-lgpl: use native realpath if it works
43400         * lib/canonicalize-lgpl.c (realpath): Guard with
43401         FUNC_REALPATH_WORKS.
43402         * lib/stdlib.in.h (realpath): Make declaration optional based on
43403         HAVE_REALPATH.
43404         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43405         native realpath works.
43406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43407         * modules/stdlib (Makefile.am): Substitute witness.
43408
43409         canonicalize, canonicalize-lgpl: use <stdlib.h>
43410         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43411         (Include): Mention <stdlib.h>.
43412         (configure.ac): Mention functions we provide.
43413         * modules/canonicalize (configure.ac): Likewise.
43414         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43415         realpath if canonicalize_file_name is missing.
43416         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43417         * modules/stdlib (Makefile.am): Substitute witnesses.
43418         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43419         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43420         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43421         * NEWS: Document this.
43422         * doc/glibc-functions/canonicalize_file_name.texi
43423         (canonicalize_file_name): Likewise.
43424         * doc/posix-functions/realpath.texi (realpath): Likewise.
43425         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43426
43427         test-canonicalize: consolidate into single C program
43428         * tests/test-canonicalize.sh: Delete; move setup into...
43429         * tests/test-canonicalize.c (main): ...the program, making it
43430         easier to run in debugger.  Add some tests.
43431         * modules/canonicalize-tests (Files): Remove unused file.
43432         (Depends-on): Add progname.
43433         (configure.ac, Makefile.am): Simplify.
43434
43435         test-canonicalize-lgpl: consolidate into single C program
43436         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43437         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43438         easier to run in debugger.  Add some tests.
43439         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43440         (configure.ac, Makefile.am): Simplify.
43441
43442         canonicalize: avoid resolvepath
43443         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43444         unnecessary checks.
43445         * lib/canonicalize.c (includes): Simplify.
43446         (canonicalize_file_name): Drop resolvepath implementation.
43447         * modules/canonicalize (Depends-on): Drop filenamecat.
43448
43449         canonicalize: don't lose errno
43450         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43451         over calls to free.
43452
43453         canonicalize: simplify errno handling
43454         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43455         assignment.
43456
43457         canonicalize, canonicalize-lgpl: update module dependencies
43458         * modules/canonicalize (Depends-on): Add extensions, lstat,
43459         pathmax, stdlib.
43460         (Files): Drop pathmax.h.
43461         (configure.ac): Adjust macro name.
43462         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43463         lstat, stdlib, sys_stat.
43464         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43465         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43466         extensions.
43467         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43468         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43469         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43470         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43471         declaration, if available.
43472         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43473         we can rely on the readlink module.
43474         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43475         (includes): Use <unistd.h> unconditionally.
43476
43477 2009-09-17  Eric Blake  <ebb9@byu.net>
43478
43479         maint: make Include sections of modules consistent
43480         * modules/alloca: Use only header name; no need to list #include.
43481         * modules/alloca-opt: Likewise.
43482         * modules/arpa_inet: Likewise.
43483         * modules/canon-host: Likewise.
43484         * modules/configmake: Likewise.
43485         * modules/dirent: Likewise.
43486         * modules/eealloc: Likewise.
43487         * modules/environ: Likewise.
43488         * modules/fchdir: Likewise.
43489         * modules/fcntl: Likewise.
43490         * modules/fcntl-h: Likewise.
43491         * modules/gethrxtime: Likewise.
43492         * modules/gettime: Likewise.
43493         * modules/ignore-value: Likewise.
43494         * modules/inet_ntop: Likewise.
43495         * modules/inet_pton: Likewise.
43496         * modules/inttypes: Likewise.
43497         * modules/isnand-nolibm: Likewise.
43498         * modules/isnanf-nolibm: Likewise.
43499         * modules/mbchar: Likewise.
43500         * modules/mbfile: Likewise.
43501         * modules/mbiter: Likewise.
43502         * modules/mbuiter: Likewise.
43503         * modules/netdb: Likewise.
43504         * modules/netinet_in: Likewise.
43505         * modules/nproc: Likewise.
43506         * modules/pagealign_alloc: Likewise.
43507         * modules/poll: Likewise.
43508         * modules/printf-frexp: Likewise.
43509         * modules/pthread: Likewise.
43510         * modules/putenv: Likewise.
43511         * modules/random_r: Likewise.
43512         * modules/relocatable-prog: Likewise.
43513         * modules/search: Likewise.
43514         * modules/select: Likewise.
43515         * modules/selinux-h: Likewise.
43516         * modules/settime: Likewise.
43517         * modules/signal: Likewise.
43518         * modules/size_max: Likewise.
43519         * modules/socklen: Likewise.
43520         * modules/ssize_t: Likewise.
43521         * modules/stdarg: Likewise.
43522         * modules/stdbool: Likewise.
43523         * modules/stddef: Likewise.
43524         * modules/stdint: Likewise.
43525         * modules/stdio: Likewise.
43526         * modules/stdlib: Likewise.
43527         * modules/string: Likewise.
43528         * modules/strings: Likewise.
43529         * modules/sys_file: Likewise.
43530         * modules/sys_ioctl: Likewise.
43531         * modules/sys_select: Likewise.
43532         * modules/sys_socket: Likewise.
43533         * modules/sys_stat: Likewise.
43534         * modules/sys_time: Likewise.
43535         * modules/sys_times: Likewise.
43536         * modules/sys_utsname: Likewise.
43537         * modules/sys_wait: Likewise.
43538         * modules/sysexits: Likewise.
43539         * modules/time: Likewise.
43540         * modules/times: Likewise.
43541         * modules/tmpfile: Likewise.
43542         * modules/trim: Likewise.
43543         * modules/unistd: Likewise.
43544         * modules/wchar: Likewise.
43545         * modules/wctype: Likewise.
43546
43547 2009-09-17  Bruno Haible  <bruno@clisp.org>
43548
43549         Make getdate.y compile on QNX and NetBSD 5 / i386.
43550         * m4/getdate.m4 (gl_GETDATE): Conditionally define
43551         TIME_T_FITS_IN_LONG_INT.
43552         * lib/getdate.y (long_time_t): New type.
43553         (relative_time): Change type of 'seconds' field to long_time_t.
43554         (get_date): Update types of local variables. Check against overflow
43555         during conversion from long_time_t to time_t.
43556         Reported by Matt Kraai <kraai@ftbfs.org>
43557         and Hasso Tepper <hasso@netbsd.org>.
43558
43559 2009-09-17  Bruno Haible  <bruno@clisp.org>
43560
43561         * modules/COPYING: Update copyright years.
43562         * modules/README: Likeiwse.
43563         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
43564         Reported by Ian Beckwith <ianb@erislabs.net>.
43565
43566 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43567
43568         * users.txt: Update references for gnuit package.
43569
43570 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
43571
43572         * m4/getdelim.m4: Fix typo in copyright line.
43573
43574 2009-09-17  Bruno Haible  <bruno@clisp.org>
43575
43576         * lib/atoll.c: Use the standard header with GPL copyright.
43577         * lib/argz.in.h: Likewise.
43578         * lib/glob.c: Likewise.
43579         * lib/glob-libc.h: Likewise.
43580         * lib/random_r.c: Likewise.
43581         * lib/siglist.h: Likewise.
43582         * lib/strsignal.c: Likewise.
43583         Reported by Ian Beckwith <ianb@erislabs.net>.
43584
43585 2009-09-17  Eric Blake  <ebb9@byu.net>
43586
43587         rmdir: ensure correct dependency order
43588         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
43589
43590 2009-09-17  Bruno Haible  <bruno@clisp.org>
43591
43592         Disable assertion that fails on NetBSD 5 / i386.
43593         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
43594         Reported by Sam Steingold <sds@gnu.org>
43595         and Hasso Tepper <hasso@netbsd.org>.
43596
43597 2009-09-16  Eric Blake  <ebb9@byu.net>
43598
43599         unlinkdir: port to mingw
43600         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
43601         on which no one can unlink a directory.
43602
43603         stdlib: sort witness names
43604         * modules/stdlib (Makefile.am): Sort replacements.
43605         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
43606         * lib/stdlib.in.h: Likewise.
43607
43608         parse-duration-tests: avoid link failure
43609         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
43610         LIBINTL.
43611         Reported by Tom G. Christensen.
43612
43613         openat-tests: ensure unlinkat behaves like rmdir
43614         * tests/test-rmdir.c (main): Factor guts...
43615         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
43616         * modules/rmdir-tests (Files): Ship new file.
43617         * modules/openat-tests: New test.
43618         * tests/test-unlinkat.c: Likewise.
43619
43620         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
43621         * modules/rmdir-errno (Status, Notice): Now obsolete.
43622
43623         rmdir: work around cygwin 1.5.x and mingw bugs
43624         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
43625         * lib/rmdir.c (rmdir): Work around it.
43626         * modules/rmdir (Status, Notice): No longer obsolete.
43627         (Files): Add dos.m4.
43628         (Depends-on): Add unistd.
43629         (configure.ac): Set witnesses.
43630         (License): Relax to LGPLv2+.
43631         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
43632         * modules/unistd (Makefile.am): Substitute witnesses.
43633         * lib/unistd.in.h (rmdir): Declare replacement.
43634         * doc/posix-functions/rmdir.texi (rmdir): Document this.
43635         * modules/rmdir-tests: New tests.
43636         * tests/test-rmdir.c: Likewise.
43637
43638 2009-09-15  Eric Blake  <ebb9@byu.net>
43639
43640         fchdir: improve use of replacement functions
43641         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
43642         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
43643         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
43644         REPLACE_CLOSEDIR.
43645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
43646         * modules/sys_stat (Makefile.am): Substitute correct witness.
43647         * modules/dirent (Makefile.am): Likewise.
43648         * modules/unistd (Makefile.am): Likewise.
43649         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
43650         * lib/unistd.in.h (dup): Likewise.
43651         * lib/sys_stat.in.h (fstat): Likewise.
43652
43653         maint: ignore gnulib-tool temp files
43654         * .gitignore: Ignore files created during gnulib-tool --test.
43655
43656 2009-09-13  Jim Meyering  <meyering@redhat.com>
43657
43658         posixtm: don't reject a time that specify "60" as the number of seconds
43659         * lib/posixtm.c (posixtime): The code to reject invalid dates
43660         would also reject a time specified with the .60 suffix.
43661         But POSIX allows that, in order to accommodate leap seconds.
43662         So don't reject it.
43663         (main): Adjust tests accordingly.
43664         * modules/posixtm (Depends-on): Add stpcpy.
43665
43666 2009-09-11  Jim Meyering  <meyering@redhat.com>
43667
43668         announce-gen: include [$release_type] in emitted Subject:
43669         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
43670         e.g., [stable] in the emitted Subject: line.
43671
43672 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43673
43674         Remove obsolete macros from several modules.
43675         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
43676         obsolete Autoconf macros with their modern counterparts.
43677         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
43678         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
43679         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
43680         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
43681         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
43682         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
43683         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
43684         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
43685         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
43686         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
43687         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
43688         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
43689         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
43690         * m4/sockets.m4 (gl_SOCKETS): Likewise.
43691         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
43692         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
43693         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
43694         * m4/time_r.m4 (gl_TIME_R): Likewise.
43695         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
43696         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
43697         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
43698
43699         Fix copyright header in build-aux scripts.
43700         * build-aux/git-version-gen: Fix copyright header to match GPLv3
43701         recommendation.
43702         * build-aux/ncftpput-ftp: Likewise.
43703         * build-aux/update-copyright: Likewise.
43704
43705 2009-09-09  Eric Blake  <ebb9@byu.net>
43706
43707         test-link: allow Linux choice of errno
43708         * tests/test-link.c (main): Relax test for alternate error.
43709
43710         strndup: fix improper m4 caching
43711         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
43712         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
43713         (gl_PREREQ_STRNDUP): Delete.
43714         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
43715         * modules/string (Makefile.am): Substitute it.
43716         * lib/string.in.h (strndup): Modernize prototype.
43717
43718         getcwd: port to mingw
43719         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
43720         different from the POSIX assumptions made throughout the getcwd
43721         module; fortunately, the mingw getcwd does not need replacement.
43722         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
43723         * modules/getcwd-tests: New test.
43724         * tests/test-getcwd.c: Likewise.
43725
43726         link: fix platform bugs
43727         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
43728         * lib/link.c (link): Work around them.  Fix related mingw bug.
43729         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
43730         * modules/unistd (Makefile.am): Substitute it.
43731         * lib/unistd.in.h (link): Declare replacement.
43732         * doc/posix-functions/link.texi (link): Document this.
43733         * modules/link (Depends-on): Add strdup-posix, sys_stat.
43734
43735         test-link: consolidate into single C program, test more cases
43736         * tests/test-link.sh: Delete.
43737         * tests/test-link.c: Test more error conditions.  Exposes bugs on
43738         at least Cygwin and Solaris.
43739         * modules/link-tests (Files): Remove unused file.
43740         (Depends-on): Add errno, sys_stat.
43741         (Makefile.am): Simplify.
43742
43743 2009-09-08  Bruno Haible  <bruno@clisp.org>
43744
43745         Work around towlower, towupper bug on mingw.
43746         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
43747         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
43748         * doc/posix-functions/towlower.texi: Mention the mingw bug.
43749         * doc/posix-functions/towupper.texi: Likewise.
43750         Reported by Eric Blake.
43751
43752 2009-09-08  Jim Meyering  <meyering@redhat.com>
43753
43754         build: don't try to run autoheader if we don't use it
43755         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
43756         is not used in configure.ac.
43757
43758 2009-09-08  Eric Blake  <ebb9@byu.net>
43759
43760         euidaccess: fix compilation error
43761         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
43762
43763         rawmemchr: relax license
43764         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
43765         okay.
43766         Reported by Jim Meyering.
43767
43768         mkfifoat: new module
43769         * modules/mkfifoat: New file.
43770         * lib/mkfifoat.c: Likewise.
43771         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
43772         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43773         * modules/sys_stat (Makefile.am): Use them.
43774         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
43775         * MODULES.html.sh (File system functions): Mention module.
43776         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43777         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43778         * modules/mkfifoat-tests: New test.
43779         * tests/test-mkfifoat.c: Likewise.
43780
43781         strchrnul: relax license
43782         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
43783         okay.
43784         Reported by Jim Meyering.
43785
43786 2009-09-08  Eric Blake  <ebb9@byu.net>
43787
43788         fstatat: fix compilation on Solaris
43789         * lib/fstatat.c (includes): Add fcntl.h.
43790         Reported by Pádraig Brady.
43791
43792 2009-09-07  Eric Blake  <ebb9@byu.net>
43793
43794         rename: modernize replacement
43795         * modules/rename (Depends-on): Add stdio.
43796         (configure.ac): Declare witness.
43797         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
43798         stdio take care of replacement.
43799         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
43800         * modules/stdio (Makefile.am): Substitute them.
43801         * lib/stdio.in.h (rename): Declare replacement.
43802         * lib/rename.c (includes): Allow cross-compilation to non-windows
43803         machines.
43804         * doc/posix-functions/rename.texi (rename): Improve
43805         documentation.
43806
43807         stdio: sort witness names
43808         * modules/stdio (Makefile.am): Sort replacements.
43809         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
43810         * lib/stdio.in.h: Likewise.
43811
43812         getcwd: minor cleanups
43813         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
43814         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
43815
43816         openat: provide more convenience names
43817         * modules/faccessat (configure.ac): Add C witness.
43818         * lib/unistd.in.h (readlinkat): Fix typo.
43819         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
43820         convenience wrappers.
43821         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
43822         wrappers in syntax checks.
43823
43824 2009-09-06  Eric Blake  <ebb9@byu.net>
43825
43826         doc: fix comments in recent patches
43827         * lib/faccessat.c: Mention correct function.
43828         * lib/fchmodat.c: Likewise.
43829         * lib/fchownat.c: Likewise.
43830         * lib/symlinkat.c: Likewise.
43831         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
43832         constants.
43833
43834         faccessat, symlinkat: continue cleanup of previous patch
43835         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
43836         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43837         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
43838         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
43839         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
43840         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
43841         set.
43842
43843 2009-09-06  Bruno Haible  <bruno@clisp.org>
43844
43845         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
43846         (fstatat): Declare if GNULIB_FSTATAT is set.
43847         (mkdirat): Declare if GNULIB_MKDIRAT is set.
43848         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
43849         (unlinkat): Declare if GNULIB_UNLINKAT is set.
43850         * modules/fcntl-h (Files): Remove m4/openat.m4.
43851         * modules/sys_stat (Files): Remove m4/openat.m4.
43852         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
43853         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
43854         * modules/unistd (Files): Remove m4/openat.m4.
43855         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
43856         GNULIB_OPENAT.
43857         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
43858         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
43859         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
43860         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
43861         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
43862         gl_OPENAT_DEFAULTS.
43863         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
43864         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
43865         Don't require gl_OPENAT_DEFAULTS.
43866         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
43867         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
43868         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
43869         (gl_OPENAT_DEFAULTS): Remove macro.
43870
43871 2009-09-06  Bruno Haible  <bruno@clisp.org>
43872
43873         * modules/openat (configure.ac): Remove unneeded witness.
43874
43875 2009-09-06  Bruno Haible  <bruno@clisp.org>
43876
43877         Set errno to ENOSYS when a function is entirely unsupported.
43878         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
43879         EOPNOTSUPP.
43880         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43881         * modules/chown (Depends-on): Remove errno.
43882
43883 2009-09-06  Bruno Haible  <bruno@clisp.org>
43884
43885         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
43886
43887 2009-09-06  Bruno Haible  <bruno@clisp.org>
43888
43889         * lib/sys_stat.in.h: Fix preprocessor command indentation.
43890
43891 2009-09-06  Ben Pfaff  <blp@gnu.org>
43892             Bruno Haible  <bruno@clisp.org>
43893
43894         Work around a glibc bug in strtok_r.
43895         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
43896         Undefine if UNDEFINE_STRTOK_R is set.
43897         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43898         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43899         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43900         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43901         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43902         UNDEFINE_STRTOK_R.
43903         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43904
43905 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43906
43907         exclude: minor fix
43908         * lib/exclude.c: Include wctype.h
43909
43910 2009-09-06  Akim Demaille  <demaille@gostai.com>
43911
43912         bootstrap: improve error message
43913         * build-aux/bootstrap (find_tool): Upon failure, report the list
43914         of candidates.
43915         Honor the initial value of the envvar.
43916
43917 2009-09-05  Eric Blake  <ebb9@byu.net>
43918
43919         symlinkat: new module
43920         * modules/symlinkat: New file.
43921         * lib/symlinkat.c: Likewise.
43922         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
43923         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43924         * modules/unistd (Makefile.am): Use them.
43925         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
43926         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
43927         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
43928         * MODULES.html.sh (File system functions): Mention module.
43929         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43930         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43931         * modules/symlinkat-tests: New test.
43932         * tests/test-symlinkat.c: Likewise.
43933
43934         test-openat-safer: add more checks
43935         * tests/test-openat-safer.c (main): Check more code paths.
43936
43937 2009-09-05  Jim Meyering  <meyering@redhat.com>
43938
43939         syntax-check: detect unnecessary inclusion of openat.h
43940         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
43941
43942 2009-09-05  Bruno Haible  <bruno@clisp.org>
43943
43944         Support towlower, towupper.
43945         * doc/posix-functions/towlower.texi: Mention module wctype.
43946         * doc/posix-functions/towupper.texi: Likewise.
43947         * lib/wctype.in.h (towlower, towupper): New functions.
43948         * tests/test-wctype.c: Include stdio.h, stdlib.h.
43949         (ASSERT): New macro.
43950         (e): New variable.
43951         (main): Test also towlower, towupper. Test WEOF argument.
43952         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43953
43954 2009-09-05  Bruno Haible  <bruno@clisp.org>
43955
43956         Fix conversion behaviour when the input is invalid.
43957         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
43958         mark occurring in first pass of indirect conversion.
43959         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
43960         input.
43961         Found by clang's static analyzer.
43962
43963 2009-09-05  Bruno Haible  <bruno@clisp.org>
43964
43965         * tests/test-striconveh.c (main): Test indirect conversion on platforms
43966         where direct conversion is possible.
43967
43968 2009-09-04  Eric Blake  <ebb9@byu.net>
43969
43970         openat: fail with ENOENT on empty name
43971         * lib/openat-proc.c (openat_proc_name): Special-case the empty
43972         buffer.
43973
43974         link-follow: fix logic bug in prior patch
43975         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43976         reversed sense of yes and no in prior patch.  Avoid confusing
43977         compilation failure with desired semantics.
43978
43979         link-follow: accommodate mingw and cross-compilation
43980         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43981         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43982         cross-compilation results to -1, to make linkat easier to
43983         implement when cross-compiling.  Trivially support mingw.
43984         * modules/link-follow (configure.ac): Call new name.
43985         * NEWS: Mention this.
43986
43987 2009-09-03  Eric Blake  <ebb9@byu.net>
43988
43989         faccessat: compile replacement
43990         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43991         needed.
43992
43993         fts: fix compilation error
43994         * lib/fts.c (includes): Re-add "openat.h", for
43995         openat_needs_fchdir.
43996
43997         faccessat: new module
43998         * modules/faccessat: New file.
43999         * lib/faccessat.c: Likewise.
44000         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44001         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44002         * modules/unistd (Makefile.am): Use it.
44003         * lib/unistd.in.h (faccessat): Declare it.
44004         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44005         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44006         * MODULES.html.sh (File system functions): Mention it.
44007         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44008         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44009
44010         euidaccess: prefer POSIX over non-standard implementation
44011         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44012         * lib/euidaccess.c (euidaccess): Use it if available.
44013
44014         openat: make template easier to use
44015         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44016         AT_FUNC_F2 to be undefined.
44017         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44018         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44019         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44020         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44021         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44022         Likewise.
44023         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44024         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44025         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44026         Likewise.
44027
44028         openat: declare in POSIX headers
44029         * NEWS: Mention this.
44030         * modules/openat (configure.ac): Declare witnesses.
44031         (Depends-on): Add fcntl-h, sys_stat, unistd.
44032         (Include): Mention correct headers.
44033         * modules/fcntl-h (Depends-on): Add link-warning.
44034         (Files): Add openat.m4.
44035         (Makefile.am): Substitute witnesses.
44036         * modules/sys_stat (Files, Makefile.am): Likewise.
44037         * modules/unistd (Files, Makefile.am): Likewise.
44038         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44039         (gl_OPENAT_DEFAULTS): New macro.
44040         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44042         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44043         (SYS_STAT_H): Remove unused variable.
44044         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44045         * lib/fcntl--.h (includes): Remove unneeded header.
44046         * lib/openat-safer.c (includes): Likewise.
44047         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44048         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44049         appropriate headers.
44050         (__OPENAT_PREFIX): Delete.
44051         * lib/fcntl.in.h (openat): Provide declaration.
44052         (AT_FDCWD): Fix Solaris bug.
44053         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44054         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44055         * lib/fchmodat.c (includes):  Adjust to find declaration.
44056         * lib/fchownat.c (includes): Likewise.
44057         * lib/mkdirat.c (includes): Likewise.
44058         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44059         still visible.
44060
44061 2009-09-02  Eric Blake  <ebb9@byu.net>
44062
44063         errno: use consistently
44064         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44065         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44066         * lib/canonicalize.c (ELOOP): Likewise.
44067         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44068         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44069         * lib/lchown.c (EOPNOTSUPP): Likewise.
44070         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44071         * lib/savewd.c (ESTALE): Likewise.
44072         * lib/settime.c (ENOSYS): Likewise.
44073         * lib/utimens.c (ENOSYS): Likewise.
44074         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44075         * lib/chdir-safer.c (ELOOP): Likewise.
44076         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44077         * modules/c-stack (Depends-on): Add errno.
44078         * modules/canonicalize (Depends-on): Likewise.
44079         * modules/chdir-safer (Depends-on): Likewise.
44080         * modules/fdopendir (Depends-on): Likewise.
44081         * modules/inet_ntop (Depends-on): Likewise.
44082         * modules/inet_pton (Depends-on): Likewise.
44083         * modules/lchown (Depends-on): Likewise.
44084         * modules/openat (Depends-on): Likewise.
44085         * modules/savewd (Depends-on): Likewise.
44086         * modules/settime (Depends-on): Likewise.
44087         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44088
44089         fts: avoid leaking fds
44090         * modules/fts (Depends-on): Add cloexec.
44091         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44092         flag.
44093
44094         fts: make directory fds more robust
44095         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44096         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44097
44098         backupfile, chdir-long, fts, savedir: make safer
44099         * lib/backupfile.c (includes): Use "dirent--.h", since
44100         numbered_backup can write to stderr during readdir.
44101         * lib/savedir.c (includes): Likewise.
44102         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44103         emulation can write to stderr on failure.
44104         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44105         * lib/getcwd.c: Document why opendir_safer is unused.
44106         * lib/glob.c: Likewise.
44107         * lib/scandir.c: Likewise.
44108         * lib/openat-proc.c: Likewise, for open_safer.
44109         * modules/backupfile (Depends-on): Add dirent-safer.
44110         * modules/savedir (Depends-on): Likewise.
44111         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44112         * modules/chdir-long (Depends-on): Add openat-safer.
44113
44114         openat-safer: new module
44115         * modules/openat-safer: New file.
44116         * lib/openat-safer.c: Likewise.
44117         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44118         * lib/fcntl-safer.h (openat_safer): Declare.
44119         * lib/fcntl--.h (openat): Override.
44120         * MODULES.html.sh (File descriptor based I/O): Mention it.
44121         * lib/openat.h: Add double-inclusion guards.
44122         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44123         "fcntl--.h", so we can implement openat.
44124         * modules/openat-safer-tests: New test.
44125         * tests/test-openat-safer.c: New file.
44126
44127         dirent-safer: new module
44128         * modules/dirent-safer: New file.
44129         * lib/dirent--.h: Likewise.
44130         * lib/dirent-safer.h: Likewise.
44131         * lib/opendir-safer.c: Likewise.
44132         * m4/dirent-safer.m4: Likewise.
44133         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44134         * modules/dirent-safer-tests: New test.
44135         * tests/test-dirent-safer.c: New file.
44136         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44137
44138         fdopendir: optimize on mingw
44139         * lib/unistd.in.h (_gl_directory_name): New prototype.
44140         * lib/fchdir.c (_gl_directory_name): Implement it.
44141         (fchdir): Use it to simplify implementation.
44142         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44143         fchdir, when available, to avoid calling [f]chdir().
44144
44145         fdopendir: split into its own module
44146         * lib/openat.c (fdopendir): Move...
44147         * lib/fdopendir.c: ...into new file.
44148         * modules/fdopendir: New module.
44149         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44150         * modules/openat (Depends-on): Add fdopendir.
44151         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44152         fdopendir here.
44153         * modules/savedir (Depends-on): Only need fdopendir, not full
44154         openat.
44155         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44156         * lib/openat.h (fdopendir): Drop prototype.
44157         * lib/dirent.in.h (fdopendir): Provide prototype.
44158         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44159         * modules/dirent (Makefile.am): Substitute them.
44160         * MODULES.html.sh (File system functions): Mention it.
44161         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44162         * modules/fdopendir-tests: New file.
44163         * tests/test-fdopendir.c: Likewise.
44164
44165         fchdir: use more consistent macro convention
44166         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44167         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44168         REPLACE_FCHDIR, rather than relying on config.h macros.
44169         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44170         inside a single make-time REPLACE_FCHDIR block, rather than using
44171         the config.h FCHDIR_REPLACEMENT.
44172         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44173         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44174         Manage fstat replacement.
44175         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44176         REPLACE_FCHDIR.
44177         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44178         (Makefile.am): Substitute REPLACE_FCHDIR.
44179         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44180         FCHDIR_REPLACEMENT.
44181         * lib/dup-safer.c (dup_safer): Likewise.
44182         * lib/dup2.c (rpl_dup2): Likewise.
44183         * lib/dup3.c (rpl_dup3): Likewise.
44184         * lib/open.c (rpl_open): Likewise.
44185
44186         fchdir: simplify error handling, and support dup3
44187         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44188         stdbool, malloc-posix, realloc-posix.
44189         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44190         (ensure_dirs_slot): Return false on allocation failure.
44191         (rpl_dup2): Delete.
44192         (_gl_register_dup): New function.
44193         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44194         (_gl_register_fd): Close fd on allocation failure.
44195         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44196         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44197         prototype.
44198         (rpl_dup2_fchdir): Delete prototype.
44199         * lib/open.c (open): Update caller.
44200         * lib/dup2.c (dup2): Track fchdir metadata.
44201         * lib/dup3.c (dup3): Likewise.
44202         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44203         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44204
44205 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44206
44207         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44208         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44209         don't pass arguments to AC_OUTPUT.
44210
44211 2009-09-02  Bruno Haible  <bruno@clisp.org>
44212
44213         * modules/mkdtemp (License): Relicense under LGPLv2+.
44214         Reported by Paolo Bonzini.
44215
44216 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44217
44218         Replace uses of obsolete autoconf macros in Jim's modules.
44219         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44220         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44221         can evoke a warning from autoconf when run with -Wobsolete
44222         enabled.  They were declared obsolete for good reasons (see
44223         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44224         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44225         should not continue using the deprecated macros.
44226         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44227         obsolete Autoconf macros with modern counterparts.
44228         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44229         * m4/dos.m4 (gl_AC_DOS): Likewise.
44230         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44231         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44232         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44233         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44234         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44235         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44236         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44237         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44238         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44239         Likewise.
44240         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44241         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44242         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44243         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44244         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44245         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44246
44247 2009-09-01  Eric Blake  <ebb9@byu.net>
44248
44249         fchdir: fix off-by-one bug in previous patch
44250         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44251         (_gl_unregister_fd): Delete useless if.
44252
44253 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44254
44255         maint.mk: sort the list of syntax-check rules
44256         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44257         easier to get a sense of progress when the rules are run sequentially
44258         and take a long time.
44259
44260 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44261
44262         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44263         * modules/netinet_in: Likewise.
44264         * modules/sys_file: Likewise.
44265         * modules/sys_ioctl: Likewise.
44266         * modules/sys_select: Likewise.
44267         * modules/sys_socket: Likewise.
44268         * modules/sys_stat: Likewise.
44269         * modules/sys_time: Likewise.
44270         * modules/sys_times: Likewise.
44271         * modules/sys_utsname: Likewise.
44272         * modules/sys_wait: Likewise.
44273
44274 2009-09-01  Jim Meyering  <meyering@redhat.com>
44275
44276         fts: help ensure that return values are not ignored
44277         * lib/fts_.h (__GNUC_PREREQ): Define.
44278         (__attribute_warn_unused_result__): Define.
44279         (fts_children, fts_close, fts_open, fts_read): Declare with
44280         __attribute_warn_unused_result__.
44281
44282         fts: fts_close now fails also when closing a dir file descriptor fails
44283         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44284         and propagate to caller, along with errno.
44285
44286         announce-gen: correct formatting in --help output
44287         * build-aux/announce-gen (usage): Move the one-line description in
44288         --help output "up", to where it belongs, just after Usage:.
44289
44290 2009-08-31  Eric Blake  <ebb9@byu.net>
44291
44292         fchdir: port to mingw
44293         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44294         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44295         opened, then use a substitute.
44296         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44297         replacement.
44298         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44299         (_gl_register_fd): No need to check stat if open already filters
44300         all directories.
44301         (fchdir): Fix error condition to match POSIX.
44302         * modules/fchdir (Depends-on): Add sys_stat.
44303         * doc/posix-functions/open.texi (open): Document the limitation.
44304         * modules/fchdir-tests: New file.
44305         * tests/test-fchdir.c: Likewise.
44306
44307         canonicalize: allow cross-testing from cygwin to mingw
44308         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44309         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44310         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44311         Likewise.
44312         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44313         target does not support symlinks.
44314         * tests/test-canonicalize-lgpl.sh: Likewise.
44315
44316         chown: avoid compilation warning on mingw
44317         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44318         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44319         mingw.
44320         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44321         * modules/chown (Depends-on): Add errno.
44322
44323 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44324
44325         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44326         command.
44327
44328 2009-08-31  Jim Meyering  <meyering@redhat.com>
44329
44330         canonicalize: remove useless initialization
44331         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44332         initialization of local, "end".
44333
44334 2009-08-30  Bruno Haible  <bruno@clisp.org>
44335
44336         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44337         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44338         ENOSYS.
44339
44340 2009-08-30  Bruno Haible  <bruno@clisp.org>
44341
44342         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44343         /usr/xpg4/bin/tr when it exists.
44344         * tests/test-pipe-filter-gi1.sh: Likewise.
44345
44346 2009-08-30  Bruno Haible  <bruno@clisp.org>
44347
44348         Work around deficient /usr/bin/id program on Solaris.
44349         * tests/test-file-has-acl.sh (ID): New variable.
44350         * tests/test-set-mode-acl.sh (ID): Likewise.
44351         * tests/test-copy-acl.sh (ID): Likewise.
44352         * tests/test-copy-file.sh (ID): Likewise.
44353
44354 2009-08-30  Bruno Haible  <bruno@clisp.org>
44355
44356         New module 'xstriconveh'.
44357         * lib/xstriconveh.h: New file.
44358         * lib/xstriconveh.c: New file.
44359         * modules/xstriconveh: New file.
44360
44361 2009-08-30  Bruno Haible  <bruno@clisp.org>
44362
44363         Make it easier to use mem_cd_iconveh.
44364         * lib/striconveh.h (iconveh_t): New type.
44365         (iconveh_open, iconveh_close): New declarations.
44366         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44367         with a single 'const iconveh_t *' argument.
44368         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44369         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44370         with a single 'const iconveh_t *' argument.
44371         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44372         * tests/test-striconveh.c (main): Update.
44373         * NEWS: Mention the change.
44374
44375 2009-08-30  Bruno Haible  <bruno@clisp.org>
44376
44377         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44378         problem.
44379
44380 2009-08-30  Bruno Haible  <bruno@clisp.org>
44381
44382         Work around iconv_open problem on Solaris.
44383         * lib/iconv_open-solaris.gperf: New file.
44384         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44385         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44386         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44387         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44388         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44389         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44390
44391 2009-08-29  Jim Meyering  <meyering@redhat.com>
44392
44393         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44394         * top/maint.mk (cvs-check): Remove target; it was just an alias
44395         to the better-named vc-diff-check.
44396         (maintainer-distcheck): Remove rule.  It was used only from
44397         the (alpha/beta/major) target, and all of its commands but one
44398         were coreutils-specific.
44399         (vc-dist): Remove rule.
44400         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44401         Run vc-diff-check, not vc-dist.
44402         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44403
44404 2009-08-27  Bruno Haible  <bruno@clisp.org>
44405
44406         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44407         of 0.
44408
44409 2009-08-27  Bruno Haible  <bruno@clisp.org>
44410
44411         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44412         compilers.
44413         * doc/func.texi: Document the SunPRO C bug.
44414
44415 2009-08-27  Bruno Haible  <bruno@clisp.org>
44416
44417         Fix link error on Solaris.
44418         * tests/test-parse-duration.c (xstrdup): Remove function.
44419
44420 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44421
44422         ignore-value: handle pointer types, too
44423         * lib/ignore-value.h (__attribute__): Remove definition.
44424         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44425         of a more concise and more-often effective "(void) i" statement.
44426         (ignore_ptr): New function to suppress warnings from functions that
44427         return pointers, and to make it explicit that one function doesn't
44428         handle all cases.
44429
44430 2009-08-25  Bruno Haible  <bruno@clisp.org>
44431
44432         dup2: work around a Linux bug.
44433         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44434         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44435         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44436         Reported by Simon Josefsson.
44437
44438 2009-08-25  Jim Meyering  <meyering@redhat.com>
44439
44440         libguestfs uses gnulib
44441         * users.txt: Add libguestfs.
44442
44443 2009-08-24  Eric Blake  <ebb9@byu.net>
44444
44445         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44446         * lib/pipe2.c (includes): Add binary-io.h.
44447         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44448
44449 2009-08-24  Bruno Haible  <bruno@clisp.org>
44450
44451         Tolerate declared but missing accept4 syscall.
44452         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44453         available.
44454         * lib/sys_socket.in.h (accept4): If the function is already present,
44455         override it.
44456         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44457         * modules/accept4 (Makefile.am): Compile accept4.c always.
44458         Reported by Paolo Bonzini and Eric Blake.
44459
44460 2009-08-23  Bruno Haible  <bruno@clisp.org>
44461
44462         New module 'accept4'.
44463         * lib/sys_socket.in.h (accept4): New declaration.
44464         * lib/accept4.c: New file.
44465         * m4/accept4.m4: New file.
44466         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44467         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44468         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44469         HAVE_ACCEPT4.
44470         * modules/accept4: New file.
44471         * doc/glibc-functions/accept4.texi: Mention the new module.
44472
44473 2009-08-24  Jim Meyering  <meyering@redhat.com>
44474
44475         progname: also set global program_invocation_name, when possible
44476         Before this change, a libtool-enabled program that calls glibc's
44477         error function would report the program name as
44478         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44479         * modules/progname (configure.ac): Check for a declaration of
44480         program_invocation_name.
44481         * lib/progname.c:  Include <errno.h>.
44482         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44483         Set program_invocation_name.
44484
44485 2009-08-23  Bruno Haible  <bruno@clisp.org>
44486
44487         * lib/dup3.c: Include <string.h>.
44488
44489 2009-08-23  Bruno Haible  <bruno@clisp.org>
44490
44491         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44492         * lib/pipe2.c (pipe2): Likewise.
44493         Suggested by Eric Blake.
44494
44495 2009-08-23  Bruno Haible  <bruno@clisp.org>
44496
44497         Tolerate declared but missing dup3 syscall.
44498         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44499         * lib/unistd.in.h (dup3): If the function is already present,
44500         override it.
44501         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44502         * modules/dup3 (Makefile.am): Compile dup3.c always.
44503         Reported by Paolo Bonzini.
44504
44505 2009-08-23  Bruno Haible  <bruno@clisp.org>
44506
44507         Tolerate declared but missing pipe2 syscall.
44508         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
44509         available.
44510         * lib/unistd.in.h (pipe2): If the function is already present,
44511         override it.
44512         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
44513         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
44514         Reported by Paolo Bonzini.
44515
44516 2009-08-23  Bruno Haible  <bruno@clisp.org>
44517
44518         * lib/pipe2.c (pipe2): Move #ifs inside function.
44519
44520 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44521
44522         quotearg: document limitations of quote_these_too
44523         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
44524         those limitations are created.
44525         * lib/quotearg.h (set_char_quoting): Document that digits and
44526         letters that are special after backslash are not permitted.
44527         (quotearg_char): Cross-reference set_char_quoting documentation.
44528
44529 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
44530
44531         quotearg: implement custom_quoting_style
44532         * lib/quotearg.c: (struct quoting_options): Add left_quote and
44533         right_quote fields.
44534         (set_custom_quoting): New public function.
44535         (quotearg_buffer_restyled): Add left_quote and right_quote
44536         arguments, handle them very much like locale quoting, and update
44537         all uses.
44538         (quotearg_n_custom): New public function.
44539         (quotearg_n_custom_mem): New public function.
44540         (quotearg_custom): New public function.
44541         (quotearg_custom_mem): New public function.
44542         * lib/quotearg.h: Prototype and document new public functions.
44543         (enum quoting_style): For escape_quoting_style and
44544         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
44545         ignored even though they're otherwise like c_quoting_style.
44546         Add custom_quoting_style member and document with comparison to
44547         clocale_quoting_style.
44548         * tests/test-quotearg.c (custom_quotes): New array.
44549         (custom_results): New array.
44550         (main): Extend to test custom quoting.
44551
44552 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44553
44554         quotearg: fix right quote escaping when it's in quote_these_too
44555         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
44556         quote, be sure to prepend only one backslash.
44557         * tests/test-quotearg.c (use_quote_double_quotes): New function.
44558         (main): Test it.
44559
44560 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
44561
44562         quotearg-tests: test escaping of embedded locale quotes
44563         * tests/test-quotearg.c (struct result_strings): Add member for
44564         new input.
44565         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
44566         (inputs): Add new input.
44567         (results_g): Add expected results.
44568         (flag_results): Likewise.
44569         (locale_results): Likewise.
44570         (compare_strings): Check those.
44571
44572 2009-08-23  Bruno Haible  <bruno@clisp.org>
44573
44574         Tests for module 'dup3'.
44575         * modules/dup3-tests: New file.
44576         * tests/test-dup3.c: New file.
44577
44578         New module 'dup3'.
44579         * lib/unistd.in.h (dup3): New declaration.
44580         * lib/dup3.c: New file.
44581         * m4/dup3.m4: New file.
44582         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
44583         HAVE_DUP3.
44584         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
44585         * modules/dup3: New file.
44586         * doc/glibc-functions/dup3.texi: Mention the new module.
44587
44588 2009-08-23  Bruno Haible  <bruno@clisp.org>
44589
44590         Tweak the dup2 test.
44591         * tests/test-dup2.c (main): Create the test file empty. Verify that an
44592         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
44593         the test file is still empty. Fix argument order of lseek.
44594
44595 2009-08-23  Bruno Haible  <bruno@clisp.org>
44596
44597         Avoid test link errors when the modules getopt-gnu, gettext are used.
44598         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
44599         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44600
44601 2009-08-23  Bruno Haible  <bruno@clisp.org>
44602
44603         Fix getdtablesize() on mingw.
44604         * lib/getdtablesize.c (getdtablesize): Implement differently.
44605         * lib/unistd.in.h (getdtablesize): Improve comment.
44606
44607 2009-08-23  Bruno Haible  <bruno@clisp.org>
44608
44609         New module 'mkostemp'.
44610         Based on Ulrich Drepper's 2007-08-10 change in glibc.
44611         * lib/stdlib.in.h (mksotemp): New declaration.
44612         * lib/mkostemp.c: New file, from glibc with modifications.
44613         * lib/tempname.h (GT_FILE): Remove outdated comment.
44614         (gen_tempname): Add flags argument.
44615         * lib/tempname.c (__GT_BIGFILE): Remove macro.
44616         (__GT_FILE): Map to 1.
44617         (small_open, large_open): Remove macros.
44618         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
44619         * lib/mkstemp.c (mkstemp): Update.
44620         * lib/mkdtemp.c (mkdtemp): Likewise.
44621         * m4/mkostemp.m4: New file.
44622         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
44623         HAVE_MKOSTEMP.
44624         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
44625         HAVE_MKOSTEMP.
44626         * modules/mkostemp: New file, based on modules/mkstemp.
44627         * doc/glibc-functions/mkostemp.texi: Mention the new module.
44628         * NEWS: Mention the change.
44629
44630 2009-08-23  Bruno Haible  <bruno@clisp.org>
44631
44632         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
44633         Reported by Eric Blake.
44634
44635 2009-08-23  Bruno Haible  <bruno@clisp.org>
44636
44637         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
44638         Reported by Eric Blake.
44639
44640 2009-08-23  Bruno Haible  <bruno@clisp.org>
44641
44642         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
44643         * modules/pipe2 (Depends-on): Likewise.
44644
44645 2009-08-23  Eric Blake  <ebb9@byu.net>
44646
44647         fcntl-h: add O_TTY_INIT support
44648         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
44649         * tests/test-fcntl-h.c (o): Test it.
44650         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44651
44652         fcntl-h: rename from fcntl, in preparation for fcntl(2)
44653         * modules/fcntl: Move <fcntl.h> header replacement...
44654         * modules/fcntl-h: ...to new name, so as not to collide with
44655         like-named function.
44656         * tests/test-fcntl.c: Rename...
44657         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
44658         * modules/fcntl-tests: Rename...
44659         * modules/fcntl-h-tests: ...to this.  Update test file name.
44660         * modules/chdir-long (Depends-on): Update clients.
44661         * modules/chdir-safer (Depends-on): Likewise.
44662         * modules/fcntl-safer (Depends-on): Likewise.
44663         * modules/fts (Depends-on): Likewise.
44664         * modules/mkancesdirs (Depends-on): Likewise.
44665         * modules/mkdir-p (Depends-on): Likewise.
44666         * modules/open (Depends-on): Likewise.
44667         * modules/savewd (Depends-on): Likewise.
44668         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
44669         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
44670
44671 2009-08-22  Bruno Haible  <bruno@clisp.org>
44672
44673         * modules/binary-io (License): Relicense under LGPL.
44674         * modules/pipe2 (License): Likewise.
44675
44676 2009-08-22  Bruno Haible  <bruno@clisp.org>
44677
44678         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
44679         return value.
44680         * lib/pipe-filter-gi.c (filter_init): Likewise.
44681         Reported by Eric Blake.
44682
44683 2009-08-22  Bruno Haible  <bruno@clisp.org>
44684
44685         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
44686         * modules/pipe (Depends-on): Add pipe2.
44687
44688 2009-08-22  Bruno Haible  <bruno@clisp.org>
44689
44690         Tests for module 'pipe2'.
44691         * modules/pipe2-tests: New file.
44692         * tests/test-pipe2.c: New file.
44693
44694         New module 'pipe2'.
44695         * lib/unistd.in.h (pipe2): New declaration.
44696         * lib/pipe2.c: New file.
44697         * m4/pipe2.m4: New file.
44698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
44699         HAVE_PIPE2.
44700         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
44701         * modules/pipe2: New file.
44702         * doc/glibc-functions/pipe2.texi: Mention the new module.
44703
44704 2009-08-22  Bruno Haible  <bruno@clisp.org>
44705
44706         Reference some new glibc functions.
44707         * doc/glibc-functions/accept4.texi: New file.
44708         * doc/glibc-functions/dup3.texi: New file.
44709         * doc/glibc-functions/mkostemp.texi: New file.
44710         * doc/glibc-functions/pipe2.texi: New file.
44711         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
44712         (Glibc sys/socket.h): Refer to accept4.
44713         (Glibc unistd.h): Refer to dup3, pipe2.
44714         Reported by Eric Blake.
44715
44716 2009-08-22  Jim Meyering  <meyering@redhat.com>
44717             Bruno Haible  <bruno@clisp.org>
44718
44719         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
44720         This makes it so packages using automake-1.11's silent-rules option
44721         can print e.g., a single "GEN    configmake.h" line, rather than
44722         the 30+ statements that perform the job.  If you want to see the
44723         actual commands, you can still run "make V=1".
44724         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
44725         so that make output is abbreviated when those variables are defined
44726         appropriately.
44727         * modules/argz: Likewise.
44728         * modules/arpa_inet: Likewise.
44729         * modules/byteswap: Likewise.
44730         * modules/configmake: Likewise.
44731         * modules/dirent: Likewise.
44732         * modules/errno: Likewise.
44733         * modules/fcntl: Likewise.
44734         * modules/float: Likewise.
44735         * modules/fnmatch: Likewise.
44736         * modules/getopt-posix: Likewise.
44737         * modules/glob: Likewise.
44738         * modules/iconv_open: Likewise.
44739         * modules/inttypes: Likewise.
44740         * modules/localcharset: Likewise.
44741         * modules/locale: Likewise.
44742         * modules/math: Likewise.
44743         * modules/netdb: Likewise.
44744         * modules/netinet_in: Likewise.
44745         * modules/poll: Likewise.
44746         * modules/posix_spawnp-tests: Likewise.
44747         * modules/sched: Likewise.
44748         * modules/search: Likewise.
44749         * modules/selinux-h: Likewise.
44750         * modules/signal: Likewise.
44751         * modules/spawn: Likewise.
44752         * modules/stdarg: Likewise.
44753         * modules/stdbool: Likewise.
44754         * modules/stddef: Likewise.
44755         * modules/stdint: Likewise.
44756         * modules/stdio: Likewise.
44757         * modules/stdlib: Likewise.
44758         * modules/string: Likewise.
44759         * modules/strings: Likewise.
44760         * modules/sys_file: Likewise.
44761         * modules/sys_ioctl: Likewise.
44762         * modules/sys_select: Likewise.
44763         * modules/sys_socket: Likewise.
44764         * modules/sys_stat: Likewise.
44765         * modules/sys_time: Likewise.
44766         * modules/sys_times: Likewise.
44767         * modules/sys_utsname: Likewise.
44768         * modules/sys_wait: Likewise.
44769         * modules/sysexits: Likewise.
44770         * modules/time: Likewise.
44771         * modules/unistd: Likewise.
44772         * modules/wchar: Likewise.
44773         * modules/wctype: Likewise.
44774
44775 2009-08-22  Jim Meyering  <meyering@redhat.com>
44776
44777         announce-gen: detect write failure
44778         * build-aux/announce-gen: Add Coda at end.
44779         Remove equivalent-but-more-verbose block at top.
44780
44781 2009-08-19  Akim Demaille  <demaille@gostai.com>
44782
44783         bootstrap: --help to stdout.
44784         * bootstrap (usage): Don't send --help to stderr.
44785         Use a here doc instead of a long string.
44786
44787 2009-08-21  Eric Blake  <ebb9@byu.net>
44788
44789         test-popen-safer: split from test-popen
44790         * tests/test-popen.c (main): Move...
44791         * tests/test-popen.h: ...into new file.
44792         * tests/test-popen-safer2.c: New file.
44793         * modules/popen-tests (Files): Add test-popen.h.
44794         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
44795         Suggested by Bruno Haible.
44796
44797         test-fcntl-safer: split from test-open
44798         * tests/test-open.c (main): Move...
44799         * tests/test-open.h: ...into new file.
44800         * tests/test-fcntl-safer.c: New file.
44801         * modules/open-tests (Files): Add test-open.h.
44802         * modules/fcntl-safer-tests: New file.
44803         Suggested by Bruno Haible.
44804
44805         test-fopen-safer: split from test-fopen
44806         * tests/test-fopen.c (main): Move...
44807         * tests/test-fopen.h: ...into new file.
44808         * tests/test-fopen-safer.c: New file.
44809         * modules/fopen-tests (Files): Add test-fopen.h.
44810         * modules/fopen-safer-tests: New file.
44811         Suggested by Bruno Haible.
44812
44813 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44814
44815         popen-safer: test O_CLOEXEC at run-time.
44816         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
44817
44818 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
44819
44820         fcntl: move more flags to the header
44821         * lib/cloexec.c: Do not define FD_CLOEXEC here.
44822         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
44823         * lib/fcntl.in.h: Do both things here.
44824
44825 2009-08-21  Jim Meyering  <meyering@redhat.com>
44826
44827         consistently remove $@-t before redirecting to it
44828         * modules/argz: Remove $@-t and $@ before redirecting to the former.
44829         * modules/alloca-opt: Likewise.
44830         * modules/byteswap: Likewise.
44831         * modules/fnmatch: Likewise.
44832         * modules/getopt-posix: Likewise.
44833         * modules/glob: Likewise.
44834         * modules/poll: Likewise.
44835         * modules/posix_spawnp-tests: Likewise.
44836         * modules/sys_socket: Likewise.
44837         * modules/sysexits: Likewise.
44838
44839 2009-08-21  Eric Blake  <ebb9@byu.net>
44840
44841         popen: simplify access to original popen
44842         * lib/popen.c (rpl_popen): No need to worry about popen being a
44843         macro.
44844         Reported by Bruno Haible.
44845
44846 2009-08-20  Eric Blake  <ebb9@byu.net>
44847
44848         build: avoid some compiler warnings
44849         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
44850         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
44851         type.
44852         (new_exclude_segment, excluded_file_pattern_p)
44853         (excluded_file_name_p): Reduce scope.
44854         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
44855         old-style declaration.
44856
44857 2009-08-20  Simon Josefsson  <simon@josefsson.org>
44858
44859         * tests/test-exclude1.sh: Handle Windows EOL.
44860         * tests/test-exclude2.sh: Likewise.
44861         * tests/test-exclude3.sh: Likewise.
44862         * tests/test-exclude4.sh: Likewise.
44863         * tests/test-exclude5.sh: Likewise.
44864         * tests/test-exclude6.sh: Likewise.
44865         * tests/test-exclude7.sh: Likewise.
44866
44867 2009-08-19  Akim Demaille  <demaille@gostai.com>
44868
44869         bootstrap: find sha1sum when named gsha1sum.
44870         * bootstrap (find_tool): New.
44871         ($SHA1SUM): New.
44872         Use it.
44873
44874 2009-08-20  Jim Meyering  <meyering@redhat.com>
44875
44876         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
44877         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
44878         expression that converts "." in a file name to "\." in the resulting
44879         regexp.  Start with a dummy statement, so that prior shell variable
44880         definitions are expanded portably.  Reported by Simon Josefsson.
44881
44882 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
44883
44884         Fix polling for writeability of a screen buffer.
44885         * lib/poll.c: Distinguish input and screen buffers for the
44886         Win32 implementation.
44887         * lib/select.c: Likewise.
44888
44889 2009-08-19  Eric Blake  <ebb9@byu.net>
44890
44891         popen-safer: prevent popen from clobbering std descriptors
44892         * modules/popen-safer: New file.
44893         * lib/popen-safer.c: Likewise.
44894         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
44895         * lib/stdio--.h (popen): Provide override.
44896         * lib/stdio-safer.h (popen_safer): Provide declaration.
44897         * tests/test-popen.c (includes): Partially test this.
44898         * modules/popen-safer-tests: New file, for more tests.
44899         * tests/test-popen-safer.c: Likewise.
44900         * MODULES.html.sh (file stream based Input/Output): Mention it.
44901
44902         tests: test some of the *-safer modules
44903         * modules/fopen-safer (Depends-on): Add fopen.
44904         * modules/fcntl-safer (Depends-on): Add fcntl.
44905         * modules/stdlib-safer (Depends-on): Add stdlib.
44906         (configure.ac): Set indicator.
44907         * modules/unistd-safer (configure.ac): Likewise.
44908         * modules/tmpfile-safer (configure.ac): Likewise.
44909         (Depends-on): Add tmpfile.
44910         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44911         active.
44912         * tests/test-fopen.c (includes): Test safer versions when they are
44913         in use.
44914         * tests/test-open.c (includes): Likewise.
44915
44916         popen: fix cygwin 1.5 bug when stdin closed
44917         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44918         * modules/popen: New file.
44919         * modules/popen-tests: Likewise.
44920         * tests/test-popen.c: Likewise.
44921         * m4/popen.m4: Likewise.
44922         * lib/popen.c: Likewise.
44923         * lib/stdio.in.h (popen): New declaration.
44924         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
44925         * modules/stdio (Makefile.am): Likewise.
44926         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
44927
44928 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
44929
44930         maint.mk: give full control over update-copyright exclusions
44931         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
44932         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
44933         (update-copyright): Don't force inclusion of top-level
44934         ChangeLog.  Don't force exclusion of all COPYING files, but make
44935         them the default exclusion instead.
44936
44937 2009-08-16  Bruno Haible  <bruno@clisp.org>
44938
44939         Fix test failures on Solaris 10.
44940         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
44941         tests when Solaris iconv() is used.
44942         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44943         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44944         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44945         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44946         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44947
44948 2009-08-16  Bruno Haible  <bruno@clisp.org>
44949
44950         Fix test failures on Solaris 10.
44951         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
44952         'tr' program and pass it as first argument.
44953         * tests/test-pipe-filter-gi1.sh: Likewise.
44954         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
44955         program as first argument.
44956         * tests/test-pipe-filter-gi1.c (main): Likewise.
44957
44958 2009-08-16  Eric Blake  <ebb9@byu.net>
44959
44960         fpurge: fix previous commits
44961         * modules/fpurge (Makefile.am): Make replacement conditional,
44962         partially reverting 2007-04-29 change; missed in previous
44963         attempt.
44964         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
44965         is missing.
44966
44967 2009-08-16  Bruno Haible  <bruno@clisp.org>
44968
44969         Clarify fpurge's effect on the file position.
44970         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
44971         * tests/test-fpurge.c (main): Make a second pass for checking the file
44972         position.
44973
44974 2009-08-16  Bruno Haible  <bruno@clisp.org>
44975
44976         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44977         declaration of fpurge is missing.
44978         * tests/test-fpurge.c (main): Check that the file has not more contents
44979         than expected. Close the file before removing it.
44980
44981 2009-08-15  Eric Blake  <ebb9@byu.net>
44982
44983         fpurge: don't wrap working cygwin implementation
44984         * lib/fpurge.c (fpurge): Fix comment typo.
44985         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44986         1.7 to avoid replacement.
44987         * tests/test-fpurge.c (main): Enhance test.
44988
44989 2009-08-15  Eric Blake  <ebb9@byu.net>
44990         and Jim Meyering  <meyering@redhat.com>
44991
44992         test-update-copyright: skip if perl is insufficient
44993         * tests/test-update-copyright.sh: Failure to run maintainer tool
44994         should not cause testsuite failure on cygwin 1.5.
44995
44996 2009-08-14  Eric Blake  <ebb9@byu.net>
44997
44998         doc: mention more functions added in cygwin 1.7.0
44999         * doc/posix-headers/limits.texi (limits.h): Update for recent
45000         cygwin additions.
45001         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45002         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45003         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45004         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45005         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45006
45007 2009-08-14  Eric Blake  <ebb9@byu.net>
45008
45009         maint.mk: simplify update-copyright rule
45010         * top/maint.mk (update-copyright-local): Delete, and document how
45011         to do it in cfg.mk instead.
45012         (update-copyright-exclude-regexp): Delete, and document how to do
45013         it in .x-update-copyright instead.
45014         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45015         exclude ChangeLog.
45016
45017 2009-08-14  Bruno Haible  <bruno@clisp.org>
45018
45019         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45020
45021 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45022
45023         maint.mk: support update-copyright-env
45024         * top/maint.mk (update-copyright-env): Define place-holder.
45025         (update-copyright): Expand $(update-copyright-env) before
45026         invoking update-copyright.
45027
45028 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45029
45030         update-copyright: implement forced reformatting
45031         * build-aux/update-copyright: Implement and document
45032         UPDATE_COPYRIGHT_FORCE.
45033         * tests/test-update-copyright.sh: Test it.
45034
45035 2009-08-14  Eric Blake  <ebb9@byu.net>
45036         and Bruno Haible  <bruno@clisp.org>
45037
45038         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45039         * tests/test-locale.c: Revert previous patch related to NULL.
45040         * tests/test-stdio.c: Likewise.
45041         * tests/test-stdlib.c: Likewise.
45042         * tests/test-string.c: Likewise.
45043         * tests/test-unistd.c: Likewise.
45044         * modules/time-tests (Depends-on): Add verify.
45045         * modules/wchar-tests (Depends-on): Likewise.
45046         * tests/test-time.c: Test for NULL compliance.
45047         * tests/test-wchar.c: Likewise.
45048         * modules/locale (Depends-on): Add stddef.
45049         * modules/stdio (Depends-on): Likewise.
45050         * modules/stdlib (Depends-on): Likewise.
45051         * modules/string (Depends-on): Likewise.
45052         * modules/time (Depends-on): Likewise.
45053         * modules/unistd (Depends-on): Likewise.
45054         * modules/wchar (Depends-on): Likewise.
45055         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45056         * lib/stdlib.in.h (includes): Likewise.
45057         * lib/string.in.h (includes): Likewise.
45058         * lib/time.in.h (includes): Likewise.
45059         * lib/unistd.in.h (includes): Likewise.
45060         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45061         replaced.
45062         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45063         * m4/stddef_h.m4: New file.
45064         * modules/stddef: Likewise.
45065         * lib/stddef.in.h: Likewise.
45066         * modules/stddef-tests: Likewise.
45067         * tests/test-stddef.c: Likewise.
45068         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45069         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45070         * doc/posix-headers/locale.texi (locale.h): Likewise.
45071         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45072         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45073         * doc/posix-headers/string.texi (string.h): Likewise.
45074         * doc/posix-headers/time.texi (time.h): Likewise.
45075         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45076         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45077
45078 2009-08-14  Eric Blake  <ebb9@byu.net>
45079
45080         doc: improve git diff of texinfo files
45081         * .gitattributes: Add rule for *.texi files, with hint on how to
45082         use it.
45083         Copied from m4, and based on a report by Bruno Haible.
45084
45085 2009-08-14  Bruno Haible  <bruno@clisp.org>
45086
45087         Disable multithread support by default on Cygwin 1.5.x for real.
45088         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45089
45090 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45091
45092         update-copyright: much ado about intervals
45093         * build-aux/update-copyright: Implement and document
45094         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45095         of copyright year intervals.
45096         Also, document UPDATE_COPYRIGHT_YEAR.
45097         * tests/test-update-copyright.sh: Test it.
45098
45099         update-copyright: convert 2-digit to 4-digit years
45100         * build-aux/update-copyright: Implement and document.
45101         * tests/test-update-copyright.sh: Update.
45102
45103 2009-08-14  Jim Meyering  <meyering@redhat.com>
45104
45105         test-exclude: avoid coreutils "make check" failure
45106         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45107         just as in test-argmatch.c.
45108
45109 2009-08-13  Eric Blake  <ebb9@byu.net>
45110
45111         test-dup2: fix bad assumption
45112         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45113         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45114
45115         test-version-etc: fix CRLF portability issue
45116         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45117         recognize \r.
45118         * tests/test-argp-version-etc-1.sh: Likewise.
45119
45120         getopt: update client modules
45121         * modules/argp (Depends-on): Use getopt-gnu.
45122         * modules/git-merge-changelog (Depends-on): Likewise.
45123         * modules/long-options (Depends-on): Likewise.
45124         * modules/xstrtol (Depends-on): Likewise.
45125
45126 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45127
45128         * tests/test-version-etc.sh: Don't fail on different
45129         project/version.  Don't fail on CRLF differences.  Rewrite to use
45130         multiple -e instead of multiple sed forks, suggested by Eric Blake
45131         <ebb9@byu.net>.
45132         * tests/test-argp-version-etc-1.sh: Likewise.
45133
45134 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45135
45136         * tests/test-version-etc.sh: Don't fail on different
45137         project/version.
45138
45139 2009-08-12  Bruno Haible  <bruno@clisp.org>
45140
45141         Tests for modules 'getopt-posix', 'getopt-gnu'.
45142         * modules/getopt-posix-tests: New file.
45143         * tests/test-getopt.c: New file.
45144         * tests/test-getopt.h: New file.
45145         * tests/test-getopt_long.h: New file.
45146
45147         New modules 'getopt-posix', 'getopt-gnu'.
45148         * modules/getopt-gnu: New file, renamed from modules/getopt.
45149         * modules/getopt-posix: New file.
45150         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45151         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45152         (gl_GETOPT): Remove macro.
45153         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45154         Disable the test against BSD systems that declare optreset. Test
45155         against mingw bug. Test against lack of support of optional arguments
45156         on many platforms.
45157         * doc/glibc-headers/getopt.texi: Update module name and list of
45158         relevant platforms.
45159         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45160         'getopt-gnu' and more portability problems.
45161         * NEWS: Mention the changes.
45162
45163 2009-08-12  Bruno Haible  <bruno@clisp.org>
45164
45165         Ensure that optarg etc. get declared by <unistd.h>.
45166         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45167         AC_USE_SYSTEM_EXTENSIONS.
45168         * modules/getopt (Depends-on): Add 'extensions'.
45169
45170 2009-08-12  Bruno Haible  <bruno@clisp.org>
45171
45172         Avoid test link errors.
45173         * modules/pipe-filter-ii-tests (Makefile.am): Define
45174         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45175         * modules/pipe-filter-gi-tests (Makefile.am): Define
45176         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45177         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45178
45179 2009-08-12  Bruno Haible  <bruno@clisp.org>
45180
45181         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45182         gl_GETOPT_SUBSTITUTE before.
45183         (gl_GETOPT): Use it.
45184         * m4/argp.m4 (gl_ARGP): Update.
45185         Reported by Sergey Poznyakoff.
45186
45187         * m4/getopt.m4: Reorder macros.
45188         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45189         (gl_GETOPT_SUBSTITUTE): Remove macro.
45190
45191 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45192
45193         Minor improvement in gitlog-to-changelog
45194
45195         * build-aux/gitlog-to-changelog: New option `--format' makes
45196         output format string configurable.
45197
45198 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45199
45200         Optimize exclude: use hash tables for non-wildcard patterns.
45201
45202         * lib/exclude.c: Include hash.h and mbuiter.h
45203         (struct exclude_pattern, exclude_segment): New data types.
45204         (struct exclude): Rewrite.
45205         (fnmatch_pattern_has_wildcards): New function.
45206         (new_exclude_segment, free_exclude_segment): New functions.
45207         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45208         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45209         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45210         * modules/exclude: Depend on hash and mbuiter.
45211
45212         * modules/exclude-tests: New file.
45213         * tests/test-exclude.c: New file.
45214         * tests/test-exclude1.sh: New file.
45215         * tests/test-exclude2.sh: New file.
45216         * tests/test-exclude3.sh: New file.
45217         * tests/test-exclude4.sh: New file.
45218         * tests/test-exclude5.sh: New file.
45219         * tests/test-exclude6.sh: New file.
45220         * tests/test-exclude7.sh: New file.
45221
45222 2009-08-12  Bruno Haible  <bruno@clisp.org>
45223
45224         Ensure that getopt() gets declared by <unistd.h>.
45225         * lib/unistd.in.h: Conditionally include getopt.h.
45226         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45227         Set GNULIB_UNISTD_H_GETOPT.
45228         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45229         GNULIB_UNISTD_H_GETOPT.
45230         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45231
45232 2009-08-12  Bruno Haible  <bruno@clisp.org>
45233
45234         Clarify logic.
45235         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45236         gl_replace_getopt instead of GETOPT_H.
45237
45238 2009-08-12  Bruno Haible  <bruno@clisp.org>
45239
45240         * m4/getopt.m4: Add comments.
45241
45242 2009-08-12  Bruno Haible  <bruno@clisp.org>
45243
45244         Disable multithread support by default on Cygwin 1.5.x.
45245         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45246         set gl_use_threads=no if not specified otherwise.
45247
45248 2009-08-11  Bruno Haible  <bruno@clisp.org>
45249
45250         Avoid compilation error on NetBSD 5.0.
45251         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45252         * tests/test-stdio.c: Likewise.
45253         * tests/test-stdlib.c: Likewise.
45254         * tests/test-string.c: Likewise.
45255         * tests/test-unistd.c: Likewise.
45256         Reported by Greg Troxel <gdt@ir.bbn.com>
45257         at <https://savannah.gnu.org/support/?106973>.
45258
45259 2009-08-11  Bruno Haible  <bruno@clisp.org>
45260
45261         * modules/dup2-tests (Depends-on): Remove close.
45262
45263         Undo 2009-07-19 commit.
45264         * modules/acl-tests (Depends-on): Remove close.
45265         * modules/binary-io-tests (Depends-on): Likewise.
45266         * modules/closein-tests (Depends-on): Likewise.
45267         * modules/flock-tests (Depends-on): Likewise.
45268         * modules/fsync-tests (Depends-on): Likewise.
45269         * modules/lseek-tests (Depends-on): Likewise.
45270         * modules/pipe-tests (Depends-on): Likewise.
45271         * modules/posix_spawn-tests (Depends-on): Likewise.
45272         * modules/posix_spawnp-tests (Depends-on): Likewise.
45273         * modules/stat-time-tests (Depends-on): Likewise.
45274         * modules/yesno-tests (Depends-on): Likewise.
45275
45276 2009-08-10  Bruno Haible  <bruno@clisp.org>
45277
45278         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45279
45280 2009-08-10  Bruno Haible  <bruno@clisp.org>
45281
45282         Fix a gcc warning.
45283         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45284
45285 2009-08-10  Bruno Haible  <bruno@clisp.org>
45286
45287         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45288         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45289         not only the first time.
45290         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45291         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45292         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45293         is 1, not only the the first time.
45294
45295 2009-08-10  Bruno Haible  <bruno@clisp.org>
45296
45297         Make it possible to use module 'gethostname' without module 'close'.
45298         * lib/unistd.in.h (close): Evoke a link error only if
45299         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45300         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45301         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45302         * modules/unistd (Makefile.am): Substitute
45303         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45304         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45305         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45306         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45307         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45308         * modules/sys_ioctl (Makefile.am): Substitute
45309         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45310         * modules/socket (configure.ac): On native Windows, set
45311         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45312         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45313         Reported by Sam Steingold <sds@gnu.org>.
45314
45315 2009-08-10  Bruno Haible  <bruno@clisp.org>
45316
45317         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45318         * modules/ioctl (configure.ac): Likewise.
45319
45320 2009-08-10  Bruno Haible  <bruno@clisp.org>
45321
45322         Avoid collision between gnulib wrapper and libintl wrapper.
45323         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45324         already defined in intl/printf.c.
45325         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45326         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45327
45328 2009-08-09  Bruno Haible  <bruno@clisp.org>
45329
45330         Make <sys/select.h> really self-contained, also on Solaris 10.
45331         * lib/sys_select.in.h: Include <string.h>.
45332         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45333         Solaris 10 problem.
45334         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45335         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45336         Reported by Jim Meyering.
45337
45338 2009-08-09  Bruno Haible  <bruno@clisp.org>
45339
45340         Avoid warnings from 'aclocal' that are due to a use of macro name
45341         AM_XGETTEXT_OPTION that is not defined in automake.
45342         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45343         automake.
45344         * modules/error (configure.ac): Likewise.
45345         * modules/propername (configure.ac): Likewise.
45346         * modules/vasprintf (configure.ac): Likewise.
45347         * modules/verror (configure.ac): Likewise.
45348         * modules/xprintf (configure.ac): Likewise.
45349         * modules/xvasprintf (configure.ac): Likewise.
45350
45351 2009-08-08  Bruno Haible  <bruno@clisp.org>
45352
45353         Avoid compilation error in C++ mode.
45354         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45355         Reported by Sam Steingold <sds@gnu.org>.
45356
45357 2009-08-08  Bruno Haible  <bruno@clisp.org>
45358
45359         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45360         for the various Unix platforms.
45361         * doc/posix-headers/limits.texi: Update platforms list regarding
45362         HOST_NAME_MAX.
45363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45364
45365 2009-08-07  Jim Meyering  <meyering@redhat.com>
45366
45367         selinux-at: fix typo in a comment
45368         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45369         Spotted by Paolo Bonzini.
45370
45371         selinux-at: remove redundant m4 code, add documentation
45372         * modules/selinux-at (configure.ac): Remove redundant code.
45373         LIB_SELINUX is already set via the dependent module, selinux-h.
45374         (Include): Add quotes around selinux-at.h.
45375         * lib/selinux-at.h: Add documentation.
45376         Reported by Bruno Haible in
45377         http://marc.info/?l=gnulib-bug&m=124958988300749
45378
45379 2009-08-07  Bruno Haible  <bruno@clisp.org>
45380
45381         Avoid link error on MacOS X 10.3 and 10.4.
45382         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45383         on non-ELF systems.
45384         * lib/argp-pv.c (argp_program_version): Likewise.
45385         Reported by Simon Josefsson.
45386
45387 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45388
45389         * tests/test-version-etc.sh: Use $EXEEXT.
45390
45391 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45392
45393         update-copyright: update documentation to point to maint.mk
45394         * build-aux/update-copyright: Here.
45395
45396 2009-08-06  Jim Meyering  <meyering@redhat.com>
45397
45398         maint.mk: support update-copyright-local
45399         * top/maint.mk (update-copyright-local): Define place-holder.
45400         (update-copyright): Depend on $(update-copyright-local).
45401
45402 2009-08-06  Jim Meyering  <meyering@redhat.com>
45403
45404         selinux-at: new module
45405         Initially written for coreutils, this module will soon be
45406         used by findutils, too.
45407         * MODULES.html.sh [Misc]: Add selinux-at.
45408         * lib/selinux-at.h: New file, from coreutils.
45409         * lib/selinux-at.c: Likewise.
45410         * modules/selinux-at: Likewise.
45411         (License): Change from LGPL to GPL, since it depends
45412         on the GPL'd openat module.
45413
45414         doc: update README
45415         * README: Remove references to cogito.
45416         Remove cvs-repo-updating instructions from 2007.
45417         Don't imply that CVS is better if you have limited disk space.
45418
45419 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45420
45421         update-copyright: support C-style comments
45422         * build-aux/update-copyright: Implement and document.
45423         * tests/test-update-copyright.sh: Test.
45424
45425 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45426
45427         update-copyright: support omitted "(C)"
45428         * build-aux/update-copyright: Implement and document.  Also,
45429         allow variable whitespace before "(C)".
45430         * tests/test-update-copyright.sh: Test.
45431
45432 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45433
45434         update-copyright: don't trip on non-FSF copyright statements
45435         * build-aux/update-copyright: Fix so that the first correctly
45436         formatted FSF copyright statement is recognized no matter what
45437         appears before it.  Update documentation.
45438         * tests/test-update-copyright.sh: Test that.
45439
45440 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45441
45442         update-copyright: clean up code a little
45443         * build-aux/update-copyright: Append "_re" to the name of any
45444         variable holding a regular expression.
45445         Replace "old" and "new" with "stmt" in variable names.
45446         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45447         handled correctly.
45448         Format code more consistently.
45449
45450 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45451
45452         update-copyright-tests: improve portability
45453         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45454         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45455
45456 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45457
45458         update-copyright: support @copyright{} and &copy;
45459         * build-aux/update-copyright: Implement and document.
45460         * tests/test-update-copyright.sh: Test.
45461
45462 2009-08-04  Jim Meyering  <meyering@redhat.com>
45463
45464         update-copyright-tests: correctly test EOL=\r\n handling
45465         * tests/test-update-copyright.sh: Put \r at the end of some lines
45466         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45467
45468         maint.mk: make update-copyright exclusion list more configurable
45469         * top/maint.mk (update-copyright): Default to excluding COPYING,
45470         but allow an override, in case someone does want to update that file.
45471
45472         maint.mk: don't update copyright date in COPYING
45473         * top/maint.mk (update-copyright): Exclude COPYING.
45474
45475         maint.mk: add a copyright-updating rule
45476         * top/maint.mk (update-copyright): New rule.
45477         Derived from coreutils/Makefile.am.
45478
45479         update-copyright: rename some variables
45480         * build-aux/update-copyright: Rename a few variables for clarity.
45481         Tweak syntax.  List Joel E. Denny as coauthor.
45482
45483 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45484
45485         update-copyright: fix bug for 2-digit last year and add tests
45486         * build-aux/update-copyright: Fix bug.
45487         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45488         specified.
45489         * modules/update-copyright-tests: New
45490         * tests/test-update-copyright.sh: New.
45491
45492 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45493
45494         update-copyright: handle leading tabs in line prefix
45495         * build-aux/update-copyright: Count leading tabs as 8 spaces
45496         when computing margin.  This helps with the formatting of
45497         ChangeLogs, for example.
45498         Fix documentation a little.
45499
45500 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45501
45502         update-copyright: support EOL=\r\n
45503         * build-aux/update-copyright: Implement that.
45504
45505 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45506
45507         update-copyright: automatically format copyright statements
45508         * build-aux/update-copyright: Implement that.
45509         Also, be a little more predictable and safer by always failing
45510         when the full copyright format is not perfectly recognized as an
45511         unbroken whole.  Discussed at
45512         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
45513         Rewrite documentation.
45514
45515 2009-08-03  Bruno Haible  <bruno@clisp.org>
45516
45517         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
45518
45519 2009-08-02  Bruno Haible  <bruno@clisp.org>
45520
45521         Tests for module 'uname'.
45522         * modules/uname-tests: New file.
45523         * tests/test-uname.c: New file.
45524
45525         New module 'uname'.
45526         * lib/uname.c: New file.
45527         * m4/uname.m4: New file.
45528         * modules/uname: New file.
45529         * doc/posix-functions/uname.texi: Mention the new module.
45530
45531 2009-08-02  Bruno Haible  <bruno@clisp.org>
45532
45533         Tests for module 'sys_utsname'.
45534         * modules/sys_utsname-tests: New file.
45535         * tests/test-sys_utsname.c: New file.
45536
45537         New module 'sys_utsname'.
45538         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
45539         * m4/sys_utsname_h.m4: New file.
45540         * modules/sys_utsname: New file.
45541         * doc/posix-headers/sys_utsname.texi: Mention the new module.
45542
45543 2009-08-02  Bruno Haible  <bruno@clisp.org>
45544
45545         Implicitly initialize the sockets library.
45546         * lib/gethostname.c: Include sockets.h.
45547         (rpl_gethostname): Invoke gl_sockets_startup.
45548         * lib/socket.c: Include sockets.h.
45549         (rpl_socket): Invoke gl_sockets_startup.
45550         * modules/gethostname (Depends-on): Add sockets.
45551         * modules/socket (Depends-on): Likewise.
45552         * tests/test-poll.c: Don't include sockets.h.
45553         (main): Don't invoke gl_sockets_startup.
45554         * tests/test-select.c: Don't include sockets.h.
45555         (main): Don't invoke gl_sockets_startup.
45556
45557 2009-08-02  Bruno Haible  <bruno@clisp.org>
45558
45559         Allow multiple calls to gl_sockets_startup.
45560         * lib/sockets.c (initialized_sockets_version): New variable.
45561         (gl_sockets_startup): Do nothing if already called for this or a higher
45562         version.
45563         (gl_sockets_cleanup): Reset initialized_sockets_version.
45564
45565 2009-08-03  Simon Josefsson  <simon@josefsson.org>
45566
45567         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
45568         different project/version.
45569
45570 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
45571             Bruno Haible  <bruno@clisp.org>
45572
45573         Tests for module 'pipe-filter-gi'.
45574         * modules/pipe-filter-gi-tests: New file.
45575         * tests/test-pipe-filter-gi1.sh: New file.
45576         * tests/test-pipe-filter-gi1.c: New file.
45577         * tests/test-pipe-filter-gi2.sh: New file.
45578         * tests/test-pipe-filter-gi2-main.c: New file.
45579         * tests/test-pipe-filter-gi2-child.c: New file.
45580
45581         New module 'pipe-filter-gi'.
45582         * lib/pipe-filter-gi.c: New file.
45583         * modules/pipe-filter-gi: New file.
45584
45585 2009-08-02  Bruno Haible  <bruno@clisp.org>
45586             Paolo Bonzini  <bonzini@gnu.org>
45587
45588         Tests for module 'pipe-filter-ii'.
45589         * modules/pipe-filter-ii-tests: New file.
45590         * tests/test-pipe-filter-ii1.sh: New file.
45591         * tests/test-pipe-filter-ii1.c: New file.
45592         * tests/test-pipe-filter-ii2.sh: New file.
45593         * tests/test-pipe-filter-ii2-main.c: New file.
45594         * tests/test-pipe-filter-ii2-child.c: New file.
45595
45596         New module 'pipe-filter-ii'.
45597         * lib/pipe-filter.h: New file.
45598         * lib/pipe-filter-ii.c: New file.
45599         * lib/pipe-filter-aux.h: New file.
45600         * modules/pipe-filter-ii: New file.
45601
45602 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45603
45604         * lib/gc-libgcrypt.c: Change copyright to FSF.
45605         * lib/gc-gnulib.c: Likewise.
45606
45607 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
45608
45609         * lib/gethostname.c: Include limits.h.
45610
45611 2009-08-02  Simon Josefsson  <simon@josefsson.org>
45612             Bruno Haible  <bruno@clisp.org>
45613
45614         Ensure HOST_NAME_MAX as part of the gethostname module.
45615         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
45616         define also HOST_NAME_MAX.
45617         * tests/test-gethostname.c: Include <limits.h>.
45618         (main): Check also HOST_NAME_MAX.
45619         * doc/posix-headers/limits.texi: Document the mingw problem.
45620
45621 2009-08-02  Bruno Haible  <bruno@clisp.org>
45622
45623         * lib/gethostname.c (gethostname): Fix handling of large len argument.
45624         Add comments.
45625
45626 2009-03-31  Simon Josefsson  <simon@josefsson.org>
45627
45628         * lib/gethostname.c: Add Windows wrapper.
45629         * m4/gethostname.m4: Look for gethostname in -lws2_32.
45630         * modules/gethostname: Depend on sys_socket & errno, for also
45631         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
45632         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
45633
45634 2009-07-31  Jim Meyering  <meyering@redhat.com>
45635
45636         getloadavg: fix symbol name in comment
45637         * lib/getloadavg.c: Correct a typo I introduced when adding
45638         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
45639         Matt Kraai spotted the problem.
45640
45641 2009-07-29  Matt Kraai  <mkraai@beckman.com>
45642
45643         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
45644         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
45645         code also if ! defined N_NAME_POINTER.
45646         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
45647         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
45648         but the n_name member is a 12-byte array.
45649
45650 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
45651
45652         update-copyright: generalize comment handling
45653         * build-aux/update-copyright: Handle copyright statements
45654         within more comment styles.
45655         Document usage.
45656         Report any file with an external copyright holder or parse failure.
45657
45658 2009-07-29  Jim Meyering  <meyering@redhat.com>
45659
45660         mktime: correct setting of REPLACE_MKTIME
45661         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
45662
45663         update-copyright: new module
45664         * modules/update-copyright: New file.
45665         * build-aux/update-copyright: New file.
45666         * MODULES.html.sh (maint+release support): Add update-copyright.
45667
45668 2009-07-27  Bruno Haible  <bruno@clisp.org>
45669
45670         Fix compilation error when <ctime> is used and mktime is replaced.
45671         * lib/time.in.h (mktime): New declaration.
45672         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
45673         REPLACE_MKTIME instead of defining mktime in config.h.
45674         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
45675         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
45676         Reported by Ross McFarland <rwmcfa1@neces.com>.
45677
45678 2009-07-27  Bruno Haible  <bruno@clisp.org>
45679
45680         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
45681         Reported by Matt Kraai <mkraai@beckman.com>.
45682
45683 2009-07-25  Jim Meyering  <meyering@redhat.com>
45684
45685         maint.mk: avoid warnings about missing files
45686         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
45687         diagnostic when .prev-version does not exist.
45688         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
45689         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
45690         nonexistent cfg.mk.
45691         Suggestions from Simon Josefsson.
45692
45693 2009-07-25  Bruno Haible  <bruno@clisp.org>
45694
45695         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
45696         defined as macros. Needed on QNX 6.4.1.
45697         Reported by Matt Kraai <mkraai@beckman.com>.
45698
45699 2009-07-23  Jim Meyering  <meyering@redhat.com>
45700
45701         maint.mk: invoke "make dist" with a working value of XZ_OPT
45702         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
45703
45704 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
45705
45706         Make fseeko.c compile on QNX.
45707         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
45708
45709 2009-07-22  Peter Simons  <simons@cryp.to>
45710
45711         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
45712         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
45713         * lib/md4.h: Likewise.
45714         * lib/md5.h: Likewise.
45715         * lib/sha1.h: Likewise.
45716         * lib/sha256.h: Likewise.
45717         * lib/sha512.h: Likewise.
45718
45719         tests-sha1: don't assign literal string to 'char *' variable
45720         * tests/test-sha1.c (main): Declare locals with "const" to match
45721         attributes of the right hand side.
45722
45723 2009-07-21  Eric Blake  <ebb9@byu.net>
45724
45725         dup2: fix more mingw problems
45726         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
45727         fd to itself.
45728         * doc/posix-functions/dup2.texi (dup2): Document the bug.
45729         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
45730         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
45731         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
45732         care of mingw bugs.
45733
45734 2009-07-21  Jim Meyering  <meyering@redhat.com>
45735
45736         vc-list-files: avoid failure when /bin/sh is dash
45737         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
45738         On some Debian based systems, /bin/sh is a symlink to dash, and running
45739         this command would omit the "/" following each 'tests' prefix:
45740           dash -x build-aux/vc-list-files -C . tests
45741         That is because bash and dash work differently:
45742           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
45743           bash ok
45744           dash odd
45745
45746 2009-07-21  Eric Blake  <ebb9@byu.net>
45747
45748         dup2-tests: test previous patch
45749         * modules/dup2-tests: New file.
45750         * tests/test-dup2.c: Likewise.
45751         * tests/test-open.c (main): Avoid unspecified behavior.
45752         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
45753         test.
45754
45755         dup2: work around mingw and cygwin 1.5 bug
45756         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
45757         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
45758         * modules/unistd (Makefile.am): Substitute it.
45759         * lib/unistd.in.h (dup2): Declare the replacement.
45760         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
45761         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
45762         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
45763         * modules/execute (Depends-on): Add dup2.
45764         * modules/fseterr (Depends-on): Likewise.
45765         * modules/pipe (Depends-on): Likewise.
45766         * modules/posix_spawn-internal (Depends-on): Likewise.
45767
45768 2009-07-21  Bruno Haible  <bruno@clisp.org>
45769
45770         * modules/.gitattributes: New file.
45771
45772 2009-07-20  Bruno Haible  <bruno@clisp.org>
45773
45774         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
45775         (main): Use it.
45776
45777 2009-07-20  Eric Blake  <ebb9@byu.net>
45778
45779         test-pipe: make a bit more robust.
45780         * tests/test-pipe.c (myerr): Allow error messages regardless of
45781         what we do to stderr.
45782         (test_pipe): Rearrange to avoid deadlock.
45783         (child_main): Try a larger read, to ensure we avoided deadlock.
45784         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
45785         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
45786         if misused.
45787
45788 2009-07-19  Jim Meyering  <meyering@redhat.com>
45789
45790         fts: avoid false-positive cycle-detection
45791         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
45792         for each new command line argument.
45793
45794 2009-07-19  Bruno Haible  <bruno@clisp.org>
45795
45796         Fix build error on mingw with the modules sys_select and unistd.
45797         * modules/acl-tests (Depends-on): Add close.
45798         * modules/binary-io-tests (Depends-on): Likewise.
45799         * modules/closein-tests (Depends-on): Likewise.
45800         * modules/flock-tests (Depends-on): Likewise.
45801         * modules/fsync-tests (Depends-on): Likewise.
45802         * modules/lseek-tests (Depends-on): Likewise.
45803         * modules/pipe-tests (Depends-on): Likewise.
45804         * modules/posix_spawn-tests (Depends-on): Likewise.
45805         * modules/posix_spawnp-tests (Depends-on): Likewise.
45806         * modules/stat-time-tests (Depends-on): Likewise.
45807         * modules/yesno-tests (Depends-on): Likewise.
45808
45809 2009-07-19  Bruno Haible  <bruno@clisp.org>
45810
45811         Unify conditionals.
45812         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
45813         macros, not at the compiler macros.
45814         * lib/pipe.c: Likewise.
45815         * lib/execute.c: Likewise.
45816         * lib/spawni.c: Likewise.
45817
45818 2009-07-19  Bruno Haible  <bruno@clisp.org>
45819
45820         Fix handling of closed stdin/stdout/stderr on mingw.
45821         * lib/w32spawn.h: Include unistd.h.
45822         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
45823         file descriptor with O_NOINHERIT flag.
45824         (fd_safer_noinherit): New function, based on fd-safer.c.
45825         (dup_safer_noinherit): New function, based on dup-safer.c.
45826         (undup_safer_noinherit): New function.
45827         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
45828         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
45829         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
45830         instead of fd_safer.
45831         * tests/test-pipe.c: Include <windows.h>.
45832         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
45833         result.
45834
45835         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
45836         from main.
45837         (test_pipe): Pass an extra argument for disambiguation.
45838         (main): Invoke parent_main or child_main.
45839
45840         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
45841         consistently.
45842
45843 2009-07-18  Eric Blake  <ebb9@byu.net>
45844
45845         test-pipe: fix mingw build
45846         * tests/test-pipe.c (main): Avoid fcntl on mingw.
45847
45848 2009-07-18  Bruno Haible  <bruno@clisp.org>
45849
45850         * modules/pipe-tests (Makefile.am): Fix typo.
45851
45852 2009-07-18  Eric Blake  <ebb9@byu.net>
45853
45854         error: fix mingw build
45855         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
45856         Reported by Bruno Haible.
45857
45858         error: avoid undefined use of stdout
45859         * lib/error.c (error, error_at_line): Check that fd 1 is open
45860         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
45861         is handling faults and the close_stdout module wants to report the
45862         detection of closed stdout as an error.
45863
45864 2009-07-17  Eric Blake  <ebb9@byu.net>
45865
45866         pipe: be robust in face of closed fds
45867         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
45868         should cause child to misbehave.
45869         * modules/pipe-tests: New module.
45870         * tests/test-pipe.c: New file.
45871         * tests/test-pipe.sh: New file.
45872         Reported by Akim Demaille.
45873
45874 2009-07-14  Bruno Haible  <bruno@clisp.org>
45875
45876         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
45877         Reported by anonymous kc.
45878
45879 2009-07-07  Jim Meyering  <meyering@redhat.com>
45880
45881         maint.mk: don't look for translatable strings in *.m4 or *.mk
45882         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
45883         when searching for translatable strings.
45884
45885 2009-07-05  Jim Meyering  <meyering@redhat.com>
45886
45887         remove superfluous parentheses in STREQ definition
45888         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
45889         * lib/getugroups.c (STREQ): Likewise.
45890         * lib/fnmatch.c (STREQ): Likewise.
45891         Spotted by Bruno Haible.
45892
45893 2009-07-04  Jim Meyering  <meyering@redhat.com>
45894
45895         argv-iter: new module
45896         * MODULES.html.sh: Add argv-iter.
45897         * lib/argv-iter.c, lib/argv-iter.h: New files.
45898         * modules/argv-iter: New file.
45899         * modules/argv-iter-tests: New file.
45900         * tests/test-argv-iter.c: Test it.
45901
45902 2009-07-04  Bruno Haible  <bruno@clisp.org>
45903
45904         Fix assertion.
45905         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45906         contains more exact copies of a given entry than file2, leave the extra
45907         copies unpaired rather than aborting.
45908         Reported by Eric Blake.
45909
45910 2009-07-02  Bruno Haible  <bruno@clisp.org>
45911
45912         Speedup git-merge-changelog for git cherry-pick.
45913         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45914         (entries_mapping_get): New function, extracted from compute_mapping.
45915         (entries_mapping_reverse_get): New function.
45916         (compute_mapping): Add a 'full' argument. Return the result in a
45917         'struct entries_mapping'.
45918         (main): Update. Access the mappings through entries_mapping_get.
45919         Reported by Eric Blake.
45920
45921 2009-07-02  Bruno Haible  <bruno@clisp.org>
45922
45923         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
45924         best_i.
45925
45926 2009-07-02  Bruno Haible  <bruno@clisp.org>
45927
45928         Speed up approximate search for matching ChangeLog entries.
45929         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
45930         argument. Call fstrcmp_bounded instead of fstrcmp.
45931         (compute_mapping, try_split_merged_entry, main): Update callers.
45932
45933 2009-07-02  Bruno Haible  <bruno@clisp.org>
45934
45935         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
45936
45937 2009-06-30  Bruno Haible  <bruno@clisp.org>
45938
45939         Reduce the number of uc_is_cased calls.
45940         * lib/unicase.h (casing_suffix_context_t): Add
45941         'first_char_except_ignorable' field.
45942         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
45943         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
45944         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
45945         Update initializer.
45946         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
45947         case-ignorable characters.
45948         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
45949         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
45950         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
45951         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
45952         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
45953
45954 2009-06-30  Bruno Haible  <bruno@clisp.org>
45955
45956         Tests for module 'unicase/ignorable'.
45957         * modules/unicase/ignorable-tests: New file.
45958         * tests/unicase/test-ignorable.c: New file, generated by
45959         gen-uni-tables.
45960
45961         Tests for module 'unicase/cased'.
45962         * modules/unicase/cased-tests: New file.
45963         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
45964         * tests/unicase/test-predicate-part1.h: New file, derived from
45965         tests/unictype/test-predicate-part1.h.
45966         * tests/unicase/test-predicate-part2.h: New file, same as
45967         tests/unictype/test-predicate-part2.h.
45968
45969         Fix evaluation of "Before C" condition of FINAL_SIGMA.
45970         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
45971         (output_casing_properties): New function.
45972         (main): Call it.
45973         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
45974         * lib/unicase/cased.c: Include unictype/bitmap.h.
45975         (uc_is_cased): Define through a bitmap lookup.
45976         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45977         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45978         (uc_is_case_ignorable): Define through a bitmap lookup.
45979         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45980         lib/unictype/bitmap.h.
45981         (Depends-on): Add inline. Clean up.
45982         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45983         lib/unictype/bitmap.h.
45984         (Depends-on): Add inline. Clean up.
45985         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45986         recognition.
45987         * tests/unicase/test-u16-tolower.c (main): Likewise.
45988         * tests/unicase/test-u32-tolower.c (main): Likewise.
45989
45990 2009-06-30  Bruno Haible  <bruno@clisp.org>
45991
45992         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45993         * lib/unicase/u16-casemap.c: Likewise.
45994         * lib/unicase/u32-casemap.c: Likewise.
45995
45996 2009-06-29  Bruno Haible  <bruno@clisp.org>
45997
45998         Define u32_casefold as a wrapper around u32_ct_casefold.
45999         * lib/unicase/u32-casefold.c: Update.
46000         * modules/unicase/u32-casefold (Depends-on): Add
46001         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46002         unicase/empty-suffix-context. Clean up.
46003
46004         Define u16_casefold as a wrapper around u16_ct_casefold.
46005         * lib/unicase/u16-casefold.c: Update.
46006         * modules/unicase/u16-casefold (Depends-on): Add
46007         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46008         unicase/empty-suffix-context. Clean up.
46009
46010         Define u8_casefold as a wrapper around u8_ct_casefold.
46011         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46012         * lib/unicase/u8-casefold.c: Update.
46013         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46014         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46015
46016         Define u32_totitle as a wrapper around u32_ct_totitle.
46017         * lib/unicase/u32-totitle.c: Update.
46018         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46019         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46020
46021         Define u16_totitle as a wrapper around u16_ct_totitle.
46022         * lib/unicase/u16-totitle.c: Update.
46023         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46024         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46025
46026         Define u8_totitle as a wrapper around u8_ct_totitle.
46027         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46028         functions.
46029         (FUNC): Delegate to U_CT_TOTITLE.
46030         * lib/unicase/u8-totitle.c: Update.
46031         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46032         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46033
46034         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46035         invocation.
46036         * modules/unicase/u32-tolower (Depends-on): Add
46037         unicase/empty-prefix-context, unicase/empty-suffix-context.
46038
46039         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46040         invocation.
46041         * modules/unicase/u16-tolower (Depends-on): Add
46042         unicase/empty-prefix-context, unicase/empty-suffix-context.
46043
46044         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46045         * modules/unicase/u8-tolower (Depends-on): Add
46046         unicase/empty-prefix-context, unicase/empty-suffix-context.
46047
46048         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46049         invocation.
46050         * modules/unicase/u32-toupper (Depends-on): Add
46051         unicase/empty-prefix-context, unicase/empty-suffix-context.
46052
46053         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46054         invocation.
46055         * modules/unicase/u16-toupper (Depends-on): Add
46056         unicase/empty-prefix-context, unicase/empty-suffix-context.
46057
46058         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46059         * modules/unicase/u8-toupper (Depends-on): Add
46060         unicase/empty-prefix-context, unicase/empty-suffix-context.
46061
46062         New module 'unicase/u32-ct-casefold'.
46063         * lib/unicase/u32-ct-casefold.c: New file.
46064         * modules/unicase/u32-ct-casefold: New file.
46065
46066         New module 'unicase/u16-ct-casefold'.
46067         * lib/unicase/u16-ct-casefold.c: New file.
46068         * modules/unicase/u16-ct-casefold: New file.
46069
46070         New module 'unicase/u8-ct-casefold'.
46071         * lib/unicase/u8-ct-casefold.c: New file.
46072         * lib/unicase/u-ct-casefold.h: New file, derived from
46073         lib/unicase/u-casefold.h.
46074         * modules/unicase/u8-ct-casefold: New file.
46075
46076         New module 'unicase/u32-ct-totitle'.
46077         * lib/unicase/u32-ct-totitle.c: New file.
46078         * modules/unicase/u32-ct-totitle: New file.
46079
46080         New module 'unicase/u16-ct-totitle'.
46081         * lib/unicase/u16-ct-totitle.c: New file.
46082         * modules/unicase/u16-ct-totitle: New file.
46083
46084         New module 'unicase/u8-ct-totitle'.
46085         * lib/unicase/u8-ct-totitle.c: New file.
46086         * lib/unicase/u-ct-totitle.h: New file, derived from
46087         lib/unicase/u-totitle.h.
46088         * modules/unicase/u8-ct-totitle: New file.
46089
46090         New module 'unicase/u32-ct-tolower'.
46091         * lib/unicase/u32-ct-tolower.c: New file.
46092         * modules/unicase/u32-ct-tolower: New file.
46093
46094         New module 'unicase/u16-ct-tolower'.
46095         * lib/unicase/u16-ct-tolower.c: New file.
46096         * modules/unicase/u16-ct-tolower: New file.
46097
46098         New module 'unicase/u8-ct-tolower'.
46099         * lib/unicase/u8-ct-tolower.c: New file.
46100         * modules/unicase/u8-ct-tolower: New file.
46101
46102         New module 'unicase/u32-ct-toupper'.
46103         * lib/unicase/u32-ct-toupper.c: New file.
46104         * modules/unicase/u32-ct-toupper: New file.
46105
46106         New module 'unicase/u16-ct-toupper'.
46107         * lib/unicase/u16-ct-toupper.c: New file.
46108         * modules/unicase/u16-ct-toupper: New file.
46109
46110         New module 'unicase/u8-ct-toupper'.
46111         * lib/unicase/u8-ct-toupper.c: New file.
46112         * modules/unicase/u8-ct-toupper: New file.
46113
46114         Add context arguments to u*_casemap functions.
46115         * lib/unicase/unicasemap.h: Include unicase.h.
46116         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46117         suffix_context arguments.
46118         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46119         functions.
46120         (FUNC): Add prefix_context and suffix_context arguments. Use
46121         uc_is_cased and uc_is_case_ignorable.
46122         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46123         * lib/unicase/u16-casemap.c: Likewise.
46124         * lib/unicase/u32-casemap.c: Likewise.
46125         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46126         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46127         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46128         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46129         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46130         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46131
46132         New module 'unicase/u32-suffix-context'.
46133         * lib/unicase/u32-suffix-context.c: New file.
46134         * modules/unicase/u32-suffix-context: New file.
46135
46136         New module 'unicase/u16-suffix-context'.
46137         * lib/unicase/u16-suffix-context.c: New file.
46138         * modules/unicase/u16-suffix-context: New file.
46139
46140         New module 'unicase/u8-suffix-context'.
46141         * lib/unicase/u8-suffix-context.c: New file.
46142         * lib/unicase/u-suffix-context.h: New file.
46143         * modules/unicase/u8-suffix-context: New file.
46144
46145         New module 'unicase/empty-suffix-context'.
46146         * lib/unicase/empty-suffix-context.c: New file.
46147         * modules/unicase/empty-suffix-context: New file.
46148
46149         New module 'unicase/u32-prefix-context'.
46150         * lib/unicase/u32-prefix-context.c: New file.
46151         * modules/unicase/u32-prefix-context: New file.
46152
46153         New module 'unicase/u16-prefix-context'.
46154         * lib/unicase/u16-prefix-context.c: New file.
46155         * modules/unicase/u16-prefix-context: New file.
46156
46157         New module 'unicase/u8-prefix-context'.
46158         * lib/unicase/u8-prefix-context.c: New file.
46159         * lib/unicase/u-prefix-context.h: New file.
46160         * lib/unicase/context.h: New file.
46161         * modules/unicase/u8-prefix-context: New file.
46162
46163         New module 'unicase/empty-prefix-context'.
46164         * lib/unicase/empty-prefix-context.c: New file.
46165         * modules/unicase/empty-prefix-context: New file.
46166
46167         New module 'unicase/ignorable'.
46168         * lib/unicase/ignorable.c: New file.
46169         * modules/unicase/ignorable: New file.
46170
46171         New module 'unicase/cased'.
46172         * lib/unicase/caseprop.h: New file.
46173         * lib/unicase/cased.c: New file.
46174         * modules/unicase/cased: New file.
46175
46176         New functions for case mapping of substrings.
46177         * lib/unicase.h (casing_prefix_context_t): New type.
46178         (unicase_empty_prefix_context): New variable.
46179         (u8_casing_prefix_context, u16_casing_prefix_context,
46180         u32_casing_prefix_context, u8_casing_prefixes_context,
46181         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46182         declarations.
46183         (casing_suffix_context_t): New type.
46184         (unicase_empty_suffix_context): New variable.
46185         (u8_casing_suffix_context, u16_casing_suffix_context,
46186         u32_casing_suffix_context, u8_casing_suffixes_context,
46187         u16_casing_suffixes_context, u32_casing_suffixes_context,
46188         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46189         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46190         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46191         declarations.
46192
46193 2009-06-28  Jim Meyering  <meyering@redhat.com>
46194
46195         boostrap: indent only with spaces
46196         * build-aux/bootstrap: Indent only with spaces, never TABs.
46197
46198         bootstrap: split long lines
46199         * build-aux/bootstrap: Keep line length < 80.
46200
46201         bootstrap: sync from coreutils
46202         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46203         just as autoreconf does.  Verify a list of prerequisite
46204         package-name,version-number pairs if defined in bootstrap.conf.
46205         Refer to README-prereq, if prerequisites are not satisfied.
46206
46207 2009-06-27  Eric Blake  <ebb9@byu.net>
46208
46209         tests: add test for bogus NULL definition
46210         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46211         * tests/test-stdlib.c: Likewise.
46212         * tests/test-string.c: Likewise.
46213         * tests/test-locale.c: Likewise.
46214         * tests/test-unistd.c: Likewise.
46215         * modules/stdio-tests (Depends-on): Add verify.
46216         * modules/stdlib-tests (Depends-on): Likewise.
46217         * modules/string-tests (Depends-on): Likewise.
46218         * modules/locale-tests (Depends-on): Likewise.
46219         * modules/unistd-tests (Depends-on): Likewise.
46220
46221 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46222
46223         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46224         self-explaining comment.
46225         * m4/selinux-selinux-h: Update serial.
46226         (gl_LIBSELINUX): New macro, adding a warning for missing development
46227         packages to code extracted from...
46228         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46229         Add warning for missing development packages here, too.
46230
46231 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46232
46233         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46234
46235 2009-06-25  Eric Blake  <ebb9@byu.net>
46236
46237         version-etc: fix regression
46238         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46239         gcc.
46240         (version_etc): Use it, to catch bugs with trailing NULL.
46241         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46242         (version_etc_va): Fix logic bug.
46243         * modules/version-etc-tests: Add test.
46244         * tests/test-version-etc.c: New file.
46245         * tests/test-version-etc.sh: Likewise.
46246
46247 2009-06-25  Sam Steingold  <sds@gnu.org>
46248
46249         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46250         mbtowc declaration.
46251
46252 2009-06-25  Eric Blake  <ebb9@byu.net>
46253
46254         fpurge: migrate into <stdio.h>
46255         * lib/fpurge.h: Delete...
46256         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46257         * lib/fpurge.c (fpurge): Change declaring header.
46258         * modules/fpurge (Files): Drop deleted file.
46259         (Depends-on): Add stdio.
46260         (configure.ac): Set witness.
46261         * modules/stdio (Makefile.am): Support fpurge macros.
46262         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46263         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46264         * lib/fflush.c: Update client.
46265         * tests/test-fpurge.c: Likewise.
46266         * NEWS: Mention the change.
46267
46268 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46269
46270         * lib/argp-version-etc.c (program_authors): Add const
46271         qualifier.
46272         * lib/version-etc.c: Fix typos in the comments.
46273         * modules/argp-version-etc: Depends on version-etc.
46274
46275 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46276
46277         argp-version-etc: new module.
46278
46279         * lib/argp-version-etc.c: New file.
46280         * lib/argp-version-etc.h: New file.
46281         * modules/argp-version-etc: New file.
46282         * modules/argp-version-etc-tests: New file.
46283         * tests/test-argp-version-etc.c: New test.
46284         * tests/test-argp-version-etc-1.sh: New test.
46285
46286 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46287
46288         Provide additional interfaces and documentation for version-etc
46289         module.
46290
46291         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46292         interfaces.
46293         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46294         prototypes.
46295
46296 2009-06-24  Bruno Haible  <bruno@clisp.org>
46297
46298         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46299         HAVE_LIB${NAME} macro.
46300         Reported by Sam Steingold <sds@gnu.org>.
46301
46302 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46303
46304         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46305         needed.
46306
46307 2009-06-21  Bruno Haible  <bruno@clisp.org>
46308
46309         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46310         work.
46311         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46312         together with LIB${NAME}, LTLIB${NAME}.
46313         Reported by Sam Steingold <sds@gnu.org>.
46314
46315 2009-06-20  Jim Meyering  <meyering@redhat.com>
46316
46317         tests: make sc_require_test_exit_idiom more generic
46318         * top/maint.mk (Exit_witness_file): New overridable variable.
46319         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46320         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46321
46322 2009-06-19  Jim Meyering  <meyering@redhat.com>
46323
46324         hash: reverse order of src/dst parameters in an internal interface
46325         * lib/hash.c (transfer_entries): Reverse order of parameters to
46326         put DST before SRC.  Adjust callers.
46327
46328         tests: test-hash: avoid wholesale duplication
46329         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46330         Instead, use a loop and add a single conditional.
46331
46332         tests: test-hash: allow seed selection via a command line argument
46333         * tests/test-hash.c (get_seed): New function.
46334         (main): Use it.
46335
46336 2009-06-19  Eric Blake  <ebb9@byu.net>
46337
46338         hash: avoid memory leak on allocation failure
46339         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46340         failure.  Factor repeated algorithm...
46341         (transfer_entries): ...into new helper routine.
46342         (hash_delete): React to hash_rehash return value.
46343
46344         hash: reduce memory pressure in hash_rehash no-op case
46345         * lib/hash.c (next_prime): Avoid overflow.
46346         (hash_initialize): Factor bucket size computation...
46347         (compute_bucket_size): ...into new helper function.
46348         (hash_rehash): Use new function and open coding to reduce memory
46349         pressure, and avoid a memory leak in USE_OBSTACK code.
46350         Reported by Jim Meyering.
46351
46352 2009-06-18  Eric Blake  <ebb9@byu.net>
46353
46354         hash: make rotation more obvious
46355         * modules/hash (Depends-on): Add bitrotate and stdint.
46356         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46357         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46358         (SIZE_MAX): Rely on headers for definition.
46359         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46360         (raw_hasher): Use rotr_sz.
46361         Suggested by Jim Meyering.
46362
46363         hash: fix memory leak in last patch
46364         * lib/hash.c (hash_rehash): Avoid memory leak.
46365
46366         hash: avoid no-op rehashing
46367         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46368
46369         hash: provide default callback functions
46370         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46371         (hash_initialize): Use them as defaults.
46372         * tests/test-hash.c (main): Test this.
46373
46374         hash: minor optimization
46375         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46376         when possible.
46377         (hash_initialize): Document this promise.
46378         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46379         * tests/test-hash.c (hash_compare_strings): Test this.
46380
46381 2009-06-18  Bruno Haible  <bruno@clisp.org>
46382
46383         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46384         going to be replaced anyway.
46385
46386 2009-06-18  Bruno Haible  <bruno@clisp.org>
46387
46388         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46389         in one place.
46390         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46391         be replaced anyway.
46392
46393 2009-06-18  Eric Blake  <ebb9@byu.net>
46394
46395         hash: check for resize before insertion
46396         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46397         threshold before insertion, so that a pathological hash_rehash
46398         that fills every bucket can still trigger another rehash.
46399
46400 2009-06-18  Jim Meyering  <meyering@redhat.com>
46401
46402         hash-tests: add a loop around the small tests
46403         * tests/test-hash.c (main): Repeat small tests with selected
46404         small initial table sizes.
46405
46406 2009-06-17  Eric Blake  <ebb9@byu.net>
46407
46408         hash: minor cleanups
46409         * lib/hash.h (hash_entry): Make opaque, by moving...
46410         * lib/hash.c (hash_entry): ...here.
46411         (hash_insert): Clarify restrictions on what can be inserted.
46412         (hash_get_next): Clarify when it is safe to remove an element
46413         during traversal.
46414         (check_tuning): Skip verification when tuning is known safe.
46415         (hash_initialize): Clarify restrictions on tuning.
46416
46417 2009-06-17  Jim Meyering  <jim@meyering.net>
46418         and Eric Blake  <ebb9@byu.net>
46419
46420         hash-tests: new module
46421         * modules/hash-tests: New file.
46422         * tests/test-hash.c: New file.
46423
46424 2009-06-17  Eric Blake  <ebb9@byu.net>
46425
46426         strstr-simple: document new module
46427         * MODULES.html.sh: Document new module.
46428
46429         strstr, strcasestr: replace on platforms with broken memchr
46430         * modules/strstr: Split into...
46431         * modules/strstr-simple: ...new module that does not care about
46432         performance, but does care about glibc bug.
46433         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46434         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46435         if platform memchr is broken, per Debian bug 521737.
46436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46437         memchr.
46438         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46439         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46440         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46441         * modules/mountlist (Depends-on): Add strstr-simple.
46442         * modules/gen-uni-tables (Depends-on): Likewise.
46443         * modules/argz (Depends-on): Add strstr.
46444
46445 2009-06-17  Bruno Haible  <bruno@clisp.org>
46446
46447         * modules/posix_spawn-internal (Depends-on): Add errno.
46448
46449 2009-06-17  Bruno Haible  <bruno@clisp.org>
46450
46451         Define missing ESTALE on Interix 3.5.
46452         * lib/errno.in.h (ESTALE): Assign a value if missing.
46453         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46454         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46455         missing.
46456         * doc/posix-headers/errno.texi: Mention the Interix bug.
46457         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46458
46459 2009-06-15  Eric Blake  <ebb9@byu.net>
46460
46461         memchr, memchr2: add valgrind exception
46462         * lib/memchr.valgrind: New file.
46463         * lib/memchr2.valgrind: New file.
46464         * modules/memchr (Files): Distribute valgrind file.
46465         * modules/memchr2 (Files): Likewise.
46466
46467         docs: memchr is no longer obsolete
46468         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46469         * lib/string.in.h (memchr): Simplify logic.
46470
46471 2009-06-14  Jim Meyering  <meyering@redhat.com>
46472
46473         link-follow: fix the "checking..." message to not mention trailing slash
46474         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46475         never considered trailing slashes.
46476
46477 2009-06-14  Bruno Haible  <bruno@clisp.org>
46478
46479         * m4/memchr.m4: Mention also the bug on IA-64.
46480         * doc/posix-functions/memchr.texi: Likewise.
46481
46482 2009-06-12  Eric Blake  <ebb9@byu.net>
46483
46484         memchr: detect broken x86_64 and alpha implementations
46485         * modules/memchr-tests (Depends-on): Move mmap detection...
46486         * modules/memchr (Depends-on): ...here.
46487         (configure.ac): Set indicator.
46488         * lib/string.in.h (memchr): Declare replacement.
46489         * modules/string (Makefile.am): Trigger replacement.
46490         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46491         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46492         bugs.
46493         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46494         * modules/getpagesize (License): Relax license.
46495
46496 2009-06-11  Bruno Haible  <bruno@clisp.org>
46497
46498         * lib/idpriv.h: Add more references.
46499
46500 2009-06-08  Bruno Haible  <bruno@clisp.org>
46501
46502         Tests for module 'idpriv-droptemp'.
46503         * modules/idpriv-droptemp-tests: New file.
46504         * tests/test-idpriv-droptemp.sh: New file.
46505         * tests/test-idpriv-droptemp.su.sh: New file.
46506         * tests/test-idpriv-droptemp.c: New file.
46507
46508         New module 'idpriv-droptemp'.
46509         * lib/idpriv-droptemp.c: New file.
46510         * modules/idpriv-droptemp: New file.
46511
46512 2009-06-08  Bruno Haible  <bruno@clisp.org>
46513
46514         Tests for module 'idpriv-drop'.
46515         * modules/idpriv-drop-tests: New file.
46516         * tests/test-idpriv-drop.sh: New file.
46517         * tests/test-idpriv-drop.su.sh: New file.
46518         * tests/test-idpriv-drop.c: New file.
46519
46520         New module 'idpriv-drop'.
46521         * lib/idpriv.h: New file.
46522         * lib-idpriv-drop.c: New file.
46523         * m4/idpriv.m4: New file.
46524         * modules/idpriv-drop: New file.
46525
46526 2009-06-08  Bruno Haible  <bruno@clisp.org>
46527
46528         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
46529         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
46530         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
46531         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
46532         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
46533         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
46534         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
46535
46536 2009-06-08  Eric Blake  <ebb9@byu.net>
46537
46538         test-strstr: use memory fence, when possible
46539         * tests/test-strstr.c (main): Use memory fence, in order to be
46540         more likely to trigger Debian bug 521737.
46541         * modules/strstr-tests (Files): Pull in additional files.
46542
46543         memchr: no longer obsolete, for wider field testing
46544         * modules/memchr (Status, Notice): Delete, this module is no
46545         longer obsolete.
46546         * modules/vasnprintf (Depends-on): Add memchr.
46547
46548 2009-06-07  Jim Meyering  <meyering@redhat.com>
46549
46550         hash: declare some functions with the warn_unused_result attribute
46551         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
46552
46553 2009-06-07  Bruno Haible  <bruno@clisp.org>
46554
46555         * tests/test-alignof.c: Don't test int64_t if it does not exist.
46556         Reported by Eric Blake.
46557
46558 2009-06-06  Eric Blake  <ebb9@byu.net>
46559
46560         test-alignof: fix typo with long double
46561         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
46562         compiler error.
46563
46564 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
46565
46566         Escape non-texinfo { and }s.
46567         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
46568         markup error.
46569
46570 2009-06-04  Jim Meyering  <meyering@redhat.com>
46571
46572         gitlog-to-changelog: don't infloop on an empty commit log
46573         * build-aux/gitlog-to-changelog: Warn about an empty log message.
46574         Reported by Boris Petersen <transacid@centerim.org>.
46575
46576 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
46577
46578         version-etc: extend for packagers
46579         Add three new configure options, intended for packagers:
46580           --with-packager="packager name"
46581           --with-packager-version="packager-specific version"
46582           --with-packager-bug-reports="packager bug reporting"
46583         An example with coreutils:
46584           $ ./configure \
46585             --with-packager=Gentoo \
46586             --with-packager-bug-report=http://bugs.gentoo.org/ \
46587             --with-packager-version="patchset 1.6"
46588           $ ./src/ls --version | head -n2
46589           ls (GNU coreutils) 7.1-dirty
46590           Packaged by Gentoo (patchset 1.6)
46591         Note that the bug reporting info via --help doesn't show up because
46592         coreutils uses its own custom emit_bug_reporting_address() implementation
46593         in src/system.h.  If it didn't, it'd look like:
46594           $ ./src/ls --help | tail -n4
46595           Report bugs to <bug-coreutils@gnu.org>.
46596           Report Gentoo bugs to <http://bugs.gentoo.org/>.
46597           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
46598           General help using GNU software: <http://www.gnu.org/gethelp/>.
46599         * lib/version-etc.c: Print new information, if provided.
46600         * m4/version-etc.m4: New file.
46601         * modules/version-etc (Files): Add m4/version-etc.m4.
46602         (configure.ac): Add gl_VERSION_ETC.
46603
46604 2009-05-31  Bruno Haible  <bruno@clisp.org>
46605
46606         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
46607         and 'int64_t'.
46608         * modules/alignof-tests (Dependencies): Add stdint.
46609         Reported by Eric Blake.
46610
46611 2009-05-31  Bruno Haible  <bruno@clisp.org>
46612
46613         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
46614         restriction due to compiler bugs.
46615         Reported by Eric Blake.
46616
46617 2009-05-31  Simon Josefsson  <simon@josefsson.org>
46618             Bruno Haible  <bruno@clisp.org>
46619
46620         Fix test-alignof failure.
46621         * lib/alignof.h (alignof_slot): New macro.
46622         (alignof_type): New macro, with the same semantics as the previous
46623         'alignof'.
46624         (alignof): Alias to alignof_slot.
46625         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
46626         check that the results are usable as constant expressions.
46627
46628 2009-05-31  Bruno Haible  <bruno@clisp.org>
46629
46630         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
46631         * tests/test-memchr.c (main): Check that memchr does not read past the
46632         first occurrence of the byte.
46633         * tests/test-strstr.c (main): Update comment.
46634         Suggested by Eric Blake.
46635
46636 2009-05-30  Bruno Haible  <bruno@clisp.org>
46637
46638         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
46639         detail how to use dumpbin.
46640         Reported by David Byron <dbyron@dbyron.com>.
46641
46642 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46643
46644         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
46645
46646 2009-06-02  Simon Josefsson  <simon@josefsson.org>
46647
46648         * m4/manywarnings.m4: Add GCC 4.4 warnings.
46649
46650 2009-05-28  Bruno Haible  <bruno@clisp.org>
46651
46652         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
46653         build-aux/ files.
46654
46655 2009-05-28  Simon Josefsson  <simon@josefsson.org>
46656
46657         * gnulib-tool (func_import): Transform license on build-aux/ files too.
46658
46659 2009-05-27  Simon Josefsson  <simon@josefsson.org>
46660
46661         * gnulib-tool (sed_transform_main_lib_file)
46662         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
46663         regexps.
46664
46665 2009-05-26  Simon Josefsson  <simon@josefsson.org>
46666
46667         * tests/test-strstr.c: Add another self-test.
46668         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
46669         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
46670
46671 2009-05-23  Bruno Haible  <bruno@clisp.org>
46672
46673         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
46674         change.
46675
46676 2009-05-21  Bruno Haible  <bruno@clisp.org>
46677
46678         Simplify use of mode_t varargs.
46679         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
46680         uses 'mode_t' or 'int'.
46681         * lib/openat.c (openat): Likewise.
46682         * lib/open-safer.c (open_safer): Likewise.
46683         * m4/mode_t.m4: New file.
46684         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
46685         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
46686         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
46687         * modules/open (Files): Add m4/mode_t.m4.
46688         * modules/openat (Files): Likewise.
46689         * modules/fcntl-safer (Files): Likewise.
46690         Suggested by Eric Blake.
46691
46692 2009-05-21  Pádraig Brady  <P@draigbrady.com>
46693
46694         * doc/glibc-functions/fallocate.texi: New file.
46695         * doc/gnulib.texi: Include it.
46696
46697 2009-05-21  Eric Blake  <ebb9@byu.net>
46698             Bruno Haible  <bruno@clisp.org>
46699
46700         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
46701         invocations.
46702         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46703
46704 2009-05-21  Eric Blake  <ebb9@byu.net>
46705             Bruno Haible  <bruno@clisp.org>
46706
46707         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
46708         include_next. Fix of 2008-11-20 commit.
46709         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
46710         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
46711         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
46712         NEXT_MATH_H.
46713         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
46714         instead of NEXT_MATH_H.
46715
46716 2009-05-21  Bruno Haible  <bruno@clisp.org>
46717
46718         Avoid redefinition warnings for SIZE_MAX.
46719         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
46720         Reported by Simon Josefsson.
46721
46722 2009-05-21  Bruno Haible  <bruno@clisp.org>
46723
46724         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
46725         AC_CACHE_VAL.
46726
46727 2009-05-20  Bruno Haible  <bruno@clisp.org>
46728
46729         Make zeroptr.h work on mingw.
46730         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
46731         mprotect.
46732         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
46733         * modules/memchr2-tests (configure.ac): Likewise.
46734         * modules/memcmp-tests (configure.ac): Likewise.
46735         * modules/memmem-tests (configure.ac): Likewise.
46736         * modules/memrchr-tests (configure.ac): Likewise.
46737         Reported by Simon Josefsson.
46738
46739 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46740
46741         * tests/test-glob.c: Include string.h for strcmp prototype.
46742
46743 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46744
46745         * modules/getdelim (Depends-on): Add explicit stdint, although it
46746         was implicitly already pulled in via realloc-posix.
46747         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
46748
46749 2009-05-20  Simon Josefsson  <simon@josefsson.org>
46750
46751         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
46752         G. Christensen" <tgc@jupiterrise.com>.
46753         * m4/sys_socket_h.m4: Check for sa_family_t.
46754         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
46755         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
46756         * tests/test-sys_socket.c: Check that sa_family_t works.
46757
46758 2009-05-18  Eric Blake  <ebb9@byu.net>
46759
46760         maint.mk: allow gnulib_dir in VPATH build
46761         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
46762
46763 2009-05-15  Jim Meyering  <meyering@redhat.com>
46764
46765         maint.mk: Give gnulib_dir a default definition.
46766         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
46767         Thus, most packages no longer need to specify this variable in cfg.mk
46768
46769 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
46770
46771         rename.m4: fix typos that would make non-mingw cross-configure fail
46772         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
46773
46774 2009-05-13  Eric Blake  <ebb9@byu.net>
46775
46776         mmap-anon: avoid out-of-order autoconf expansion
46777         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
46778         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
46779         * modules/memchr-tests (Depends-on): Add extensions.
46780         * modules/memchr2-tests (Depends-on): Add extensions.
46781         * modules/memcmp-tests (Depends-on): Add extensions.
46782         * modules/memmem-tests (Depends-on): Add extensions.
46783         * modules/memrchr-tests (Depends-on): Add extensions.
46784
46785 2009-05-13  Bruno Haible  <bruno@clisp.org>
46786
46787         Make some tests ISO C 99 compliant.
46788         * tests/zerosize-ptr.h: New file.
46789         * tests/test-memchr.c: Include zerosize-ptr.h.
46790         (main): Use a zero-size object pointer instead of NULL.
46791         * tests/test-memchr2.c: Include zerosize-ptr.h.
46792         (main): Use a zero-size object pointer instead of NULL.
46793         * tests/test-memcmp.c: Include zerosize-ptr.h.
46794         (main): Use a zero-size object pointer instead of NULL.
46795         * tests/test-memmem.c: Include zerosize-ptr.h.
46796         (main): Use a zero-size object pointer instead of NULL.
46797         * tests/test-memrchr.c: Include zerosize-ptr.h.
46798         (main): Use a zero-size object pointer instead of NULL.
46799         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
46800         m4/mmap-anon.m4.
46801         (Depends-on): Add getpagesize.
46802         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46803         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
46804         m4/mmap-anon.m4.
46805         (Depends-on): Add getpagesize.
46806         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46807         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
46808         m4/mmap-anon.m4.
46809         (Depends-on): Add getpagesize.
46810         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46811         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
46812         m4/mmap-anon.m4.
46813         (Depends-on): Add getpagesize.
46814         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46815         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
46816         m4/mmap-anon.m4.
46817         (Depends-on): Add getpagesize.
46818         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
46819
46820 2009-05-12  Bruno Haible  <bruno@clisp.org>
46821
46822         Tests for module 'alignof'.
46823         * modules/alignof-tests: New file.
46824         * tests/test-alignof.c: New file.
46825
46826 2009-05-12  Bruno Haible  <bruno@clisp.org>
46827
46828         Fix alignof macro.
46829         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
46830         vendor compilers that are always correct.
46831
46832 2009-05-12  Bruno Haible  <bruno@clisp.org>
46833
46834         Make the MAP_ANONYMOUS detection work on HP-UX 11.
46835         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
46836         not whether its fully works.
46837
46838 2009-05-12  Bruno Haible  <bruno@clisp.org>
46839
46840         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
46841
46842 2009-05-12  Jim Meyering  <meyering@redhat.com>
46843
46844         * top/maint.mk: Adjust backslash alignment.
46845
46846 2009-05-11  Simon Josefsson  <simon@josefsson.org>
46847
46848         * top/maint.mk: Make $(srcdir)/build-aux configurable.
46849
46850 2009-05-11  Eric Blake  <ebb9@byu.net>
46851
46852         argp: avoid undefined behavior
46853         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
46854         macros.
46855
46856 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46857
46858         * tests/test-vc-list-files-git.sh: Do git config of user.email and
46859         user.name to prevent git commit from complaining.
46860
46861 2009-05-10  Bruno Haible  <bruno@clisp.org>
46862
46863         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
46864         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
46865         it rewrites every file name only once.
46866         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
46867
46868 2009-05-08  Bruno Haible  <bruno@clisp.org>
46869
46870         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
46871         instead of 'max'.
46872
46873 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46874
46875         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
46876         sockaddr_storage test.
46877
46878 2009-05-07  Simon Josefsson  <simon@josefsson.org>
46879
46880         * modules/sys_socket (Makefile.am): Substitute
46881         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
46882         * m4/sys_socket_h.m4: Check for sockaddr_storage.
46883         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
46884         * tests/test-sys_socket.c: Check sockaddr_storage.
46885
46886 2009-05-08  Bruno Haible  <bruno@clisp.org>
46887
46888         New module 'alignof'.
46889         * lib/alignof.h: New file.
46890         * modules/alignof: New file.
46891
46892 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46893             Bruno Haible  <bruno@clisp.org>
46894
46895         Fix test-file-has-acl on FreeBSD.
46896         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
46897         mask is implicitly added.
46898         * tests/test-file-has-acl.c: Include <signal.h>.
46899         (main): Terminate the test after 5 seconds.
46900         * modules/acl-tests (configure.ac): Check for alarm function.
46901
46902 2009-05-04  Bruno Haible  <bruno@clisp.org>
46903
46904         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46905         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46906         * modules/errno (configure.ac): Drop AC_REQUIRE.
46907         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46908         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46909
46910 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46911
46912         * modules/glob-tests: New module.
46913         * tests/test-glob.c: Add.
46914
46915 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46916
46917         * modules/fnmatch-tests: New module.
46918         * tests/test-fnmatch.c: Add.
46919
46920 2009-05-04  Eric Blake  <ebb9@byu.net>
46921
46922         maint: make the new no-submodule-changes rule VPATH-safe
46923         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
46924
46925 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46926             Bruno Haible  <bruno@clisp.org>
46927
46928         acl: Fix infinite loop on FreeBSD.
46929         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
46930         of return value from acl_get_entry.
46931         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
46932         Likewise.
46933
46934 2009-05-03  Bruno Haible  <bruno@clisp.org>
46935
46936         * lib/acl-internal.h (acl_entries): Clarify return value.
46937         * lib/acl_entries.c (acl_entries): Likewise.
46938
46939 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46940
46941         Bug fix in acl module.
46942         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
46943
46944 2009-05-03  Bruno Haible  <bruno@clisp.org>
46945
46946         Create gperf-generated file in the source dir, not in the build dir.
46947         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
46948         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
46949         * modules/unicase/locale-language (unicase/locale-languages.h):
46950         Likewise.
46951         * modules/unicase/special-casing (unicase/special-casing-table.h):
46952         Likewise.
46953         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
46954         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46955         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
46956         Reported by Ralf Wildenhues.
46957
46958 2009-05-03  Bruno Haible  <bruno@clisp.org>
46959
46960         * modules/fnmatch (Description, configure.ac): Taken from
46961         fnmatch-posix.
46962         * modules/fnmatch-posix: Turn into a symbolic reference to the
46963         'fnmatch' module, and deprecate.
46964         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
46965
46966 2009-05-03  Bruno Haible  <bruno@clisp.org>
46967
46968         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
46969         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
46970         Reported by Ralf Wildenhues.
46971
46972 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46973
46974         * m4/fnmatch.m4: Fix fnmatch re-define.
46975
46976 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46977
46978         priv-set: new module and tests; adapt write-any-file
46979         * lib/priv-set.c: New file.
46980         * lib/priv-set.h: New file.
46981         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46982         * lib/write-any-file.c: Simplify by using priv-set module.
46983         * m4/priv-set.m4: New file.
46984         * modules/priv-set: New file.
46985         * modules/unlinkdir: Add dependency on priv-set module.
46986         * modules/write-any-file: Likewise.
46987
46988         Tests for module 'priv-set'.
46989         * modules/priv-set-tests: New file.
46990         * tests/test-priv-set.c: New file.
46991
46992 2009-05-03  Jim Meyering  <meyering@redhat.com>
46993             Bruno Haible  <bruno@clisp.org>
46994
46995         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46996         use the converted UTF-8 variant of the name instead.
46997
46998 2009-05-03  Jim Meyering  <meyering@redhat.com>
46999
47000         tests: tighten some getdate tests
47001         * tests/test-getdate.c (main): Tighten tests: require equality,
47002         not just greater than.  Set TZ envvar to UTC0.
47003
47004 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47005
47006         getdate: correctly interpret "next monday" when run on a Monday
47007         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47008         that e.g., "next tues" (when run on a tuesday) results in a date
47009         that is one week in the future, and not today's date.
47010         I.e., add a week when the wday is the same as the current one.
47011         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47012         and earlier by Martin Bernreuther and Jan Minář.
47013         * tests/test-getdate.c (main): Check that "next DAY" is always in
47014         the future and that "last DAY" is always in the past.
47015
47016 2009-05-02  Jim Meyering  <meyering@redhat.com>
47017
47018         build: ensure that a release build fails when a submodule is unclean
47019         * top/maint.mk (no-submodule-changes): New rule.
47020         (alpha beta major): Depend on it.
47021
47022 2009-05-02  Bruno Haible  <bruno@clisp.org>
47023
47024         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47025         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47026         shell variable gl_fnmatch_required to detect which variant is
47027         requested.
47028         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47029         gl_FUNC_FNMATCH_POSIX.
47030         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47031         exclude fnmatch-posix.
47032
47033 2009-05-02  Bruno Haible  <bruno@clisp.org>
47034
47035         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47036         * modules/mbsrtowcs (License): Change to LGPLv2+.
47037         * modules/strnlen1 (License): Likewise.
47038         Reported by Simon Josefsson.
47039
47040 2009-05-02  Bruno Haible  <bruno@clisp.org>
47041
47042         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47043         "cross".
47044         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47045         gnulib-tool was called with option --source-base=lib.
47046
47047 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47048
47049         Use automake *-local hooks without commands, for extensibility.
47050         * modules/localcharset (Makefile.am): Rename install-exec-local
47051         rule to install-exec-localcharset, and make it a prerequisite of
47052         install-exec-local.  Likewise, rename the uninstall-local rule to
47053         uninstall-localcharset, and make it a prerequisite of the former.
47054
47055 2009-05-01  Bruno Haible  <bruno@clisp.org>
47056
47057         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47058         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47059         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47060         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47061         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47062         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47063         m4/locale-zh.m4, m4/codeset.m4.
47064
47065         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47066         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47067         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47068         m4/locale-zh.m4.
47069
47070         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47071         REPLACE_WCRTOMB if mbstate_t must be replaced.
47072         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47073         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47074
47075 2009-05-01  Bruno Haible  <bruno@clisp.org>
47076
47077         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47078         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47079         dngettext, dcngettext, textdomain, bindtextdomain,
47080         bind_textdomain_codeset): Undefine before redefining.
47081
47082 2009-04-30  Bruno Haible  <bruno@clisp.org>
47083
47084         Fix bug introduced on 2009-04-25.
47085         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47086         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47087         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47088         is defined.
47089         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47090         is defined.
47091         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47092         is defined.
47093         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47094
47095 2009-04-28  Bruno Haible  <bruno@clisp.org>
47096
47097         Comment tweaks.
47098         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47099         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47100         * lib/unicase.h (u*_casexfrm): Likewise.
47101         Reported by Paolo Bonzini.
47102
47103 2009-04-28  Bruno Haible  <bruno@clisp.org>
47104
47105         Fix a compilation error.
47106         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47107         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47108         Reported by Jim Meyering.
47109
47110 2009-04-27  Bruno Haible  <bruno@clisp.org>
47111
47112         New module 'libunistring'.
47113         * modules/libunistring: New file.
47114         * m4/libunistring.m4: New file.
47115         * MODULES.html.sh (Unicode string functions): Add it.
47116
47117 2009-04-27  Eric Blake  <ebb9@byu.net>
47118
47119         maint.mk: allow package-specific header to provide <config.h>
47120         * top/maint.mk (sc_require_config_h): New variable.
47121         (sc_require_config_h, sc_require_config_h_first): Use it.
47122
47123 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47124
47125         * top/maint.mk (sc_avoid_if_before_free): Except
47126         useless-if-before-free script.
47127
47128 2009-04-27  Eric Blake  <ebb9@byu.net>
47129
47130         maintainer-makefile: depend on all required helper scripts
47131         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47132         useless-if-before-free.
47133         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47134         version, rather than assuming gnulib checkout is available.
47135         Reported by Simen Josefsson.
47136
47137 2009-04-26  Bruno Haible  <bruno@clisp.org>
47138
47139         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47140         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47141         "../" or "..".
47142
47143 2009-04-26  Bruno Haible  <bruno@clisp.org>
47144
47145         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47146         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47147         AC_LIB_HAVE_LINKFLAGS.
47148
47149 2009-04-26  Bruno Haible  <bruno@clisp.org>
47150
47151         Simplify calling convention of u*_conv_from_encoding.
47152         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47153         u32_conv_from_encoding): Expect a resultbuf argument and return the
47154         result directly as a pointer.
47155         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47156         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47157         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47158         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47159         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47160         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47161         Update.
47162         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47163         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47164         * lib/vasnprintf.c (VASNPRINTF): Update.
47165         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47166         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47167         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47168         * NEWS: Mention the change.
47169
47170 2009-04-26  Bruno Haible  <bruno@clisp.org>
47171
47172         Simplify calling convention of u*_conv_to_encoding.
47173         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47174         u32_conv_to_encoding): Expect a resultbuf argument and return the
47175         result directly as a pointer.
47176         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47177         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47178         freeing scaled_offsets if mem_iconveha failed.
47179         * lib/unicase/u-casexfrm.h (FUNC): Update.
47180         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47181         * lib/vasnprintf.c (VASNPRINTF): Update.
47182         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47183         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47184         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47185         * NEWS: Mention the change.
47186
47187 2009-04-26  Bruno Haible  <bruno@clisp.org>
47188
47189         Avoid test failures on AIX and OSF/1.
47190         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47191         malloc(0).
47192         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47193         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47194         Likewise.
47195         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47196         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47197         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47198         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47199         * doc/posix-functions/malloc.texi: Document the portability problem
47200         related to malloc(0).
47201
47202 2009-04-26  Bruno Haible  <bruno@clisp.org>
47203
47204         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47205         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47206         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47207
47208 2009-04-25  Bruno Haible  <bruno@clisp.org>
47209
47210         Avoid link error when creating a namespace clean library.
47211         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47212         as macro with arguments if already defined as an alias.
47213         * lib/signbitf.c (gl_signbitf): Don't undefine.
47214         * lib/signbitd.c (gl_signbitd): Don't undefine.
47215         * lib/signbitl.c (gl_signbitl): Don't undefine.
47216
47217 2009-04-25  Jim Meyering  <meyering@redhat.com>
47218
47219         vc-list-files: fix another quoting bug
47220         * build-aux/vc-list-files: Avoid sed backslash expansion
47221         of pathological directory names.
47222
47223 2009-04-25  Eric Blake  <ebb9@byu.net>
47224
47225         vc-list-files: fix shell quoting error
47226         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47227         timestamp.
47228
47229 2009-04-25  Jim Meyering  <meyering@redhat.com>
47230
47231         vc-list-files: restore lost functionality with subdir argument
47232         * build-aux/vc-list-files: When given a non-"." sub-directory
47233         argument, substitute the $dir/ prefix back onto each resulting name.
47234         Otherwise, coreutils' root_tests check would fail.
47235
47236 2009-04-24  Eric Blake  <ebb9@byu.net>
47237
47238         vc-list-files: ignore git symlinks
47239         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47240         than ls-files, to ignore git symlinks.
47241
47242         maint.mk: import improvements from m4
47243         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47244         (move_if_change): Delete unused macro.
47245         (news-date-check, vc-diff-check): Support VPATH builds.
47246         (announcement): Likewise.  Split --bootstrap-tools list...
47247         (boostrap-tools): ...into separate list, which can be overridden
47248         in cfg.mk.
47249         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47250         requiring dependency on useless-if-before-free module.
47251         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47252         Support VPATH builds.
47253
47254 2009-04-24  Jim Meyering  <meyering@redhat.com>
47255
47256         maint.mk: remove coreutils-specific rules and variables
47257         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47258         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47259         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47260
47261         maint.mk: remove obsolete rule
47262         * top/maint.mk (rel-check): Remove rule.
47263         (WGET, WGETFLAGS): Remove now-unused variables.
47264
47265 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47266
47267         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47268         consistency.
47269
47270         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47271         '$(PATH_SEPARATOR)' instead of ':'.
47272
47273 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47274
47275         * lib/getopt1.c (main): Use 'const' for static array.
47276
47277 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47278
47279         * top/maint.mk: Sync with coreutils.
47280         * NEWS: Explain incompatibilities.
47281
47282 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47283             Bruno Haible  <bruno@clisp.org>
47284
47285         Fix cross-compilation results.
47286         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47287         statement, as third argument of AC_TRY_RUN.
47288         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47289         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47290         Likewise.
47291         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47292         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47293         Likewise.
47294         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47295         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47296         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47297
47298 2009-04-20  Bruno Haible  <bruno@clisp.org>
47299
47300         Avoid test failure on mingw.
47301         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47302
47303 2009-04-20  Bruno Haible  <bruno@clisp.org>
47304
47305         Avoid compilation error on mingw.
47306         * modules/localename-tests (Depends-on): Add locale.
47307
47308 2009-04-19  Bruno Haible  <bruno@clisp.org>
47309
47310         Support for building a shared library on Windows platforms.
47311         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47312         (main): Test the presence of UNINORM_NFC here.
47313         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47314         (main): Test the presence of UNINORM_NFD here.
47315         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47316         (main): Test the presence of UNINORM_NFKC here.
47317         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47318         (main): Test the presence of UNINORM_NFKD here.
47319
47320 2009-04-19  Bruno Haible  <bruno@clisp.org>
47321
47322         Avoid a compiler warning.
47323         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47324         Change type of variable 'sequence'.
47325
47326 2009-04-19  Bruno Haible  <bruno@clisp.org>
47327
47328         * modules/configmake (Makefile.am): When the contents of configmake.h
47329         does not change, arrange to preserve its modification time.
47330
47331 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47332
47333         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47334         gettext domain.
47335
47336 2009-04-16  Jim Meyering  <meyering@redhat.com>
47337
47338         useless-if-before-free: improve conversion code
47339         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47340         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47341
47342 2009-04-14  Bruno Haible  <bruno@clisp.org>
47343
47344         * modules/fcntl (Depends-on): Add extensions.
47345         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47346
47347 2009-04-12  Ben Pfaff  <blp@gnu.org>
47348
47349         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47350         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47351
47352 2009-03-20  Ben Pfaff  <blp@gnu.org>
47353
47354         Make rename replace existing destinations on Windows.
47355         * m4/rename.m4: Add test for Mingw.
47356         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47357         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47358         * doc/posix-functions/rename.texi: Document.
47359
47360 2009-04-10  Bruno Haible  <bruno@clisp.org>
47361
47362         New include file "iconveh.h".
47363         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47364         * lib/striconveh.h: Include it.
47365         (enum iconv_ilseq_handler): Remove definition.
47366         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47367         striconveh.h.
47368         * lib/striconveha.c: Include striconveh.h.
47369         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47370         * modules/striconveh (Files): Add lib/iconveh.h.
47371         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47372         lib/striconveh.h.
47373
47374 2009-04-10  Bruno Haible  <bruno@clisp.org>
47375
47376         * lib/uniconv.h: Update comment.
47377
47378 2009-04-10  Bruno Haible  <bruno@clisp.org>
47379
47380         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47381         always.
47382         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47383         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47384         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47385         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47386         "unistring-notinline.h", so that the function gets defined always.
47387         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47388         * lib/unistr/u8-uctomb.c: Likewise.
47389         * lib/unistr/u16-mbtouc.c: Likewise.
47390         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47391         * lib/unistr/u16-uctomb.c: Likewise.
47392         * lib/unistr/u32-mbtouc.c: Likewise.
47393         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47394         * lib/unistr/u32-uctomb.c: Likewise.
47395
47396 2009-04-10  Bruno Haible  <bruno@clisp.org>
47397
47398         Mark 'utime' obsolete.
47399         * modules/utime (Status, Notice): New sections.
47400         Suggested by Jim Meyering.
47401
47402         Fix cross-compile guess for utime test.
47403         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47404         autoconf.
47405         * doc/posix-functions/utime.texi: Give more precisions.
47406         Reported by Jan <ipif@ymail.com>.
47407
47408 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47409
47410         filevercmp: correct today's change
47411         * lib/filevercmp.c: Also handle coreutils' test inputs.
47412         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47413
47414         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47415         for reporting it.
47416         * lib/filevercmp.c: Special handle for "", "." and "..".
47417         * tests/test-filevercmp.c: Enlarge the set suite.
47418
47419 2009-04-07  Jim Meyering  <meyering@redhat.com>
47420
47421         useless-if-before-free: show how to remove braced useless free, too
47422         * build-aux/useless-if-before-free: still only in a comment, though.
47423
47424 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47425
47426         maint.mk: import changes to syntax-check macros from coreutils
47427         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47428         Use them in the relevant macros.
47429
47430 2009-04-06  Bruno Haible  <bruno@clisp.org>
47431
47432         Fix unportable use of bit-fields.
47433         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47434         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47435         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47436
47437 2009-04-06  Bruno Haible  <bruno@clisp.org>
47438
47439         Avoid test failures on AIX and OSF/1.
47440         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47441         that malloc(0) = NULL.
47442         * tests/unicase/test-u8-tolower.c (check): Likewise.
47443         * tests/unicase/test-u8-totitle.c (check): Likewise.
47444         * tests/unicase/test-u8-toupper.c (check): Likewise.
47445         * tests/unicase/test-u16-casefold.c (check): Likewise.
47446         * tests/unicase/test-u16-tolower.c (check): Likewise.
47447         * tests/unicase/test-u16-totitle.c (check): Likewise.
47448         * tests/unicase/test-u16-toupper.c (check): Likewise.
47449         * tests/unicase/test-u32-casefold.c (check): Likewise.
47450         * tests/unicase/test-u32-tolower.c (check): Likewise.
47451         * tests/unicase/test-u32-totitle.c (check): Likewise.
47452         * tests/unicase/test-u32-toupper.c (check): Likewise.
47453         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47454         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47455         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47456         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47457         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47458         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47459         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47460         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47461         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47462         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47463         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47464         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47465
47466 2009-04-05  Bruno Haible  <bruno@clisp.org>
47467
47468         Work around an autoconf limitation.
47469         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47470         comment line if it would be longer than 3 KB.
47471
47472 2009-04-05  Bruno Haible  <bruno@clisp.org>
47473
47474         Avoid test failure with libiconv-1.13.
47475         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47476         of the expected test results.
47477
47478 2009-04-05  Bruno Haible  <bruno@clisp.org>
47479
47480         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47481         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47482         that it should be installed.
47483
47484 2009-04-05  Bruno Haible  <bruno@clisp.org>
47485
47486         * gnulib-tool: New option --copy-file.
47487         (func_usage): Document it.
47488         (func_dest_tmpfilename): Moved out of func_import.
47489         (func_add_file, func_update_file): New functions, extracted from
47490         func_import.
47491         (func_import): Update.
47492
47493 2009-04-05  Karl Berry  <karl@gnu.org>
47494
47495         * README: prominently mention gnulib-tool.
47496         Rearrange sections so getting the code is near the top.
47497
47498 2009-04-05  Bruno Haible  <bruno@clisp.org>
47499
47500         * lib/unicase.h: Mention u*_cmp2.
47501         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47502         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47503         * lib/unicase/ulc-casecmp.c: Likewise.
47504         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47505         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47506         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
47507         unistr/u8-cmp.
47508         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
47509         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
47510         unistr/u16-cmp.
47511         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
47512         unistr/u32-cmp.
47513
47514         * lib/uninorm.h: Mention u*_cmp2.
47515         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47516         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
47517         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
47518         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
47519         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
47520         unistr/u8-cmp.
47521         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
47522         unistr/u16-cmp.
47523         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
47524         unistr/u32-cmp.
47525
47526         New module 'unistr/u32-cmp2'.
47527         * lib/unistr/u32-cmp2.c: New file.
47528         * modules/unistr/u32-cmp2: New file.
47529
47530         New module 'unistr/u16-cmp2'.
47531         * lib/unistr/u16-cmp2.c: New file.
47532         * modules/unistr/u16-cmp2: New file.
47533
47534         New module 'unistr/u8-cmp2'.
47535         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
47536         * lib/unistr/u8-cmp2.c: New file.
47537         * lib/unistr/u-cmp2.h: New file.
47538         * modules/unistr/u8-cmp2: New file.
47539
47540 2009-04-05  Bruno Haible  <bruno@clisp.org>
47541
47542         * lib/unictype.h (uc_property_is_valid): New macro.
47543         * tests/unictype/test-pr_byname.c (main): Use it.
47544
47545         * lib/unistr.h: Doc fixes.
47546         * lib/uniconv.h: Doc fixes.
47547         * lib/unictype.h: Doc fixes.
47548
47549 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
47550
47551         Port coreutils 7.2 to Solaris 8.
47552
47553         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
47554         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
47555         for Solaris 8.  This is a bit of a hack, as it means it's the
47556         caller's responsibility to add -lnsl if needed, but most likely it
47557         won't be needed since only getaddrinfo uses this and getaddrinfo
47558         isn't needed on Solaris 8.
47559
47560         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
47561         problem to Solaris 8 encountered with coreutils 7.2, which
47562         resulted in a message "fnmatch.c:292: warning: passing argument 4
47563         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
47564         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
47565
47566 2009-04-03  Simon Josefsson  <simon@josefsson.org>
47567
47568         * m4/ld-version-script.m4: Add FIXME comment.
47569
47570 2009-04-02  Simon Josefsson  <simon@josefsson.org>
47571
47572         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
47573         SOVERSION variable.
47574
47575 2009-04-02  Bruno Haible  <bruno@clisp.org>
47576
47577         * Makefile (info, html, dvi, pdf): Combine the rules.
47578         Suggested by Jim Meyering.
47579
47580 2009-04-01  Bruno Haible  <bruno@clisp.org>
47581
47582         * Makefile (info, html, dvi, pdf): New targets.
47583         Reported by Reuben Thomas <rrt@sc3d.org>.
47584
47585 2009-04-01  Bruno Haible  <bruno@clisp.org>
47586
47587         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
47588         can be put into PATH.
47589         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
47590
47591 2009-04-01  Bruno Haible  <bruno@clisp.org>
47592
47593         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
47594
47595 2009-04-01  Bruno Haible  <bruno@clisp.org>
47596
47597         Rename module 'visibility'.
47598         * modules/lib-symbol-visibility: Renamed from modules/visibility.
47599         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
47600         * doc/gnulib.texi: Update.
47601         * MODULES.html.sh (Misc): Update.
47602         * NEWS: Mention the change.
47603
47604 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47605
47606         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
47607         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
47608         Eric Blake <ebb9@byu.net> for review.
47609         * MODULES.html.sh: Add lib-msvc-compat.
47610         * doc/gnulib.texi: Link to new section.
47611         * m4/ld-output-def.m4: New file.
47612         * doc/ld-output-def.texi: New file.
47613
47614 2009-04-01  Simon Josefsson  <simon@josefsson.org>
47615
47616         Rename ld-version-script to lib-symbol-versions.  Suggested by
47617         Bruno Haible <bruno@clisp.org>.
47618         * modules/ld-version-script: Renamed to lib-symbol-versions.
47619         * doc/ld-version-script.texi: Fix module name.
47620         * MODULES.html.sh: Add lib-symbol-versions.
47621
47622 2009-03-31  Simon Josefsson  <simon@josefsson.org>
47623
47624         * modules/u64-tests: New file.
47625         * tests/test-u64.c: New file.
47626
47627 2009-03-04  Simon Josefsson  <simon@josefsson.org>
47628
47629         * MODULES.html.sh: Mention u64.
47630         * modules/u64: New module.
47631         * modules/crypto/sha512: Depend on u64 module instead of providing
47632         u64.h.
47633
47634 2009-03-27  Eric Blake  <ebb9@byu.net>
47635
47636         test-strerror: make debugging EAI_SYSTEM easier
47637         * modules/getaddrinfo-tests (Depends-on): Add strerror.
47638         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
47639         failure was EAI_SYSTEM.
47640
47641 2009-03-25  Bruno Haible  <bruno@clisp.org>
47642
47643         Fix a problem with --enable-relocatable on Solaris 7.
47644         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
47645         since 2008-02-24.
47646
47647 2009-03-25  Eric Blake  <ebb9@byu.net>
47648
47649         test-sockets: avoid gcc warning
47650         * tests/test-sockets.c (main): Silence compiler warning.
47651
47652 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
47653
47654         New modules nproc, pthread, contributed by Glen Lenker.
47655
47656         * MODULES.html.sh: Add pthread, nproc.
47657         * lib/nproc.c: New file.
47658         * lib/nproc.h: New file.
47659         * lib/pthread.in.h: New file.
47660         * m4/pthread.m4: New file.
47661         * modules/nproc: New file.
47662         * modules/pthread: New file.
47663
47664 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47665
47666         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
47667         New variable.
47668
47669 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
47670
47671         filevercmp: handle simple~ and numbered.~3~ backup suffixes
47672         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
47673         * tests/test-filevercmp.c: Add tests for backup suffixes.
47674
47675 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47676
47677         * modules/stdlib (Depends-on): Add stdint, needed when defining
47678         struct random_data on, for example, HP-UX 10.20.  Reported by
47679         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
47680
47681 2009-03-24  Simon Josefsson  <simon@josefsson.org>
47682
47683         * lib/readline.c (readline): Call fflush on stdout after printing
47684         prompt.
47685
47686 2009-03-20  Bruno Haible  <bruno@clisp.org>
47687
47688         Remove dependency from 'close' module to -lws2_32 on native Windows.
47689         * lib/close-hook.h: New file.
47690         * lib/close-hook.c: New file.
47691         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
47692         w32sock.h.
47693         (_gl_close_fd_maybe_socket): Remove function.
47694         (rpl_close): Invoke execute_all_close_hooks instead of
47695         _gl_close_fd_maybe_socket.
47696         * lib/sockets.c: Include close-hook.h, w32sock.h.
47697         (close_fd_maybe_socket): New function, essentially from lib/close.c.
47698         (close_sockets_hook): New variable.
47699         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
47700         (gl_sockets_cleanup): Unregister it.
47701         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
47702         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
47703         * modules/close-hook: New file.
47704         * modules/close (Files): Remove lib/w32sock.h.
47705         (Depends-on): Add close-hook.
47706         (Link): Remove section.
47707         * modules/sockets (Files): Add lib/w32sock.h.
47708         (Depends-on): Add close-hook.
47709         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
47710         invocation.
47711         * NEWS: Mention that LIB_CLOSE is gone.
47712
47713 2009-03-23  Eric Blake  <ebb9@byu.net>
47714
47715         signal-tests: test previous patch
47716         * tests/test-signal.c: New file.
47717         * modules/signal-tests: Likewise.
47718
47719         signal.h: always support 'volatile sig_atomic_t'
47720         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
47721         (gl_SIGNAL_H_DEFAULTS): Add a default.
47722         * modules/signal (Makefile.am): Substitute if needed.
47723         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
47724         users can blindly add volatile.
47725         * doc/posix-headers/signal.texi (signal.h): Document it.
47726         Reported by Matthew Woehlke.
47727
47728 2009-03-23  Jim Meyering  <meyering@redhat.com>
47729
47730         pathmax: PATH_MAX: use pathconf only when available
47731         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
47732         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
47733         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
47734         This avoids a link failure in a PSP cross-compilation environment
47735         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
47736
47737         * lib/vasnprintf.c (divide): Fix typo in comment.
47738
47739 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47740
47741         * gnulib-tool (func_filter_filelist): Fix comment.
47742
47743 2009-03-20  Bruno Haible  <bruno@clisp.org>
47744
47745         Make sockets.h self-contained.
47746         * lib/sockets.c: Include sockets.h first.
47747         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
47748
47749 2009-03-19  Eric Blake  <ebb9@byu.net>
47750
47751         doc: mention more functions added in cygwin 1.7.0
47752         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
47753         addition.
47754         * doc/posix-functions/log2f.texi: Likewise.
47755
47756 2009-03-19  Jim Meyering  <meyering@redhat.com>
47757
47758         fsusage: avoid syntax error due to statement-before-declaration
47759         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
47760         after all declarations.  Reported by Matthew Woehlke in
47761         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
47762
47763 2009-03-18  Eric Blake  <ebb9@byu.net>
47764
47765         build-aux/compile: sync from automake
47766         * build-aux/compile: New file, from automake.
47767         * config/srclist.txt: Mention build-aux/compile.
47768
47769 2009-03-17  Bruno Haible  <bruno@clisp.org>
47770
47771         * lib/git-merge-changelog.c: Fix typo in comment.
47772         Reported by Reuben Thomas <rrt@sc3d.org>.
47773
47774 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
47775
47776         * m4/regex.m4: update and improve help for
47777         --without-included-regex.
47778
47779 2009-03-17  Simon Josefsson  <simon@josefsson.org>
47780
47781         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
47782         failure on missing include files.
47783
47784 2009-03-17  Eric Blake  <ebb9@byu.net>
47785
47786         doc: mention more functions added in cygwin 1.7.0
47787         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
47788         addition.
47789         * doc/posix-functions/fwscanf.texi: Likewise.
47790         * doc/posix-functions/swprintf.texi: Likewise.
47791         * doc/posix-functions/swscanf.texi: Likewise.
47792         * doc/posix-functions/vfwprintf.texi: Likewise.
47793         * doc/posix-functions/vfwscanf.texi: Likewise.
47794         * doc/posix-functions/vswprintf.texi: Likewise.
47795         * doc/posix-functions/vswscanf.texi: Likewise.
47796         * doc/posix-functions/vwprintf.texi: Likewise.
47797         * doc/posix-functions/vwscanf.texi: Likewise.
47798         * doc/posix-functions/wcscasecmp.texi: Likewise.
47799         * doc/posix-functions/wcsdup.texi: Likewise.
47800         * doc/posix-functions/wcsftime.texi: Likewise.
47801         * doc/posix-functions/wcsncasecmp.texi: Likewise.
47802         * doc/posix-functions/wprintf.texi: Likewise.
47803         * doc/posix-functions/wscanf.texi: Likewise.
47804         * doc/glibc-functions/gethostbyname2.texi: Likewise.
47805
47806 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47807
47808         maint.mk: really add $(AM_MAKEFLAGS)
47809         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
47810         was inadvertently omitted in the last commit.
47811         Spotted by Bruno Haible.
47812
47813         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
47814         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
47815         $(AM_MAKEFLAGS)' rather than plain `make'.
47816
47817         gnulib-tool: execute $MAKE not make
47818         * gnulib-tool: Default $MAKE to 'make'.
47819         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
47820         than make.  Initialize $MAKE in the do-autobuild script.
47821
47822         gnulib-tool: use $MAKE not make in generated files
47823         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
47824         make, in generated files.  Initialize $MAKE in the do-autobuild
47825         script.
47826
47827         * top/GNUmakefile (_have-git-version-gen): Fix typo.
47828
47829         GNUmakefile: disable parallelism only for multiple, recursive targets
47830         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
47831         additions in the Makefile.
47832         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
47833         by Automake.
47834         (.NOTPARALLEL): Only disable parallel builds if multiple targets
47835         are listed on the command line and at least one of them is
47836         listed in $(ALL_RECURSIVE_TARGETS).
47837
47838 2009-03-14  Bruno Haible  <bruno@clisp.org>
47839
47840         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
47841         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
47842         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
47843         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
47844         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
47845         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
47846         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
47847         unistr/u8-uctomb.
47848         * modules/unistr/u8-strchr (Depends-on): Likewise.
47849         * modules/unistr/u8-strrchr (Depends-on): Likewise.
47850         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
47851         unistr/u16-uctomb.
47852         * modules/unistr/u16-strchr (Depends-on): Likewise.
47853         * modules/unistr/u16-strrchr (Depends-on): Likewise.
47854
47855 2009-03-12  Bruno Haible  <bruno@clisp.org>
47856
47857         Work around select() bug on Interix 3.5.
47858         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
47859         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
47860         * m4/select.m4: New file.
47861         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
47862         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
47863         * modules/select (Files): Add m4/select.m4.
47864         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
47865         * modules/nanosleep (Depends-on): Add select.
47866         * modules/poll (Depends-on): Likewise.
47867         * doc/posix-functions/select.texi: Mention the Interix bug.
47868         Reported by Markus Duft <mduft@gentoo.org>.
47869
47870         * lib/select.c: Renamed from lib/winsock-select.c.
47871         * modules/select (Files): Add lib/select.c, remove
47872         lib/winsock-select.c.
47873         (configure.ac): Update.
47874
47875 2009-03-12  Jim Meyering  <meyering@redhat.com>
47876
47877         avoid gcc warnings about unused macro definitions
47878         * lib/readtokens.c (STREQ): Remove unused definition.
47879         * lib/xmalloc.c (SIZE_MAX): Likewise.
47880         * lib/openat-die.c (N_): Likewise.
47881         * lib/mountlist.c (SIZE_MAX): Remove definition.
47882         Instead, include <stdint.h>.
47883         * lib/readutmp.c: Likewise.
47884         * modules/readutmp (Depends-on): Add stdint.
47885         * modules/mountlist (Depends-on): Add stdint.
47886         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
47887
47888 2009-03-10  Bruno Haible  <bruno@clisp.org>
47889
47890         Tests for module 'mbmemcasecoll'.
47891         * modules/mbmemcasecoll-tests: New file.
47892         * tests/test-mbmemcasecoll1.sh: New file.
47893         * tests/test-mbmemcasecoll2.sh: New file.
47894         * tests/test-mbmemcasecoll3.sh: New file.
47895         * tests/test-mbmemcasecoll.c: New file.
47896
47897         New module 'mbmemcasecoll'.
47898         * lib/mbmemcasecoll.h: New file.
47899         * lib/mbmemcasecoll.c: New file.
47900         * modules/mbmemcasecoll: New file.
47901
47902         * tests/test-mbmemcasecmp.h: New file, extracted from
47903         tests/test-mbmemcasecmp.c.
47904         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47905         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47906         (main): Update.
47907         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47908
47909 2009-03-09  Bruno Haible  <bruno@clisp.org>
47910
47911         Tests for module 'mbmemcasecmp'.
47912         * modules/mbmemcasecmp-tests: New file.
47913         * tests/test-mbmemcasecmp1.sh: New file.
47914         * tests/test-mbmemcasecmp2.sh: New file.
47915         * tests/test-mbmemcasecmp3.sh: New file.
47916         * tests/test-mbmemcasecmp.c: New file.
47917
47918         New module 'mbmemcasecmp'.
47919         * lib/mbmemcasecmp.h: New file.
47920         * lib/mbmemcasecmp.c: New file.
47921         * modules/mbmemcasecmp: New file.
47922
47923 2009-03-09  Bruno Haible  <bruno@clisp.org>
47924
47925         Tests for module 'unicase/ulc-casecoll'.
47926         * modules/unicase/ulc-casecoll-tests: New file.
47927         * tests/unicase/test-ulc-casecoll1.sh: New file.
47928         * tests/unicase/test-ulc-casecoll2.sh: New file.
47929         * tests/unicase/test-ulc-casecoll.c: New file.
47930
47931         New module 'unicase/ulc-casecoll'.
47932         * lib/unicase.h (ulc_casecoll): New declaration.
47933         * lib/unicase/ulc-casecoll.c: New file.
47934         * modules/unicase/ulc-casecoll: New file.
47935
47936         New module 'unicase/ulc-casexfrm'.
47937         * lib/unicase.h (ulc_casexfrm): New declaration.
47938         * lib/unicase/ulc-casexfrm.c: New file.
47939         * modules/unicase/ulc-casexfrm: New file.
47940
47941 2009-03-09  Bruno Haible  <bruno@clisp.org>
47942
47943         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
47944         invocations.
47945
47946         * m4/mbscasecmp.m4: Remove file.
47947         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
47948         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
47949
47950         * m4/mbscasestr.m4: Remove file.
47951         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
47952         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
47953
47954         * m4/mbschr.m4: Remove file.
47955         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
47956         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
47957
47958         * m4/mbscspn.m4: Remove file.
47959         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
47960         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
47961
47962         * m4/mbslen.m4: Remove file.
47963         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
47964         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
47965
47966         * m4/mbsncasecmp.m4: Remove file.
47967         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
47968         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
47969
47970         * m4/mbsnlen.m4: Remove file.
47971         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
47972         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
47973
47974         * m4/mbspbrk.m4: Remove file.
47975         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47976         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47977
47978         * m4/mbspcasecmp.m4: Remove file.
47979         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47980         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47981
47982         * m4/mbsrchr.m4: Remove file.
47983         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47984         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47985
47986         * m4/mbssep.m4: Remove file.
47987         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47988         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47989
47990         * m4/mbsspn.m4: Remove file.
47991         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47992         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47993
47994         * m4/mbsstr.m4: Remove file.
47995         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47996         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47997
47998         * m4/mbstok_r.m4: Remove file.
47999         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48000         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48001
48002         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48003
48004         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48005         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48006
48007         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48008
48009 2009-03-08  Bruno Haible  <bruno@clisp.org>
48010
48011         Tests for module 'unicase/ulc-casecmp'.
48012         * modules/unicase/ulc-casecmp-tests: New file.
48013         * tests/unicase/test-ulc-casecmp1.sh: New file.
48014         * tests/unicase/test-ulc-casecmp2.sh: New file.
48015         * tests/unicase/test-ulc-casecmp.c: New file.
48016
48017         New module 'unicase/ulc-casecmp'.
48018         * lib/unicase.h (ulc_casecmp): New declaration.
48019         * lib/unicase/ulc-casecmp.c: New file.
48020         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48021         'const SRC_UNIT *'.
48022         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48023         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48024         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48025         * modules/unicase/ulc-casecmp: New file.
48026
48027         Tests for module 'unicase/u32-is-cased'.
48028         * modules/unicase/u32-is-cased-tests: New file.
48029         * tests/unicase/test-u32-is-cased.c: New file.
48030
48031         Tests for module 'unicase/u16-is-cased'.
48032         * modules/unicase/u16-is-cased-tests: New file.
48033         * tests/unicase/test-u16-is-cased.c: New file.
48034
48035         Tests for module 'unicase/u8-is-cased'.
48036         * modules/unicase/u8-is-cased-tests: New file.
48037         * tests/unicase/test-u8-is-cased.c: New file.
48038         * tests/unicase/test-is-cased.h: New file.
48039
48040         New module 'unicase/u32-is-cased'.
48041         * lib/unicase/u32-is-cased.c: New file.
48042         * modules/unicase/u32-is-cased: New file.
48043
48044         New module 'unicase/u16-is-cased'.
48045         * lib/unicase/u16-is-cased.c: New file.
48046         * modules/unicase/u16-is-cased: New file.
48047
48048         New module 'unicase/u8-is-cased'.
48049         * lib/unicase/u8-is-cased.c: New file.
48050         * lib/unicase/u-is-cased.h: New file.
48051         * modules/unicase/u8-is-cased: New file.
48052
48053         Tests for module 'unicase/u32-is-casefolded'.
48054         * modules/unicase/u32-is-casefolded-tests: New file.
48055         * tests/unicase/test-u32-is-casefolded.c: New file.
48056
48057         Tests for module 'unicase/u16-is-casefolded'.
48058         * modules/unicase/u16-is-casefolded-tests: New file.
48059         * tests/unicase/test-u16-is-casefolded.c: New file.
48060
48061         Tests for module 'unicase/u8-is-casefolded'.
48062         * modules/unicase/u8-is-casefolded-tests: New file.
48063         * tests/unicase/test-u8-is-casefolded.c: New file.
48064         * tests/unicase/test-is-casefolded.h: New file.
48065
48066         New module 'unicase/u32-is-casefolded'.
48067         * lib/unicase/u32-is-casefolded.c: New file.
48068         * modules/unicase/u32-is-casefolded: New file.
48069
48070         New module 'unicase/u16-is-casefolded'.
48071         * lib/unicase/u16-is-casefolded.c: New file.
48072         * modules/unicase/u16-is-casefolded: New file.
48073
48074         New module 'unicase/u8-is-casefolded'.
48075         * lib/unicase/u8-is-casefolded.c: New file.
48076         * modules/unicase/u8-is-casefolded: New file.
48077
48078         Tests for module 'unicase/u32-is-titlecase'.
48079         * modules/unicase/u32-is-titlecase-tests: New file.
48080         * tests/unicase/test-u32-is-titlecase.c: New file.
48081
48082         Tests for module 'unicase/u16-is-titlecase'.
48083         * modules/unicase/u16-is-titlecase-tests: New file.
48084         * tests/unicase/test-u16-is-titlecase.c: New file.
48085
48086         Tests for module 'unicase/u8-is-titlecase'.
48087         * modules/unicase/u8-is-titlecase-tests: New file.
48088         * tests/unicase/test-u8-is-titlecase.c: New file.
48089         * tests/unicase/test-is-titlecase.h: New file.
48090
48091         New module 'unicase/u32-is-titlecase'.
48092         * lib/unicase/u32-is-titlecase.c: New file.
48093         * modules/unicase/u32-is-titlecase: New file.
48094
48095         New module 'unicase/u16-is-titlecase'.
48096         * lib/unicase/u16-is-titlecase.c: New file.
48097         * modules/unicase/u16-is-titlecase: New file.
48098
48099         New module 'unicase/u8-is-titlecase'.
48100         * lib/unicase/u8-is-titlecase.c: New file.
48101         * modules/unicase/u8-is-titlecase: New file.
48102
48103         Tests for module 'unicase/u32-is-lowercase'.
48104         * modules/unicase/u32-is-lowercase-tests: New file.
48105         * tests/unicase/test-u32-is-lowercase.c: New file.
48106
48107         Tests for module 'unicase/u16-is-lowercase'.
48108         * modules/unicase/u16-is-lowercase-tests: New file.
48109         * tests/unicase/test-u16-is-lowercase.c: New file.
48110
48111         Tests for module 'unicase/u8-is-lowercase'.
48112         * modules/unicase/u8-is-lowercase-tests: New file.
48113         * tests/unicase/test-u8-is-lowercase.c: New file.
48114         * tests/unicase/test-is-lowercase.h: New file.
48115
48116         New module 'unicase/u32-is-lowercase'.
48117         * lib/unicase/u32-is-lowercase.c: New file.
48118         * modules/unicase/u32-is-lowercase: New file.
48119
48120         New module 'unicase/u16-is-lowercase'.
48121         * lib/unicase/u16-is-lowercase.c: New file.
48122         * modules/unicase/u16-is-lowercase: New file.
48123
48124         New module 'unicase/u8-is-lowercase'.
48125         * lib/unicase/u8-is-lowercase.c: New file.
48126         * modules/unicase/u8-is-lowercase: New file.
48127
48128         Tests for module 'unicase/u32-is-uppercase'.
48129         * modules/unicase/u32-is-uppercase-tests: New file.
48130         * tests/unicase/test-u32-is-uppercase.c: New file.
48131
48132         Tests for module 'unicase/u16-is-uppercase'.
48133         * modules/unicase/u16-is-uppercase-tests: New file.
48134         * tests/unicase/test-u16-is-uppercase.c: New file.
48135
48136         Tests for module 'unicase/u8-is-uppercase'.
48137         * modules/unicase/u8-is-uppercase-tests: New file.
48138         * tests/unicase/test-u8-is-uppercase.c: New file.
48139         * tests/unicase/test-is-uppercase.h: New file.
48140
48141         New module 'unicase/u32-is-uppercase'.
48142         * lib/unicase/u32-is-uppercase.c: New file.
48143         * modules/unicase/u32-is-uppercase: New file.
48144
48145         New module 'unicase/u16-is-uppercase'.
48146         * lib/unicase/u16-is-uppercase.c: New file.
48147         * modules/unicase/u16-is-uppercase: New file.
48148
48149         New module 'unicase/u8-is-uppercase'.
48150         * lib/unicase/u8-is-uppercase.c: New file.
48151         * modules/unicase/u8-is-uppercase: New file.
48152
48153         New module 'unicase/u32-is-invariant'.
48154         * lib/unicase/u32-is-invariant.c: New file.
48155         * modules/unicase/u32-is-invariant: New file.
48156
48157         New module 'unicase/u16-is-invariant'.
48158         * lib/unicase/u16-is-invariant.c: New file.
48159         * modules/unicase/u16-is-invariant: New file.
48160
48161         New module 'unicase/u8-is-invariant'.
48162         * lib/unicase/u8-is-invariant.c: New file.
48163         * lib/unicase/invariant.h: New file.
48164         * lib/unicase/u-is-invariant.h: New file.
48165         * modules/unicase/u8-is-invariant: New file.
48166
48167         Tests for module 'unicase/u32-casecoll'.
48168         * modules/unicase/u32-casecoll-tests: New file.
48169         * tests/unicase/test-u32-casecoll.c: New file.
48170
48171         Tests for module 'unicase/u16-casecoll'.
48172         * modules/unicase/u16-casecoll-tests: New file.
48173         * tests/unicase/test-u16-casecoll.c: New file.
48174
48175         Tests for module 'unicase/u8-casecoll'.
48176         * modules/unicase/u8-casecoll-tests: New file.
48177         * tests/unicase/test-u8-casecoll.c: New file.
48178
48179         New module 'unicase/u32-casecoll'.
48180         * lib/unicase/u32-casecoll.c: New file.
48181         * modules/unicase/u32-casecoll: New file.
48182
48183         New module 'unicase/u16-casecoll'.
48184         * lib/unicase/u16-casecoll.c: New file.
48185         * modules/unicase/u16-casecoll: New file.
48186
48187         New module 'unicase/u8-casecoll'.
48188         * lib/unicase/u8-casecoll.c: New file.
48189         * lib/unicase/u-casecoll.h: New file.
48190         * modules/unicase/u8-casecoll: New file.
48191
48192         New module 'unicase/u32-casexfrm'.
48193         * lib/unicase/u32-casexfrm.c: New file.
48194         * modules/unicase/u32-casexfrm: New file.
48195
48196         New module 'unicase/u16-casexfrm'.
48197         * lib/unicase/u16-casexfrm.c: New file.
48198         * modules/unicase/u16-casexfrm: New file.
48199
48200         New module 'unicase/u8-casexfrm'.
48201         * lib/unicase/u8-casexfrm.c: New file.
48202         * lib/unicase/u-casexfrm.h: New file.
48203         * modules/unicase/u8-casexfrm: New file.
48204
48205         Tests for module 'unicase/u32-casecmp'.
48206         * modules/unicase/u32-casecmp-tests: New file.
48207         * tests/unicase/test-u32-casecmp.c: New file.
48208
48209         Tests for module 'unicase/u16-casecmp'.
48210         * modules/unicase/u16-casecmp-tests: New file.
48211         * tests/unicase/test-u16-casecmp.c: New file.
48212
48213         Tests for module 'unicase/u8-casecmp'.
48214         * modules/unicase/u8-casecmp-tests: New file.
48215         * tests/unicase/test-u8-casecmp.c: New file.
48216         * tests/unicase/test-casecmp.h: New file.
48217
48218         New module 'unicase/u32-casecmp'.
48219         * lib/unicase/u32-casecmp.c: New file.
48220         * modules/unicase/u32-casecmp: New file.
48221
48222         New module 'unicase/u16-casecmp'.
48223         * lib/unicase/u16-casecmp.c: New file.
48224         * modules/unicase/u16-casecmp: New file.
48225
48226         New module 'unicase/u8-casecmp'.
48227         * lib/unicase/u8-casecmp.c: New file.
48228         * lib/unicase/u-casecmp.h: New file.
48229         * modules/unicase/u8-casecmp: New file.
48230
48231         Tests for module 'unicase/u32-casefold'.
48232         * modules/unicase/u32-casefold-tests: New file.
48233         * tests/unicase/test-u32-casefold.c: New file.
48234
48235         Tests for module 'unicase/u16-casefold'.
48236         * modules/unicase/u16-casefold-tests: New file.
48237         * tests/unicase/test-u16-casefold.c: New file.
48238
48239         Tests for module 'unicase/u8-casefold'.
48240         * modules/unicase/u8-casefold-tests: New file.
48241         * tests/unicase/test-u8-casefold.c: New file.
48242
48243         New module 'unicase/u32-casefold'.
48244         * lib/unicase/u32-casefold.c: New file.
48245         * modules/unicase/u32-casefold: New file.
48246
48247         New module 'unicase/u16-casefold'.
48248         * lib/unicase/u16-casefold.c: New file.
48249         * modules/unicase/u16-casefold: New file.
48250
48251         New module 'unicase/u8-casefold'.
48252         * lib/unicase/u8-casefold.c: New file.
48253         * lib/unicase/u-casefold.h: New file.
48254         * modules/unicase/u8-casefold: New file.
48255
48256         New module 'unicase/tocasefold'.
48257         * lib/unicase/casefold.h: New file.
48258         * lib/unicase/tocasefold.c: New file.
48259         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48260         * modules/unicase/tocasefold: New file.
48261
48262         Tests for module 'unicase/u32-totitle'.
48263         * modules/unicase/u32-totitle-tests: New file.
48264         * tests/unicase/test-u32-totitle.c: New file.
48265
48266         Tests for module 'unicase/u16-totitle'.
48267         * modules/unicase/u16-totitle-tests: New file.
48268         * tests/unicase/test-u16-totitle.c: New file.
48269
48270         Tests for module 'unicase/u8-totitle'.
48271         * modules/unicase/u8-totitle-tests: New file.
48272         * tests/unicase/test-u8-totitle.c: New file.
48273
48274         New module 'unicase/u32-totitle'.
48275         * lib/unicase/u32-totitle.c: New file.
48276         * modules/unicase/u32-totitle: New file.
48277
48278         New module 'unicase/u16-totitle'.
48279         * lib/unicase/u16-totitle.c: New file.
48280         * modules/unicase/u16-totitle: New file.
48281
48282         New module 'unicase/u8-totitle'.
48283         * lib/unicase/u8-totitle.c: New file.
48284         * lib/unicase/u-totitle.h: New file.
48285         * modules/unicase/u8-totitle: New file.
48286
48287         Tests for module 'unicase/u32-tolower'.
48288         * modules/unicase/u32-tolower-tests: New file.
48289         * tests/unicase/test-u32-tolower.c: New file.
48290
48291         Tests for module 'unicase/u16-tolower'.
48292         * modules/unicase/u16-tolower-tests: New file.
48293         * tests/unicase/test-u16-tolower.c: New file.
48294
48295         Tests for module 'unicase/u8-tolower'.
48296         * modules/unicase/u8-tolower-tests: New file.
48297         * tests/unicase/test-u8-tolower.c: New file.
48298
48299         New module 'unicase/u32-tolower'.
48300         * lib/unicase/u32-tolower.c: New file.
48301         * modules/unicase/u32-tolower: New file.
48302
48303         New module 'unicase/u16-tolower'.
48304         * lib/unicase/u16-tolower.c: New file.
48305         * modules/unicase/u16-tolower: New file.
48306
48307         New module 'unicase/u8-tolower'.
48308         * lib/unicase/u8-tolower.c: New file.
48309         * modules/unicase/u8-tolower: New file.
48310
48311         Tests for module 'unicase/u32-toupper'.
48312         * modules/unicase/u32-toupper-tests: New file.
48313         * tests/unicase/test-u32-toupper.c: New file.
48314
48315         Tests for module 'unicase/u16-toupper'.
48316         * modules/unicase/u16-toupper-tests: New file.
48317         * tests/unicase/test-u16-toupper.c: New file.
48318
48319         Tests for module 'unicase/u8-toupper'.
48320         * modules/unicase/u8-toupper-tests: New file.
48321         * tests/unicase/test-u8-toupper.c: New file.
48322
48323         New module 'unicase/u32-toupper'.
48324         * lib/unicase/u32-toupper.c: New file.
48325         * modules/unicase/u32-toupper: New file.
48326
48327         New module 'unicase/u16-toupper'.
48328         * lib/unicase/u16-toupper.c: New file.
48329         * modules/unicase/u16-toupper: New file.
48330
48331         New module 'unicase/u8-toupper'.
48332         * lib/unicase/u8-toupper.c: New file.
48333         * modules/unicase/u8-toupper: New file.
48334
48335         New module 'unicase/u32-casemap'.
48336         * lib/unicase/u32-casemap.c: New file.
48337         * modules/unicase/u32-casemap: New file.
48338
48339         New module 'unicase/u16-casemap'.
48340         * lib/unicase/u16-casemap.c: New file.
48341         * modules/unicase/u16-casemap: New file.
48342
48343         New module 'unicase/u8-casemap'.
48344         * lib/unicase/unicasemap.h: New file.
48345         * lib/unicase/u8-casemap.c: New file.
48346         * lib/unicase/u-casemap.h: New file.
48347         * modules/unicase/u8-casemap: New file.
48348
48349         New module 'unicase/special-casing'.
48350         * lib/unicase/special-casing.h: New file.
48351         * lib/unicase/special-casing.c: New file.
48352         * lib/unicase/special-casing-table.gperf: New file, generated by
48353         gen-uni-tables.c.
48354         * modules/unicase/special-casing: New file.
48355
48356         Tests for module 'unicase/locale-language'.
48357         * modules/unicase/locale-language-tests: New file.
48358         * tests/unicase/test-locale-language.sh: New file.
48359         * tests/unicase/test-locale-language.c: New file.
48360
48361         New module 'unicase/locale-language'.
48362         * lib/unicase/locale-language.c: New file.
48363         * lib/unicase/locale-languages.gperf: New file.
48364         * modules/unicase/locale-language: New file.
48365
48366         Generate more tables for case conversion and case folding.
48367         * lib/gen-uni-tables.c (SCC_*): New enum items.
48368         (struct special_casing_rule): New type.
48369         (casing_rules, num_casing_rules, allocated_casing_rules): New
48370         variables.
48371         (add_casing_rule, fill_casing_rules): New functions.
48372         (struct casefold_rule): New type.
48373         (casefolding_rules, num_casefolding_rules,
48374         allocated_casefolding_rules): New variables.
48375         (fill_casefolding_rules): New function.
48376         (unicode_casefold): New variable.
48377         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48378         sort_casing_rules, output_casing_rules): New functions.
48379         (main): Accept to more arguments: SpecialCasing.txt and
48380         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48381         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48382         Output mapping for casefolding.
48383
48384         * lib/unicase.h: Include stdbool.h, uninorm.h.
48385         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48386         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48387         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48388         arguments.
48389         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48390         resultp arguments.
48391         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48392         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48393         resultp arguments.
48394         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48395         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48396         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48397         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48398         declarations.
48399         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48400
48401 2009-03-08  Bruno Haible  <bruno@clisp.org>
48402
48403         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48404         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48405         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48406         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48407
48408 2009-03-07  Bruno Haible  <bruno@clisp.org>
48409
48410         Adjust u*_normcmp, u*_normcoll API.
48411         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48412         u16_normcoll, u32_normcoll): Change failure conventions.
48413         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48414         errno and return -1.
48415         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48416
48417 2009-03-07  Bruno Haible  <bruno@clisp.org>
48418
48419         Tests for module 'uninorm/u32-normcoll'.
48420         * modules/uninorm/u32-normcoll-tests: New file.
48421         * tests/uninorm/test-u32-normcoll.c: New file.
48422
48423         Tests for module 'uninorm/u16-normcoll'.
48424         * modules/uninorm/u16-normcoll-tests: New file.
48425         * tests/uninorm/test-u16-normcoll.c: New file.
48426
48427         Tests for module 'uninorm/u8-normcoll'.
48428         * modules/uninorm/u8-normcoll-tests: New file.
48429         * tests/uninorm/test-u8-normcoll.c: New file.
48430
48431 2009-03-07  Bruno Haible  <bruno@clisp.org>
48432
48433         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48434         tests/uninorm/test-u32-normcmp.c.
48435         * tests/uninorm/test-u32-normcmp.c: Include it.
48436         (test_nonascii): New function, extracted from main. Add some more
48437         tests.
48438         (main): Invoke test_ascii and test_nonascii.
48439         * modules/uninorm/u32-normcmp-tests (Files): Add
48440         tests/uninorm/test-u32-normcmp.h.
48441         (Depends-on): Remove uninorm/u32-normcmp.
48442
48443         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48444         tests/uninorm/test-u16-normcmp.c.
48445         * tests/uninorm/test-u16-normcmp.c: Include it.
48446         (test_nonascii): New function, extracted from main. Add some more
48447         tests.
48448         (main): Invoke test_ascii and test_nonascii.
48449         * modules/uninorm/u16-normcmp-tests (Files): Add
48450         tests/uninorm/test-u16-normcmp.h.
48451         (Depends-on): Remove uninorm/u16-normcmp.
48452
48453         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48454         tests/uninorm/test-u8-normcmp.c.
48455         * tests/uninorm/test-u8-normcmp.c: Include it.
48456         (test_nonascii): New function, extracted from main. Add some more
48457         tests.
48458         (main): Invoke test_ascii and test_nonascii.
48459         * modules/uninorm/u8-normcmp-tests (Files): Add
48460         tests/uninorm/test-u8-normcmp.h.
48461         (Depends-on): Remove uninorm/u8-normcmp.
48462
48463 2009-03-07  Bruno Haible  <bruno@clisp.org>
48464
48465         New module 'uninorm/u32-normcoll'.
48466         * lib/uninorm/u32-normcoll.c: New file.
48467         * modules/uninorm/u32-normcoll: New file.
48468
48469         New module 'uninorm/u16-normcoll'.
48470         * lib/uninorm/u16-normcoll.c: New file.
48471         * modules/uninorm/u16-normcoll: New file.
48472
48473         New module 'uninorm/u8-normcoll'.
48474         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48475         declarations.
48476         * lib/uninorm/u8-normcoll.c: New file.
48477         * lib/uninorm/u-normcoll.h: New file.
48478         * modules/uninorm/u8-normcoll: New file.
48479
48480         New module 'uninorm/u32-normxfrm'.
48481         * lib/uninorm/u32-normxfrm.c: New file.
48482         * modules/uninorm/u32-normxfrm: New file.
48483
48484         New module 'uninorm/u16-normxfrm'.
48485         * lib/uninorm/u16-normxfrm.c: New file.
48486         * modules/uninorm/u16-normxfrm: New file.
48487
48488         New module 'uninorm/u8-normxfrm'.
48489         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48490         declarations.
48491         * lib/uninorm/u8-normxfrm.c: New file.
48492         * lib/uninorm/u-normxfrm.h: New file.
48493         * modules/uninorm/u8-normxfrm: New file.
48494
48495 2009-03-07  Bruno Haible  <bruno@clisp.org>
48496
48497         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48498         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48499         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48500
48501 2009-03-07  Bruno Haible  <bruno@clisp.org>
48502
48503         New module 'memxfrm'.
48504         * lib/memxfrm.h: New file.
48505         * lib/memxfrm.c: New file.
48506         * modules/memxfrm: New file.
48507
48508 2009-03-07  Bruno Haible  <bruno@clisp.org>
48509
48510         New module 'memcmp2'.
48511         * lib/memcmp2.h: New file.
48512         * lib/memcmp2.c: New file.
48513         * modules/memcmp2: New file.
48514
48515 2009-03-07  Bruno Haible  <bruno@clisp.org>
48516
48517         Tests for module 'uninorm/decomposing-form'.
48518         * modules/uninorm/decomposing-form-tests: New file.
48519         * tests/uninorm/test-decomposing-form.c: New file.
48520
48521         New module 'uninorm/decomposing-form'.
48522         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
48523         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
48524         Add 'decomposing_variant' field.
48525         * lib/uninorm/decomposing-form.c: New file.
48526         * lib/uninorm/nfc.c (uninorm_nfc): Update.
48527         * lib/uninorm/nfd.c (uninorm_nfd): Update.
48528         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
48529         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
48530         * modules/uninorm/decomposing-form: New file.
48531         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
48532         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
48533
48534 2009-03-07  Bruno Haible  <bruno@clisp.org>
48535
48536         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
48537         strings.
48538
48539 2009-03-06  Bruno Haible  <bruno@clisp.org>
48540
48541         Tests for module 'uninorm/u32-normcmp'.
48542         * tests/uninorm/test-u32-normcmp.c: New file.
48543         * modules/uninorm/u32-normcmp-tests: New file.
48544
48545         Tests for module 'uninorm/u16-normcmp'.
48546         * tests/uninorm/test-u16-normcmp.c: New file.
48547         * modules/uninorm/u16-normcmp-tests: New file.
48548
48549         Tests for module 'uninorm/u8-normcmp'.
48550         * tests/uninorm/test-u8-normcmp.c: New file.
48551         * modules/uninorm/u8-normcmp-tests: New file.
48552
48553         New module 'uninorm/u32-normcmp'.
48554         * lib/uninorm/u32-normcmp.c: New file.
48555         * modules/uninorm/u32-normcmp: New file.
48556
48557         New module 'uninorm/u16-normcmp'.
48558         * lib/uninorm/u16-normcmp.c: New file.
48559         * modules/uninorm/u16-normcmp: New file.
48560
48561         New module 'uninorm/u8-normcmp'.
48562         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
48563         declarations.
48564         * lib/uninorm/u8-normcmp.c: New file.
48565         * lib/uninorm/u-normcmp.h: New file.
48566         * modules/uninorm/u8-normcmp: New file.
48567
48568 2009-03-06  Bruno Haible  <bruno@clisp.org>
48569
48570         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
48571         Reported by Eric Blake.
48572
48573 2009-03-06  Eric Blake  <ebb9@byu.net>
48574             Bruno Haible  <bruno@clisp.org>
48575
48576         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
48577         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
48578         condition.
48579         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48580         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
48581         condition.
48582         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
48583
48584 2009-03-06  Eric Blake  <ebb9@byu.net>
48585
48586         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
48587         to avoid compiler warnings.
48588         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
48589
48590 2009-03-05  Bruno Haible  <bruno@clisp.org>
48591
48592         * tests/test-ftell.c (main): Disable test beyond end of file on
48593         FreeMiNT.
48594         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48595
48596 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
48597
48598         * lib/filevercmp.c: Move hidden files up in ordering.
48599         * tests/test-filevercmp.c: Add tests for hidden files.
48600
48601 2009-03-04  Bruno Haible  <bruno@clisp.org>
48602
48603         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
48604         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
48605         AM_CFLAGS.
48606         Reported by Simon Josefsson.
48607
48608 2009-03-03  Bruno Haible  <bruno@clisp.org>
48609
48610         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
48611         Reported by Simon Josefsson.
48612
48613         * doc/ld-version-script.texi: Update node reference.
48614
48615 2009-03-03  Bruno Haible  <bruno@clisp.org>
48616
48617         * modules/visibility (License): Change to 'unlimited'.
48618         Suggested by Simon Josefsson.
48619
48620 2009-03-03  Jim Meyering  <meyering@redhat.com>
48621
48622         unlinkdir: cannot_unlink_dir may modify process state
48623         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
48624         it's neither thread-safe nor appropriate for use in a library.
48625
48626 2009-03-03  Eric Blake  <ebb9@byu.net>
48627
48628         test-closein: silence test under Darwin
48629         * tests/test-closein.sh: Ignore stderr from cat, since we don't
48630         care if it dies from EPIPE or EBADF.
48631
48632 2009-03-03  Bruno Haible  <bruno@clisp.org>
48633
48634         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
48635         earlier.
48636         * doc/visibility.texi: Fix @node and @section.
48637
48638 2009-03-03  Simon Josefsson  <simon@josefsson.org>
48639
48640         * doc/gnulib.texi: Link to sections for ld version script and
48641         visibility.
48642         * doc/visibility.texi: Add @node and @section.
48643         * modules/ld-version-script: New module.
48644         * m4/ld-version-script.m4: New file.
48645         * doc/ld-version-script.texi: New file.
48646
48647 2009-03-02  David Lutterkort  <lutter@redhat.com>
48648
48649         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
48650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48651
48652 2009-03-02  Bruno Haible  <bruno@clisp.org>
48653
48654         * doc/visibility.texi: Mention libtool's -export-symbols option.
48655
48656 2009-03-02  Jim Meyering  <meyering@redhat.com>
48657
48658         announce-gen: new option: --no-print-checksums
48659         * build-aux/announce-gen (usage): Describe it.
48660         (print_checksums): Print a newline here, not in the [*] footnote.
48661         (main): Honor it.
48662
48663 2009-03-01  Bruno Haible  <bruno@clisp.org>
48664
48665         Use socklen_t in the native Windows replacements prototypes.
48666         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
48667         instead of 'int'.
48668         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48669         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48670         * modules/getsockopt (Depends-on): Add socklen.
48671         * modules/setsockopt (Depends-on): Add socklen.
48672
48673 2009-03-01  Bruno Haible  <bruno@clisp.org>
48674
48675         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
48676         least 4.2.
48677
48678 2009-03-01  Eric Blake  <ebb9@byu.net>
48679             Bruno Haible  <bruno@clisp.org>
48680
48681         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
48682         error messages.
48683         * lib/wait-process.c (wait_subprocess): Omit error message about
48684         deadly signal sent to the child of termsigp != NULL.
48685
48686 2009-03-01  Eric Blake  <ebb9@byu.net>
48687
48688         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
48689
48690 2009-03-01  Bruno Haible  <bruno@clisp.org>
48691
48692         Avoid a gcc warning.
48693         * tests/test-sched.c (b): Make global.
48694         Reported by Eric Blake.
48695
48696 2009-01-19  Martin Lambers  <marlam@marlam.de>
48697
48698         Provide POSIX semantics for socket timeout options on W32.
48699         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
48700         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
48701         * modules/setsockopt: Depend on sys_time module for struct timeval.
48702         * modules/getsockopt: Depend on sys_time module for struct timeval.
48703
48704 2009-03-01  Simon Josefsson  <simon@josefsson.org>
48705
48706         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
48707         __USE_GNU, for consistency with netdb.in.h.
48708         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48709
48710 2009-03-01  Bruno Haible  <bruno@clisp.org>
48711
48712         More support for FreeMiNT.
48713         * lib/fseeko.c (rpl_fseeko): Complete last commit.
48714         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48715
48716 2009-03-01  Bruno Haible  <bruno@clisp.org>
48717
48718         More support for FreeMiNT.
48719         * lib/fpurge.c (fpurge): Correct last commit.
48720         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48721
48722 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48723
48724         Fix unportable awk script in vc-list-files.
48725         * build-aux/vc-list-files: In the replacement awk script, use
48726         substr with a second argument of 1, not zero.
48727         Report by Simon Josefsson.
48728
48729 2009-02-28  Bruno Haible  <bruno@clisp.org>
48730
48731         More support for FreeMiNT.
48732         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
48733         to FreeMiNT today.
48734         * lib/fwriting.c (fwriting): Likewise.
48735         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
48736
48737 2009-02-28  Bruno Haible  <bruno@clisp.org>
48738
48739         * tests/test-freadseek.c (main): Disable test beyond end of file on
48740         FreeMiNT.
48741         * tests/test-ftello.c (main): Likewise.
48742         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
48743
48744 2009-02-28  Bruno Haible  <bruno@clisp.org>
48745
48746         Add tentative support for FreeMiNT.
48747         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
48748         * lib/fpurge.c (fpurge): Likewise.
48749         * lib/freadable.c (freadable): Likewise.
48750         * lib/freading.c (freading): Likewise.
48751         * lib/freadptr.c (freadptr): Likewise.
48752         * lib/freadseek.c (freadptrinc): Likewise.
48753         * lib/fseeko.c (rpl_fseeko): Likewise.
48754         * lib/fseterr.c (fseterr): Likewise.
48755         * lib/fwritable.c (fwritable): Likewise.
48756         * lib/fwriting.c (fwriting): Likewise.
48757         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
48758         Hourihane.
48759         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
48760
48761 2009-02-28  Bruno Haible  <bruno@clisp.org>
48762
48763         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
48764         SIGCHLD.
48765         Reported by Jim Meyering.
48766
48767 2009-02-28  Bruno Haible  <bruno@clisp.org>
48768
48769         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
48770         Mention the results of these tests on various platforms.
48771         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
48772         order.
48773         * doc/posix-functions/printf.texi: Likewise.
48774         * doc/posix-functions/snprintf.texi: Likewise.
48775         * doc/posix-functions/sprintf.texi: Likewise.
48776         * doc/posix-functions/vfprintf.texi: Likewise.
48777         * doc/posix-functions/vprintf.texi: Likewise.
48778         * doc/posix-functions/vsnprintf.texi: Likewise.
48779         * doc/posix-functions/vsprintf.texi: Likewise.
48780         * doc/glibc-functions/obstack_printf.texi: Likewise.
48781         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
48782
48783 2009-02-28  Bruno Haible  <bruno@clisp.org>
48784
48785         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
48786         Reported by Loïc Minier <lool@dooz.org>.
48787
48788 2009-02-27  Bruno Haible  <bruno@clisp.org>
48789
48790         * gnulib-tool (func_import): Make the sed expression used to create the
48791         sed script for updating the .gitignore file POSIX compliant.
48792         Reported by Eric Blake.
48793
48794 2009-02-27  Bruno Haible  <bruno@clisp.org>
48795
48796         * gnulib-tool (sed): Don't alias as "sed --posix".
48797         Reported by Eric Blake.
48798
48799 2009-02-27  Bruno Haible  <bruno@clisp.org>
48800
48801         Avoid test link errors.
48802         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
48803         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
48804         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
48805         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
48806         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48807
48808 2009-02-27  Bruno Haible  <bruno@clisp.org>
48809
48810         Avoid spurious "(cached)" in configure output.
48811         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
48812         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
48813         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
48814         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
48815         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
48816         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
48817         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
48818         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
48819         Reported by Eric Blake.
48820
48821 2009-02-27  Eric Blake  <ebb9@byu.net>
48822
48823         printf: fix regression in previous patch
48824         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
48825
48826 2009-02-27  Bruno Haible  <bruno@clisp.org>
48827
48828         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
48829         value.
48830         * lib/stdint.in.h: Likewise.
48831         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
48832
48833 2009-02-27  Eric Blake  <ebb9@byu.net>
48834
48835         doc: mention more functions added in cygwin 1.7.0
48836         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
48837         addition.
48838         * doc/posix-functions/open_wmemstream.texi: Likewise.
48839         * doc/posix-functions/wcsnlen.texi: Likewise.
48840         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48841         * doc/posix-functions/wcstod.texi: Likewise.
48842         * doc/posix-functions/wcstof.texi: Likewise.
48843         * doc/posix-functions/wcstoimax.texi: Likewise.
48844         * doc/posix-functions/wcstok.texi: Likewise.
48845         * doc/posix-functions/wcstoumax.texi: Likewise.
48846
48847         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
48848         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
48849         * doc/posix-functions/fprintf.texi: Update.
48850         * doc/posix-functions/printf.texi: Update.
48851         * doc/posix-functions/snprintf.texi: Update.
48852         * doc/posix-functions/sprintf.texi: Update.
48853         * doc/posix-functions/vfprintf.texi: Update.
48854         * doc/posix-functions/vprintf.texi: Update.
48855         * doc/posix-functions/vsnprintf.texi: Update.
48856         * doc/posix-functions/vsprintf.texi: Update.
48857         * doc/glibc-functions/obstack_printf.texi: Update.
48858         * doc/glibc-functions/obstack_vprintf.texi: Update.
48859
48860 2009-02-26  Eric Blake  <ebb9@byu.net>
48861
48862         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
48863         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
48864         compilation bug by using runtime conversion.
48865         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48866         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
48867         * modules/ceill-tests (Files): Use nan.h.
48868         * modules/floorl-tests (Files): Likewise.
48869         * modules/frexpl-tests (Files): Likewise.
48870         * modules/isnanl-tests (Files): Likewise.
48871         * modules/ldexpl-tests (Files): Likewise.
48872         * modules/roundl-tests (Files): Likewise.
48873         * modules/truncl-tests (Files): Likewise.
48874         * tests/test-ceill.c (main): Use a working NaN.
48875         * tests/test-floorl.c (main): Likewise.
48876         * tests/test-frexpl.c (main): Likewise.
48877         * tests/test-isnan.c (test_long_double): Likewise.
48878         * tests/test-isnanl.h (main): Likewise.
48879         * tests/test-ldexpl.h (main): Likewise.
48880         * tests/test-roundl.h (main): Likewise.
48881         * tests/test-truncl.h (main): Likewise.
48882         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
48883
48884 2009-02-26  Eric Blake  <ebb9@byu.net>
48885             Bruno Haible  <bruno@clisp.org>
48886
48887         Work around a *printf bug with %ls on Solaris.
48888         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
48889         precision is specified, sprintf stops converting the wide string
48890         argument when the number of bytes that have been produced by this
48891         conversion equals or exceeds the precision.
48892         * doc/posix-functions/fprintf.texi: Update.
48893         * doc/posix-functions/printf.texi: Update.
48894         * doc/posix-functions/snprintf.texi: Update.
48895         * doc/posix-functions/sprintf.texi: Update.
48896         * doc/posix-functions/vfprintf.texi: Update.
48897         * doc/posix-functions/vprintf.texi: Update.
48898         * doc/posix-functions/vsnprintf.texi: Update.
48899         * doc/posix-functions/vsprintf.texi: Update.
48900         * doc/glibc-functions/obstack_printf.texi: Update.
48901         * doc/glibc-functions/obstack_vprintf.texi: Update.
48902
48903 2009-02-26  Eric Blake  <ebb9@byu.net>
48904
48905         stdlib: favor compiler check of random.h
48906         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48907         to avoid an ObjC random.h installed by Swarm.
48908
48909 2009-02-26  Bruno Haible  <bruno@clisp.org>
48910
48911         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48912         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48913         Reported by Gary V. Vaughan <gary@gnu.org>.
48914
48915 2009-02-26  Bruno Haible  <bruno@clisp.org>
48916
48917         Fix *printf behaviour regarding the %ls directive.
48918         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48919         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48920         NEED_PRINTF_DIRECTIVE_LS.
48921         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
48922         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48923         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48924         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
48925         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
48926         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
48927         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48928         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48929         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48930         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48931         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48932         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
48933         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48935         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48936         * doc/posix-functions/fprintf.texi: Update.
48937         * doc/posix-functions/printf.texi: Update.
48938         * doc/posix-functions/snprintf.texi: Update.
48939         * doc/posix-functions/sprintf.texi: Update.
48940         * doc/posix-functions/vfprintf.texi: Update.
48941         * doc/posix-functions/vprintf.texi: Update.
48942         * doc/posix-functions/vsnprintf.texi: Update.
48943         * doc/posix-functions/vsprintf.texi: Update.
48944         * doc/glibc-functions/obstack_printf.texi: Update.
48945         * doc/glibc-functions/obstack_vprintf.texi: Update.
48946         Reported by Eric Blake.
48947
48948 2009-02-25  Bruno Haible  <bruno@clisp.org>
48949
48950         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
48951         with known value.
48952         Reported by Gary V. Vaughan <gary@gnu.org>.
48953
48954 2009-02-25  Bruno Haible  <bruno@clisp.org>
48955
48956         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
48957         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
48958         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
48959         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
48960         Reported by Gary V. Vaughan <gary@gnu.org>.
48961
48962 2009-02-25  Bruno Haible  <bruno@clisp.org>
48963
48964         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
48965         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
48966         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
48967         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
48968         Reported by Gary V. Vaughan <gary@gnu.org>.
48969
48970 2009-02-25  Eric Blake  <ebb9@byu.net>
48971
48972         tests: skip fseek/ftell tests if ungetc is broken
48973         * m4/ungetc.m4: New file.
48974         * modules/fseek-tests: Split test, so ungetc dependency is
48975         separate from rest of test.
48976         * modules/fseeko-tests: Likewise.
48977         * modules/ftell-tests: Likewise.
48978         * modules/ftello-tests: Likewise.
48979         * tests/test-fseek.c (main): Isolate ungetc dependency.
48980         * tests/test-fseeko.c (main): Likewise.
48981         * tests/test-ftell.c (main): Likewise.
48982         * tests/test-ftello.c (main): Likewise.
48983         * tests/test-fseek2.sh: New file.
48984         * tests/test-fseeko2.sh: Likewise.
48985         * tests/test-ftell2.sh: Likewise.
48986         * tests/test-ftello2.sh: Likewise.
48987
48988 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
48989
48990         test-getaddrinfo: fix usage of skip return code 77
48991         * tests/test-gettaddrinfo.c: Return skip code 77 only
48992         for first occurrence of skip (4x77 is not 77)
48993
48994 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48995
48996         strtod: avoid C99 decl-after-statement
48997         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48998
48999 2009-02-24  Eric Blake  <ebb9@byu.net>
49000
49001         strtod: detect HP-UX 11.31 bug
49002         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49003         Reported by Gary V. Vaughan.
49004
49005 2009-02-23  Bruno Haible  <bruno@clisp.org>
49006
49007         Fix invalid read past end of memory block.
49008         * lib/vasnprintf.c (DCHAR_SET): Define.
49009         (local_wcslen): Define only when needed.
49010         (local_strnlen, local_wcsnlen): New functions.
49011         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49012         directives that involve a conversion ourselves.
49013         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49014         wcsnlen, mbrtowc, wcrtomb.
49015         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49016         * tests/test-vasprintf-posix.c (test_function): Likewise.
49017         * tests/test-snprintf-posix.h (test_function): Likewise.
49018         * tests/test-sprintf-posix.h (test_function): Likewise.
49019         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49020
49021 2009-02-22  Bruno Haible  <bruno@clisp.org>
49022
49023         Implement new clarified decomposition of Hangul syllables.
49024         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49025         of type LTV, return only a pairwise decomposition.
49026         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49027         Likewise.
49028         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49029         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49030         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49031
49032 2009-02-22  Bruno Haible  <bruno@clisp.org>
49033
49034         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49035         zero-length results and shrink excess allocated memory.
49036         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49037         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49038         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49039         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49040         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49041         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49042         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49043         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49044         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49045         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49046         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49047         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49048
49049 2009-02-21  Bruno Haible  <bruno@clisp.org>
49050
49051         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49052         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49053         spaces after a period. Put a space between a macro name and its
49054         argument list. Trivial rewordings.
49055         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49056         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49057         (main): Return 0 explicitly.
49058
49059 2009-02-21  Bruno Haible  <bruno@clisp.org>
49060
49061         Tests for module 'uninorm/filter'.
49062         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49063         * modules/uninorm/filter-tests: New file.
49064
49065         New module 'uninorm/filter'.
49066         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49067         uninorm_filter_flush, uninorm_filter_free): New declarations.
49068         * lib/uninorm/uninorm-filter.c: New file.
49069         * modules/uninorm/filter: New file.
49070
49071 2009-02-21  Bruno Haible  <bruno@clisp.org>
49072
49073         Tests for module 'uninorm/nfkc'.
49074         * tests/uninorm/test-nfkc.c: New file.
49075         * tests/uninorm/test-u8-nfkc.c: New file.
49076         * tests/uninorm/test-u16-nfkc.c: New file.
49077         * tests/uninorm/test-u32-nfkc.c: New file.
49078         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49079         * tests/uninorm/test-u32-nfkc-big.c: New file.
49080         * modules/uninorm/nfkc-tests: New file.
49081
49082         New module 'uninorm/nfkc'.
49083         * lib/uninorm/nfkc.c: New file.
49084         * modules/uninorm/nfkc: New file.
49085
49086         Tests for module 'uninorm/nfkd'.
49087         * tests/uninorm/test-nfkd.c: New file.
49088         * tests/uninorm/test-u8-nfkd.c: New file.
49089         * tests/uninorm/test-u16-nfkd.c: New file.
49090         * tests/uninorm/test-u32-nfkd.c: New file.
49091         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49092         * tests/uninorm/test-u32-nfkd-big.c: New file.
49093         * modules/uninorm/nfkd-tests: New file.
49094
49095         New module 'uninorm/nfkd'.
49096         * lib/uninorm/nfkd.c: New file.
49097         * modules/uninorm/nfkd: New file.
49098
49099         Tests for module 'uninorm/nfc'.
49100         * tests/uninorm/test-nfc.c: New file.
49101         * tests/uninorm/test-u8-nfc.c: New file.
49102         * tests/uninorm/test-u16-nfc.c: New file.
49103         * tests/uninorm/test-u32-nfc.c: New file.
49104         * tests/uninorm/test-u32-nfc-big.sh: New file.
49105         * tests/uninorm/test-u32-nfc-big.c: New file.
49106         * modules/uninorm/nfc-tests: New file.
49107
49108         New module 'uninorm/nfc'.
49109         * lib/uninorm/nfc.c: New file.
49110         * modules/uninorm/nfc: New file.
49111
49112         Tests for module 'uninorm/nfd'.
49113         * tests/uninorm/test-nfd.c: New file.
49114         * tests/uninorm/test-u8-nfd.c: New file.
49115         * tests/uninorm/test-u16-nfd.c: New file.
49116         * tests/uninorm/test-u32-nfd.c: New file.
49117         * tests/uninorm/test-u32-nfd-big.sh: New file.
49118         * tests/uninorm/test-u32-nfd-big.c: New file.
49119         * tests/uninorm/test-u32-normalize-big.h: New file.
49120         * tests/uninorm/test-u32-normalize-big.c: New file.
49121         * tests/uninorm/NormalizationTest.txt: New file, created from
49122         Unicode 5.1.0 NormalizationTest.txt.
49123         * modules/uninorm/nfd-tests: New file.
49124
49125         New module 'uninorm/nfd'.
49126         * lib/uninorm/nfd.c: New file.
49127         * modules/uninorm/nfd: New file.
49128
49129         New module 'uninorm/u32-normalize'.
49130         * lib/uninorm/u32-normalize.c: New file.
49131         * modules/uninorm/u32-normalize: New file.
49132
49133         New module 'uninorm/u16-normalize'.
49134         * lib/uninorm/u16-normalize.c: New file.
49135         * modules/uninorm/u16-normalize: New file.
49136
49137         New module 'uninorm/u8-normalize'.
49138         * lib/uninorm/u8-normalize.c: New file.
49139         * lib/uninorm/normalize-internal.h: New file.
49140         * lib/uninorm/u-normalize-internal.h: New file.
49141         * modules/uninorm/u8-normalize: New file.
49142
49143         New module 'uninorm/decompose-internal'.
49144         * lib/uninorm/decompose-internal.c: New file.
49145         * modules/uninorm/decompose-internal: New file.
49146
49147         Tests for module 'uninorm/composition'.
49148         * tests/uninorm/test-composition.c: New file.
49149         * modules/uninorm/composition-tests: New file.
49150
49151         New module 'uninorm/composition'.
49152         * lib/uninorm/composition.c: New file.
49153         * lib/uninorm/composition-table.gperf: New file, generated by
49154         gen-uni-tables.
49155         * modules/uninorm/composition: New file.
49156
49157         Tests for module 'uninorm/compat-decomposition'.
49158         * tests/uninorm/test-compat-decomposition.c: New file.
49159         * modules/uninorm/compat-decomposition-tests: New file.
49160
49161         New module 'uninorm/compat-decomposition'.
49162         * lib/uninorm/decompose-internal.h: New file.
49163         * lib/uninorm/compat-decomposition.c: New file.
49164         * modules/uninorm/compat-decomposition: New file.
49165
49166         Tests for module 'uninorm/canonical-decomposition'.
49167         * tests/uninorm/test-canonical-decomposition.c: New file.
49168         * modules/uninorm/canonical-decomposition-tests: New file.
49169
49170         New module 'uninorm/canonical-decomposition'.
49171         * lib/uninorm/canonical-decomposition.c: New file.
49172         * modules/uninorm/canonical-decomposition: New file.
49173
49174         Tests for module 'uninorm/decomposition'.
49175         * tests/uninorm/test-decomposition.c: New file.
49176         * modules/uninorm/decomposition-tests: New file.
49177
49178         New module 'uninorm/decomposition'.
49179         * lib/uninorm/decomposition.c: New file.
49180         * modules/uninorm/decomposition: New file.
49181
49182         New module 'uninorm/decomposition-table'.
49183         * lib/uninorm/decomposition-table.h: New file.
49184         * lib/uninorm/decomposition-table.c: New file.
49185         * lib/uninorm/decomposition-table1.h: New file, generated by
49186         gen-uni-tables.
49187         * lib/uninorm/decomposition-table2.h: New file, generated by
49188         gen-uni-tables.
49189         * modules/uninorm/decomposition-table: New file.
49190
49191         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49192         (UC_DECOMP_*): New enumeration items.
49193         (get_decomposition): New function.
49194         (struct decomp_table): New type.
49195         (output_decomposition, output_decomposition_tables): New functions.
49196         (unicode_composition_exclusions): New variable.
49197         (fill_composition_exclusions, debug_output_composition_tables): New
49198         functions.
49199         (main): Accept one more argument. Invoke fill_composition_exclusions.
49200         Output decomposition and composition tables.
49201
49202         New module 'uninorm/base'.
49203         * lib/uninorm.h: New file.
49204         * lib/unictype.h: Update comment.
49205         * modules/uninorm/base: New file.
49206
49207 2009-02-21  David Lutterkort  <lutter@redhat.com>
49208
49209         Tests for module 'safe-alloc'.
49210         * tests/test-safe-alloc.c: New file.
49211         * modules/safe-alloc-tests: New file.
49212
49213         New module 'safe-alloc'.
49214         * lib/safe-alloc.h: New file.
49215         * lib/safe-alloc.c: New file.
49216         * m4/safe-alloc.m4: New file.
49217         * modules/safe-alloc: New file.
49218         * doc/safe-alloc.texi: New file.
49219         * doc/gnulib.texi: Include it.
49220         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49221         safe-alloc.
49222
49223 2009-02-18  Bruno Haible  <bruno@clisp.org>
49224
49225         Fix link error on non-glibc systems.
49226         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49227         variable.
49228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49229
49230 2009-02-18  Jim Meyering  <meyering@redhat.com>
49231
49232         fts: avoid used-uninitialized error due to recent change
49233         * lib/fts.c (fts_read): Guard uses of the new member,
49234         parent->fts_n_dirs_remaining, since it's not relevant for
49235         the parent of a directory specified on the command-line.
49236
49237 2009-02-17  James Youngman  <jay@gnu.org>
49238             Bruno Haible  <bruno@clisp.org>
49239
49240         * m4/include_next.m4: Reformulate comment.
49241
49242 2009-02-16  Jim Meyering  <meyering@redhat.com>
49243
49244         fts: add #if guards so that the fts_lgpl module still builds
49245         * lib/fts.c: Guard just-added hash-table-using parts with
49246         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49247         Reported by Simon Josefsson.
49248
49249 2009-02-15  Bruno Haible  <bruno@clisp.org>
49250
49251         * modules/array-mergesort-tests: New file.
49252         * tests/test-array-mergesort.c: New file.
49253
49254         New module 'array-mergesort'.
49255         * modules/array-mergesort: New file.
49256         * lib/array-mergesort.h: New file.
49257
49258 2009-02-15  Bruno Haible  <bruno@clisp.org>
49259
49260         Fix 2009-02-07 commit.
49261         * lib/gen-uni-tables.c (output_predicate, output_category,
49262         output_combclass, output_bidi_category, output_decimal_digit,
49263         output_digit, output_numeric, output_mirror, output_scripts,
49264         output_ident_category, output_simple_mapping): Fix format directives.
49265         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49266
49267 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49268
49269         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49270         fixes are available from IBM.
49271
49272 2009-02-13  Jim Meyering  <meyering@redhat.com>
49273
49274         fts: arrange not to stat non-directories in more cases
49275         This makes GNU find (when it doesn't need to stat each file)
49276         *much* more efficient at traversing reiserfs file systems.
49277         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49278         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49279         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49280         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49281         (leaf_optimization_applies): New function.
49282         (LCO_hash, LCO_compare): New helper functions.
49283         (link_count_optimize_ok): New function.
49284         (fts_stat): Initialize new member (if dir).
49285         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49286         we've just stat'ed a directory.  Skip the stat call when possible.
49287         ---
49288         Note this AFS-related exchange:
49289         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49290         and note find's pioctl call in find/fstype.c.
49291         But that is necessary only if you want to enable the
49292         optimization for AFS, and for now, I don't.
49293
49294         fts: move a function definition "up" (no semantic change)
49295         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49296         "up" to precede upcoming use of a related function.
49297
49298 2009-02-11  Jim Meyering  <meyering@redhat.com>
49299
49300         fts: correct internal computation of nlinks (optimization-related)
49301         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49302         whether the current entry is a directory, so don't test it.
49303
49304 2009-02-10  Bruno Haible  <bruno@clisp.org>
49305
49306         Tests for module 'uniwbrk/ulc-wordbreaks'.
49307         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49308         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49309         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49310
49311         Tests for module 'uniwbrk/u32-wordbreaks'.
49312         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49313         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49314
49315         Tests for module 'uniwbrk/u16-wordbreaks'.
49316         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49317         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49318
49319         Tests for module 'uniwbrk/u8-wordbreaks'.
49320         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49321         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49322
49323 2009-02-10  Bruno Haible  <bruno@clisp.org>
49324
49325         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49326         property.
49327         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49328         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49329         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49330
49331 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49332
49333         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49334         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49335
49336 2009-02-10  Bruno Haible  <bruno@clisp.org>
49337
49338         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49339         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49340         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49341         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49342         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49343         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49344
49345 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49346
49347         * lib/sockets.h (gl_fd_to_handle): New function.
49348
49349         * tests/test-sockets.c: Call gl_fd_to_handle.
49350
49351 2009-02-09  Bruno Haible  <bruno@clisp.org>
49352
49353         * doc/havelib.texi: Document the conventions on bi-arch systems.
49354
49355 2009-02-08  Bruno Haible  <bruno@clisp.org>
49356
49357         Document the AC_LIB_LINKFLAGS macro.
49358         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49359         * doc/gnulib.texi: Include it.
49360
49361 2009-02-08  Bruno Haible  <bruno@clisp.org>
49362
49363         Fix wrong order of sections, compared to TOC.
49364         * doc/gnulib.texi: Include relocatable-maint.texi after the
49365         "Regular expressions" node, not before.
49366
49367 2009-02-08  Bruno Haible  <bruno@clisp.org>
49368
49369         Tests for module 'unicase/totitle'.
49370         * modules/unicase/totitle-tests: New file.
49371
49372         Tests for module 'unicase/tolower'.
49373         * modules/unicase/tolower-tests: New file.
49374
49375         Tests for module 'unicase/toupper'.
49376         * modules/unicase/toupper-tests: New file.
49377         * tests/unicase/test-mapping-part1.h: New file.
49378         * tests/unicase/test-mapping-part2.h: New file.
49379
49380         New module 'unicase/totitle'.
49381         * modules/unicase/totitle: New file.
49382         * lib/unicase/totitle.c: New file.
49383
49384         New module 'unicase/tolower'.
49385         * modules/unicase/tolower: New file.
49386         * lib/unicase/tolower.c: New file.
49387
49388         New module 'unicase/toupper'.
49389         * modules/unicase/toupper: New file.
49390         * lib/unicase/toupper.c: New file.
49391         * lib/unicase/simple-mapping.h: New file.
49392
49393         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49394         (mapping_table): New structure.
49395         (output_simple_mapping): New function.
49396         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49397         * modules/gen-uni-tables (Description): Update.
49398         * lib/unicase/toupper.h: New file, automatically generated by
49399         gen-uni-tables.
49400         * lib/unicase/tolower.h: New file, automatically generated by
49401         gen-uni-tables.
49402         * lib/unicase/totitle.h: New file, automatically generated by
49403         gen-uni-tables.
49404         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49405         gen-uni-tables.
49406         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49407         gen-uni-tables.
49408         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49409         gen-uni-tables.
49410
49411         New module 'unicase/base'.
49412         * modules/unicase/base: New file.
49413         * lib/unicase.h: New file.
49414
49415 2009-02-08  Bruno Haible  <bruno@clisp.org>
49416
49417         New module 'uniwbrk/ulc-wordbreaks'.
49418         * modules/uniwbrk/ulc-wordbreaks: New file.
49419         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49420
49421         New module 'uniwbrk/u32-wordbreaks'.
49422         * modules/uniwbrk/u32-wordbreaks: New file.
49423         * lib/uniwbrk/u32-wordbreaks.c: New file.
49424
49425         New module 'uniwbrk/u16-wordbreaks'.
49426         * modules/uniwbrk/u16-wordbreaks: New file.
49427         * lib/uniwbrk/u16-wordbreaks.c: New file.
49428
49429         New module 'uniwbrk/u8-wordbreaks'.
49430         * modules/uniwbrk/u8-wordbreaks: New file.
49431         * lib/uniwbrk/u8-wordbreaks.c: New file.
49432         * lib/uniwbrk/u-wordbreaks.h: New file.
49433
49434         New module 'uniwbrk/table'.
49435         * modules/uniwbrk/table: New file.
49436         * lib/uniwbrk/wbrktable.h: New file.
49437         * lib/uniwbrk/wbrktable.c: New file.
49438
49439         New module 'uniwbrk/wordbreak-property'.
49440         * modules/uniwbrk/wordbreak-property: New file.
49441         * lib/uniwbrk/wordbreak-property.c: New file.
49442
49443         * lib/gen-uni-tables.c (WBP_*): New enum items.
49444         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49445         (unicode_org_wbp): New variable.
49446         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49447         New functions.
49448         (wbp_table): New structure.
49449         (output_wbp, output_wbrk_tables): New functions.
49450         (main): Accept additional argument. Invoke fill_org_wbp,
49451         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49452         output_wbrk_tables.
49453         * modules/gen-uni-tables (Description): Update.
49454         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49455         gen-uni-tables.
49456
49457         New module 'uniwbrk/base'.
49458         * modules/uniwbrk/base: New file.
49459         * lib/uniwbrk.h: New file.
49460
49461 2009-02-08  Bruno Haible  <bruno@clisp.org>
49462
49463         Update to Unicode 5.1.0.
49464         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49465         U+2185..U+2188.
49466         (is_property_default_ignorable_code_point): Don't include characters
49467         of category Cc or Cs and not-a-characters.
49468         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49469         U+0D79, U+109E, U+109F, U+A60C.
49470         * lib/unictype/bidi_of.h: Regenerated.
49471         * lib/unictype/blocks.h: Regenerated.
49472         * lib/unictype/categ_C.h: Regenerated.
49473         * lib/unictype/categ_Cf.h: Regenerated.
49474         * lib/unictype/categ_Cn.h: Regenerated.
49475         * lib/unictype/categ_L.h: Regenerated.
49476         * lib/unictype/categ_Ll.h: Regenerated.
49477         * lib/unictype/categ_Lm.h: Regenerated.
49478         * lib/unictype/categ_Lo.h: Regenerated.
49479         * lib/unictype/categ_Lu.h: Regenerated.
49480         * lib/unictype/categ_M.h: Regenerated.
49481         * lib/unictype/categ_Mc.h: Regenerated.
49482         * lib/unictype/categ_Me.h: Regenerated.
49483         * lib/unictype/categ_Mn.h: Regenerated.
49484         * lib/unictype/categ_N.h: Regenerated.
49485         * lib/unictype/categ_Nd.h: Regenerated.
49486         * lib/unictype/categ_Nl.h: Regenerated.
49487         * lib/unictype/categ_No.h: Regenerated.
49488         * lib/unictype/categ_P.h: Regenerated.
49489         * lib/unictype/categ_Pd.h: Regenerated.
49490         * lib/unictype/categ_Pe.h: Regenerated.
49491         * lib/unictype/categ_Pf.h: Regenerated.
49492         * lib/unictype/categ_Pi.h: Regenerated.
49493         * lib/unictype/categ_Po.h: Regenerated.
49494         * lib/unictype/categ_Ps.h: Regenerated.
49495         * lib/unictype/categ_S.h: Regenerated.
49496         * lib/unictype/categ_Sk.h: Regenerated.
49497         * lib/unictype/categ_Sm.h: Regenerated.
49498         * lib/unictype/categ_So.h: Regenerated.
49499         * lib/unictype/categ_of.h: Regenerated.
49500         * lib/unictype/combining.h: Regenerated.
49501         * lib/unictype/ctype_alnum.h: Regenerated.
49502         * lib/unictype/ctype_alpha.h: Regenerated.
49503         * lib/unictype/ctype_graph.h: Regenerated.
49504         * lib/unictype/ctype_lower.h: Regenerated.
49505         * lib/unictype/ctype_print.h: Regenerated.
49506         * lib/unictype/ctype_punct.h: Regenerated.
49507         * lib/unictype/ctype_upper.h: Regenerated.
49508         * lib/unictype/decdigit.h: Regenerated.
49509         * lib/unictype/digit.h: Regenerated.
49510         * lib/unictype/mirror.h: Regenerated.
49511         * lib/unictype/numeric.h: Regenerated.
49512         * lib/unictype/pr_alphabetic.h: Regenerated.
49513         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
49514         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
49515         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
49516         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
49517         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
49518         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
49519         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
49520         * lib/unictype/pr_combining.h: Regenerated.
49521         * lib/unictype/pr_dash.h: Regenerated.
49522         * lib/unictype/pr_decimal_digit.h: Regenerated.
49523         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
49524         * lib/unictype/pr_deprecated.h: Regenerated.
49525         * lib/unictype/pr_diacritic.h: Regenerated.
49526         * lib/unictype/pr_extender.h: Regenerated.
49527         * lib/unictype/pr_format_control.h: Regenerated.
49528         * lib/unictype/pr_grapheme_base.h: Regenerated.
49529         * lib/unictype/pr_grapheme_extend.h: Regenerated.
49530         * lib/unictype/pr_grapheme_link.h: Regenerated.
49531         * lib/unictype/pr_id_continue.h: Regenerated.
49532         * lib/unictype/pr_id_start.h: Regenerated.
49533         * lib/unictype/pr_ideographic.h: Regenerated.
49534         * lib/unictype/pr_ignorable_control.h: Regenerated.
49535         * lib/unictype/pr_lowercase.h: Regenerated.
49536         * lib/unictype/pr_math.h: Regenerated.
49537         * lib/unictype/pr_numeric.h: Regenerated.
49538         * lib/unictype/pr_other_alphabetic.h: Regenerated.
49539         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
49540         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
49541         * lib/unictype/pr_other_id_continue.h: Regenerated.
49542         * lib/unictype/pr_other_lowercase.h: Regenerated.
49543         * lib/unictype/pr_other_math.h: Regenerated.
49544         * lib/unictype/pr_punctuation.h: Regenerated.
49545         * lib/unictype/pr_sentence_terminal.h: Regenerated.
49546         * lib/unictype/pr_soft_dotted.h: Regenerated.
49547         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
49548         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
49549         * lib/unictype/pr_unified_ideograph.h: Regenerated.
49550         * lib/unictype/pr_uppercase.h: Regenerated.
49551         * lib/unictype/pr_xid_continue.h: Regenerated.
49552         * lib/unictype/pr_xid_start.h: Regenerated.
49553         * lib/unictype/pr_zero_width.h: Regenerated.
49554         * lib/unictype/scripts.h: Regenerated.
49555         * lib/unictype/scripts_byname.gperf: Regenerated.
49556         * lib/unictype/sy_java_ident.h: Regenerated.
49557         * lib/unilbrk/lbrkprop1.h: Regenerated.
49558         * lib/unilbrk/lbrkprop2.h: Regenerated.
49559         * tests/unictype/test-categ_C.c: Regenerated.
49560         * tests/unictype/test-categ_Cf.c: Regenerated.
49561         * tests/unictype/test-categ_Cn.c: Regenerated.
49562         * tests/unictype/test-categ_L.c: Regenerated.
49563         * tests/unictype/test-categ_Ll.c: Regenerated.
49564         * tests/unictype/test-categ_Lm.c: Regenerated.
49565         * tests/unictype/test-categ_Lo.c: Regenerated.
49566         * tests/unictype/test-categ_Lu.c: Regenerated.
49567         * tests/unictype/test-categ_M.c: Regenerated.
49568         * tests/unictype/test-categ_Mc.c: Regenerated.
49569         * tests/unictype/test-categ_Me.c: Regenerated.
49570         * tests/unictype/test-categ_Mn.c: Regenerated.
49571         * tests/unictype/test-categ_N.c: Regenerated.
49572         * tests/unictype/test-categ_Nd.c: Regenerated.
49573         * tests/unictype/test-categ_Nl.c: Regenerated.
49574         * tests/unictype/test-categ_No.c: Regenerated.
49575         * tests/unictype/test-categ_P.c: Regenerated.
49576         * tests/unictype/test-categ_Pd.c: Regenerated.
49577         * tests/unictype/test-categ_Pe.c: Regenerated.
49578         * tests/unictype/test-categ_Pf.c: Regenerated.
49579         * tests/unictype/test-categ_Pi.c: Regenerated.
49580         * tests/unictype/test-categ_Po.c: Regenerated.
49581         * tests/unictype/test-categ_Ps.c: Regenerated.
49582         * tests/unictype/test-categ_S.c: Regenerated.
49583         * tests/unictype/test-categ_Sk.c: Regenerated.
49584         * tests/unictype/test-categ_Sm.c: Regenerated.
49585         * tests/unictype/test-categ_So.c: Regenerated.
49586         * tests/unictype/test-ctype_alnum.c: Regenerated.
49587         * tests/unictype/test-ctype_alpha.c: Regenerated.
49588         * tests/unictype/test-ctype_graph.c: Regenerated.
49589         * tests/unictype/test-ctype_lower.c: Regenerated.
49590         * tests/unictype/test-ctype_print.c: Regenerated.
49591         * tests/unictype/test-ctype_punct.c: Regenerated.
49592         * tests/unictype/test-ctype_upper.c: Regenerated.
49593         * tests/unictype/test-decdigit.h: Regenerated.
49594         * tests/unictype/test-digit.h: Regenerated.
49595         * tests/unictype/test-numeric.h: Regenerated.
49596         * tests/unictype/test-pr_alphabetic.c: Regenerated.
49597         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
49598         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
49599         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
49600         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
49601         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
49602         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
49603         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
49604         * tests/unictype/test-pr_combining.c: Regenerated.
49605         * tests/unictype/test-pr_dash.c: Regenerated.
49606         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
49607         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
49608         * tests/unictype/test-pr_deprecated.c: Regenerated.
49609         * tests/unictype/test-pr_diacritic.c: Regenerated.
49610         * tests/unictype/test-pr_extender.c: Regenerated.
49611         * tests/unictype/test-pr_format_control.c: Regenerated.
49612         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
49613         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
49614         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
49615         * tests/unictype/test-pr_id_continue.c: Regenerated.
49616         * tests/unictype/test-pr_id_start.c: Regenerated.
49617         * tests/unictype/test-pr_ideographic.c: Regenerated.
49618         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
49619         * tests/unictype/test-pr_lowercase.c: Regenerated.
49620         * tests/unictype/test-pr_math.c: Regenerated.
49621         * tests/unictype/test-pr_numeric.c: Regenerated.
49622         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
49623         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
49624         Regenerated.
49625         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
49626         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
49627         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
49628         * tests/unictype/test-pr_other_math.c: Regenerated.
49629         * tests/unictype/test-pr_punctuation.c: Regenerated.
49630         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
49631         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
49632         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
49633         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
49634         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
49635         * tests/unictype/test-pr_uppercase.c: Regenerated.
49636         * tests/unictype/test-pr_xid_continue.c: Regenerated.
49637         * tests/unictype/test-pr_xid_start.c: Regenerated.
49638         * tests/unictype/test-pr_zero_width.c: Regenerated.
49639
49640         Update to Unicode 5.1.0.
49641         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
49642         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
49643         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
49644         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
49645         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
49646         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
49647         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
49648         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
49649         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
49650         (nonspacing_table_ind): Update.
49651         * tests/uniwidth/test-uc_width2.sh: Update expected result.
49652
49653         Update to Unicode 5.1.0.
49654         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
49655         code transform.
49656         * lib/uniname/uniname.c (unicode_character_name,
49657         unicode_name_character): Add the range 0x1Fxxx to the code transform.
49658         * lib/uniname/uninames.h: Regenerated.
49659         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
49660
49661 2009-02-07  Bruno Haible  <bruno@clisp.org>
49662
49663         Merge gen-ctype and gen-lbrk into a single program.
49664         * lib/gen-uni-tables.c: New file, incorporating
49665         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
49666         Add directory prefixes to the names of the generated files.
49667         * lib/unictype/gen-ctype.c: Remove file.
49668         * lib/unilbrk/gen-lbrk.c: Remove file.
49669         * modules/gen-uni-tables: New file.
49670         * modules/unictype/gen-ctype: Remove file.
49671         * modules/unilbrk/gen-lbrk: Remove file.
49672
49673 2009-02-07  Bruno Haible  <bruno@clisp.org>
49674
49675         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
49676
49677         New module 'unistr/u32-strcoll'.
49678         * modules/unistr/u32-strcoll: New file.
49679         * lib/unistr/u32-strcoll.c: New file.
49680
49681         New module 'unistr/u16-strcoll'.
49682         * modules/unistr/u16-strcoll: New file.
49683         * lib/unistr/u16-strcoll.c: New file.
49684
49685         New module 'unistr/u8-strcoll'.
49686         * modules/unistr/u8-strcoll: New file.
49687         * lib/unistr/u8-strcoll.c: New file.
49688         * lib/unistr/u-strcoll.h: New file.
49689
49690 2009-02-07  Bruno Haible  <bruno@clisp.org>
49691
49692         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
49693         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49694         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
49695         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
49696         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
49697         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
49698
49699 2009-02-07  Bruno Haible  <bruno@clisp.org>
49700
49701         Make 64-bit clean.
49702         * lib/unictype/gen-ctype.c (output_predicate, output_category,
49703         output_combclass, output_bidi_category, output_decimal_digit,
49704         output_digit, output_numeric, output_mirror, output_scripts,
49705         output_ident_category): Use proper width specifier in format strings.
49706
49707 2009-02-07  Bruno Haible  <bruno@clisp.org>
49708
49709         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
49710         failure behaviour.
49711
49712 2009-02-07  Jim Meyering  <meyering@redhat.com>
49713
49714         regex: avoid compilation failure with upcoming gcc-4.4
49715         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
49716         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
49717         "... error: integer overflow in preprocessor expression".
49718
49719 2009-02-05  Ben Pfaff  <blp@gnu.org>
49720
49721         Fix link errors on Windows when close module is used.
49722         * modules/close: Add $(LIB_CLOSE) to Link section.
49723         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
49724         $(LIB_CLOSE) on Windows.
49725
49726 2009-02-05  Jim Meyering  <meyering@redhat.com>
49727
49728         still avoid unused-parameter warnings, but do it cleanly
49729         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
49730         (get_fs_usage): Cast to void instead.
49731         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
49732         (dev_from_mount_options, read_file_system_list): Cast to void.
49733         Prompted by Bruno Haible.
49734
49735 2009-02-04  Jim Meyering  <meyering@redhat.com>
49736
49737         fsusage.c: correct copyright year
49738         * lib/fsusage.c: Reflect year in which the change is pushed into
49739
49740         avoid misc. warnings
49741         * lib/fsusage.c (UNUSED_PARAM): Define.
49742         (get_fs_usage): Mark parameter "disk" as unused.
49743         * lib/getugroups.c (getgrent): Use "void" in prototype.
49744         * lib/mountlist.c: Mark unused parameters.
49745         (read_file_system_list): Declare a local with "const".
49746         * lib/nanosleep.c (getnow): Declare static.
49747         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
49748
49749         dirfd: set errno upon failure
49750         * lib/dirfd.c: Include <errno.h>.
49751         Set errno to ENOTSUP when returning -1.
49752         * modules/dirfd (Depends-on): Add errno.
49753         Suggested by John Kodis <kodis@comcast.net>.
49754
49755 2009-02-01  Bruno Haible  <bruno@clisp.org>
49756
49757         Don't assume sizeof (long) >= sizeof (void *).
49758         * lib/memcmp.c: Include stdint.h.
49759         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
49760         srcp2 to 'const byte *'.
49761         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
49762         types to uintptr_t.
49763         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
49764         * modules/memcmp (Depends-on): Add stdint.
49765         Reported by Ozkan Sezer <sezeroz@gmail.com>.
49766
49767 2009-01-30  Eric Blake  <ebb9@byu.net>
49768
49769         fix more require-before-expand issues
49770         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
49771         expand, AC_PROG_AWK.
49772         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
49773
49774 2009-01-28  Eric Blake  <ebb9@byu.net>
49775
49776         version-etc: use consistent URL formatting
49777         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
49778         Improve formatting.  Use fputs for string without %.
49779
49780 2009-01-28  Jim Meyering  <meyering@redhat.com>
49781
49782         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
49783         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
49784         "underquoted definition of NAME" from autoconf-2.59.
49785
49786 2009-01-28  Bruno Haible  <bruno@clisp.org>
49787
49788         * doc/gnulib.texi: Add "Obsolete modules" to index.
49789
49790 2009-01-28  Jim Meyering  <meyering@redhat.com>
49791
49792         useless-if-before-free: recognize more variants
49793         * build-aux/useless-if-before-free: Also recognize e.g.,
49794         if (NULL != p) free (p);
49795
49796 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
49797
49798         test-getaddrinfo: skip (don't fail) this test when there's no network
49799         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
49800         on the presumption that it means you lack network access.
49801
49802 2009-01-26  Jim Meyering  <meyering@redhat.com>
49803
49804         fflush: avoid warnings on modern systems
49805         * lib/fflush.c (rpl_fflush): Move declarations of locals,
49806         pos and result, into scopes where they're used.
49807
49808 2009-01-26  Eric Blake  <ebb9@byu.net>
49809
49810         Silence warning reintroduced by recent extensions patch.
49811         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
49812         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
49813         autoconf.
49814
49815         Backport improved autoconf semantics of AC_DEFUN_ONCE.
49816         * m4/00gnulib.m4: New file.
49817         * gnulib-tool (func_get_filelist): Always use it.
49818         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
49819         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
49820
49821 2009-01-25  Bruno Haible  <bruno@clisp.org>
49822
49823         Make test-quotearg work on MacOS X and AIX.
49824         * tests/test-quotearg.sh: New file.
49825         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
49826         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
49827         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
49828         include <libintl.h>.
49829         (fake_locale): Remove variable.
49830         (gettext, dgettext, dcgettext): Remove functions.
49831         (main): Instead of setting a fake locale, set a real locale. Call
49832         textdomain and bindtextdomain.
49833         * modules/quotearg-tests (Files): Add the new files.
49834         (Depends-on): Add gettext, setenv, unsetenv.
49835         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49836         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
49837         Augment TESTS_ENVIRONMENT.
49838
49839 2009-01-25  Bruno Haible  <bruno@clisp.org>
49840
49841         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
49842         fr_FR.ISO8859-1 locale on MacOS X.
49843         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
49844         ja_JP.eucJP locale on MacOS X.
49845         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
49846         zh_CN.GB18030 locale on MacOS X.
49847
49848 2009-01-25  Bruno Haible  <bruno@clisp.org>
49849
49850         Avoid link errors on MacOS X 10.3.
49851         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
49852         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49853
49854 2009-01-25  Bruno Haible  <bruno@clisp.org>
49855
49856         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49857         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
49858         * modules/pipe (Files): Remove m4/posix_spawn.m4.
49859         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49860         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
49861         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49862         posix_spawnattr_init, posix_spawnattr_setsigmask,
49863         posix_spawnattr_setflags, posix_spawnattr_destroy.
49864
49865         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49866         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
49867         * modules/execute (Files): Remove m4/posix_spawn.m4.
49868         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49869         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49870         posix_spawnattr_init, posix_spawnattr_setsigmask,
49871         posix_spawnattr_setflags, posix_spawnattr_destroy.
49872
49873 2009-01-25  Bruno Haible  <bruno@clisp.org>
49874
49875         * lib/glthread/threadlib.c: Include <stdlib.h>.
49876
49877 2009-01-25  Bruno Haible  <bruno@clisp.org>
49878
49879         * lib/glthread/threadlib.c (dummy): New declaration.
49880
49881 2009-01-25  Bruno Haible  <bruno@clisp.org>
49882
49883         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
49884         multibyte characters also for the GB18030 encoding. Don't crash when
49885         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
49886
49887 2009-01-25  Bruno Haible  <bruno@clisp.org>
49888
49889         Avoid redefining 'struct random_data' on OSF/1 5.1.
49890         * lib/stdlib.in.h: Include <random.h> if it exists.
49891         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
49892         HAVE_RANDOM_H. Include <random.h> when testing whether
49893         'struct random_data' exists.
49894         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
49895
49896 2009-01-25  Bruno Haible  <bruno@clisp.org>
49897
49898         Don't install charset.alias on MacOS X >= 10.3.
49899         * lib/localcharset.c (DARWIN7): New macro.
49900         (get_charset_aliases): Hardcode the result for Darwin7.
49901         * modules/localcharset (install-exec-local): Don't install
49902         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49903
49904 2009-01-25  Bruno Haible  <bruno@clisp.org>
49905
49906         Don't install charset.alias on mingw and Cygwin.
49907         * modules/localcharset (install-exec-local): Don't install
49908         charset.alias on mingw and Cygwin, if the file does not yet exist.
49909         The result for these platforms is hardcoded in localcharset.c.
49910
49911 2009-01-25  Bruno Haible  <bruno@clisp.org>
49912
49913         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49915         before requiring AC_USE_SYSTEM_EXTENSIONS.
49916
49917 2009-01-25  Jim Meyering  <meyering@redhat.com>
49918
49919         c-strtod: avoid warnings
49920         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
49921         "assignment discards qualifiers from pointer target type" warnings.
49922
49923 2009-01-24  Bruno Haible  <bruno@clisp.org>
49924
49925         Add support for non-UTF-8 locales on MacOS X.
49926         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
49927         canonical encodings. For Darwin 7 and newer, don't map traditional
49928         encodings to UTF-8.
49929         Reported by Vincent Lefevre <vincent@vinc17.org>
49930         at <http://savannah.gnu.org/bugs/?25235>.
49931
49932 2009-01-24  Bruno Haible  <bruno@clisp.org>
49933
49934         * doc/gnulib.texi (Obsolete modules): New section.
49935         Reported by Mike Frysinger <vapier@gentoo.org>.
49936
49937 2009-01-24  Bruno Haible  <bruno@clisp.org>
49938
49939         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
49940         (%.dvi): New rule.
49941
49942 2009-01-24  Bruno Haible  <bruno@clisp.org>
49943
49944         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
49945         Reported by Eric Blake.
49946
49947 2009-01-24  Bruno Haible  <bruno@clisp.org>
49948
49949         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
49950         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
49951         Reported by Gary V. Vaughan <gary@gnu.org>.
49952
49953 2009-01-24  Bruno Haible  <bruno@clisp.org>
49954
49955         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
49956
49957 2009-01-23  Bruno Haible  <bruno@clisp.org>
49958
49959         Make c-strtod, c-strtold usable in libraries.
49960         * lib/c-strtod.c: Include string.h instead of xalloc.h.
49961         (C_STRTOD): Call strdup instead of xstrdup.
49962         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
49963         * modules/c-strtold (Depends-on): Likewise.
49964         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
49965         * NEWS: Mention the change.
49966         Reported by Michael Gold <mgold@ncf.ca>.
49967
49968 2009-01-23  Jim Meyering  <meyering@redhat.com>
49969
49970         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
49971         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
49972         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
49973
49974 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49975
49976         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49977         GNU CoreUtils.
49978         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49979         * modules/version-etc (Description): Update.
49980
49981 2009-01-22  Bruno Haible  <bruno@clisp.org>
49982
49983         Cache the C locale object.
49984         * lib/c-strtod.c (c_locale_cache): New variable.
49985         (c_locale): New function.
49986         (C_STRTOD): Use it, and don't call freelocale.
49987         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49988         Suggested by Paolo Bonzini.
49989
49990 2009-01-21  Bruno Haible  <bruno@clisp.org>
49991
49992         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49993         conditions other than overflow.
49994
49995 2009-01-21  Bruno Haible  <bruno@clisp.org>
49996
49997         * lib/c-strtod.c: Include errno.h.
49998         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49999         value from STRTOD_L and STRTOD.
50000
50001 2009-01-21  Bruno Haible  <bruno@clisp.org>
50002         and Jim Meyering  <meyering@redhat.com>
50003
50004         nanosleep: skip configure test (fail it) for apple universal builds
50005         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50006         universal builds, assume that nanosleep does not work.
50007         * modules/nanosleep (Depends-on): Add multiarch.
50008
50009         mktime: skip configure test (fail it) for apple universal builds
50010         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50011         universal builds, assume that mktime does not work.
50012         * modules/mktime (Depends-on): Add multiarch.
50013
50014 2009-01-21  Eric Blake  <ebb9@byu.net>
50015
50016         multiarch: avoid expand-before-require warning
50017         * modules/multiarch (configure.ac): Require, rather than expand,
50018         gl_MULTIARCH.
50019         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50020         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50021         enforce that all clients require it.  Partial reversion of
50022         2008-12-29 patch.
50023
50024         error: avoid expand-before-require warning
50025         * modules/errno (configure.ac): Require, rather than expand,
50026         gl_HEADER_ERRNO_H.
50027         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50028         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50029         enforce that all clients require it.
50030
50031         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50032         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50033         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50034         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50035
50036 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50037
50038         Revert:
50039         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50040
50041         regex: do not depend on obsolete modules.
50042         * modules/regex: Remove memcmp and memmove.
50043
50044 2009-01-20  Bruno Haible  <bruno@clisp.org>
50045
50046         Make the 'link' module link on Windows NT 4.
50047         * lib/link.c (_WIN32_WINNT): Don't define.
50048         (CreateHardLinkFuncType): New type.
50049         (CreateHardLinkFunc, initialized): New variables.
50050         (initialize): New function.
50051         (link): Invoke CreateHardLink indirectly through the function pointer.
50052
50053 2009-01-20  Bruno Haible  <bruno@clisp.org>
50054
50055         Fix compilation failure on mingw.
50056         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50057
50058 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50059
50060         * doc/c-strtod.texi: Mention a couple of restrictions.
50061
50062 2009-01-20  Jim Meyering  <meyering@redhat.com>
50063
50064         gettimeofday: move more declarations out of functions
50065         * lib/gettimeofday.c: Move extern declarations of tzset and
50066         gmtime out of containing functions.  Prompted by Bruno Haible.
50067
50068 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50069
50070         regex: do not depend on obsolete modules.
50071         * modules/regex: Remove memcmp and memmove.
50072
50073 2009-01-19  Bruno Haible  <bruno@clisp.org>
50074
50075         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50076         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50077         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50078         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50079         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50080
50081 2009-01-19  Bruno Haible  <bruno@clisp.org>
50082
50083         * tests/test-link.c: Include <errno.h>.
50084         (main): Exit with code 77 when a hard link cannot be created due to
50085         the file system.
50086         * tests/test-link.sh: Skip test when a hard link cannot be created due
50087         to the file system.
50088         Suggested by Eric Blake.
50089
50090 2009-01-19  Martin Lambers  <marlam@marlam.de>
50091
50092         * modules/link-tests: New file.
50093         * tests/test-link.sh: New file.
50094         * tests/test-link.c: New file.
50095
50096 2009-01-19  Eric Blake  <ebb9@byu.net>
50097
50098         doc: mention another function added in cygwin 1.7.0
50099         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50100         Another new function in cygwin 1.7.
50101
50102 2009-01-19  Bruno Haible  <bruno@clisp.org>
50103
50104         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50105         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50106         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50107         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50108         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50109         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50110         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50111         * m4/md4.m4 (gl_MD4): Likewise.
50112         * m4/md5.m4 (gl_MD5): Likewise.
50113         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50114         * m4/sha1.m4 (gl_SHA1): Likewise.
50115         * m4/sha256.m4 (gl_SHA256): Likewise.
50116         * m4/sha512.m4 (gl_SHA512): Likewise.
50117
50118 2009-01-19  Bruno Haible  <bruno@clisp.org>
50119
50120         * modules/uniname/uniname-tests (Depends-on): Add progname.
50121         * tests/uniname/test-uninames.c: Include progname.h.
50122         (main): Call set_program_name.
50123
50124         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50125         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50126         (main): Call set_program_name.
50127
50128         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50129         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50130         (main): Call set_program_name.
50131
50132         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50133         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50134         (main): Call set_program_name.
50135
50136         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50137         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50138         (main): Call set_program_name.
50139
50140         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50141         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50142         (main): Call set_program_name.
50143
50144         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50145         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50146         (main): Call set_program_name.
50147
50148         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50149         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50150         (main): Call set_program_name.
50151
50152         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50153         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50154         (main): Call set_program_name.
50155
50156 2009-01-19  Eric Blake  <ebb9@byu.net>
50157
50158         test-unistd: test previous patch
50159         * tests/test-unistd.c: Test *_FILENO macros.
50160
50161         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50162         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50163         Guarantee a definition.
50164         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50165         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50166         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50167         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50168         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50169         Likewise.
50170         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50171         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50172         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50173         Likewise.
50174         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50175         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50176         (STDERR_FILENO): Likewise.
50177         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50178         (STDERR_FILENO): Likewise.
50179         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50180         (STDERR_FILENO): Likewise.
50181         Reported by Elbert Pol.
50182
50183 2009-01-19  Eric Blake  <ebb9@byu.net>
50184
50185         doc: mention more functions added in cygwin 1.7.0
50186         * doc/posix-functions/abort.texi (abort): Update wording related
50187         to cygwin.
50188         * doc/posix-functions/daylight.texi (daylight): Likewise.
50189         * doc/posix-functions/optarg.texi (optarg): Likewise.
50190         * doc/posix-functions/optarg.texi (opterr): Likewise.
50191         * doc/posix-functions/optarg.texi (optind): Likewise.
50192         * doc/posix-functions/optarg.texi (optopt): Likewise.
50193         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50194         worked in 1.5.x, and was withdrawn in 1.7.
50195         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50196         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50197         cygwin versions.
50198         * doc/posix-functions/perror.texi (perror): Likewise.
50199         * doc/posix-functions/printf.texi (printf): Likewise.
50200         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50201         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50202         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50203         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50204         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50205         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50206         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50207         Likewise.
50208         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50209         Likewise.
50210         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50211         this function.
50212         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50213         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50214         Likewise.
50215         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50216         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50217         * doc/posix-functions/confstr.texi (confstr): Likewise.
50218         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50219         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50220         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50221         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50222         * doc/posix-functions/fputws.texi (fputws): Likewise.
50223         * doc/posix-functions/fwide.texi (fwide): Likewise.
50224         * doc/posix-functions/getwc.texi (getwc): Likewise.
50225         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50226         * doc/posix-functions/putwc.texi (putwc): Likewise.
50227         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50228         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50229         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50230         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50231         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50232         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50233         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50234         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50235         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50236         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50237         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50238
50239 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50240
50241         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50242         * lib/ioctl.c: Include <sys/ioctl.h>.
50243
50244 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50245
50246         * modules/getdate-tests (Depends-on): Add progname.
50247         * tests/test-getdate.c: Use progname module, to avoid link errors
50248         on non-glibc systems.
50249
50250 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50251
50252         * modules/filenamecat-tests (Depends-on): Add progname.
50253         * modules/fstrcmp-tests (Depends-on): Likewise.
50254
50255         * tests/test-filenamecat.c: Use progname module, to avoid link
50256         errors on non-glibc systems.
50257         * tests/test-fstrcmp.c: Likewise.
50258
50259 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50260
50261         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50262         * lib/gettimeofday.c: Move extern declaration out of function.
50263
50264 2009-01-18  Bruno Haible  <bruno@clisp.org>
50265
50266         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50267         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50268         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50269
50270 2009-01-18  Bruno Haible  <bruno@clisp.org>
50271
50272         * lib/strftime.c (MEMPCPY): Remove unused macro.
50273         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50274
50275 2009-01-18  Martin Lambers  <marlam@marlam.de>
50276
50277         New module 'link'.
50278         * lib/unistd.in.h (link): New declaration.
50279         * lib/link.c: New file.
50280         * m4/link.m4: New file.
50281         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50282         HAVE_LINK.
50283         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50284         * modules/link: New file.
50285         * doc/posix-functions/link.texi: Mention the new module.
50286
50287 2009-01-18  Bruno Haible  <bruno@clisp.org>
50288
50289         * tests/test-avltree_list.c (main): Call set_program_name.
50290         * tests/test-avltree_oset.c (main): Likewise.
50291         * tests/test-obstack-printf.c: Include progname.h.
50292         (main): Call set_program_name.
50293         * tests/test-quotearg.c: Include progname.h.
50294         (main): Call set_program_name.
50295         * tests/test-xmemdup0.c: Include progname.h.
50296         (main): Call set_program_name.
50297
50298 2009-01-18  Bruno Haible  <bruno@clisp.org>
50299
50300         New module 'alphasort'.
50301         * lib/dirent.in.h (alphasort): New declaration.
50302         * lib/alphasort.c: New file, from glibc with modifications.
50303         * m4/alphasort.m4: New file.
50304         * modules/alphasort: New file.
50305         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50306         HAVE_ALPHASORT.
50307         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50308         HAVE_ALPHASORT.
50309         * doc/posix-functions/alphasort.texi: Mention the new module and the
50310         portability problems.
50311
50312 2009-01-18  Bruno Haible  <bruno@clisp.org>
50313
50314         New module 'scandir'.
50315         * lib/dirent.in.h (scandir): New declaration.
50316         * lib/scandir.c: New file, from glibc with modifications.
50317         * m4/scandir.m4: New file.
50318         * modules/scandir: New file.
50319         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50320         HAVE_SCANDIR.
50321         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50322         HAVE_SCANDIR.
50323         * doc/posix-functions/scandir.texi: Mention the new module and the
50324         portability problems.
50325
50326 2009-01-17  Bruno Haible  <bruno@clisp.org>
50327
50328         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50329         Update documentation.
50330         (func_remove_suffix): Escape all dots in the suffix. Update
50331         documentation.
50332         (func_filter_filelist): Update documentation.
50333         Reported by Ralf Wildenhues.
50334
50335 2009-01-17  Bruno Haible  <bruno@clisp.org>
50336
50337         * modules/dprintf-posix-tests: New file.
50338         * tests/test-dprintf-posix.sh: New file.
50339         * tests/test-dprintf-posix.c: New file.
50340
50341         New modules 'dprintf', 'dprintf-posix'.
50342         * lib/stdio.in.h (dprintf): New declaration.
50343         * lib/dprintf.c: New file.
50344         * m4/dprintf.m4: New file.
50345         * m4/dprintf-posix.m4: New file.
50346         * modules/dprintf: New file.
50347         * modules/dprintf-posix: New file.
50348         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50349         HAVE_DPRINTF, REPLACE_DPRINTF.
50350         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50351         HAVE_DPRINTF, REPLACE_DPRINTF.
50352         * doc/posix-functions/dprintf.texi: Mention the new modules.
50353
50354 2009-01-17  Bruno Haible  <bruno@clisp.org>
50355
50356         * modules/vdprintf-posix-tests: New file.
50357         * tests/test-vdprintf-posix.sh: New file.
50358         * tests/test-vdprintf-posix.c: New file.
50359
50360         New modules 'vdprintf', 'vdprintf-posix'.
50361         * lib/stdio.in.h (vdprintf): New declaration.
50362         * lib/vdprintf.c: New file.
50363         * m4/vdprintf.m4: New file.
50364         * m4/vdprintf-posix.m4: New file.
50365         * modules/vdprintf: New file.
50366         * modules/vdprintf-posix: New file.
50367         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50368         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50369         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50370         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50371         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50372
50373 2009-01-17  Bruno Haible  <bruno@clisp.org>
50374
50375         Fix replacement of fopen on mingw.
50376         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50377         mingw.
50378
50379 2009-01-17  Bruno Haible  <bruno@clisp.org>
50380
50381         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50382         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50383
50384 2009-01-17  Bruno Haible  <bruno@clisp.org>
50385
50386         Avoid test-fflush2.sh failure on mingw.
50387         * tests/test-fflush2.c: Include binary-io.h.
50388         (main): Put standard input into binary mode.
50389         * modules/fflush-tests (Depends-on): Add binary-io.
50390
50391 2009-01-17  Bruno Haible  <bruno@clisp.org>
50392
50393         * lib/wchar.in.h: In another particular situation, include only the
50394         system's <wchar.h> file.
50395         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50396         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50397         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50398
50399 2009-01-17  Bruno Haible  <bruno@clisp.org>
50400
50401         Support for stripping executables in --enable-relocatable.
50402         * build-aux/install-reloc: Expect one more argument, or an environment
50403         variable RELOC_STRIP_PROG. If set, strip the destination program and
50404         its wrapper.
50405         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50406         RELOC_STRIP_PROG.
50407         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50408         to set RELOCATABLE_STRIP.
50409         * NEWS: Mention the new Makefile requirement.
50410
50411 2009-01-17  Bruno Haible  <bruno@clisp.org>
50412
50413         * build-aux/install-reloc: Remove debugging information left over by
50414         C compiler on MacOS X.
50415
50416 2009-01-17  Bruno Haible  <bruno@clisp.org>
50417
50418         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50419         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50420         _NSGetExecutablePath.
50421
50422 2009-01-16  Jim Meyering  <meyering@redhat.com>
50423
50424         strerror: avoid warnings about discarding "const"
50425         * lib/strerror.c (rpl_strerror): Instead of returning a const
50426         string from each and every "case", use a variable, and add a single
50427         cast after the switch.
50428
50429 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50430
50431         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50432
50433 2009-01-16  Bruno Haible  <bruno@clisp.org>
50434
50435         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50436         array initializer syntax that also works in C++ mode.
50437         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50438
50439 2009-01-16  Jim Meyering  <meyering@redhat.com>
50440
50441         poll: suppress a warning
50442         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50443         to ignore "...unsigned expression < 0 is always false" warnings.
50444
50445 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50446
50447         poll: remove declarations of unused variables
50448         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50449         sockbuf and optlen.
50450
50451 2009-01-15  Bruno Haible  <bruno@clisp.org>
50452
50453         Make fflush-after-ungetc POSIX compliant on BSD systems.
50454         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50455         (clear_ungetc_buffer): Implement also for other systems.
50456         (rpl_fflush): On glibc systems, invoke
50457         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50458         clear_ungetc_buffer after fetching the stream's position, not before.
50459
50460 2009-01-15  Bruno Haible  <bruno@clisp.org>
50461
50462         Make fflush-after-ungetc POSIX compliant on glibc systems.
50463         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50464         after ungetc.
50465         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50466         (rpl_fflush): On glibc systems, simply call the system's fflush
50467         function after clearing the ungetc buffer.
50468         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50469         Instead, lseek only to the end of file, then use the system's fseeko
50470         for the rest. On glibc systems, reset the EOF indicator bit.
50471
50472 2009-01-15  Jim Meyering  <meyering@redhat.com>
50473
50474         openmp.m4: revert quote-adding change, for portability to older autoconf
50475         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50476         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50477         Simon Josefsson noticed the problem when using autoconf-2.61.
50478
50479 2009-01-15  Bruno Haible  <bruno@clisp.org>
50480
50481         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50482         * tests/test-fflush2.c (ASSERT): Always fail.
50483         (main): Add two tests for fflush() after ungetc(), taking into account
50484         the Austin Group's clarification.
50485         Suggested by Eric Blake.
50486
50487 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50488
50489         mktime.m4: remove K&R-style function prototypes
50490         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50491         for the Sun C++ compiler.
50492
50493 2009-01-14  Bruno Haible  <bruno@clisp.org>
50494
50495         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50496         while including <wchar.h>.
50497         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50498         the system's <wchar.h> file.
50499         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50500
50501 2009-01-14  Bruno Haible  <bruno@clisp.org>
50502
50503         * m4/csharp.m4: Don't mention gettext on the serial number line.
50504         * m4/csharpexec.m4: Likewise.
50505         * m4/eaccess.m4: Likewise.
50506         * m4/javaexec.m4: Likewise.
50507         * m4/sig_atomic_t.m4: Likewise.
50508         * m4/tmpdir.m4: Likewise.
50509         * m4/intldir.m4: Bump gettext version.
50510         * m4/lib-ld.m4: Likewise.
50511
50512 2009-01-14  Bruno Haible  <bruno@clisp.org>
50513
50514         * lib/progname.c (set_program_name): Add more comments.
50515         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
50516
50517 2009-01-14  Simon Josefsson  <simon@josefsson.org>
50518
50519         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
50520         were sys/stat.h does not define it.
50521
50522 2009-01-14  Jim Meyering  <meyering@redhat.com>
50523
50524         many *.m4 files: improve m4 quoting
50525         99% of this change was performed by running the following commands:
50526         git ls-files | grep '\.m4$' | xargs perl -pi \
50527           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
50528           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50529           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
50530           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
50531         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
50532         The remainder were to add Copyright dates, increment serial numbers,
50533         undo some changes in comments, exclude m4/intl.m4, and add quotes
50534         around the "1" in ",1" where the unusual spacing prohibited the
50535         above regexps from doing the job.  For more details, see
50536         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
50537         * m4/acl.m4: Modified.
50538         * m4/afs.m4: Likewise.
50539         * m4/alloca.m4: Likewise.
50540         * m4/argp.m4: Likewise.
50541         * m4/argz.m4: Likewise.
50542         * m4/atexit.m4: Likewise.
50543         * m4/bison-i18n.m4: Likewise.
50544         * m4/bison.m4: Likewise.
50545         * m4/byteswap.m4: Likewise.
50546         * m4/c-stack.m4: Likewise.
50547         * m4/c-strtod.m4: Likewise.
50548         * m4/calloc.m4: Likewise.
50549         * m4/canonicalize-lgpl.m4: Likewise.
50550         * m4/chown.m4: Likewise.
50551         * m4/clock_time.m4: Likewise.
50552         * m4/codeset.m4: Likewise.
50553         * m4/copy-file.m4: Likewise.
50554         * m4/csharp.m4: Likewise.
50555         * m4/csharpcomp.m4: Likewise.
50556         * m4/csharpexec.m4: Likewise.
50557         * m4/d-ino.m4: Likewise.
50558         * m4/d-type.m4: Likewise.
50559         * m4/dirfd.m4: Likewise.
50560         * m4/double-slash-root.m4: Likewise.
50561         * m4/eaccess.m4: Likewise.
50562         * m4/eealloc.m4: Likewise.
50563         * m4/environ.m4: Likewise.
50564         * m4/errno_h.m4: Likewise.
50565         * m4/euidaccess.m4: Likewise.
50566         * m4/execute.m4: Likewise.
50567         * m4/fatal-signal.m4: Likewise.
50568         * m4/fchdir.m4: Likewise.
50569         * m4/fcntl_h.m4: Likewise.
50570         * m4/fileblocks.m4: Likewise.
50571         * m4/filenamecat.m4: Likewise.
50572         * m4/findprog.m4: Likewise.
50573         * m4/flexmember.m4: Likewise.
50574         * m4/fnmatch.m4: Likewise.
50575         * m4/fopen.m4: Likewise.
50576         * m4/fpending.m4: Likewise.
50577         * m4/fprintf-posix.m4: Likewise.
50578         * m4/free.m4: Likewise.
50579         * m4/frexp.m4: Likewise.
50580         * m4/frexpl.m4: Likewise.
50581         * m4/fsusage.m4: Likewise.
50582         * m4/ftruncate.m4: Likewise.
50583         * m4/gc-camellia.m4: Likewise.
50584         * m4/gc-random.m4: Likewise.
50585         * m4/gc.m4: Likewise.
50586         * m4/getaddrinfo.m4: Likewise.
50587         * m4/getcwd-abort-bug.m4: Likewise.
50588         * m4/getcwd-path-max.m4: Likewise.
50589         * m4/getdate.m4: Likewise.
50590         * m4/getdomainname.m4: Likewise.
50591         * m4/getgroups.m4: Likewise.
50592         * m4/gethostname.m4: Likewise.
50593         * m4/gethrxtime.m4: Likewise.
50594         * m4/getline.m4: Likewise.
50595         * m4/getloadavg.m4: Likewise.
50596         * m4/getndelim2.m4: Likewise.
50597         * m4/getpass.m4: Likewise.
50598         * m4/gettext.m4: Likewise.
50599         * m4/gettime.m4: Likewise.
50600         * m4/gettimeofday.m4: Likewise.
50601         * m4/gnulib-common.m4: Likewise.
50602         * m4/group-member.m4: Likewise.
50603         * m4/host-os.m4: Likewise.
50604         * m4/iconv.m4: Likewise.
50605         * m4/iconv_open.m4: Likewise.
50606         * m4/inet_ntop.m4: Likewise.
50607         * m4/inet_pton.m4: Likewise.
50608         * m4/inline.m4: Likewise.
50609         * m4/intldir.m4: Likewise.
50610         * m4/intlmacosx.m4: Likewise.
50611         * m4/intmax.m4: Likewise.
50612         * m4/intmax_t.m4: Likewise.
50613         * m4/inttypes.m4: Likewise.
50614         * m4/inttypes_h.m4: Likewise.
50615         * m4/inttypes-pri.m4: Likewise.
50616         * m4/isapipe.m4: Likewise.
50617         * m4/isnand.m4: Likewise.
50618         * m4/isnanf.m4: Likewise.
50619         * m4/isnanl.m4: Likewise.
50620         * m4/javacomp.m4: Likewise.
50621         * m4/javaexec.m4: Likewise.
50622         * m4/jm-winsz1.m4: Likewise.
50623         * m4/jm-winsz2.m4: Likewise.
50624         * m4/lchown.m4: Likewise.
50625         * m4/lcmessage.m4: Likewise.
50626         * m4/ldexpl.m4: Likewise.
50627         * m4/lib-ld.m4: Likewise.
50628         * m4/lib-link.m4: Likewise.
50629         * m4/libsigsegv.m4: Likewise.
50630         * m4/link-follow.m4: Likewise.
50631         * m4/localcharset.m4: Likewise.
50632         * m4/locale-fr.m4: Likewise.
50633         * m4/locale-ja.m4: Likewise.
50634         * m4/locale-tr.m4: Likewise.
50635         * m4/locale-zh.m4: Likewise.
50636         * m4/lock.m4: Likewise.
50637         * m4/longlong.m4: Likewise.
50638         * m4/ls-mntd-fs.m4: Likewise.
50639         * m4/lstat.m4: Likewise.
50640         * m4/malloc.m4: Likewise.
50641         * m4/mathl.m4: Likewise.
50642         * m4/mbrtowc.m4: Likewise.
50643         * m4/mbstate_t.m4: Likewise.
50644         * m4/mbswidth.m4: Likewise.
50645         * m4/memchr.m4: Likewise.
50646         * m4/memcmp.m4: Likewise.
50647         * m4/memcpy.m4: Likewise.
50648         * m4/memmem.m4: Likewise.
50649         * m4/memmove.m4: Likewise.
50650         * m4/mempcpy.m4: Likewise.
50651         * m4/memrchr.m4: Likewise.
50652         * m4/memset.m4: Likewise.
50653         * m4/minmax.m4: Likewise.
50654         * m4/mkdir-slash.m4: Likewise.
50655         * m4/mkdtemp.m4: Likewise.
50656         * m4/mktime.m4: Likewise.
50657         * m4/mmap-anon.m4: Likewise.
50658         * m4/mountlist.m4: Likewise.
50659         * m4/nanosleep.m4: Likewise.
50660         * m4/nls.m4: Likewise.
50661         * m4/nocrash.m4: Likewise.
50662         * m4/open.m4: Likewise.
50663         * m4/openat.m4: Likewise.
50664         * m4/openmp.m4: Likewise.
50665         * m4/pathmax.m4: Likewise.
50666         * m4/perl.m4: Likewise.
50667         * m4/physmem.m4: Likewise.
50668         * m4/pipe.m4: Likewise.
50669         * m4/po.m4: Likewise.
50670         * m4/poll.m4: Likewise.
50671         * m4/posixtm.m4: Likewise.
50672         * m4/posixver.m4: Likewise.
50673         * m4/printf-frexp.m4: Likewise.
50674         * m4/printf-frexpl.m4: Likewise.
50675         * m4/printf-posix.m4: Likewise.
50676         * m4/printf-posix-rpl.m4: Likewise.
50677         * m4/printf.m4: Likewise.
50678         * m4/progtest.m4: Likewise.
50679         * m4/putenv.m4: Likewise.
50680         * m4/readline.m4: Likewise.
50681         * m4/readlink.m4: Likewise.
50682         * m4/readutmp.m4: Likewise.
50683         * m4/realloc.m4: Likewise.
50684         * m4/regex.m4: Likewise.
50685         * m4/relocatable.m4: Likewise.
50686         * m4/relocatable-lib.m4: Likewise.
50687         * m4/rename-dest-slash.m4: Likewise.
50688         * m4/rename.m4: Likewise.
50689         * m4/rmdir-errno.m4: Likewise.
50690         * m4/rmdir.m4: Likewise.
50691         * m4/roundf.m4: Likewise.
50692         * m4/roundl.m4: Likewise.
50693         * m4/rpmatch.m4: Likewise.
50694         * m4/save-cwd.m4: Likewise.
50695         * m4/selinux-selinux-h.m4: Likewise.
50696         * m4/setenv.m4: Likewise.
50697         * m4/settime.m4: Likewise.
50698         * m4/sig2str.m4: Likewise.
50699         * m4/sig_atomic_t.m4: Likewise.
50700         * m4/signalblocking.m4: Likewise.
50701         * m4/signbit.m4: Likewise.
50702         * m4/sigpipe.m4: Likewise.
50703         * m4/sockets.m4: Likewise.
50704         * m4/sockpfaf.m4: Likewise.
50705         * m4/st_dm_mode.m4: Likewise.
50706         * m4/stat-time.m4: Likewise.
50707         * m4/stdbool.m4: Likewise.
50708         * m4/stdint.m4: Likewise.
50709         * m4/stdint_h.m4: Likewise.
50710         * m4/stpcpy.m4: Likewise.
50711         * m4/stpncpy.m4: Likewise.
50712         * m4/strcase.m4: Likewise.
50713         * m4/strchrnul.m4: Likewise.
50714         * m4/strcspn.m4: Likewise.
50715         * m4/strdup.m4: Likewise.
50716         * m4/strftime.m4: Likewise.
50717         * m4/strndup.m4: Likewise.
50718         * m4/strnlen.m4: Likewise.
50719         * m4/strpbrk.m4: Likewise.
50720         * m4/strptime.m4: Likewise.
50721         * m4/strsep.m4: Likewise.
50722         * m4/strtod.m4: Likewise.
50723         * m4/strtoimax.m4: Likewise.
50724         * m4/strtok_r.m4: Likewise.
50725         * m4/strtol.m4: Likewise.
50726         * m4/strtoll.m4: Likewise.
50727         * m4/strtoul.m4: Likewise.
50728         * m4/strtoull.m4: Likewise.
50729         * m4/strtoumax.m4: Likewise.
50730         * m4/strverscmp.m4: Likewise.
50731         * m4/threadlib.m4: Likewise.
50732         * m4/timegm.m4: Likewise.
50733         * m4/tm_gmtoff.m4: Likewise.
50734         * m4/tmpdir.m4: Likewise.
50735         * m4/tmpfile.m4: Likewise.
50736         * m4/tzset.m4: Likewise.
50737         * m4/uintmax_t.m4: Likewise.
50738         * m4/unlinkdir.m4: Likewise.
50739         * m4/unlocked-io.m4: Likewise.
50740         * m4/uptime.m4: Likewise.
50741         * m4/userspec.m4: Likewise.
50742         * m4/utimbuf.m4: Likewise.
50743         * m4/utime.m4: Likewise.
50744         * m4/utimes-null.m4: Likewise.
50745         * m4/utimes.m4: Likewise.
50746         * m4/vararrays.m4: Likewise.
50747         * m4/vasnprintf.m4: Likewise.
50748         * m4/vfprintf-posix.m4: Likewise.
50749         * m4/vprintf-posix.m4: Likewise.
50750         * m4/wait-process.m4: Likewise.
50751         * m4/wchar_t.m4: Likewise.
50752         * m4/wint_t.m4: Likewise.
50753         * m4/write-any-file.m4: Likewise.
50754         * m4/yield.m4: Likewise.
50755
50756 2009-01-13  Bruno Haible  <bruno@clisp.org>
50757
50758         Avoid test-copy-file.sh failures when ACL support insufficient.
50759         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
50760         TESTS_ENVIRONMENT.
50761         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
50762         Reported by Jim Meyering.
50763
50764 2009-01-13  Bruno Haible  <bruno@clisp.org>
50765
50766         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
50767         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
50768         * modules/unistdio/u8-printf-parse (Files): Likewise.
50769         * modules/unistdio/u32-printf-parse (Files): Likewise.
50770         * modules/unistdio/ulc-printf-parse (Files): Likewise.
50771
50772 2009-01-13  Simon Josefsson  <simon@josefsson.org>
50773
50774         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
50775         and m4/inttypes_h.m4 too.
50776
50777 2009-01-12  Eric Blake  <ebb9@byu.net>
50778
50779         tests: IRIX 6.2 cc can't compile -0.0 into .data
50780         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
50781         rather than at compile-time.
50782         * tests/test-floorl.c (minus_zero): Likewise.
50783         * tests/test-frexpl.c (minus_zero): Likewise.
50784         * tests/test-isnan.c (minus_zerol): Likewise.
50785         * tests/test-isnanl.h (minus_zero): Likewise.
50786         * tests/test-ldexpl.c (minus_zero): Likewise.
50787         * tests/test-roundl.c (minus_zero): Likewise.
50788         * tests/test-signbit.c (minus_zerol): Likewise.
50789         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
50790         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
50791         * tests/test-truncl.c (minus_zero): Likewise.
50792         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
50793         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
50794         Reported by Tom G. Christensen and Nelson H. F. Beebe.
50795
50796 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50797
50798         regex: fix glibc bug 9697
50799         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
50800         handling.
50801
50802 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50803
50804         regex: fix glibc bug 697
50805         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
50806         being NULL also if there are no backreferences.
50807
50808 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
50809
50810         regex: merge glibc changes
50811         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
50812         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
50813         re_string_skip_chars, re_string_reconstruct): Likewise.
50814         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
50815
50816 2009-01-07  Jim Meyering  <meyering@redhat.com>
50817
50818         poll: filter through cppi
50819         * lib/poll.c: Indent cpp directives to reflect nesting.
50820
50821 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
50822
50823         poll: don't return uninitialized
50824         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
50825
50826 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
50827
50828         avoid compile failure on AIX 6.1
50829         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
50830         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
50831
50832 2009-01-04  Jim Meyering  <meyering@redhat.com>
50833
50834         remove duplicate inclusion of <stdio.h>
50835         * tests/test-fprintf-posix.c: Likewise.
50836         * tests/test-printf-posix.c: Likewise.
50837         * tests/test-snprintf-posix.c: Likewise.
50838         * tests/test-sprintf-posix.c: Likewise.
50839         * tests/test-vasprintf-posix.c: Likewise.
50840         * tests/test-vfprintf-posix.c: Likewise.
50841         * tests/test-vprintf-posix.c: Likewise.
50842         * tests/test-vsnprintf-posix.c: Likewise.
50843         * tests/test-vsprintf-posix.c: Likewise.
50844
50845 2009-01-03  Jim Meyering  <meyering@redhat.com>
50846
50847         gnulib-tool: fix sed-based filtering
50848         * gnulib-tool (func_filter_filelist): Remove extra backslash
50849         in sed_fff_filter definition.
50850
50851 2009-01-02  Jim Meyering  <meyering@redhat.com>
50852
50853         strftime: avoid compilation failure on Solaris 2.6
50854         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
50855         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
50856         Don't #define mbrlen or mbsinit, since now they're guaranteed to
50857         be available.  Reported by Tom G. Christensen.  Details in
50858         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
50859
50860 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50861             Bruno Haible  <bruno@clisp.org>
50862
50863         Speed up gnulib-tool by doing more string processing through shell
50864         built-ins.
50865         * gnulib-tool (fast_func_append): New variable.
50866         (func_remove_prefix, func_remove_suffix): New functions.
50867         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
50868         (func_filter_filelist): New function.
50869         (func_get_dependencies): Use func_remove_suffix instead of sed.
50870         (func_get_automake_snippet): Use func_filter_filelist instead of a
50871         subshell and sed invocation.
50872
50873 2009-01-01  Bruno Haible  <bruno@clisp.org>
50874
50875         Fix a security bug.
50876         * gnulib-tool (func_import, import, update): Don't allow the characters
50877         '"', '$', '`', '\' in macro arguments that become part of commands that
50878         are evaluated.
50879
50880 2009-01-01  Bruno Haible  <bruno@clisp.org>
50881
50882         * gnulib-tool (func_reset_sigpipe): Add more comments.
50883
50884 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50885
50886         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
50887         func_emit_tests_Makefile_am, func_import): Abort loops early if we
50888         already know the answer.
50889
50890 2009-01-01  Jim Meyering  <meyering@redhat.com>
50891
50892         * lib/version-etc.c (version_etc_va): Update copyright year.
50893
50894 2008-12-30  Bruno Haible  <bruno@clisp.org>
50895
50896         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
50897         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50898         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50899
50900 2008-12-29  Eric Blake  <ebb9@byu.net>
50901
50902         multiarch: avoid autoconf AC_REQUIRE bug
50903         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50904         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50905         2.63 and older.
50906         Reported by Bruno Haible, and analyzed in
50907         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50908
50909 2008-12-29  Bruno Haible  <bruno@clisp.org>
50910
50911         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50912         files in subdirectories correctly.
50913         Reported by Ralf Wildenhues.
50914
50915 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50916
50917         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50918         rather than 'join FILE -', for Solaris join.
50919
50920 2008-12-29  Bruno Haible  <bruno@clisp.org>
50921
50922         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
50923         quoting.
50924         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50925         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
50926         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
50927         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
50928         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50929         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50930         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50931         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50932         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50933         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50934         * m4/nls.m4 (AM_NLS): Likewise.
50935         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
50936         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50937         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50938         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50939         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50940         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50941         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
50942         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50943         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50944         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50945         * m4/xsize.m4 (gl_XSIZE): Likewise.
50946         Suggested by Jim Meyering.
50947
50948 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50949
50950         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
50951         * lib/parse-duration.c: use a switch instead of cascading if's.
50952
50953 2008-12-29  Eric Blake  <ebb9@byu.net>
50954
50955         wchar.h: supply WEOF on Irix 5.3
50956         * lib/wchar.in.h (wint_t): Also supply WEOF.
50957         * lib/wctype.in.h (wint_t): Likewise.
50958         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
50959         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
50960         Reported by Tom G. Christensen.
50961
50962 2008-12-26  Bruno Haible  <bruno@clisp.org>
50963
50964         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
50965         i486, i586, i686.
50966
50967 2008-12-26  Bruno Haible  <bruno@clisp.org>
50968
50969         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
50970
50971 2008-12-26  Bruno Haible  <bruno@clisp.org>
50972
50973         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
50974         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50975         not __STDC_CONSTANT_MACROS.
50976         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50977
50978 2008-12-25  Bruno Haible  <bruno@clisp.org>
50979
50980         Add support for universal builds to vasnprintf.
50981         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50982         universal builds, guess no.
50983         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50984         * modules/vasprintf-posix (Depends-on): Likewise.
50985         * modules/fprintf-posix (Depends-on): Likewise.
50986         * modules/vfprintf-posix (Depends-on): Likewise.
50987         * modules/snprintf-posix (Depends-on): Likewise.
50988         * modules/vsnprintf-posix (Depends-on): Likewise.
50989         * modules/sprintf-posix (Depends-on): Likewise.
50990         * modules/vsprintf-posix (Depends-on): Likewise.
50991         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50992         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50993         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50994         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50995         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50996         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50997         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50998
50999         Add support for universal builds to <inttypes.h>.
51000         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51001         _SCNu64_PREFIX): In Apple
51002         universal builds, define directly, using _LP64.
51003         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51004         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51005         * modules/inttypes (Depends-on): Add multiarch.
51006         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51007
51008         Add support for universal builds to <stdint.h>.
51009         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51010         universal builds, define directly, using _LP64.
51011         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51012         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51013         and size_t.
51014         * modules/stdint (Depends-on): Add multiarch.
51015         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51016
51017         New module 'multiarch'.
51018         * modules/multiarch: New file.
51019         * m4/multiarch.m4: New file.
51020
51021 2008-12-25  Bruno Haible  <bruno@clisp.org>
51022
51023         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51024
51025 2008-12-25  Bruno Haible  <bruno@clisp.org>
51026
51027         * modules/btowc (License): Relicense under LGPLv2+.
51028         * modules/mbsinit (License): Likewise.
51029         * modules/mbrtowc (License): Likewise.
51030         * modules/wcrtomb (License): Likewise.
51031         * modules/streq (License): Likewise.
51032         Reported by David Lutterkort <lutter@redhat.com>.
51033
51034 2008-12-23  Bruno Haible  <bruno@clisp.org>
51035
51036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51037
51038 2008-12-23  Bruno Haible  <bruno@clisp.org>
51039
51040         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51041         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51042         GETADDRINFO_LIB, not in LIBS.
51043         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51044         * modules/canon-host (Link): Likewise.
51045         * NEWS: Mention the change.
51046         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51047         GETADDRINFO_LIB.
51048
51049 2008-12-22  Bruno Haible  <bruno@clisp.org>
51050
51051         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51052         * doc/posix-functions/iswalpha_l.texi: Likewise.
51053         * doc/posix-functions/iswblank_l.texi: Likewise.
51054         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51055         * doc/posix-functions/iswctype_l.texi: Likewise.
51056         * doc/posix-functions/iswdigit_l.texi: Likewise.
51057         * doc/posix-functions/iswgraph_l.texi: Likewise.
51058         * doc/posix-functions/iswlower_l.texi: Likewise.
51059         * doc/posix-functions/iswprint_l.texi: Likewise.
51060         * doc/posix-functions/iswpunct_l.texi: Likewise.
51061         * doc/posix-functions/iswspace_l.texi: Likewise.
51062         * doc/posix-functions/iswupper_l.texi: Likewise.
51063         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51064         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51065         * doc/posix-functions/open_wmemstream.texi: Likewise.
51066         * doc/posix-functions/swscanf.texi: Likewise.
51067         * doc/posix-functions/towctrans_l.texi: Likewise.
51068         * doc/posix-functions/towlower.texi: Likewise.
51069         * doc/posix-functions/towlower_l.texi: Likewise.
51070         * doc/posix-functions/towupper.texi: Likewise.
51071         * doc/posix-functions/towupper_l.texi: Likewise.
51072         * doc/posix-functions/vfwprintf.texi: Likewise.
51073         * doc/posix-functions/vfwscanf.texi: Likewise.
51074         * doc/posix-functions/vswscanf.texi: Likewise.
51075         * doc/posix-functions/vwprintf.texi: Likewise.
51076         * doc/posix-functions/vwscanf.texi: Likewise.
51077         * doc/posix-functions/wcpcpy.texi: Likewise.
51078         * doc/posix-functions/wcpncpy.texi: Likewise.
51079         * doc/posix-functions/wcscasecmp.texi: Likewise.
51080         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51081         * doc/posix-functions/wcscoll_l.texi: Likewise.
51082         * doc/posix-functions/wcsdup.texi: Likewise.
51083         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51084         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51085         * doc/posix-functions/wcsnlen.texi: Likewise.
51086         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51087         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51088         * doc/posix-functions/wctrans_l.texi: Likewise.
51089         * doc/posix-functions/wctype_l.texi: Likewise.
51090         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51091         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51092         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51093         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51094         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51095         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51096         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51097         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51098         * doc/glibc-functions/wcschrnul.texi: Likewise.
51099         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51100         * doc/glibc-functions/wcstod_l.texi: Likewise.
51101         * doc/glibc-functions/wcstof_l.texi: Likewise.
51102         * doc/glibc-functions/wcstol_l.texi: Likewise.
51103         * doc/glibc-functions/wcstold_l.texi: Likewise.
51104         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51105         * doc/glibc-functions/wcstoq.texi: Likewise.
51106         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51107         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51108         * doc/glibc-functions/wcstouq.texi: Likewise.
51109         * doc/glibc-functions/wmempcpy.texi: Likewise.
51110
51111 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51112             Eric Blake  <ebb9@byu.net>
51113             Paolo Bonzini  <bonzini@gnu.org>
51114             Bruno Haible  <bruno@clisp.org>
51115
51116         Make c-stack work on Haiku.
51117         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51118         (c_stack_action): Use SA_ONSTACK flag.
51119
51120 2008-12-22  Bruno Haible  <bruno@clisp.org>
51121
51122         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51123
51124 2008-12-22  Bruno Haible  <bruno@clisp.org>
51125
51126         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51127         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51128         being overridden.
51129         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51130         New macros.
51131         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51132         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51133         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51134         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51135
51136 2008-12-22  Bruno Haible  <bruno@clisp.org>
51137
51138         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51139         from test code.
51140
51141 2008-12-22  Eric Blake  <ebb9@byu.net>
51142
51143         Avoid gcc warnings on cygwin.
51144         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51145         Avoid unused variable.
51146         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51147         Likewise.
51148
51149 2008-12-22  Bruno Haible  <bruno@clisp.org>
51150
51151         Remove HAVE_MBRTOWC conditionals.
51152         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51153         (mbscasecmp): Assume mbrtowc function.
51154         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51155         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51156         * lib/mbschr.c: Include mbuiter.h unconditionally.
51157         (mbschr): Assume mbrtowc function.
51158         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51159         (mbscspn): Assume mbrtowc function.
51160         * lib/mbslen.c: Include mbuiter.h unconditionally.
51161         (mbslen): Assume mbrtowc function.
51162         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51163         (mbsncasecmp): Assume mbrtowc function.
51164         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51165         (mbsnlen): Assume mbrtowc function.
51166         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51167         (mbspbrk): Assume mbrtowc function.
51168         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51169         (mbspcasecmp): Assume mbrtowc function.
51170         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51171         (mbsrchr): Assume mbrtowc function.
51172         * lib/mbssep.c: Include mbuiter.h unconditionally.
51173         (mbssep): Assume mbrtowc function.
51174         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51175         (mbsspn): Assume mbrtowc function.
51176         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51177         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51178         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51179         (mbstok_r): Assume mbrtowc function.
51180         * lib/propername.c: Include mbuiter.h unconditionally.
51181         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51182         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51183         (trim2): Assume mbrtowc function.
51184         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51185         (mbsnwidth): Assume mbrtowc function.
51186         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51187         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51188         fallback definitions.
51189         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51190
51191 2008-12-22  Bruno Haible  <bruno@clisp.org>
51192
51193         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51194
51195 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51196
51197         * modules/regex: Request emulations for the mb*/wc* functions we need.
51198         * m4/regex.m4: Don't look for those functions here.
51199         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51200
51201 2008-12-22  Bruno Haible  <bruno@clisp.org>
51202
51203         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51204
51205 2008-12-21  Bruno Haible  <bruno@clisp.org>
51206
51207         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51208         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51209         (Include): Remove conditionalization.
51210         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51211         (Include): Remove conditionalization.
51212         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51213         (Include): Remove conditionalization.
51214         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51215         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51216         * NEWS: Mention the change.
51217         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51218         via Sergey Poznyakoff <gray@gnu.org.ua>.
51219
51220 2008-12-21  Bruno Haible  <bruno@clisp.org>
51221
51222         * MODULES.html.sh (Extended multibyte and wide character utilities
51223         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51224         wcrtomb, wcsrtombs.
51225         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51226         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51227         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51228         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51229
51230 2008-12-21  Bruno Haible  <bruno@clisp.org>
51231
51232         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51233
51234 2008-12-21  Bruno Haible  <bruno@clisp.org>
51235
51236         * modules/wcsnrtombs-tests: New file.
51237         * tests/test-wcsnrtombs1.sh: New file.
51238         * tests/test-wcsnrtombs2.sh: New file.
51239         * tests/test-wcsnrtombs3.sh: New file.
51240         * tests/test-wcsnrtombs4.sh: New file.
51241         * tests/test-wcsnrtombs.c: New file.
51242
51243         New module 'wcsnrtombs'.
51244         * lib/wchar.in.h (wcsnrtombs): New declaration.
51245         * lib/wcsnrtombs.c: New file.
51246         * lib/wcsrtombs-state.c: New file.
51247         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51248         (internal_state): Remove variable.
51249         * m4/wcsnrtombs.m4: New file.
51250         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51251         compilation units.
51252         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51253         HAVE_WCSNRTOMBS.
51254         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51255         HAVE_WCSNRTOMBS.
51256         * modules/wcsnrtombs: New file.
51257         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51258         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51259
51260 2008-12-21  Bruno Haible  <bruno@clisp.org>
51261
51262         * modules/wcsrtombs-tests: New file.
51263         * tests/test-wcsrtombs1.sh: New file.
51264         * tests/test-wcsrtombs2.sh: New file.
51265         * tests/test-wcsrtombs3.sh: New file.
51266         * tests/test-wcsrtombs4.sh: New file.
51267         * tests/test-wcsrtombs.c: New file.
51268
51269         New module 'wcsrtombs'.
51270         * lib/wchar.in.h (wcsrtombs): New declaration.
51271         * lib/wcsrtombs.c: New file.
51272         * m4/wcsrtombs.m4: New file.
51273         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51274         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51275         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51276         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51277         * modules/wcsrtombs: New file.
51278         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51279         bugs.
51280
51281 2008-12-21  Bruno Haible  <bruno@clisp.org>
51282
51283         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51284         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51285         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51286         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51287         if not correct.
51288         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51289         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51290         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51291         m4/locale-zh.m4, m4/codeset.m4.
51292         * doc/posix-functions/wcrtomb.texi: Document the bug.
51293
51294 2008-12-21  Bruno Haible  <bruno@clisp.org>
51295
51296         Work around a btowc() bug on IRIX 6.5.
51297         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51298         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51299         REPLACE_WTOBC if not.
51300         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51301         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51302         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51303
51304 2008-12-21  Bruno Haible  <bruno@clisp.org>
51305
51306         * modules/wcrtomb-tests: New file.
51307         * tests/test-wcrtomb.sh: New file.
51308         * tests/test-wcrtomb.c: New file.
51309
51310         New module 'wcrtomb'.
51311         * lib/wchar.in.h (wcrtomb): New declaration.
51312         * lib/wcrtomb.c: New file.
51313         * m4/wcrtomb.m4: New file.
51314         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51315         HAVE_WCRTOMB.
51316         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51317         HAVE_WCRTOMB.
51318         * modules/wcrtomb: New file.
51319         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51320
51321 2008-12-21  Bruno Haible  <bruno@clisp.org>
51322
51323         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51324         * modules/mbsrtowcs (Files): Likewise.
51325         * modules/wctob (Files): Likewise.
51326         * modules/c-strcase-tests (Files): Likewise.
51327         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51328         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51329         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51330         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51331         * modules/vasnprintf-posix-tests (Files): Likewise.
51332
51333 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51334
51335         gitlog-to-changelog: pass all command-line arguments to git-log
51336         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51337         it is sometimes convenient to filter the commits in various ways.
51338         gitlog-to-changelog only allows --since to specify a start date,
51339         but git-log itself supports many other filtering mechanisms.
51340         At the moment, I want to filter by branch name.  Rather than
51341         adding a --branch option to gitlog-to-changelog, it seems more
51342         flexible to simply pass all options directly to git-log and let
51343         git do the work.  Notice that this effectively makes --since a
51344         redundant option for gitlog-to-changelog, but removing it would
51345         require current usage to change since calls would then require
51346         an additional '--'.
51347
51348 2008-12-21  Bruno Haible  <bruno@clisp.org>
51349
51350         * modules/mbsnrtowcs-tests: New file.
51351         * tests/test-mbsnrtowcs1.sh: New file.
51352         * tests/test-mbsnrtowcs2.sh: New file.
51353         * tests/test-mbsnrtowcs3.sh: New file.
51354         * tests/test-mbsnrtowcs4.sh: New file.
51355         * tests/test-mbsnrtowcs.c: New file.
51356
51357         New module 'mbsnrtowcs'.
51358         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51359         * lib/mbsnrtowcs.c: New file.
51360         * lib/mbsrtowcs-state.c: New file.
51361         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51362         (internal_state): Remove variable.
51363         * m4/mbsnrtowcs.m4: New file.
51364         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51365         compilation units.
51366         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51367         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51368         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51369         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51370         * modules/mbsnrtowcs: New file.
51371         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51372         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51373         portability problem.
51374
51375 2008-12-21  Bruno Haible  <bruno@clisp.org>
51376
51377         Work around mbsrtowcs bug.
51378         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51379         (gl_FUNC_MBSRTOWCS): Invoke it.
51380         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51381         m4/locale-zh.m4.
51382         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51383
51384 2008-12-21  Bruno Haible  <bruno@clisp.org>
51385
51386         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51387
51388 2008-12-21  Bruno Haible  <bruno@clisp.org>
51389
51390         Update doc for AIX.
51391         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51392         16-bit wchar_t type.
51393         * doc/posix-functions/btowc.texi: Likewise.
51394         * doc/posix-functions/fgetwc.texi: Likewise.
51395         * doc/posix-functions/fgetws.texi: Likewise.
51396         * doc/posix-functions/fputwc.texi: Likewise.
51397         * doc/posix-functions/fputws.texi: Likewise.
51398         * doc/posix-functions/fwide.texi: Likewise.
51399         * doc/posix-functions/fwprintf.texi: Likewise.
51400         * doc/posix-functions/fwscanf.texi: Likewise.
51401         * doc/posix-functions/getwchar.texi: Likewise.
51402         * doc/posix-functions/getwc.texi: Likewise.
51403         * doc/posix-functions/iswalnum.texi: Likewise.
51404         * doc/posix-functions/iswalpha.texi: Likewise.
51405         * doc/posix-functions/iswblank.texi: Likewise.
51406         * doc/posix-functions/iswcntrl.texi: Likewise.
51407         * doc/posix-functions/iswctype.texi: Likewise.
51408         * doc/posix-functions/iswdigit.texi: Likewise.
51409         * doc/posix-functions/iswgraph.texi: Likewise.
51410         * doc/posix-functions/iswlower.texi: Likewise.
51411         * doc/posix-functions/iswprint.texi: Likewise.
51412         * doc/posix-functions/iswpunct.texi: Likewise.
51413         * doc/posix-functions/iswspace.texi: Likewise.
51414         * doc/posix-functions/iswupper.texi: Likewise.
51415         * doc/posix-functions/iswxdigit.texi: Likewise.
51416         * doc/posix-functions/mbrtowc.texi: Likewise.
51417         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51418         * doc/posix-functions/mbstowcs.texi: Likewise.
51419         * doc/posix-functions/mbtowc.texi: Likewise.
51420         * doc/posix-functions/putwchar.texi: Likewise.
51421         * doc/posix-functions/putwc.texi: Likewise.
51422         * doc/posix-functions/swprintf.texi: Likewise.
51423         * doc/posix-functions/tolower.texi: Likewise.
51424         * doc/posix-functions/toupper.texi: Likewise.
51425         * doc/posix-functions/towctrans.texi: Likewise.
51426         * doc/posix-functions/ungetwc.texi: Likewise.
51427         * doc/posix-functions/vswprintf.texi: Likewise.
51428         * doc/posix-functions/wcrtomb.texi: Likewise.
51429         * doc/posix-functions/wcscat.texi: Likewise.
51430         * doc/posix-functions/wcschr.texi: Likewise.
51431         * doc/posix-functions/wcscmp.texi: Likewise.
51432         * doc/posix-functions/wcscoll.texi: Likewise.
51433         * doc/posix-functions/wcscpy.texi: Likewise.
51434         * doc/posix-functions/wcscspn.texi: Likewise.
51435         * doc/posix-functions/wcsftime.texi: Likewise.
51436         * doc/posix-functions/wcslen.texi: Likewise.
51437         * doc/posix-functions/wcsncat.texi: Likewise.
51438         * doc/posix-functions/wcsncmp.texi: Likewise.
51439         * doc/posix-functions/wcsncpy.texi: Likewise.
51440         * doc/posix-functions/wcspbrk.texi: Likewise.
51441         * doc/posix-functions/wcsrchr.texi: Likewise.
51442         * doc/posix-functions/wcsrtombs.texi: Likewise.
51443         * doc/posix-functions/wcsspn.texi: Likewise.
51444         * doc/posix-functions/wcsstr.texi: Likewise.
51445         * doc/posix-functions/wcstod.texi: Likewise.
51446         * doc/posix-functions/wcstof.texi: Likewise.
51447         * doc/posix-functions/wcstoimax.texi: Likewise.
51448         * doc/posix-functions/wcstok.texi: Likewise.
51449         * doc/posix-functions/wcstold.texi: Likewise.
51450         * doc/posix-functions/wcstoll.texi: Likewise.
51451         * doc/posix-functions/wcstol.texi: Likewise.
51452         * doc/posix-functions/wcstombs.texi: Likewise.
51453         * doc/posix-functions/wcstoull.texi: Likewise.
51454         * doc/posix-functions/wcstoul.texi: Likewise.
51455         * doc/posix-functions/wcstoumax.texi: Likewise.
51456         * doc/posix-functions/wcswidth.texi: Likewise.
51457         * doc/posix-functions/wcsxfrm.texi: Likewise.
51458         * doc/posix-functions/wctob.texi: Likewise.
51459         * doc/posix-functions/wctomb.texi: Likewise.
51460         * doc/posix-functions/wctrans.texi: Likewise.
51461         * doc/posix-functions/wctype.texi: Likewise.
51462         * doc/posix-functions/wcwidth.texi: Likewise.
51463         * doc/posix-functions/wmemchr.texi: Likewise.
51464         * doc/posix-functions/wmemcmp.texi: Likewise.
51465         * doc/posix-functions/wmemcpy.texi: Likewise.
51466         * doc/posix-functions/wmemmove.texi: Likewise.
51467         * doc/posix-functions/wmemset.texi: Likewise.
51468         * doc/posix-functions/wprintf.texi: Likewise.
51469         * doc/posix-functions/wscanf.texi: Likewise.
51470
51471 2008-12-21  Bruno Haible  <bruno@clisp.org>
51472
51473         Update doc for HP-UX 11.11.
51474         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51475         in HP-UX version 11.00, not in all versions of HP-UX 11.
51476         * doc/posix-functions/fwide.texi: Likewise.
51477         * doc/posix-functions/fwprintf.texi: Likewise.
51478         * doc/posix-functions/fwscanf.texi: Likewise.
51479         * doc/posix-functions/inet_ntop.texi: Likewise.
51480         * doc/posix-functions/inet_pton.texi: Likewise.
51481         * doc/posix-functions/mbrlen.texi: Likewise.
51482         * doc/posix-functions/mbrtowc.texi: Likewise.
51483         * doc/posix-functions/mbsinit.texi: Likewise.
51484         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51485         * doc/posix-functions/swprintf.texi: Likewise.
51486         * doc/posix-functions/swscanf.texi: Likewise.
51487         * doc/posix-functions/towctrans.texi: Likewise.
51488         * doc/posix-functions/vfwprintf.texi: Likewise.
51489         * doc/posix-functions/vswprintf.texi: Likewise.
51490         * doc/posix-functions/vwprintf.texi: Likewise.
51491         * doc/posix-functions/wcrtomb.texi: Likewise.
51492         * doc/posix-functions/wcsrtombs.texi: Likewise.
51493         * doc/posix-functions/wcsstr.texi: Likewise.
51494         * doc/posix-functions/wctob.texi: Likewise.
51495         * doc/posix-functions/wctrans.texi: Likewise.
51496         * doc/posix-functions/wmemchr.texi: Likewise.
51497         * doc/posix-functions/wmemcmp.texi: Likewise.
51498         * doc/posix-functions/wmemcpy.texi: Likewise.
51499         * doc/posix-functions/wmemmove.texi: Likewise.
51500         * doc/posix-functions/wmemset.texi: Likewise.
51501         * doc/posix-functions/wprintf.texi: Likewise.
51502         * doc/posix-functions/wscanf.texi: Likewise.
51503
51504 2008-12-21  Bruno Haible  <bruno@clisp.org>
51505
51506         Work around a portability problem.
51507         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
51508         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
51509
51510 2008-12-20  Bruno Haible  <bruno@clisp.org>
51511
51512         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
51513         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
51514         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
51515         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
51516         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
51517
51518         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
51519         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
51520         set.
51521         (GNULIB_defined_mbstate_t): New macro.
51522         (mbsinit): Redefine if REPLACE_MBSINIT is set.
51523         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
51524         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
51525         reuses the system's mbrtowc function but works around the bugs.
51526         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
51527         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
51528         macros.
51529         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
51530         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
51531         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
51532         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
51533         REPLACE_MBSINIT if mbsinit needs to be overridden.
51534         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
51535         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51536         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
51537         REPLACE_MBSINIT, REPLACE_MBRTOWC.
51538         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51539         m4/locale-zh.m4.
51540         (Depends): Add mbsinit.
51541         * modules/mbsinit (Depends): Add mbrtowc.
51542         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
51543
51544 2008-12-20  Bruno Haible  <bruno@clisp.org>
51545
51546         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
51547         so that there are no conversion errors on AIX.
51548         * tests/test-mbsrtowcs.c (main): LIkewise.
51549
51550 2008-12-20  Bruno Haible  <bruno@clisp.org>
51551
51552         Work around wctob bug on Solaris <= 9.
51553         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
51554         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
51555         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
51556         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
51557         * modules/wctob (Files): Add m4/locale-fr.m4.
51558         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
51559
51560 2008-12-20  Bruno Haible  <bruno@clisp.org>
51561
51562         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
51563         /dev/null.
51564         * tests/test-select-in.sh: Likewise.
51565         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51566
51567 2008-12-20  Bruno Haible  <bruno@clisp.org>
51568
51569         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
51570         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
51571         Cygwin 1.5.x.
51572
51573 2008-12-20  Bruno Haible  <bruno@clisp.org>
51574
51575         Ensure mbstate_t is defined on HP-UX 11.11.
51576         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
51577         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
51578         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
51579         AC_USE_SYSTEM_EXTENSIONS.
51580         * modules/fnmatch (Depends-on): Add extensions.
51581         * modules/mbrlen (Depends-on): Likewise.
51582         * modules/mbrtowc (Depends-on): Likewise.
51583         * modules/mbsinit (Depends-on): Likewise.
51584         * modules/mbsrtowcs (Depends-on): Likewise.
51585         * modules/mbswidth (Depends-on): Likewise.
51586         * modules/quotearg (Depends-on): Likewise.
51587         * modules/strftime (Depends-on): Likewise.
51588
51589 2008-12-20  Bruno Haible  <bruno@clisp.org>
51590
51591         Ensure wctob is declared on IRIX 6.5.
51592         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
51593         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
51594         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
51595         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
51596         of HAVE_WCTOB.
51597         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
51598         HAVE_WCTOB.
51599         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
51600
51601 2008-12-19  Bruno Haible  <bruno@clisp.org>
51602
51603         * modules/mbsrtowcs-tests: New file.
51604         * tests/test-mbsrtowcs1.sh: New file.
51605         * tests/test-mbsrtowcs2.sh: New file.
51606         * tests/test-mbsrtowcs3.sh: New file.
51607         * tests/test-mbsrtowcs4.sh: New file.
51608         * tests/test-mbsrtowcs.c: New file.
51609
51610         New module 'mbsrtowcs'.
51611         * lib/wchar.in.h (mbsrtowcs): New declaration.
51612         * lib/mbsrtowcs.c: New file.
51613         * m4/mbsrtowcs.m4: New file.
51614         * modules/mbsrtowcs: New file.
51615         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
51616         HAVE_MBSRTOWCS.
51617         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
51618         HAVE_MBSRTOWCS.
51619         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
51620
51621 2008-12-19  Bruno Haible  <bruno@clisp.org>
51622
51623         New module 'mbrlen'.
51624         * lib/wchar.in.h (mbrlen): New declaration.
51625         * lib/mbrlen.c: New file.
51626         * m4/mbrlen.m4: New file.
51627         * modules/mbrlen: New file.
51628         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
51629         HAVE_MBRLEN.
51630         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
51631         HAVE_MBRLEN.
51632         * doc/posix-functions/mbrlen.texi: Document the new module.
51633
51634 2008-12-19  Bruno Haible  <bruno@clisp.org>
51635
51636         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
51637         * modules/mbrtowc (Depends-on): Add verify.
51638         Suggested by Paul Eggert.
51639
51640 2008-12-18  Bruno Haible  <bruno@clisp.org>
51641
51642         * modules/mbsinit-tests: New file.
51643         * tests/test-mbsinit.sh: New file.
51644         * tests/test-mbsinit.c: New file.
51645
51646 2008-12-18  Bruno Haible  <bruno@clisp.org>
51647
51648         * modules/mbrtowc-tests: New file.
51649         * tests/test-mbrtowc1.sh: New file.
51650         * tests/test-mbrtowc2.sh: New file.
51651         * tests/test-mbrtowc3.sh: New file.
51652         * tests/test-mbrtowc4.sh: New file.
51653         * tests/test-mbrtowc.c: New file.
51654
51655         New module 'mbrtowc'.
51656         * lib/wchar.in.h (mbstate_t): Override when the system does not have
51657         mbsinit and mbrtowc.
51658         (mbrtowc): New declaration.
51659         * lib/mbrtowc.c: New file.
51660         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
51661         * modules/mbrtowc: New file.
51662         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
51663         HAVE_MBRTOWC.
51664         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
51665         HAVE_MBRTOWC.
51666         * doc/posix-functions/mbrtowc.texi: Document the new module.
51667
51668 2008-12-18  Bruno Haible  <bruno@clisp.org>
51669
51670         New module 'wctob'.
51671         * lib/wchar.in.h (wctob): New declaration.
51672         * lib/wctob.c: New file.
51673         * m4/wctob.m4: New file.
51674         * modules/wctob: New file.
51675         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
51676         HAVE_WCTOB.
51677         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
51678         * doc/posix-functions/wctob.texi: Document the new module.
51679
51680 2008-12-18  Bruno Haible  <bruno@clisp.org>
51681
51682         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
51683         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
51684
51685 2008-12-18  Simon Josefsson  <simon@josefsson.org>
51686
51687         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
51688         G. Christensen" <tgc@jupiterrise.com>.
51689
51690         * lib/flock.c: Need to include errno.h.  Reported by "Tom
51691         G. Christensen" <tgc@jupiterrise.com>.
51692
51693         * lib/flock.c: Need to include string.h.  Reported by "Tom
51694         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
51695         <ebb9@byu.net>.
51696
51697 2008-12-18  Bruno Haible  <bruno@clisp.org>
51698
51699         * m4/locale-ja.m4: New file, from GNU gettext.
51700
51701 2008-12-17  Bruno Haible  <bruno@clisp.org>
51702
51703         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
51704         Suggested by Eric Blake.
51705
51706 2008-12-17  Bruno Haible  <bruno@clisp.org>
51707
51708         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
51709
51710 2008-12-17  Bruno Haible  <bruno@clisp.org>
51711
51712         * lib/mbsinit.c: Include verify.h. Verify an assumption.
51713         * modules/mbsinit (Depends-on): Add verify.
51714         Suggested by Paul Eggert.
51715
51716 2008-12-17  Bruno Haible  <bruno@clisp.org>
51717
51718         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
51719         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
51720         gl_FUNC_MBRTOWC.
51721         * m4/mbiter.m4 (gl_MBITER): LIkewise.
51722         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
51723         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
51724         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
51725         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
51726         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
51727         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
51728         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
51729         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
51730         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
51731         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
51732         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
51733         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
51734         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
51735         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
51736         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
51737         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
51738         * modules/trim (configure.ac): Likewise.
51739
51740 2008-12-17  Bruno Haible  <bruno@clisp.org>
51741
51742         * modules/btowc-tests: New file.
51743         * tests/test-btowc1.sh: New file.
51744         * tests/test-btowc2.sh: New file.
51745         * tests/test-btowc.c: New file.
51746
51747         New module 'btowc'.
51748         * lib/wchar.in.h (btowc): New declaration.
51749         * lib/btowc.c: New file.
51750         * m4/btowc.m4: New file.
51751         * modules/btowc: New file.
51752         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
51753         HAVE_BTOWC.
51754         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
51755         * doc/posix-functions/btowc.texi: Document the new module.
51756
51757 2008-12-17  Bruno Haible  <bruno@clisp.org>
51758
51759         New module 'mbsinit'.
51760         * lib/wchar.in.h (mbsinit): New declaration.
51761         * lib/mbsinit.c: New file.
51762         * m4/mbsinit.m4: New file.
51763         * modules/mbsinit: New file.
51764         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
51765         HAVE_MBSINIT.
51766         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
51767         HAVE_MBSINIT.
51768         * doc/posix-functions/mbsinit.texi: Document the new module.
51769
51770 2008-12-16  Bruno Haible  <bruno@clisp.org>
51771
51772         * lib/unistd.in.h: Add comment.
51773         * tests/test-environ.c: Don't include <stdlib.h>.
51774
51775 2008-12-16  Bruno Haible  <bruno@clisp.org>
51776
51777         * lib/parse-duration.h (parse_duration): Document return value
51778         convention.
51779         * lib/parse-duration.c: Include specification header first. Add
51780         comments.
51781         (_): Remove macro.
51782         (parse_year_month_day, parse_hour_minute_second): Move side effects
51783         outside of strchr call.
51784         (parse_non_iso8601): Move side effects outside of isspace call.
51785         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
51786         call.
51787
51788 2008-12-16  Bruno Haible  <bruno@clisp.org>
51789
51790         * tests/test-parse-duration.sh: Produce no output when the test
51791         succeeds.
51792
51793 2008-12-16  Bruno Haible  <bruno@clisp.org>
51794
51795         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
51796         expressions.
51797
51798 2008-12-15  Bruno Haible  <bruno@clisp.org>
51799
51800         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
51801         * doc/glibc-functions/flistxattr.texi: Likewise.
51802         * doc/glibc-functions/fopencookie.texi: Likewise.
51803         * doc/glibc-functions/fremovexattr.texi: Likewise.
51804         * doc/glibc-functions/fsetxattr.texi: Likewise.
51805         * doc/glibc-functions/getxattr.texi: Likewise.
51806         * doc/glibc-functions/lgetxattr.texi: Likewise.
51807         * doc/glibc-functions/listxattr.texi: Likewise.
51808         * doc/glibc-functions/llistxattr.texi: Likewise.
51809         * doc/glibc-functions/lremovexattr.texi: Likewise.
51810         * doc/glibc-functions/lsetxattr.texi: Likewise.
51811         * doc/glibc-functions/removexattr.texi: Likewise.
51812         * doc/glibc-functions/setxattr.texi: Likewise.
51813         * doc/posix-functions/open_memstream.texi: Likewise.
51814
51815 2008-12-15  Eric Blake  <ebb9@byu.net>
51816
51817         Update doc for cygwin 1.7.
51818         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
51819         functions.
51820         * doc/posix-functions/fchmodat.texi: Likewise.
51821         * doc/posix-functions/fchownat.texi: Likewise.
51822         * doc/posix-functions/fdopendir.texi: Likewise.
51823         * doc/posix-functions/fmemopen.texi: Likewise.
51824         * doc/posix-functions/freeaddrinfo.texi: Likewise.
51825         * doc/posix-functions/fstatat.texi: Likewise.
51826         * doc/posix-functions/futimens.texi: Likewise.
51827         * doc/posix-functions/gai_strerror.texi: Likewise.
51828         * doc/posix-functions/getaddrinfo.texi: Likewise.
51829         * doc/posix-functions/getnameinfo.texi: Likewise.
51830         * doc/posix-functions/if_freenameindex.texi: Likewise.
51831         * doc/posix-functions/if_indextoname.texi: Likewise.
51832         * doc/posix-functions/if_nameindex.texi: Likewise.
51833         * doc/posix-functions/if_nametoindex.texi: Likewise.
51834         * doc/posix-functions/insque.texi: Likewise.
51835         * doc/posix-functions/linkat.texi: Likewise.
51836         * doc/posix-functions/llrint.texi: Likewise.
51837         * doc/posix-functions/llrintf.texi: Likewise.
51838         * doc/posix-functions/llrintl.texi: Likewise.
51839         * doc/posix-functions/lockf.texi: Likewise.
51840         * doc/posix-functions/lrintl.texi: Likewise.
51841         * doc/posix-functions/mkdirat.texi: Likewise.
51842         * doc/posix-functions/mkfifoat.texi: Likewise.
51843         * doc/posix-functions/mknodat.texi: Likewise.
51844         * doc/posix-functions/mq_close.texi: Likewise.
51845         * doc/posix-functions/mq_getattr.texi: Likewise.
51846         * doc/posix-functions/mq_notify.texi: Likewise.
51847         * doc/posix-functions/mq_open.texi: Likewise.
51848         * doc/posix-functions/mq_receive.texi: Likewise.
51849         * doc/posix-functions/mq_send.texi: Likewise.
51850         * doc/posix-functions/mq_setattr.texi: Likewise.
51851         * doc/posix-functions/mq_timedreceive.texi: Likewise.
51852         * doc/posix-functions/mq_timedsend.texi: Likewise.
51853         * doc/posix-functions/mq_unlink.texi: Likewise.
51854         * doc/posix-functions/open_memstream.texi: Likewise.
51855         * doc/posix-functions/openat.texi: Likewise.
51856         * doc/posix-functions/posix_fadvise.texi: Likewise.
51857         * doc/posix-functions/posix_fallocate.texi: Likewise.
51858         * doc/posix-functions/posix_madvise.texi: Likewise.
51859         * doc/posix-functions/posix_memalign.texi: Likewise.
51860         * doc/posix-functions/posix_openpt.texi: Likewise.
51861         * doc/posix-functions/readlinkat.texi: Likewise.
51862         * doc/posix-functions/remque.texi: Likewise.
51863         * doc/posix-functions/renameat.texi: Likewise.
51864         * doc/posix-functions/rintl.texi: Likewise.
51865         * doc/posix-functions/sem_unlink.texi: Likewise.
51866         * doc/posix-functions/shm_open.texi: Likewise.
51867         * doc/posix-functions/shm_unlink.texi: Likewise.
51868         * doc/posix-functions/signgam.texi: Likewise.
51869         * doc/posix-functions/sigset.texi: Likewise.
51870         * doc/posix-functions/stpcpy.texi: Likewise.
51871         * doc/posix-functions/stpncpy.texi: Likewise.
51872         * doc/posix-functions/strerror.texi: Likewise.
51873         * doc/posix-functions/strtod.texi: Likewise.
51874         * doc/posix-functions/symlinkat.texi: Likewise.
51875         * doc/posix-functions/unlinkat.texi: Likewise.
51876         * doc/posix-functions/utimensat.texi: Likewise.
51877         * doc/glibc-functions/bindresvport.texi: Likewise.
51878         * doc/glibc-functions/dn_expand.texi: Likewise.
51879         * doc/glibc-functions/exp10.texi: Likewise.
51880         * doc/glibc-functions/exp10f.texi: Likewise.
51881         * doc/glibc-functions/fgetxattr.texi: Likewise.
51882         * doc/glibc-functions/flistxattr.texi: Likewise.
51883         * doc/glibc-functions/fopencookie.texi: Likewise.
51884         * doc/glibc-functions/freeifaddrs.texi: Likewise.
51885         * doc/glibc-functions/fremovexattr.texi: Likewise.
51886         * doc/glibc-functions/fsetxattr.texi: Likewise.
51887         * doc/glibc-functions/getifaddrs.texi: Likewise.
51888         * doc/glibc-functions/getxattr.texi: Likewise.
51889         * doc/glibc-functions/lgetxattr.texi: Likewise.
51890         * doc/glibc-functions/listxattr.texi: Likewise.
51891         * doc/glibc-functions/llistxattr.texi: Likewise.
51892         * doc/glibc-functions/lremovexattr.texi: Likewise.
51893         * doc/glibc-functions/lsetxattr.texi: Likewise.
51894         * doc/glibc-functions/pow10.texi: Likewise.
51895         * doc/glibc-functions/pow10f.texi: Likewise.
51896         * doc/glibc-functions/rcmd_af.texi: Likewise.
51897         * doc/glibc-functions/removexattr.texi: Likewise.
51898         * doc/glibc-functions/res_init.texi: Likewise.
51899         * doc/glibc-functions/res_mkquery.texi: Likewise.
51900         * doc/glibc-functions/res_query.texi: Likewise.
51901         * doc/glibc-functions/res_querydomain.texi: Likewise.
51902         * doc/glibc-functions/res_send.texi: Likewise.
51903         * doc/glibc-functions/rresvport_af.texi: Likewise.
51904         * doc/glibc-functions/setxattr.texi: Likewise.
51905         * doc/glibc-functions/strcasestr.texi: Likewise.
51906
51907 2008-12-15  Bruno Haible  <bruno@clisp.org>
51908
51909         Fix compilation error on OSF/1 4.0.
51910         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51911         <sys/time.h>, simply delegate to the system header.
51912         Reported by Daniel Richard G. <oss@teragram.com>.
51913
51914 2008-12-15  Bruno Haible  <bruno@clisp.org>
51915
51916         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51917         * doc/posix-functions/fchmodat.texi: Likewise.
51918         * doc/posix-functions/fchownat.texi: Likewise.
51919         * doc/posix-functions/fdopendir.texi: Likewise.
51920         * doc/posix-functions/fstatat.texi: Likewise.
51921         * doc/posix-functions/mkdirat.texi: Likewise.
51922         * doc/posix-functions/unlinkat.texi: Likewise.
51923
51924 2008-12-14  Bruno Haible  <bruno@clisp.org>
51925
51926         Update doc for POSIX:2008.
51927         * doc/posix-functions/faccessat.texi: New file.
51928         * doc/posix-functions/fchmodat.texi: New file.
51929         * doc/posix-functions/fchownat.texi: New file.
51930         * doc/posix-functions/fdopendir.texi: New file.
51931         * doc/posix-functions/fstatat.texi: New file.
51932         * doc/posix-functions/futimens.texi: New file.
51933         * doc/posix-functions/linkat.texi: New file.
51934         * doc/posix-functions/mkdirat.texi: New file.
51935         * doc/posix-functions/mkfifoat.texi: New file.
51936         * doc/posix-functions/mknodat.texi: New file.
51937         * doc/posix-functions/open_wmemstream.texi: New file.
51938         * doc/posix-functions/openat.texi: New file.
51939         * doc/posix-functions/psiginfo.texi: New file.
51940         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
51941         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
51942         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
51943         * doc/posix-functions/readlinkat.texi: New file.
51944         * doc/posix-functions/renameat.texi: New file.
51945         * doc/posix-functions/strerror_l.texi: New file.
51946         * doc/posix-functions/symlinkat.texi: New file.
51947         * doc/posix-functions/unlinkat.texi: New file.
51948         * doc/posix-functions/utimensat.texi: New file.
51949         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51950
51951 2008-12-14  Bruno Haible  <bruno@clisp.org>
51952
51953         Update doc for POSIX:2008.
51954         * doc/posix-functions/alphasort.texi: Renamed from
51955         doc/glibc-functions/alphasort.texi.
51956         * doc/posix-functions/dirfd.texi: Renamed from
51957         doc/glibc-functions/dirfd.texi.
51958         * doc/posix-functions/dprintf.texi: Renamed from
51959         doc/glibc-functions/dprintf.texi.
51960         * doc/posix-functions/duplocale.texi: Renamed from
51961         doc/glibc-functions/duplocale.texi.
51962         * doc/posix-functions/fexecve.texi: Renamed from
51963         doc/glibc-functions/fexecve.texi.
51964         * doc/posix-functions/fmemopen.texi: Renamed from
51965         doc/glibc-functions/fmemopen.texi.
51966         * doc/posix-functions/freelocale.texi: Renamed from
51967         doc/glibc-functions/freelocale.texi.
51968         * doc/posix-functions/getdate_err.texi: Renamed from
51969         doc/glibc-functions/getdate_err.texi.
51970         * doc/posix-functions/isalnum_l.texi: Renamed from
51971         doc/glibc-functions/isalnum_l.texi.
51972         * doc/posix-functions/isalpha_l.texi: Renamed from
51973         doc/glibc-functions/isalpha_l.texi.
51974         * doc/posix-functions/isblank_l.texi: Renamed from
51975         doc/glibc-functions/isblank_l.texi.
51976         * doc/posix-functions/iscntrl_l.texi: Renamed from
51977         doc/glibc-functions/iscntrl_l.texi.
51978         * doc/posix-functions/isdigit_l.texi: Renamed from
51979         doc/glibc-functions/isdigit_l.texi.
51980         * doc/posix-functions/isgraph_l.texi: Renamed from
51981         doc/glibc-functions/isgraph_l.texi.
51982         * doc/posix-functions/islower_l.texi: Renamed from
51983         doc/glibc-functions/islower_l.texi.
51984         * doc/posix-functions/isprint_l.texi: Renamed from
51985         doc/glibc-functions/isprint_l.texi.
51986         * doc/posix-functions/ispunct_l.texi: Renamed from
51987         doc/glibc-functions/ispunct_l.texi.
51988         * doc/posix-functions/isspace_l.texi: Renamed from
51989         doc/glibc-functions/isspace_l.texi.
51990         * doc/posix-functions/isupper_l.texi: Renamed from
51991         doc/glibc-functions/isupper_l.texi.
51992         * doc/posix-functions/iswalnum_l.texi: Renamed from
51993         doc/glibc-functions/iswalnum_l.texi.
51994         * doc/posix-functions/iswalpha_l.texi: Renamed from
51995         doc/glibc-functions/iswalpha_l.texi.
51996         * doc/posix-functions/iswblank_l.texi: Renamed from
51997         doc/glibc-functions/iswblank_l.texi.
51998         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51999         doc/glibc-functions/iswcntrl_l.texi.
52000         * doc/posix-functions/iswctype_l.texi: Renamed from
52001         doc/glibc-functions/iswctype_l.texi.
52002         * doc/posix-functions/iswdigit_l.texi: Renamed from
52003         doc/glibc-functions/iswdigit_l.texi.
52004         * doc/posix-functions/iswgraph_l.texi: Renamed from
52005         doc/glibc-functions/iswgraph_l.texi.
52006         * doc/posix-functions/iswlower_l.texi: Renamed from
52007         doc/glibc-functions/iswlower_l.texi.
52008         * doc/posix-functions/iswprint_l.texi: Renamed from
52009         doc/glibc-functions/iswprint_l.texi.
52010         * doc/posix-functions/iswpunct_l.texi: Renamed from
52011         doc/glibc-functions/iswpunct_l.texi.
52012         * doc/posix-functions/iswspace_l.texi: Renamed from
52013         doc/glibc-functions/iswspace_l.texi.
52014         * doc/posix-functions/iswupper_l.texi: Renamed from
52015         doc/glibc-functions/iswupper_l.texi.
52016         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52017         doc/glibc-functions/iswxdigit_l.texi.
52018         * doc/posix-functions/isxdigit_l.texi: Renamed from
52019         doc/glibc-functions/isxdigit_l.texi.
52020         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52021         doc/glibc-functions/mbsnrtowcs.texi.
52022         * doc/posix-functions/mkdtemp.texi: Renamed from
52023         doc/glibc-functions/mkdtemp.texi.
52024         * doc/posix-functions/newlocale.texi: Renamed from
52025         doc/glibc-functions/newlocale.texi.
52026         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52027         doc/glibc-functions/nl_langinfo_l.texi.
52028         * doc/posix-functions/open_memstream.texi: Renamed from
52029         doc/glibc-functions/open_memstream.texi.
52030         * doc/posix-functions/opterr.texi: Renamed from
52031         doc/glibc-functions/opterr.texi.
52032         * doc/posix-functions/optind.texi: Renamed from
52033         doc/glibc-functions/optind.texi.
52034         * doc/posix-functions/optopt.texi: Renamed from
52035         doc/glibc-functions/optopt.texi.
52036         * doc/posix-functions/psignal.texi: Renamed from
52037         doc/glibc-functions/psignal.texi.
52038         * doc/posix-functions/scandir.texi: Renamed from
52039         doc/glibc-functions/scandir.texi.
52040         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52041         doc/glibc-functions/sched_get_priority_min.texi.
52042         * doc/posix-functions/signgam.texi: Renamed from
52043         doc/glibc-functions/signgam.texi.
52044         * doc/posix-functions/stpcpy.texi: Renamed from
52045         doc/glibc-functions/stpcpy.texi.
52046         * doc/posix-functions/stpncpy.texi: Renamed from
52047         doc/glibc-functions/stpncpy.texi.
52048         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52049         doc/glibc-functions/strcasecmp_l.texi.
52050         * doc/posix-functions/strcoll_l.texi: Renamed from
52051         doc/glibc-functions/strcoll_l.texi.
52052         * doc/posix-functions/strfmon_l.texi: Renamed from
52053         doc/glibc-functions/strfmon_l.texi.
52054         * doc/posix-functions/strftime_l.texi: Renamed from
52055         doc/glibc-functions/strftime_l.texi.
52056         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52057         doc/glibc-functions/strncasecmp_l.texi.
52058         * doc/posix-functions/strndup.texi: Renamed from
52059         doc/glibc-functions/strndup.texi.
52060         * doc/posix-functions/strnlen.texi: Renamed from
52061         doc/glibc-functions/strnlen.texi.
52062         * doc/posix-functions/strsignal.texi: Renamed from
52063         doc/glibc-functions/strsignal.texi.
52064         * doc/posix-functions/strxfrm_l.texi: Renamed from
52065         doc/glibc-functions/strxfrm_l.texi.
52066         * doc/posix-functions/timer_gettime.texi: Renamed from
52067         doc/glibc-functions/timer_gettime.texi.
52068         * doc/posix-functions/tolower_l.texi: Renamed from
52069         doc/glibc-functions/tolower_l.texi.
52070         * doc/posix-functions/toupper_l.texi: Renamed from
52071         doc/glibc-functions/toupper_l.texi.
52072         * doc/posix-functions/towctrans_l.texi: Renamed from
52073         doc/glibc-functions/towctrans_l.texi.
52074         * doc/posix-functions/towlower_l.texi: Renamed from
52075         doc/glibc-functions/towlower_l.texi.
52076         * doc/posix-functions/towupper_l.texi: Renamed from
52077         doc/glibc-functions/towupper_l.texi.
52078         * doc/posix-functions/uselocale.texi: Renamed from
52079         doc/glibc-functions/uselocale.texi.
52080         * doc/posix-functions/vdprintf.texi: Renamed from
52081         doc/glibc-functions/vdprintf.texi.
52082         * doc/posix-functions/wcpcpy.texi:
52083         Renamed from doc/glibc-functions/wcpcpy.texi.
52084         * doc/posix-functions/wcpncpy.texi: Renamed from
52085         doc/glibc-functions/wcpncpy.texi.
52086         * doc/posix-functions/wcscasecmp.texi: Renamed from
52087         doc/glibc-functions/wcscasecmp.texi.
52088         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52089         doc/glibc-functions/wcscasecmp_l.texi.
52090         * doc/posix-functions/wcscoll_l.texi: Renamed from
52091         doc/glibc-functions/wcscoll_l.texi.
52092         * doc/posix-functions/wcsdup.texi: Renamed from
52093         doc/glibc-functions/wcsdup.texi.
52094         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52095         doc/glibc-functions/wcsncasecmp.texi.
52096         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52097         doc/glibc-functions/wcsncasecmp_l.texi.
52098         * doc/posix-functions/wcsnlen.texi: Renamed from
52099         doc/glibc-functions/wcsnlen.texi.
52100         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52101         doc/glibc-functions/wcsnrtombs.texi.
52102         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52103         doc/glibc-functions/wcsxfrm_l.texi.
52104         * doc/posix-functions/wctrans_l.texi: Renamed from
52105         doc/glibc-functions/wctrans_l.texi.
52106         * doc/posix-functions/wctype_l.texi: Renamed from
52107         doc/glibc-functions/wctype_l.texi.
52108         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52109         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52110         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52111         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52112         these subsections.
52113         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52114         Remove sections.
52115
52116 2008-12-14  Bruno Haible  <bruno@clisp.org>
52117
52118         Update doc for POSIX:2008.
52119         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52120
52121 2008-12-14  Bruno Haible  <bruno@clisp.org>
52122
52123         Update doc for POSIX:2008.
52124         * doc/pastposix-functions/bcmp.texi: Renamed from
52125         doc/posix-functions/bcmp.texi.
52126         * doc/pastposix-functions/bcopy.texi: Renamed from
52127         doc/posix-functions/bcopy.texi.
52128         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52129         doc/posix-functions/bsd_signal.texi.
52130         * doc/pastposix-functions/bzero.texi: Renamed from
52131         doc/posix-functions/bzero.texi.
52132         * doc/pastposix-functions/ecvt.texi: Renamed from
52133         doc/posix-functions/ecvt.texi.
52134         * doc/pastposix-functions/fcvt.texi: Renamed from
52135         doc/posix-functions/fcvt.texi.
52136         * doc/pastposix-functions/ftime.texi: Renamed from
52137         doc/posix-functions/ftime.texi.
52138         * doc/pastposix-functions/gcvt.texi: Renamed from
52139         doc/posix-functions/gcvt.texi.
52140         * doc/pastposix-functions/getcontext.texi: Renamed from
52141         doc/posix-functions/getcontext.texi.
52142         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52143         doc/posix-functions/gethostbyaddr.texi.
52144         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52145         doc/posix-functions/gethostbyname.texi.
52146         * doc/pastposix-functions/getwd.texi: Renamed from
52147         doc/posix-functions/getwd.texi.
52148         * doc/pastposix-functions/h_errno.texi: Renamed from
52149         doc/posix-functions/h_errno.texi.
52150         * doc/pastposix-functions/index.texi: Renamed from
52151         doc/posix-functions/index.texi.
52152         * doc/pastposix-functions/makecontext.texi: Renamed from
52153         doc/posix-functions/makecontext.texi.
52154         * doc/pastposix-functions/mktemp.texi: Renamed from
52155         doc/posix-functions/mktemp.texi.
52156         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52157         doc/posix-functions/pthread_attr_getstackaddr.texi.
52158         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52159         doc/posix-functions/pthread_attr_setstackaddr.texi.
52160         * doc/pastposix-functions/rindex.texi: Renamed from
52161         doc/posix-functions/rindex.texi.
52162         * doc/pastposix-functions/scalb.texi: Renamed from
52163         doc/posix-functions/scalb.texi.
52164         * doc/pastposix-functions/setcontext.texi: Renamed from
52165         doc/posix-functions/setcontext.texi.
52166         * doc/pastposix-functions/swapcontext.texi: Renamed from
52167         doc/posix-functions/swapcontext.texi.
52168         * doc/pastposix-functions/ualarm.texi: Renamed from
52169         doc/posix-functions/ualarm.texi.
52170         * doc/pastposix-functions/usleep.texi: Renamed from
52171         doc/posix-functions/usleep.texi.
52172         * doc/pastposix-functions/vfork.texi: Renamed from
52173         doc/posix-functions/vfork.texi.
52174         * doc/pastposix-functions/wcswcs.texi: Renamed from
52175         doc/posix-functions/wcswcs.texi.
52176         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52177         (Function Substitutes): Update.
52178
52179 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52180
52181         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52182         m4/strerror.m4.
52183
52184 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52185             Bruno Haible  <bruno@clisp.org>
52186
52187         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52188
52189 2008-12-13  Bruno Haible  <bruno@clisp.org>
52190
52191         * modules/strtoull (Depends-on): Remove unistd.
52192
52193 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52194
52195         * modules/strtoull (Depends-on): Add stdlib.
52196
52197 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52198
52199         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52200
52201 2008-12-10  Jim Meyering  <meyering@redhat.com>
52202
52203         gl_ASSERT: don't say assertions are disabled when they're not
52204         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52205         "checking whether to enable assertions... no", when they are in
52206         fact enabled.  This is solely a bug in the output of configure.
52207         In spite of saying "no", NDEBUG was not defined in that case.
52208         Also, as noted by Eric Blake, leave assertions enabled upon
52209         --enable-assert=INVALID.
52210
52211 2008-12-10  Bruno Haible  <bruno@clisp.org>
52212
52213         Change MODULES.html to refer to POSIX:2008 where possible.
52214         * MODULES.html.sh (POSIX2008_URL): New variable.
52215         (posix_headers): Remove sys/timeb, ucontext.
52216         (posix2001_headers): New variable.
52217         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52218         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52219         index, makecontext, mktemp, pthread_attr_getstackaddr,
52220         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52221         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52222         (posix2001_functions): New variable.
52223         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52224         otherwise.
52225
52226 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52227
52228         add missing include to parse-duration.c
52229         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52230         * modules/parse-duration (Depends-on): Add xalloc.
52231
52232         fix sed script reading maint.mk
52233         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52234         (syntax-check-rules): Use it.
52235
52236 2008-12-09  Bruno Haible  <bruno@clisp.org>
52237
52238         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52239         MacOS X 10.4/PowerPC.
52240         Reported by Simon Josefsson.
52241
52242 2008-12-08  Jim Meyering  <meyering@redhat.com>
52243
52244         work around mingw's lack of some S_IF definitions
52245         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52246         Reported by Simon Josefsson.
52247
52248 2008-12-08  Bruno Haible  <bruno@clisp.org>
52249
52250         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52251         applied to variables. Needed on MacOS X 10.4/PowerPC.
52252         Reported by Simon Josefsson.
52253
52254 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52255         and Eric Blake  <ebb9@byu.net>
52256
52257         assert: honor --enable-assert
52258         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52259         order to honor --enable-assert, rather than treating it as a
52260         synonym for --disable-assert.
52261
52262 2008-12-08  Jim Meyering  <meyering@redhat.com>
52263
52264         * lib/posixtm.c: Remove now-useless declaration of mktime.
52265
52266         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52267
52268 2008-12-07  Bruno Haible  <bruno@clisp.org>
52269
52270         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52271         test_once): Mark functions as static.
52272         * tests/test-tls.c (test_tls): Likewise.
52273
52274 2008-12-07  Bruno Haible  <bruno@clisp.org>
52275
52276         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52277         iconv_register_autodetect.
52278
52279 2008-12-07  Jim Meyering  <meyering@redhat.com>
52280
52281         posixtm.c: avoid a warning
52282         * lib/posixtm.c (posixtime): Don't initialize tm0.
52283         It's no longer needed to placate gcc4's -Wuninitialized,
52284         and the attempt to placate would elicit a new warning.
52285
52286         unicodeio.c: mark unused parameters
52287         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52288         (fallback_failure_callback): Likewise.
52289
52290 2008-12-07  Bruno Haible  <bruno@clisp.org>
52291
52292         * gnulib-tool (func_create_testdir): When building the tests
52293         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52294         Reported by Simon Josefsson.
52295
52296 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52297
52298         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52299
52300 2008-12-06  Bruno Haible  <bruno@clisp.org>
52301
52302         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52303         Suggested by Eric Blake.
52304
52305 2008-12-06  Bruno Haible  <bruno@clisp.org>
52306
52307         Fix a c-stack test failure on MacOS X.
52308         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52309         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52310         handler for SIGBUS as well.
52311         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52312         install a signal handler for SIGBUS as well.
52313         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52314
52315 2008-12-06  Bruno Haible  <bruno@clisp.org>
52316
52317         Advocacy documentation.
52318         * doc/gnulib-intro.texi (Benefits): New section.
52319         * doc/gnulib.texi: Update.
52320
52321 2008-12-06  Bruno Haible  <bruno@clisp.org>
52322
52323         Document the 'manywarnings' module.
52324         * doc/manywarnings.texi: New file.
52325         * doc/gnulib.texi: Include it.
52326
52327 2008-12-05  Eric Blake  <ebb9@byu.net>
52328
52329         tests: silence some gcc warnings
52330         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52331         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52332         type mismatches.
52333
52334 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52335             Bruno Haible  <bruno@clisp.org>
52336
52337         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52338
52339 2008-11-29  Jim Meyering  <meyering@redhat.com>
52340
52341         unicodeio.c: mark unused parameters
52342         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52343         (fallback_failure_callback): Likewise.
52344
52345         fts: fix a thinko
52346         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52347         (set_stat_type): Return S_IF*-valued "type" directly.
52348         Prompted by James Youngman's spotting a related bug.
52349         Confirmed by further testing through find.
52350
52351         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52352         * lib/fts.c (D_TYPE): Define.
52353         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52354         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52355         (s_ifmt_shift_bits): New function.
52356         (set_stat_type): New function.
52357         (fts_build): When not calling fts_stat, call set_stat_type
52358         to propagate dirent.d_type info to fts_read caller.
52359         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52360         fts_statp->st_mode type information may be valid.
52361
52362 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52363
52364         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52365         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52366         <sds@gnu.org>.
52367
52368 2008-11-20  Bruno Haible  <bruno@clisp.org>
52369
52370         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52371         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52372         INCLUDE_NEXT.
52373         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52374         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52375         * modules/math (Makefile.am): Substitute
52376         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52377         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52378
52379 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52380             Bruno Haible  <bruno@clisp.org>
52381
52382         * lib/stdint.in.h: Define all type macros so that their expansion is
52383         a single typedef'ed token. Fixes a compilation failure in Boost which
52384         does "using ::int8_t;".
52385
52386 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52387
52388         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52389         gl_MANYWARN_ALL_GCC.
52390         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52391         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52392         * modules/manywarnings: New file.
52393         * MODULES.html.sh: Mention manywarnings module.
52394
52395 2008-11-18  Bruno Haible  <bruno@clisp.org>
52396
52397         * doc/gnulib-tool.texi (Unit tests): New section.
52398
52399 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52400
52401         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52402         paths like 'lib/po/foo.po'.
52403
52404 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52405
52406         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52407         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52408
52409 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52410
52411         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52412         parameter works.
52413
52414 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52415
52416         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52417
52418 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52419
52420         * modules/parse-duration-tests: New file.
52421         * tests/test-parse-duration.sh: New file.
52422         * tests/test-parse-duration.c: New file.
52423
52424         New module 'parse-duration'.
52425         * lib/parse-duration.h: New file.
52426         * lib/parse-duration.c: New file.
52427         * modules/parse-duration: New file.
52428
52429 2008-11-17  Bruno Haible  <bruno@clisp.org>
52430
52431         * tests/test-select-out.sh: Comment out the first pipe test.
52432         Reported by Simon Josefsson.
52433
52434 2008-11-17  Bruno Haible  <bruno@clisp.org>
52435
52436         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52437         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52438         gl_HOSTENT.
52439
52440 2008-11-17  Bruno Haible  <bruno@clisp.org>
52441
52442         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52443         -lnetwork and -lnet. Needed for Haiku and BeOS.
52444
52445 2008-11-16  Bruno Haible  <bruno@clisp.org>
52446
52447         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52448
52449 2008-11-16  Bruno Haible  <bruno@clisp.org>
52450
52451         Avoid test failure on Haiku.
52452         * tests/test-fsync.c: Include <errno.h>.
52453         (main): Don't require that fsync (0) fails.
52454
52455 2008-11-15  Bruno Haible  <bruno@clisp.org>
52456
52457         New module 'hostent'.
52458         * modules/hostent: New file.
52459         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52460
52461 2008-11-15  Bruno Haible  <bruno@clisp.org>
52462
52463         New module 'servent'.
52464         * modules/servent: New file.
52465         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52466
52467 2008-11-15  Bruno Haible  <bruno@clisp.org>
52468
52469         Avoid generating same test program with two different rules.
52470         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52471         test-frexp to test-frexp-nolibm.
52472         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52473         test-frexpl to test-frexpl-nolibm.
52474
52475 2008-11-15  Bruno Haible  <bruno@clisp.org>
52476
52477         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52478         $(FREXPL_LIBM).
52479
52480 2008-11-15  Bruno Haible  <bruno@clisp.org>
52481
52482         * lib/netdb.in.h: Activate the definitions also when the system's
52483         <netdb.h> has 'struct addrinfo'.
52484         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52485         EAI_OVERFLOW or AI_NUMERICSERV.
52486         * doc/posix-headers/netdb.texi: Document the problem.
52487
52488 2008-11-15  Bruno Haible  <bruno@clisp.org>
52489
52490         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52491
52492         Make the 'sched' module work on platforms where <sched.h> exists but
52493         is incomplete (such as Haiku).
52494         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52495         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52496         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52497         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52498         HAVE_STRUCT_SCHED_PARAM.
52499         * modules/sched (Depends-on): Add include_next.
52500         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52501         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52502         * doc/posix-headers/sched.texi: Document the issue.
52503
52504 2008-11-13  Jim Meyering  <meyering@redhat.com>
52505
52506         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
52507         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
52508         test would fail due to the difference in the Report bugs to ...
52509         line.  The expected address is empty, "<>", while the actual
52510         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
52511
52512 2008-11-12  Bruno Haible  <bruno@clisp.org>
52513
52514         lstat: don't compile lstat.c on systems lacking lstat
52515         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
52516         which don't have lstat; this is handled by lib/sys_stat.in.h already.
52517         Reported by Daniel P. Berrange via Jim Meyering.
52518
52519 2008-11-12  Jim Meyering  <meyering@redhat.com>
52520
52521         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
52522
52523 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52524
52525         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
52526         instead.
52527
52528 2008-11-12  Bruno Haible  <bruno@clisp.org>
52529
52530         * lib/unicodeio.c: Include unistr.h.
52531         (utf8_wctomb): Remove function.
52532         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
52533
52534 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52535
52536         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
52537         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
52538         <bruno@clisp.org>.
52539         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
52540
52541 2008-11-12  Simon Josefsson  <simon@josefsson.org>
52542
52543         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
52544         * doc/gnulib.texi: Add section for warnings.
52545
52546 2008-11-11  Bruno Haible  <bruno@clisp.org>
52547
52548         * lib/sockets.h: Add a comment.
52549
52550 2008-11-11  Karl Berry  <karl@gnu.org>
52551
52552         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
52553
52554 2008-11-11  Eric Blake  <ebb9@byu.net>
52555
52556         fdl.texi: avoid git symlinks
52557         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
52558
52559 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52560
52561         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
52562
52563 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52564
52565         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
52566         (gl_WARN_ADD): Substitute $2 if literal.
52567
52568 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52569
52570         * m4/warning.m4: Remove.
52571
52572 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
52573
52574         * m4/warnings.m4: Almost complete rewrite. :-)
52575
52576 2008-11-10  Simon Josefsson  <simon@josefsson.org>
52577
52578         * modules/warnings: New module.
52579         * m4/warnings.m4: New file.
52580         * MODULES.html.sh: Mention warnings module.
52581         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
52582         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52583
52584 2008-11-10  Eric Blake  <ebb9@byu.net>
52585
52586         fdl.texi: make a symlink to the latest version
52587         * doc/standards.texi: Revert today's earlier change.
52588         * doc/fdl-1.2.texi: Rename from old fdl.texi...
52589         * doc/fdl.texi: ...and replace this with a symlink to the newer
52590         fdl-1.3.texi.
52591
52592 2008-11-10  Bruno Haible  <bruno@clisp.org>
52593
52594         * tests/test-select-fd.c (main): Accept the result file name as fourth
52595         argument.
52596         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
52597         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
52598
52599 2008-11-10  Bruno Haible  <bruno@clisp.org>
52600
52601         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
52602         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
52603         as autoconf-substituted macros.
52604         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
52605         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
52606         gl_NETDB_H_DEFAULTS. Set these variables.
52607         * modules/netdb (Makefile.am): Substitute these variables.
52608
52609 2008-11-10  Eric Blake  <ebb9@byu.net>
52610
52611         standards.texi: include correct file for FDL 1.3
52612         * doc/standards.texi (GNU Free Documentation License): Change
52613         include file to pull in FDL 1.3, not 1.2.
52614
52615         fdl.texi: revert accidental change to license
52616         * doc/fdl.texi: This is FDL 1.2, not 1.3.
52617
52618 2008-11-10  Bruno Haible  <bruno@clisp.org>
52619
52620         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
52621         cross-compiling guesses also when the native compile gives no result.
52622
52623 2008-11-10  Bruno Haible  <bruno@clisp.org>
52624
52625         * lib/spawni.c (__spawni): Force variable into the stack.
52626
52627 2008-11-10  Bruno Haible  <bruno@clisp.org>
52628
52629         Add support for Haiku.
52630         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
52631         glibc and BeOS, but also on Haiku.
52632         * lib/fpurge.c (fpurge): Likewise.
52633         * lib/freadable.c (freadable): Likewise.
52634         * lib/freadahead.c (freadahead): Likewise.
52635         * lib/freading.c (freading): Likewise.
52636         * lib/freadptr.c (freadptr): Likewise.
52637         * lib/freadseek.c (freadptrinc): Likewise.
52638         * lib/fseeko.c (rpl_fseeko): Likewise.
52639         * lib/fseterr.c (fseterr): Likewise.
52640         * lib/fwritable.c (fwritable): Likewise.
52641         * lib/fwriting.c (fwriting): Likewise.
52642         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
52643
52644 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52645
52646         * lib/config.charset: Treat Haiku like BeOS.
52647
52648 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
52649
52650         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
52651         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
52652
52653 2008-11-08  Bruno Haible  <bruno@clisp.org>
52654
52655         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
52656         AC_CACHE_CHECK.
52657
52658 2008-11-08  Bruno Haible  <bruno@clisp.org>
52659
52660         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
52661
52662 2008-11-08  Bruno Haible  <bruno@clisp.org>
52663
52664         * tests/test-select-fd.c: New file.
52665         * tests/test-select-in.sh: New file.
52666         * tests/test-select-out.sh: New file.
52667         * tests/test-select-stdin.c: New file.
52668         * modules/select-tests (Files): Add the new files.
52669         (Depends-on): Add gettimeofday.
52670         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
52671         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
52672         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
52673
52674 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
52675             Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
52678
52679 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
52680
52681         * build-aux/pmccabe2html: Added support for C++ source files.
52682
52683 2008-11-05  Ben Pfaff  <blp@gnu.org>
52684
52685         Fix lib/close.c build on Windows.
52686         * modules/close (Files): Add lib/w32sock.h.
52687
52688 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
52689
52690         Accept Bison's NEWS format.
52691         * build-aux/announce-gen (print_news_deltas): Tweak
52692         $re_prefix.
52693
52694 2008-11-04  Bruno Haible  <bruno@clisp.org>
52695
52696         * modules/random_r (Maintainer): Add glibc.
52697
52698 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52699
52700         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
52701         by karl@freefriends.org (Karl Berry).
52702         * doc/alloca.texi: Likewise.
52703         * doc/c-ctype.texi: Likewise.
52704         * doc/c-strcase.texi: Likewise.
52705         * doc/c-strcaseeq.texi: Likewise.
52706         * doc/c-strcasestr.texi: Likewise.
52707         * doc/c-strstr.texi: Likewise.
52708         * doc/c-strtod.texi: Likewise.
52709         * doc/c-strtold.texi: Likewise.
52710         * doc/ctime.texi: Likewise.
52711         * doc/error.texi: Likewise.
52712         * doc/fdl.texi: Likewise.
52713         * doc/gcd.texi: Likewise.
52714         * doc/getdate.texi: Likewise.
52715         * doc/gnulib-intro.texi: Likewise.
52716         * doc/gnulib-tool.texi: Likewise.
52717         * doc/gnulib.texi: Likewise.
52718         * doc/inet_ntoa.texi: Likewise.
52719         * doc/maintain.texi: Likewise.
52720         * doc/make-stds.texi: Likewise.
52721         * doc/quote.texi: Likewise.
52722         * doc/regexprops-generic.texi: Likewise.
52723         * doc/standards.texi: Likewise.
52724         * doc/verify.texi: Likewise.
52725         * doc/visibility.texi: Likewise.
52726         * doc/gnulib.texi (GNU Free Documentation License): Include
52727         fdl-1.3.texi instead of fdl.texi.
52728
52729 2008-11-04  Simon Josefsson  <simon@josefsson.org>
52730
52731         * doc/fdl-1.3.texi: New file, from
52732         <http://www.gnu.org/licenses/fdl-1.3.texi>.
52733         * modules/fdl-1.3: Add.
52734         * MODULES.html.sh: Add fdl-1.3.
52735
52736 2008-11-03  Bruno Haible  <bruno@clisp.org>
52737
52738         Make determination of absolute name of header file work with AIX xlc.
52739         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
52740         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
52741         preprocessing.
52742         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52743         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
52744
52745 2008-11-03  Simon Josefsson  <simon@josefsson.org>
52746
52747         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
52748         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
52749         <ludo@gnu.org>.
52750
52751 2008-11-02  Bruno Haible  <bruno@clisp.org>
52752
52753         Mark 'strpbrk' obsolete.
52754         * modules/strpbrk (Status, Notice): New sections.
52755         * modules/strtok_r (Depends-on): Add strpbrk.
52756
52757 2008-11-02  Bruno Haible  <bruno@clisp.org>
52758
52759         Mark 'strdup' obsolete.
52760         * modules/strdup (Status, Notice): New sections.
52761         * modules/findprog (Depends-on): Add strdup.
52762         * modules/getaddrinfo (Depends-on): Likewise.
52763         * modules/localename (Depends-on): Likewise.
52764         * modules/relocatable-lib (Depends-on): Likewise.
52765         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
52766         * modules/relocatable-prog (Depends-on): Likewise.
52767         * modules/trim (Depends-on): Likewise.
52768         * modules/unictype/gen-ctype (Depends-on): Likewise.
52769         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52770
52771 2008-11-02  Bruno Haible  <bruno@clisp.org>
52772
52773         Mark 'strcspn' obsolete.
52774         * modules/strcspn (Status, Notice): New sections.
52775
52776 2008-11-02  Bruno Haible  <bruno@clisp.org>
52777
52778         Mark 'rmdir' obsolete.
52779         * modules/rmdir (Status, Notice): New sections.
52780         * modules/clean-temp (Depends-on): Add rmdir.
52781         * modules/openat (Depends-on): Likewise.
52782
52783 2008-11-02  Bruno Haible  <bruno@clisp.org>
52784
52785         Mark 'raise' obsolete.
52786         * modules/raise (Status, Notice): New sections.
52787         (Include): Specify <signal.h>.
52788         * modules/stdio (Depends-on): Add raise.
52789         * modules/write (Depends-on): Likewise.
52790
52791 2008-11-02  Bruno Haible  <bruno@clisp.org>
52792
52793         Mark 'memset' obsolete.
52794         * modules/memset (Status, Notice): New sections.
52795
52796 2008-11-02  Bruno Haible  <bruno@clisp.org>
52797
52798         Mark 'memmove' obsolete.
52799         * modules/memmove (Status, Notice): New sections.
52800         * modules/argp (Depends-on): Add memmove.
52801         * modules/argz (Depends-on): Likewise.
52802         * modules/canonicalize (Depends-on): Likewise.
52803         * modules/canonicalize-lgpl (Depends-on): Likewise.
52804         * modules/fts (Depends-on): Likewise.
52805         * modules/getcwd (Depends-on): Likewise.
52806         * modules/human (Depends-on): Likewise.
52807         * modules/regex (Depends-on): Likewise.
52808         * modules/striconveh (Depends-on): Likewise.
52809         * modules/trim (Depends-on): Likewise.
52810         * modules/unistr/u8-move (Depends-on): Likewise.
52811         * modules/unistr/u16-move (Depends-on): Likewise.
52812         * modules/unistr/u32-move (Depends-on): Likewise.
52813
52814 2008-11-02  Bruno Haible  <bruno@clisp.org>
52815
52816         Mark 'memcpy' obsolete.
52817         * modules/memcpy (Status, Notice): New sections.
52818
52819 2008-11-02  Bruno Haible  <bruno@clisp.org>
52820
52821         Mark 'memcmp' obsolete.
52822         * modules/memcmp (Status, Notice): New sections.
52823         * modules/argmatch (Depends-on): Add memchr.
52824         * modules/backupfile (Depends-on): Likewise.
52825         * modules/c-strcasestr (Depends-on): Likewise.
52826         * modules/crypto/des (Depends-on): Likewise.
52827         * modules/csharpcomp (Depends-on): Likewise.
52828         * modules/fnmatch (Depends-on): Likewise.
52829         * modules/git-merge-changelog (Depends-on): Likewise.
52830         * modules/isnand (Depends-on): Likewise.
52831         * modules/isnand-nolibm (Depends-on): Likewise.
52832         * modules/isnanf (Depends-on): Likewise.
52833         * modules/isnanf-nolibm (Depends-on): Likewise.
52834         * modules/isnanl (Depends-on): Likewise.
52835         * modules/isnanl-nolibm (Depends-on): Likewise.
52836         * modules/mbchar (Depends-on): Likewise.
52837         * modules/memcoll (Depends-on): Likewise.
52838         * modules/quotearg (Depends-on): Likewise.
52839         * modules/regex (Depends-on): Likewise.
52840         * modules/relocatable-prog (Depends-on): Likewise.
52841         * modules/same (Depends-on): Likewise.
52842         * modules/signbit (Depends-on): Likewise.
52843         * modules/strcasestr-simple (Depends-on): Likewise.
52844         * modules/unictype/gen-ctype (Depends-on): Likewise.
52845         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52846         * modules/uniname/uniname (Depends-on): Likewise.
52847         * modules/unistr/u8-cmp (Depends-on): Likewise.
52848
52849 2008-11-02  Bruno Haible  <bruno@clisp.org>
52850
52851         Mark 'memchr' obsolete.
52852         * modules/memchr (Status, Notice): New sections.
52853         * modules/argp (Depends-on): Add memchr.
52854         * modules/base64 (Depends-on): Likewise.
52855         * modules/c-strcasestr (Depends-on): Likewise.
52856         * modules/chdir-long (Depends-on): Likewise.
52857         * modules/fnmatch (Depends-on): Likewise.
52858         * modules/getsubopt (Depends-on): Likewise.
52859         * modules/git-merge-changelog (Depends-on): Likewise.
52860         * modules/glob (Depends-on): Likewise.
52861         * modules/strcasestr-simple (Depends-on): Likewise.
52862         * modules/strnlen (Depends-on): Likewise.
52863
52864 2008-11-02  Bruno Haible  <bruno@clisp.org>
52865
52866         Mark 'atexit' obsolete.
52867         * modules/atexit (Status, Notice): New sections.
52868         * modules/chdir-long (Depends-on): Add atexit.
52869         * modules/wait-process (Depends-on): Likewise.
52870
52871 2008-11-02  Bruno Haible  <bruno@clisp.org>
52872
52873         * gnulib-tool: New option --with-obsolete.
52874         (func_usage): Document it.
52875         (func_modules_transitive_closure): Drop obsolete dependencies if
52876         incobsolete is not true.
52877         (func_import): Read and save the incobsolete variable to the cache.
52878
52879 2008-11-02  Bruno Haible  <bruno@clisp.org>
52880
52881         * modules/TEMPLATE-EXTENDED: New field 'Status'.
52882         * gnulib-tool: New option --extract-status.
52883         (func_usage): Document it.
52884         (sed_extract_prog): Recognize it.
52885         (func_get_status): New function.
52886
52887 2008-10-30  Simon Josefsson  <simon@josefsson.org>
52888
52889         * modules/sockets (License): Change from LGPL to LGPLv2+.
52890
52891 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52892
52893         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
52894
52895 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52896
52897         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52898         Mention times and sys_times.
52899         * modules/sys_times, modules/sys_times-tests: New modules.
52900         * modules/times, modules/times-tests: Likewise
52901         * m4/sys_times_h.m4: New file.
52902         * lib/sys_times.in.h: Likewise
52903         * lib/times.c: Likewise.
52904         * tests/test-sys_times.c: Likewise.
52905         * tests/test-times.c: Likewise.
52906         * doc/posix-headers/sys_times.texi: Update.
52907         * doc/posix-functions/times.texi: Update.
52908
52909 2008-10-28  Jim Meyering  <meyering@redhat.com>
52910
52911         * modules/tempname (Depends-on): Add lstat.
52912
52913         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52914
52915 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52916
52917         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52918         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52919         using idiom used elsewhere in gnulib.
52920
52921 2008-10-27  Jim Meyering  <meyering@redhat.com>
52922
52923         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
52924
52925 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52926
52927         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
52928         TESTS_ENVIRONMENT, for shell scripts that needs to call built
52929         programs.
52930         * tests/test-argp-2.sh: Use $EXEEXT when needed.
52931
52932 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52933
52934         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
52935
52936 2008-10-27  Bruno Haible  <bruno@clisp.org>
52937
52938         * tests/test-lstat.c: Include <stdio.h>.
52939
52940 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52941
52942         * modules/lstat-tests: New module.
52943         * tests/test-lstat.c: New file.
52944
52945 2008-10-26  Jim Meyering  <meyering@redhat.com>
52946
52947         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
52948
52949 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52950             Bruno Haible  <bruno@clisp.org>
52951
52952         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
52953         * modules/configmake (Include): Add a note that the include must come
52954         after all system headers.
52955         * lib/javaversion.c: Include configmake.h after all other includes.
52956
52957 2008-10-26  Bruno Haible  <bruno@clisp.org>
52958
52959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
52960         HAVE_STRUCT_RANDOM_DATA to 1.
52961         (gl_STDLIB_H): Simplify.
52962
52963 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52964
52965         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
52966         substitute HAVE_STRUCT_RANDOM_DATA.
52967         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
52968         random_data.
52969         * modules/stdlib (Makefile.am): Substitute
52970         HAVE_STRUCT_RANDOM_DATA.
52971
52972 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52973
52974         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52975         * doc/gnulib-intro.texi (Copyright): Likewise.
52976
52977 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52978
52979         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52980         findings.
52981
52982 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52983             Bruno Haible  <bruno@clisp.org>
52984
52985         * lib/unistd.in.h: Include <winsock2.h>.
52986         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52987         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52988         Provide dummy declarations.
52989         (gethostname): Override.
52990         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52991         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52992         gl_PREREQ_SYS_H_WINSOCK2.
52993         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52994         * doc/posix-functions/gethostname.texi: More details.
52995
52996 2008-10-25  Bruno Haible  <bruno@clisp.org>
52997
52998         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52999         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53000         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53001
53002         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53003         here ...
53004         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53005         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53006         gl_UNISTD_H_DEFAULTS.
53007
53008 2008-10-25  Eric Blake  <ebb9@byu.net>
53009
53010         signbit: avoid spurious compiler failure
53011         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53012         declarations inside function.
53013
53014 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53015             Bruno Haible  <bruno@clisp.org>
53016
53017         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53018         * modules/random_r (Depends-on): Add stdint.
53019
53020 2008-10-24  Bruno Haible  <bruno@clisp.org>
53021
53022         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53023         Eggert.
53024         * modules/strerror (License): Likewise.
53025
53026 2008-10-24  Jim Meyering  <meyering@redhat.com>
53027
53028         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53029         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53030
53031 2008-10-24  Eric Blake  <ebb9@byu.net>
53032
53033         getgroups: fix compilation when getgroups is available
53034         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53035         but with <config.h> override of getgroups disabled.
53036
53037 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53038
53039         * doc/gnulib.texi (Header files): Add note about C++ problems.
53040         Explained by Bruno Haible <bruno@clisp.org>.
53041
53042 2008-10-23  Bruno Haible  <bruno@clisp.org>
53043
53044         Define a dummy SA_NODEFER macro on Interix.
53045         * lib/signal.in.h (SA_NODEFER): Define fallback.
53046         Reported by Aleksey Cheusov <cheusov@tut.by> via
53047         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53048
53049 2008-10-23  Bruno Haible  <bruno@clisp.org>
53050
53051         * modules/freadahead (License): Change to LGPLv2+.
53052         Suggested by Simon Josefsson.
53053
53054 2008-10-23  Jim Meyering  <meyering@redhat.com>
53055
53056         random_r: new module
53057         * modules/random_r: New file.
53058         * m4/random_r.m4: New file.
53059         * lib/random_r.c: New file, from glibc.
53060         * modules/random_r-tests: New file.
53061         * tests/test-random_r.c: New file.
53062         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53063          Declare.
53064         (RAND_MAX): Define.
53065         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53066         * modules/stdlib: Substitute them, too.
53067         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53068         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53069         * doc/glibc-functions/random_r.texi: Likewise.
53070         * doc/glibc-functions/setstate_r.texi: Likewise.
53071         * doc/glibc-functions/srandom_r.texi: Likewise.
53072         * config/srclist.txt: Mention it.
53073
53074 2008-10-23  David Lutterkort  <lutter@redhat.com>
53075
53076         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53077         link requirement
53078
53079 2008-10-23  Jim Meyering  <meyering@redhat.com>
53080
53081         selinux-h: mark parameters of stub functions as intentionally unused
53082         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53083         * lib/se-context.in.h: Likewise.
53084
53085 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53086
53087         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53088
53089 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53090
53091         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53092
53093 2008-10-22  Eric Blake  <ebb9@byu.net>
53094
53095         glthread/thread: avoid compiler warning
53096         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53097         Add unreachable abort to silence compiler.
53098
53099 2008-10-22  Eric Blake  <ebb9@byu.net>
53100
53101         netdb: also supply struct addrinfo for cygwin 1.5.x
53102         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53103         older cygwin.
53104         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53105         cygwin.
53106         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53107
53108 2008-10-22  Bruno Haible  <bruno@clisp.org>
53109
53110         * users.txt: Update entry about pspp.
53111
53112 2008-10-21  Bruno Haible  <bruno@clisp.org>
53113
53114         Simplification.
53115         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53116         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53117
53118         Simplification.
53119         * lib/ioctl.c (ioctl): Don't undefine.
53120         * lib/socket.c (socket): Don't undefine.
53121
53122         Remove unused module indicator macros.
53123         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53124         GNULIB_$1 as a C macro.
53125
53126         * doc/posix-functions/close.texi: Undo last change.
53127         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53128         Windows platforms.
53129
53130 2008-10-21  Bruno Haible  <bruno@clisp.org>
53131
53132         Add gethostname() declaration to <unistd.h>.
53133         * lib/unistd.in.h (gethostname): New declaration.
53134         * lib/gethostname.c: Include <unistd.h>.
53135         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53136         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53138         and HAVE_GETHOSTNAME.
53139         * modules/gethostname (Depends-on): Add unistd.
53140         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53141         (Include): Specify <unistd.h>.
53142         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53143         HAVE_GETHOSTNAME.
53144         * tests/test-gethostname.c: Include <unistd.h> first.
53145
53146 2008-10-21  Bruno Haible  <bruno@clisp.org>
53147
53148         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53149         * modules/select-tests (Depends-on): Likewise.
53150         Reported by Simon Josefsson.
53151
53152 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53153
53154         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53155         * lib/accept.c: New file, based on winsock.c.
53156         * lib/bind.c: New file, based on winsock.c.
53157         * lib/connect.c: New file, based on winsock.c.
53158         * lib/getpeername.c: New file, based on winsock.c.
53159         * lib/getsockname.c: New file, based on winsock.c.
53160         * lib/getsockopt.c: New file, based on winsock.c.
53161         * lib/ioctl.c: New file, based on winsock.c.
53162         * lib/listen.c: New file, based on winsock.c.
53163         * lib/recv.c: New file, based on winsock.c.
53164         * lib/recvfrom.c: New file, based on winsock.c.
53165         * lib/send.c: New file, based on winsock.c.
53166         * lib/sendto.c: New file, based on winsock.c.
53167         * lib/setsockopt.c: New file, based on winsock.c.
53168         * lib/shutdown.c: New file, based on winsock.c.
53169         * lib/socket.c: New file, based on winsock.c.
53170         * lib/w32sock.h: New file, based on winsock.c.
53171         * lib/winsock.c: Remove file.
53172         * modules/accept: Likewise.
53173         * modules/bind: Likewise.
53174         * modules/connect: Likewise.
53175         * modules/getpeername: Likewise.
53176         * modules/getsockname: Likewise.
53177         * modules/getsockopt: Likewise.
53178         * modules/ioctl: Likewise.
53179         * modules/listen: Likewise.
53180         * modules/recv: Likewise.
53181         * modules/recvfrom: Likewise.
53182         * modules/send: Likewise.
53183         * modules/sendto: Likewise.
53184         * modules/setsockopt: Likewise.
53185         * modules/shutdown: Likewise.
53186         * modules/socket: Use socket.c instead of winsock.c.
53187         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53188         * doc/posix-functions/accept.texi: Doc fix.
53189         * doc/posix-functions/bind.texi: Doc fix.
53190         * doc/posix-functions/close.texi: Doc fix.
53191         * doc/posix-functions/connect.texi: Doc fix.
53192         * doc/posix-functions/getpeername.texi: Doc fix.
53193         * doc/posix-functions/getsockname.texi: Doc fix.
53194         * doc/posix-functions/getsockopt.texi: Doc fix.
53195         * doc/posix-functions/ioctl.texi: Doc fix.
53196         * doc/posix-functions/listen.texi: Doc fix.
53197         * doc/posix-functions/recv.texi: Doc fix.
53198         * doc/posix-functions/recvfrom.texi: Doc fix.
53199         * doc/posix-functions/send.texi: Doc fix.
53200         * doc/posix-functions/sendto.texi: Doc fix.
53201         * doc/posix-functions/setsockopt.texi: Doc fix.
53202         * doc/posix-functions/shutdown.texi: Doc fix.
53203         * doc/posix-functions/socket.texi: Doc fix.
53204
53205 2008-10-20  Bruno Haible  <bruno@clisp.org>
53206
53207         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53208         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53209         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53210         as an alias for SIGABRT.
53211         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53212         (sigaction): Map it to SIGABRT.
53213         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53214
53215 2008-10-20  Bruno Haible  <bruno@clisp.org>
53216
53217         * lib/fts.c: Don't include lstat.h.
53218         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53219
53220         Move the lstat() declaration to <sys/stat.h>.
53221         * lib/lstat.h: Remove file.
53222         * lib/sys_stat.in.h: Add special invocation convention.
53223         (lstat): New declaration.
53224         * lib/lstat.c (orig_lstat): New function.
53225         (rpl_lstat): Use orig_lstat instead of lstat.
53226         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53227         AC_C_INLINE. Set REPLACE_LSTAT.
53228         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53229         and REPLACE_LSTAT.
53230         * modules/lstat (Files): Remove lib/lstat.h.
53231         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53232         (Include): Specify <sys/stat.h> instead of lstat.h.
53233         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53234         REPLACE_LSTAT.
53235         * NEWS: Mention the change.
53236
53237 2008-10-20  Bruno Haible  <bruno@clisp.org>
53238
53239         * modules/posix_spawn-tests: New file.
53240         * tests/test-posix_spawn3.c: New file.
53241
53242 2008-10-20  Bruno Haible  <bruno@clisp.org>
53243
53244         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53245         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53246         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53247         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53248         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53249
53250 2008-10-20  Bruno Haible  <bruno@clisp.org>
53251
53252         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53253         of posix_spawn on AIX 5.3.
53254
53255 2008-10-20  Bruno Haible  <bruno@clisp.org>
53256
53257         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53258
53259 2008-10-20  Bruno Haible  <bruno@clisp.org>
53260
53261         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53262         of AC_LANG_PROGRAM.
53263
53264 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53265
53266         * lib/netdb.in.h: Don't define GNU specific constants until they
53267         are supported or needed.  Reported by Bruno Haible
53268         <bruno@clisp.org>.
53269
53270 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53271
53272         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53273
53274 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53275
53276         * lib/getaddrinfo.h: Remove file.
53277         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53278         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53279         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53280         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53281         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53282         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53283         * tests/test-getaddrinfo.c: Likewise.
53284         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53285         * NEWS: Mention change.
53286
53287 2008-10-19  Bruno Haible  <bruno@clisp.org>
53288
53289         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53290
53291 2008-10-19  Bruno Haible  <bruno@clisp.org>
53292
53293         * lib/wait-process.c: Include simply <sys/wait.h>.
53294         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53295         WIFSTOPPED): Remove fallback definitions.
53296         * modules/wait-process (Depends-on): Add sys_wait.
53297
53298         New module 'sys_wait'.
53299         * modules/sys_wait: New file.
53300         * lib/sys_wait.in.h: New file, partially copied from
53301         lib/wait-process.c.
53302         * m4/sys_wait_h.m4: New file.
53303         * doc/posix-headers/sys_wait.texi: Mention the new module.
53304
53305 2008-10-19  Bruno Haible  <bruno@clisp.org>
53306
53307         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53308
53309 2008-10-19  Bruno Haible  <bruno@clisp.org>
53310
53311         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53312         * lib/wait-process.c (WAIT_T): Remove type.
53313         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53314         (wait_subprocess): Update.
53315
53316 2008-10-19  Bruno Haible  <bruno@clisp.org>
53317
53318         New module 'atoll'.
53319         * modules/atoll: New file.
53320         * lib/stdlib.in.h (atoll): New declaration.
53321         * lib/atoll.c: New file, from glibc with modifications.
53322         * m4/atoll.m4: New file.
53323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53324         HAVE_ATOLL.
53325         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53326         * doc/posix-functions/atoll.texi: Mention the new module.
53327
53328 2008-10-19  Bruno Haible  <bruno@clisp.org>
53329
53330         Add strtoull() declaration to <stdlib.h>.
53331         * lib/stdlib.in.h (strtoull): New declaration.
53332         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53333         Set HAVE_STRTOULL.
53334         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53335         HAVE_STRTOULL.
53336         * modules/strtoull (Depends-on): Add stdlib.
53337         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53338         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53339         HAVE_STRTOULL.
53340
53341 2008-10-19  Bruno Haible  <bruno@clisp.org>
53342
53343         Add strtoll() declaration to <stdlib.h>.
53344         * lib/stdlib.in.h (strtoll): New declaration.
53345         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53346         Set HAVE_STRTOLL.
53347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53348         HAVE_STRTOLL.
53349         * modules/strtoll (Depends-on): Add stdlib.
53350         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53351         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53352
53353 2008-10-19  Bruno Haible  <bruno@clisp.org>
53354
53355         * modules/bcopy (Depends-on): Add strings.
53356         (Include): Specify <strings.h>.
53357
53358 2008-10-19  Bruno Haible  <bruno@clisp.org>
53359
53360         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53361
53362 2008-10-19  Bruno Haible  <bruno@clisp.org>
53363
53364         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53365         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53366         mingw.
53367
53368 2008-10-19  Bruno Haible  <bruno@clisp.org>
53369
53370         * lib/atanl.c: Don't include isnanl.h.
53371         * lib/cosl.c: Likewise.
53372         * lib/ldexpl.c: Likewise.
53373         * lib/logl.c: Likewise.
53374         * lib/sinl.c: Likewise.
53375         * lib/sqrtl.c: Likewise.
53376         * lib/tanl.c: Likewise.
53377
53378         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53379         * lib/isnanf.h: Remove file.
53380         * lib/isnand.h: Remove file.
53381         * lib/isnanl.h: Remove file.
53382         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53383         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53384         macros.
53385         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53386         HAVE_ISNANF, don't define it as a C macro.
53387         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53388         HAVE_ISNAND, don't define it as a C macro.
53389         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53390         HAVE_ISNANL, don't define it as a C macro.
53391         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53392         HAVE_ISNAN[FDL].
53393         * modules/isnanf (Files): Remove lib/isnanf.h.
53394         (Depends-on): Add math.
53395         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53396         (Include): Specify <math.h> instead of isnanf.h.
53397         * modules/isnand (Files): Remove lib/isnand.h.
53398         (Depends-on): Add math.
53399         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53400         (Include): Specify <math.h> instead of isnand.h.
53401         * modules/isnanl (Files): Remove lib/isnanl.h.
53402         (Depends-on): Add math.
53403         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53404         (Include): Specify <math.h> instead of isnanl.h.
53405         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53406         HAVE_ISNAN[FDL].
53407         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53408         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53409         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53410         * NEWS: Mention the change.
53411
53412 2008-10-18  Bruno Haible  <bruno@clisp.org>
53413
53414         Add getusershell(), setusershell(), endusershell() declarations to
53415         <unistd.h>.
53416         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53417         declarations.
53418         * lib/getusershell.c: Include unistd.h.
53419         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53420         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53421         HAVE_GETUSERSHELL.
53422         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53423         and HAVE_GETUSERSHELL.
53424         * modules/getusershell (Depends-on): Add unistd, extensions.
53425         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53426         (Include): Specify <unistd.h>.
53427         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53428         HAVE_GETUSERSHELL.
53429
53430 2008-10-18  Bruno Haible  <bruno@clisp.org>
53431
53432         Add a getloadavg() declaration to <stdlib.h>.
53433         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53434         getloadavg declaration.
53435         (getloadavg): New declaration.
53436         * lib/getloadavg.c: Include <stdlib.h> first.
53437         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53438         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53439         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53440         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53441         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53442         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53443         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53444         (Include): Specify <stdlib.h>.
53445         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53446         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53447
53448 2008-10-18  Bruno Haible  <bruno@clisp.org>
53449
53450         * lib/dirchownmod.c: Don't include lchmod.h.
53451
53452         Move the lchmod() declaration to <sys/stat.h>.
53453         * lib/lchmod.h: Remove file.
53454         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53455         (lchmod): New declaration, moved here from lib/lchown.h.
53456         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53457         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53458         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53459         and HAVE_LCHMOD.
53460         * modules/lchmod (Files): Remove lib/lchmod.h.
53461         (Depends-on): Add sys_stat, extensions.
53462         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53463         (Include): Specify <sys/stat.h> instead of lchmod.h.
53464         * modules/sys_stat (Depends-on): Add link-warning.
53465         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53466         definition of GL_LINK_WARNING.
53467         * NEWS: Mention the change.
53468
53469 2008-10-18  Bruno Haible  <bruno@clisp.org>
53470
53471         * lib/fchdir.c: Don't include dirfd.h.
53472         * lib/fts.c: Likewise.
53473         * lib/getcwd.c: Likewise.
53474         * lib/glob.c: Likewise.
53475
53476         Move the dirfd() declaration to <dirent.h>.
53477         * lib/dirfd.h: Remove file.
53478         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53479         (dirfd): New declaration.
53480         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53481         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53482         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53483         HAVE_DECL_DIRFD.
53484         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53485         HAVE_DECL_DIRFD.
53486         * modules/dirfd (Files): Remove lib/dirfd.h.
53487         (Depends-on): Add dirent, extensions.
53488         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53489         (Include): Specify <dirent.h> instead of dirfd.h.
53490         * modules/dirent (Depends-on): Add link-warning.
53491         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53492         definition of GL_LINK_WARNING.
53493         * NEWS: Mention the change.
53494
53495 2008-10-18  Bruno Haible  <bruno@clisp.org>
53496
53497         Move the euidaccess() declaration to <unistd.h>.
53498         * lib/euidaccess.h: Remove file.
53499         * lib/unistd.in.h (euidaccess): New declaration.
53500         * lib/euidaccess.c: Don't include euidaccess.h.
53501         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53502         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53503         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53504         and HAVE_EUIDACCESS.
53505         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53506         (Depends-on): Add unistd.
53507         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53508         (Include): Specify <unistd.h> instead of euidaccess.h.
53509         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
53510         HAVE_EUIDACCESS.
53511         * NEWS: Mention the change.
53512
53513 2008-10-18  Bruno Haible  <bruno@clisp.org>
53514
53515         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
53516
53517         Move the getdomainname() declaration to <unistd.h>.
53518         * lib/getdomainname.h: Remove file.
53519         * lib/unistd.in.h (getdomainname): New declaration.
53520         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
53521         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
53522         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53523         HAVE_GETDOMAINNAME.
53524         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53525         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
53526         * modules/getdomainname (Files): Remove lib/getdomainname.h.
53527         (Depends-on): Add unistd, extensions.
53528         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53529         (Includes): Specify <unistd.h> instead of getdomainname.h.
53530         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
53531         HAVE_GETDOMAINNAME.
53532         * NEWS: Mention the change.
53533
53534 2008-10-18  Bruno Haible  <bruno@clisp.org>
53535
53536         * modules/dirent: New file.
53537         * m4/dirent_h.m4: New file.
53538         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
53539         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
53540         * modules/fchdir (Files): Remove lib/dirent.in.h.
53541         (Depends-on): Add dirent.
53542         (Makefile.am): Move rules to modules/dirent.
53543         * doc/posix-headers/dirent.texi: Mention the new module.
53544
53545 2008-10-18  Bruno Haible  <bruno@clisp.org>
53546
53547         Avoid -Wunused-parameter warnings in public gnulib header files.
53548         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
53549         macro.
53550         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
53551
53552 2008-10-18  Bruno Haible  <bruno@clisp.org>
53553
53554         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
53555         * doc/glibc-functions/error.texi: Mention the module 'error'.
53556         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
53557         * doc/glibc-functions/getdomainname.texi: Mention the module
53558         'getdomainname'.
53559         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
53560         * doc/glibc-functions/getpagesize.texi: Mention the module
53561         'getpagesize'.
53562         * doc/glibc-functions/getusershell.texi: Mention the module
53563         'getusershell'.
53564         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
53565         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
53566         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
53567         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
53568         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
53569         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
53570         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
53571         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
53572         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
53573         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
53574         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
53575         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
53576         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
53577         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
53578
53579 2008-10-17  Bruno Haible  <bruno@clisp.org>
53580
53581         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
53582         HP-UX and IRIX, use -0.0L.
53583         * tests/test-ceill.c (minus_zero): Likewise.
53584         * tests/test-floorl.c (minus_zero): Likewise.
53585         * tests/test-frexpl.c (minus_zero): Likewise.
53586         * tests/test-isnan.c (minus_zerol): Likewise.
53587         * tests/test-isnanl.h (minus_zero): Likewise.
53588         * tests/test-ldexpl.c (minus_zero): Likewise.
53589         * tests/test-roundl.c (minus_zero): Likewise.
53590         * tests/test-signbit.c (minus_zerol): Likewise.
53591         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
53592         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
53593         * tests/test-truncl.c (minus_zero): Likewise.
53594         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
53595         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
53596         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
53597         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
53598
53599 2008-10-17  Bruno Haible  <bruno@clisp.org>
53600
53601         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
53602         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
53603         that it gets activated only for gcc >= 3.0.
53604         * lib/dirent.in.h: Likewise.
53605         * lib/errno.in.h: Likewise.
53606         * lib/fcntl.in.h: Likewise.
53607         * lib/float.in.h: Likewise.
53608         * lib/iconv.in.h: Likewise.
53609         * lib/inttypes.in.h: Likewise.
53610         * lib/locale.in.h: Likewise.
53611         * lib/math.in.h: Likewise.
53612         * lib/netdb.in.h: Likewise.
53613         * lib/netinet_in.in.h: Likewise.
53614         * lib/search.in.h: Likewise.
53615         * lib/signal.in.h: Likewise.
53616         * lib/spawn.in.h: Likewise.
53617         * lib/stdarg.in.h: Likewise.
53618         * lib/stdint.in.h: Likewise.
53619         * lib/stdio.in.h: Likewise.
53620         * lib/stdlib.in.h: Likewise.
53621         * lib/string.in.h: Likewise.
53622         * lib/strings.in.h: Likewise.
53623         * lib/sys_file.in.h: Likewise.
53624         * lib/sys_ioctl.in.h: Likewise.
53625         * lib/sys_select.in.h: Likewise.
53626         * lib/sys_socket.in.h: Likewise.
53627         * lib/sys_stat.in.h: Likewise.
53628         * lib/sys_time.in.h: Likewise.
53629         * lib/sysexits.in.h: Likewise.
53630         * lib/time.in.h: Likewise.
53631         * lib/unistd.in.h: Likewise.
53632         * lib/wchar.in.h: Likewise.
53633         * lib/wctype.in.h: Likewise.
53634         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
53635
53636 2008-10-17  Jim Meyering  <meyering@redhat.com>
53637
53638         ignore-value: don't depend on inline module
53639         * modules/ignore-value (Depends-on): Remove 'inline'.
53640         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
53641         Suggestion from Bruno Haible.
53642
53643 2008-10-17  Bruno Haible  <bruno@clisp.org>
53644
53645         New implementation of condition variables for Win32.
53646         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
53647         (gl_linked_waitqueue_t): New type.
53648         (gl_cond_t): Use it.
53649         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
53650         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
53651         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
53652         (glthread_cond_init_func, glthread_cond_wait_func,
53653         glthread_cond_timedwait_func, glthread_cond_signal_func,
53654         glthread_cond_broadcast_func, glthread_cond_destroy_func):
53655         Reimplemented on the basis of gl_linked_waitqueue_t.
53656         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
53657         gl_waitqueue_t.
53658         (gl_rwlock_t): Update.
53659         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
53660
53661 2008-10-17  Simon Josefsson  <simon@josefsson.org>
53662
53663         * modules/recvfrom (Depends-on): Add dependency on getpeername.
53664         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53665
53666 2008-10-17  Jim Meyering  <meyering@redhat.com>
53667
53668         ignore-value: new module
53669         * modules/ignore-value: New file.
53670         * lib/ignore-value.h: New file.
53671         * MODULES.html.sh (Compiler warning management): New section,
53672         just for this module.  More to come.
53673
53674 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
53675
53676         open-safer.c: avoid 'signed and unsigned in conditional...' warning
53677         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
53678         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
53679
53680 2008-10-16  Jim Meyering  <meyering@redhat.com>
53681
53682         openat-die.c: avoid 'no previous prototype' warning
53683         * lib/openat-die.c: Include "openat.h".
53684         Reported by Reuben Thomas <rrt@sc3d.org>.
53685
53686 2008-10-16  Simon Josefsson  <simon@josefsson.org>
53687
53688         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
53689         * lib/netdb.in.h: Fix typo.
53690         Reported by Bruno Haible  <bruno@clisp.org>
53691
53692         * lib/netdb.in.h: Include sys/socket.h for platforms without
53693         netdb.h, to get structures like hostent on MinGW.
53694         * modules/netdb (Depends-on): Add sys_socket.
53695
53696 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53697
53698         * modules/netdb, modules/netdb-tests: New file.
53699         * m4/netdb_h.m4: New file.
53700         * lib/netdb.in.h: Add, currently just an empty file pending
53701         definitions.
53702         * tests/test-netdb.c: New file.
53703         * doc/posix-headers/netdb.texi: Mention that we replace it if
53704         needed.
53705         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53706         netdb.
53707
53708 2008-10-15  Simon Josefsson  <simon@josefsson.org>
53709
53710         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
53711         with code.
53712
53713 2008-10-13  Bruno Haible  <bruno@clisp.org>
53714
53715         * lib/glthread/cond.c (glthread_cond_wait_func,
53716         glthread_cond_timedwait_func): Add a comment.
53717
53718 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53719
53720         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
53721         * tests/test-select.c: Likewise,
53722
53723 2008-10-13  Bruno Haible  <bruno@clisp.org>
53724
53725         * lib/glthread/cond.c (glthread_cond_wait_func,
53726         glthread_cond_timedwait_func): Fix variable name.
53727         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
53728
53729 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
53730
53731         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
53732         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
53733         struct sockaddr.sa_len.
53734         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
53735
53736 2008-10-13  Simon Josefsson  <simon@josefsson.org>
53737
53738         * build-aux/pmccabe2html: Add css and css_url parameters.
53739
53740 2008-10-12  Bruno Haible  <bruno@clisp.org>
53741
53742         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
53743         calling aclx_get.
53744         Reported by Rainer Tammer <tammer@tammer.net>.
53745
53746 2008-10-12  Bruno Haible  <bruno@clisp.org>
53747
53748         Use msvcrt aware primitives for creation/termination of Win32 threads.
53749         * lib/glthread/thread.c: Include <process.h>.
53750         (glthread_create_func): Use _beginthreadex instead of CreateThread.
53751         (wrapper_func): Update signature.
53752         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
53753
53754 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
53755             Bruno Haible  <bruno@clisp.org>
53756
53757         Provide a Win32 implementation of the 'cond' module.
53758         * lib/glthread/cond.h [USE_WIN32]: New implementation.
53759         * lib/glthread/cond.c (glthread_cond_init_func,
53760         glthread_cond_wait_func, glthread_cond_timedwait_func,
53761         glthread_cond_signal_func, glthread_cond_broadcast_func,
53762         glthread_cond_destroy_func) [USE_WIN32]: New functions.
53763         * modules/cond (Dependencies): Add gettimeofday.
53764
53765 2008-10-11  Bruno Haible  <bruno@clisp.org>
53766
53767         Make sleep work on older versions of mingw.
53768         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
53769         only whether it exists.
53770         * doc/posix-functions/sleep.texi: Mention the problem with older
53771         versions of mingw.
53772
53773 2008-10-11  Bruno Haible  <bruno@clisp.org>
53774
53775         New module 'shutdown'.
53776         * modules/shutdown: New file.
53777         * lib/sys_socket.in.h (shutdown): New declaration.
53778         * lib/winsock.c (shutdown): New function.
53779         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
53780         GNULIB_SHUTDOWN.
53781         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
53782         * doc/posix-functions/shutdown.texi: Document the new module.
53783
53784 2008-10-11  Jim Meyering  <meyering@redhat.com>
53785
53786         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
53787
53788 2008-10-11  Bruno Haible  <bruno@clisp.org>
53789
53790         New module 'fclose'.
53791         * modules/fclose: New file.
53792         * lib/stdio.in.h (fclose): New declaration.
53793         * lib/fclose.c: New file.
53794         * m4/fclose.m4: New file.
53795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
53796         REPLACE_FCLOSE.
53797         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
53798         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
53799         REPLACE_FCLOSE.
53800         * modules/close (Depends-on): fclose.
53801         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
53802
53803 2008-10-11  Bruno Haible  <bruno@clisp.org>
53804
53805         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
53806         set errno and don't call _close.
53807
53808 2008-10-10  Bruno Haible  <bruno@clisp.org>
53809
53810         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
53811         ACL, not afterwards. Fixes test failure on Cygwin.
53812
53813 2008-10-09  Ben Pfaff  <blp@gnu.org>
53814
53815         * build-aux/announce-gen: Fix gnulib version related part of usage
53816         message.  Die with a useful error message if no tarballs are
53817         found.
53818
53819 2008-10-10  Jim Meyering  <meyering@redhat.com>
53820
53821         bootstrap: use git's --depth=N option only if it's supported
53822         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
53823         recognize the --depth option.  Reported by Pádraig Brady.
53824
53825 2008-10-09  Bruno Haible  <bruno@clisp.org>
53826
53827         New module 'ioctl'.
53828         * modules/ioctl: New file.
53829         * lib/sys_socket.in.h (ioctl): Remove declaration.
53830         * lib/winsock.c: Include <sys/ioctl.h>.
53831         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
53832         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53833         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
53834         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
53835         * doc/posix-functions/ioctl.texi: Mention the new module.
53836
53837 2008-10-09  Bruno Haible  <bruno@clisp.org>
53838
53839         New module 'sys_ioctl'.
53840         * lib/sys_ioctl.in.h: New file.
53841         * m4/sys_ioctl_h.m4: New file.
53842         * modules/sys_ioctl: New file.
53843         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
53844
53845 2008-10-09  Bruno Haible  <bruno@clisp.org>
53846
53847         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
53848         * lib/winsock.c: Include <stdarg.h>.
53849         (rpl_ioctl): Change to second argument 'int' and then varargs.
53850
53851 2008-10-09  Bruno Haible  <bruno@clisp.org>
53852
53853         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
53854         when the sys_socket module is present and the system has <winsock2.h>.
53855
53856 2008-10-09  Bruno Haible  <bruno@clisp.org>
53857
53858         * doc/posix-functions/close.texi: Mention module 'close' instead of
53859         module 'sys_socket'.
53860
53861 2008-10-09  Bruno Haible  <bruno@clisp.org>
53862
53863         * doc/glibc-headers/sys_ioctl.texi: New file.
53864         * doc/gnulib.texi: Include it.
53865
53866 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53867             Bruno Haible  <bruno@clisp.org>
53868
53869         Combine the two replacements of 'close'.
53870         * lib/sys_socket.in.h (close): Define to a reminder to include
53871         <unistd.h>.
53872         (_gl_close_fd_maybe_socket): New declaration.
53873         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
53874         * lib/winsock.c (close): Remove undefinition.
53875         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
53876         needed for the gnulib module 'close'.
53877         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
53878         define to an error symbol or to a warning, if suitable.
53879         * lib/close.c: Include <sys/socket.h>.
53880         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
53881         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
53882         UNISTD_H_HAVE_WINSOCK2_H.
53883         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
53884         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53885         UNISTD_H_HAVE_WINSOCK2_H.
53886         * modules/sys_socket (Files): Add m4/unistd_h.m4.
53887         (configure.ac): Set a module indicator.
53888         (Makefile.am): Substitute GNULIB_CLOSE.
53889         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
53890         * modules/poll-tests (Depends-on): Add close.
53891         * modules/select-tests (Depends-on): Likewise.
53892
53893 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53894             Bruno Haible  <bruno@clisp.org>
53895
53896         New module 'close'.
53897         * modules/close: New file.
53898         * lib/unistd.in.h (close): Move declaration out of the
53899         FCHDIR_REPLACEMENT scope.
53900         (_gl_unregister_fd): New declaration.
53901         * lib/close.c: New file.
53902         * lib/fchdir.c (rpl_close): Remove function.
53903         * m4/close.m4: New file.
53904         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53905         close.
53906         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53907         REPLACE_CLOSE.
53908         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53909         REPLACE_CLOSE.
53910         * modules/fchdir (Depends-on): Add close.
53911
53912 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53913             Bruno Haible  <bruno@clisp.org>
53914
53915         * lib/fcntl.in.h (open): Simplify conditionals.
53916         (_gl_register_fd): New declaration.
53917         * lib/fchdir.c (rpl_open): Remove function.
53918         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53919         also.
53920         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
53921         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53922         open.
53923
53924 2008-10-09  Jim Meyering  <meyering@redhat.com>
53925
53926         GNUmakefile: use the more name-space-friendly "_version"
53927         * top/GNUmakefile (_dummy): Update.
53928         (_version): Rename from "version".
53929
53930 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53931             Bruno Haible  <bruno@clisp.org>
53932
53933         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
53934         rpl_close.
53935         (_gl_register_fd): New function, extracted from rpl_open.
53936         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
53937         (rpl_open, rpl_opendir): Use _gl_register_fd.
53938
53939 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53940
53941         Fix organization of 'open' replacement.
53942         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
53943         (gl_FUNC_OPEN): Use it.
53944         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
53945
53946 2008-10-08  Bruno Haible  <bruno@clisp.org>
53947
53948         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
53949
53950 2008-10-08  Simon Josefsson  <simon@josefsson.org>
53951
53952         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
53953         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
53954         listen).
53955
53956 2008-10-08  Eric Blake  <ebb9@byu.net>
53957
53958         GNUmakefile: add 'make version' target
53959         * top/GNUmakefile (_curr-ver): Split version update rules...
53960         (version): ...into a target.
53961
53962 2008-10-07  Bruno Haible  <bruno@clisp.org>
53963
53964         Use a more portable replacement expression for -0.0L.
53965         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
53966         instead of -0.0L. Fix m4 quotation.
53967
53968         * tests/test-signbit.c: Include <float.h>.
53969         (minus_zero): New variable.
53970         (test_signbitl): Use minus_zero instead of -zero.
53971         * modules/signbit-tests (Depends-on): Add float.
53972
53973         * tests/test-ceill.c: Include <float.h>.
53974         (zero): Remove variable.
53975         (minus_zero): New variable.
53976         (main): Use minus_zero instead of -zero.
53977         * modules/ceill-tests (Depends-on): Add float.
53978
53979         * tests/test-floorl.c: Include <float.h>.
53980         (zero): Remove variable.
53981         (minus_zero): New variable.
53982         (main): Use minus_zero instead of -zero.
53983         * modules/floorl-tests (Depends-on): Add float.
53984
53985         * tests/test-roundl.c: Include <float.h>.
53986         (zero): Remove variable.
53987         (minus_zero): New variable.
53988         (main): Use minus_zero instead of -zero.
53989         * modules/roundl-tests (Depends-on): Add float.
53990
53991         * tests/test-truncl.c: Include <float.h>.
53992         (zero): Remove variable.
53993         (minus_zero): New variable.
53994         (main): Use minus_zero instead of -zero.
53995         * modules/truncl-tests (Depends-on): Add float.
53996
53997         * tests/test-frexpl.c (zero): Remove variable.
53998         (minus_zero): New variable.
53999         (main): Use minus_zero instead of -zero.
54000         * modules/frexpl-tests (Depends-on): Add float.
54001
54002         * tests/test-isnan.c (zerol): Remove variable.
54003         (minus_zerol): New variable.
54004         (test_long_double): Use minus_zerol instead of -zerol.
54005         * modules/isnan-tests (Depends-on): Add float.
54006
54007         * tests/test-isnanl.h (zero): Remove variable.
54008         (minus_zero): New variable.
54009         (main): Use minus_zero instead of -zero.
54010         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54011         * modules/isnanl-tests (Depends-on): Add float.
54012
54013         * tests/test-ldexpl.c (zero): Remove variable.
54014         (minus_zero): New variable.
54015         (main): Use minus_zero instead of -zero.
54016         * modules/ldexpl-tests (Depends-on): Add float.
54017
54018         * tests/test-snprintf-posix.h (zerol): Remove variable.
54019         (minus_zerol): New variable.
54020         (test_function): Use minus_zerol instead of -zerol.
54021         * modules/snprintf-posix-tests (Depends-on): Add float.
54022         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54023
54024         * tests/test-sprintf-posix.h (zerol): Remove variable.
54025         (minus_zerol): New variable.
54026         (test_function): Use minus_zerol instead of -zerol.
54027         * modules/sprintf-posix-tests (Depends-on): Add float.
54028         * modules/vsprintf-posix-tests (Depends-on): Add float.
54029
54030         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54031         (minus_zerol): New variable.
54032         (test_function): Use minus_zerol instead of -zerol.
54033         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54034
54035         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54036         (minus_zerol): New variable.
54037         (test_function): Use minus_zerol instead of -zerol.
54038         * modules/vasprintf-posix-tests (Depends-on): Add float.
54039
54040 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54041
54042         * MODULES.html.sh (Support for building documentation): Mention
54043         pmccabe2html.  Sort entries.
54044
54045         Add pmccabe2html module, from gnupdf.
54046         * build-aux/pmccabe.css: New file.
54047         * build-aux/pmccabe2html: New file.
54048         * m4/pmccabe2html.m4: New file.
54049         * modules/pmccabe2html: New file.
54050
54051 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54052
54053         flock: new module
54054         * MODULES.html.sh: Add to list of modules.
54055         * lib/flock.c: flock implementation for Windows and Unix systems
54056         which have fcntl.
54057         * doc/glibc-functions/flock.texi: Update documentation.
54058         * lib/sys_file.in.h: <sys/file.h> header file.
54059         * m4/flock.m4: M4 macros.
54060         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54061         * modules/flock: flock module.
54062         * modules/flock-tests: flock tests module.
54063         * modules/sys_file: sys/file.h module.
54064         * tests/test-flock.c: test suite for flock.
54065
54066 2008-10-06  Jim Meyering  <meyering@redhat.com>
54067
54068         bootstrap: check for LT_INIT more portably still ;-)
54069         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54070         Spotted by Bruno Haible.
54071
54072 2008-10-06  Eric Blake  <ebb9@byu.net>
54073
54074         test-signbit: avoid tripping Irix cc bug on -0.0L
54075         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54076         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54077         entire testsuite consistent and avoids an Irix 6.2 bug.
54078
54079 2008-10-05  Bruno Haible  <bruno@clisp.org>
54080             Jim Meyering  <jim@meyering.net>
54081
54082         Add an option for ignoring EPIPE during close_stdout.
54083         * lib/closeout.h: Include <stdbool.h>.
54084         (close_stdout_set_ignore_EPIPE): New declaration.
54085         * lib/closeout.c: Include <stdbool.h>.
54086         (ignore_EPIPE): New variable.
54087         (close_stdout_set_ignore_EPIPE): New function.
54088         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54089         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54090         failure.
54091         * modules/closeout (Depends-on): Add stdbool.
54092
54093 2008-10-05  Bruno Haible  <bruno@clisp.org>
54094
54095         * modules/accept: New file.
54096         * modules/bind: New file.
54097         * modules/connect: New file.
54098         * modules/getpeername: New file.
54099         * modules/getsockname: New file.
54100         * modules/getsockopt: New file.
54101         * modules/listen: New file.
54102         * modules/recv: New file.
54103         * modules/recvfrom: New file.
54104         * modules/send: New file.
54105         * modules/sendto: New file.
54106         * modules/setsockopt: New file.
54107         * modules/socket: New file.
54108         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54109         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54110         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54111         the particular module is requested. Add a link warning when the
54112         particular module is not requested.
54113         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54114         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54115         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54116         the particular module is requested.
54117         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54118         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54119         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54120         * modules/sys_socket (Depends-on): Add link-warning.
54121         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54122         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54123         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54124         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54125         GL_LINK_WARNING.
54126         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54127         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54128         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54129         * doc/posix-functions/getpeername.texi: Mention the new module
54130         'getpeername'.
54131         * doc/posix-functions/getsockname.texi: Mention the new module
54132         'getsockname'.
54133         * doc/posix-functions/getsockopt.texi: Mention the new module
54134         'getsockopt'.
54135         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54136         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54137         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54138         * doc/posix-functions/send.texi: Mention the new module 'send'.
54139         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54140         * doc/posix-functions/setsockopt.texi: Mention the new module
54141         'setsockopt'.
54142         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54143         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54144         listen, connect, accept.
54145         * modules/select-tests (Depends-on): Likewise.
54146
54147 2008-10-05  Bruno Haible  <bruno@clisp.org>
54148
54149         * lib/winsock.c (strerror): Remove unused #undef.
54150         (rpl_close): Remove unused local variable.
54151
54152         * modules/sys_socket (Depends-on); Add errno.
54153
54154 2008-10-05  Bruno Haible  <bruno@clisp.org>
54155
54156         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54157         (select): Add a link warning when the 'select' module is not used.
54158         * modules/sys_select (Depends-on): Add link-warning.
54159         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54160         Suggested by Paolo Bonzini.
54161
54162 2008-10-05  Jim Meyering  <meyering@redhat.com>
54163
54164         bootstrap: check for LT_INIT more portably
54165         * build-aux/bootstrap: Avoid using grep -E, since it's not
54166         portable enough.  Suggestion from Bruno Haible.
54167
54168 2008-10-05  Bruno Haible  <bruno@clisp.org>
54169
54170         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54171         as being fixed by gnulib.
54172
54173 2008-10-05  Bruno Haible  <bruno@clisp.org>
54174
54175         * modules/select-tests: New file, mostly copied from
54176         modules/sys_select-tests.
54177         * tests/test-select.c: New file, mostly copied from
54178         tests/test-sys_select.c.
54179         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54180         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54181         (Makefile.am): Remove test_sys_select_LDADD.
54182
54183         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54184         to an undefined symbol, for an error message.
54185         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54186         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54187         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54188         winsock-select.c here.
54189         * modules/sys_select (Files): Remove lib/winsock-select.c.
54190         (Depends-on): Remove alloca.
54191         (Makefile.am): Substitute GNULIB_SELECT.
54192         * modules/select: New file.
54193         * doc/posix-functions/select.texi: Update.
54194
54195 2008-10-05  Bruno Haible  <bruno@clisp.org>
54196
54197         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54198         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54199         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54200         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54201         getdtablesize.
54202         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54203         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54204
54205 2008-10-05  Bruno Haible  <bruno@clisp.org>
54206
54207         * modules/getdtablesize-tests: New file.
54208         * tests/test-getdtablesize.c: New file.
54209
54210         New module 'getdtablesize'.
54211         * lib/unistd.in.h (getdtablesize): New declaration.
54212         * lib/getdtablesize.c: New file.
54213         * m4/getdtablesize.m4: New file.
54214         * modules/getdtablesize: New file.
54215         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54216         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54217         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54218         HAVE_GETDTABLESIZE.
54219         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54220
54221 2008-10-05  Bruno Haible  <bruno@clisp.org>
54222
54223         * modules/sched (Makefile.am): Fix typo.
54224         Reported by Simon Josefsson.
54225
54226 2008-10-05  Jim Meyering  <meyering@redhat.com>
54227
54228         bootstrap: check for LT_INIT, too
54229         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54230         are deprecated.  Suggestion from Ralf Wildenhues.
54231
54232 2008-10-05  Bruno Haible  <bruno@clisp.org>
54233
54234         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54235         overriding them by ours.
54236         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54237
54238 2008-10-05  Jim Meyering  <meyering@redhat.com>
54239
54240         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54241         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54242         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54243
54244 2008-10-04  Bruno Haible  <bruno@clisp.org>
54245
54246         * modules/dup2 (License): Change to LGPLv2+.
54247         * modules/sleep (License): Likewise.
54248         * modules/perror (License): Likewise.
54249         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54250         Blake.
54251         * modules/signal (License): Likewise.
54252         * modules/sigprocmask (License): Likewise.
54253         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54254         Meyering.
54255
54256 2008-10-04  Bruno Haible  <bruno@clisp.org>
54257
54258         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54259         Reported by Rainer Tammer <tammer@tammer.net>.
54260
54261 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54262             Bruno Haible  <bruno@clisp.org>
54263
54264         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54265         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54266         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54267
54268 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54269
54270         filevercmp: new module
54271         * lib/filevercmp.h: New function filevercmp comparing version strings.
54272         * lib/filevercmp.c: Implementation of filevercmp function.
54273         * modules/filevercmp: Module metadata.
54274         * tests/test-filevercmp.c: Unit test for new module.
54275         * modules/filevercmp-tests: Unit test metadata.
54276         * MODULES.html.sh: Add filevercmp module.
54277
54278 2008-10-03  Bruno Haible  <bruno@clisp.org>
54279
54280         * lib/c-ctype.h: Add comment.
54281         Reported by Jim Meyering.
54282
54283 2008-10-02  Bruno Haible  <bruno@clisp.org>
54284
54285         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54286
54287 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54288
54289         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54290         name of bootstrap.conf accordingly.
54291
54292 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54293
54294         * build-aux/bootstrap: Install git-merge-changelog configuration
54295         items into .gitconfig if needed.
54296
54297 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54298
54299         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54300         git repository, and initialize/update it accordingly.
54301
54302 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54303
54304         * modules/fsync-tests: New file.
54305         * tests/test-fsync.c: New file.
54306
54307         New module 'fsync'.
54308         * lib/fsync.c: New file.
54309         * m4/fsync.m4: New file.
54310         * modules/fsync: New file.
54311         * lib/unistd.in.h (fsync): New declaration.
54312         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54313         GNULIB_FSYNC and HAVE_FSYNC.
54314         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54315         * MODULES.html.sh (posix_functions): Add fsync.
54316         * doc/posix-functions/fsync.texi: Mention the new module.
54317
54318 2008-10-02  Jim Meyering  <meyering@redhat.com>
54319
54320         fts.c: sync with similar code from coreutils' remove.c
54321         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54322         Guard also with "#if defined __linux__", since for now at least,
54323         this code is Linux-kernel-specific.
54324
54325 2008-10-02  Jim Meyering  <meyering@redhat.com>
54326
54327         fts: bug fixes
54328         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54329         Include <sys/vfs.h>, not <sys/statfs.h>.
54330
54331         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54332         Include <sys/vfs.h>, not <sys/statfs.h>.
54333
54334 2008-10-01  Bruno Haible  <bruno@clisp.org>
54335
54336         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54337         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54338         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54339         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54340         * doc/posix-functions/posix_spawnp.texi: Likewise.
54341         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54342         whether posix_spawn actually works.
54343         * m4/pipe.m4 (gl_PIPE): Likewise.
54344         * modules/execute (Files): Add m4/posix_spawn.m4.
54345         * modules/pipe (Files): Add m4/posix_spawn.m4.
54346         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54347
54348 2008-10-01  Jim Meyering  <meyering@redhat.com>
54349
54350         remove trailing spaces
54351         * NEWS: Likewise.
54352         * lib/poll.c (poll): Likewise.
54353         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54354         * lib/winsock.c (rpl_close): Likewise.
54355         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54356         * modules/yield: Likewise.
54357         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54358         * tests/test-sys_select.c (connect_to_socket): Likewise.
54359
54360         fts.c: adjust a new interface to be more generally useful
54361         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54362         (fts_build): Adjust caller.
54363
54364 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54365
54366         * modules/cond-tests: New file.
54367         * tests/test-cond.c: New file.
54368
54369 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54370             Bruno Haible  <bruno@clisp.org>
54371
54372         * modules/cond (Dependencies): Add errno, time.
54373         * lib/glthread/cond.h: Include <time.h>.
54374         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54375         across platforms.
54376
54377 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54378             Bruno Haible  <bruno@clisp.org>
54379
54380         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54381
54382 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54383             Bruno Haible  <bruno@clisp.org>
54384
54385         * modules/tls-tests (Depends-on): Add thread, yield.
54386         (configure.ac): Remove all checks.
54387         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54388         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54389         gl_thread_self): Remove definitions. Include glthread/thread.h and
54390         glthread/yield.h instead.
54391         (test_tls): Pass an additional NULL argument to gl_thread_join.
54392
54393 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54394             Bruno Haible  <bruno@clisp.org>
54395
54396         * modules/lock-tests (Depends-on): Add thread, yield.
54397         (configure.ac): Remove all checks.
54398         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54399         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54400         gl_thread_self): Remove definitions. Include glthread/thread.h and
54401         glthread/yield.h instead.
54402         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54403         additional NULL argument to gl_thread_join.
54404
54405 2008-09-30  Bruno Haible  <bruno@clisp.org>
54406
54407         Fix the Win32 implementation of the 'thread' module.
54408         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54409         pointer type.
54410         (gl_thread_self): Invoke gl_thread_self_func.
54411         (gl_thread_self_func): New declaration.
54412         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54413         (do_init_self_key, init_self_key): New functions.
54414         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54415         Remove some fields.
54416         (running_threads, running_lock): Remove variables.
54417         (get_current_thread_handle): New function.
54418         (gl_thread_self_func, wrapper_func, glthread_create_func,
54419         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54420         simplified.
54421
54422 2008-09-30  Bruno Haible  <bruno@clisp.org>
54423
54424         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54425         files.
54426
54427 2008-09-30  Jim Meyering  <meyering@redhat.com>
54428
54429         fts.m4: correct the test for statfs.f_type
54430         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54431         when checking for statfs.f_type.
54432
54433 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54434
54435         tests: avoid some compiler warnings
54436         * tests/test-memchr.c (main): Pass NULL indirectly.
54437         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54438
54439 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
54440
54441         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54442         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54443         exactly specified dayshifts.
54444         (dayshift): New rule.
54445         (rel): Add dayshift.
54446         (relative_time_table) [tomorrow, yesterday, today, now]:
54447         Use tDAY_SHIFT in place of tDAY_UNIT.
54448         * tests/test-getdate.c: Add tests for now-disallowed countable
54449         dayshifts, e.g., "4 yesterday ago".
54450
54451 2008-09-29  Bruno Haible  <bruno@clisp.org>
54452
54453         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54454         * tests/test-posix_spawn1.in.sh: Renamed from
54455         tests/test-posix_spawn.in.sh.
54456         * tests/test-posix_spawn2.c: New file.
54457         * tests/test-posix_spawn2.in.sh: New file.
54458         * modules/posix_spawnp-tests (Files): Update.
54459         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54460
54461 2008-09-29  Bruno Haible  <bruno@clisp.org>
54462
54463         Propagate effects of putenv/setenv/unsetenv to child processes.
54464         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54465         * lib/pipe.c (create_pipe): Likewise.
54466
54467 2008-09-29  Bruno Haible  <bruno@clisp.org>
54468
54469         Enable use of shell scripts as executables in mingw.
54470         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54471         run the program as a shell script.
54472         * lib/pipe.c (create_pipe): Likewise.
54473         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54474         resulting array.
54475
54476 2008-09-29  Eric Blake  <ebb9@byu.net>
54477
54478         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54479
54480 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54481
54482         * doc/posix-functions/accept.texi: Update mingw problems.
54483         * doc/posix-functions/bind.texi: Update mingw problems.
54484         * doc/posix-functions/close.texi: Update mingw problems.
54485         * doc/posix-functions/connect.texi: Update mingw problems.
54486         * doc/posix-functions/getpeername.texi: Update mingw problems.
54487         * doc/posix-functions/getsockname.texi: Update mingw problems.
54488         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54489         * doc/posix-functions/ioctl.texi: Update mingw problems.
54490         * doc/posix-functions/listen.texi: Update mingw problems.
54491         * doc/posix-functions/recv.texi: Update mingw problems.
54492         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54493         * doc/posix-functions/select.texi: Update mingw problems.
54494         * doc/posix-functions/send.texi: Update mingw problems.
54495         * doc/posix-functions/sendto.texi: Update mingw problems.
54496         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54497         * doc/posix-functions/socket.texi: Update mingw problems.
54498
54499 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54500             Bruno Haible  <bruno@clisp.org>
54501
54502         * lib/sys_select.in.h: Include sys/time.h.
54503         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54504         * modules/sys_select: Depend on sys_time.
54505         * tests/test-sys_select.c: Test that sys/select.h defines struct
54506         timeval fully.
54507
54508 2008-09-29  Bruno Haible  <bruno@clisp.org>
54509
54510         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
54511         * lib/sys_select.in.h: Likewise.
54512
54513 2008-09-29  Bruno Haible  <bruno@clisp.org>
54514
54515         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
54516
54517 2008-09-29  Bruno Haible  <bruno@clisp.org>
54518
54519         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
54520         Set LIBSOCKET instead of augmenting LIBS.
54521         * modules/sockets (Link): New section.
54522         * modules/sockets-tests (test_sockets_LDADD): New variable.
54523         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
54524         * modules/poll-tests (test_poll_LDADD): New variable.
54525         * NEWS: Document the change.
54526
54527 2008-09-29  Bruno Haible  <bruno@clisp.org>
54528
54529         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
54530         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
54531         ARPA_INET_H directly.
54532         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
54533
54534 2008-09-28  Bruno Haible  <bruno@clisp.org>
54535
54536         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
54537         from gl_HEADER_SYS_SOCKET.
54538         (gl_HEADER_SYS_SOCKET): Invoke it.
54539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
54540
54541 2008-09-28  Bruno Haible  <bruno@clisp.org>
54542
54543         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
54544         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
54545         Needed on OSF/1 4.0.
54546
54547 2008-09-28  Bruno Haible  <bruno@clisp.org>
54548
54549         Override open more carefully.
54550         * lib/open.c (orig_open): New function.
54551         (rpl_open): Use orig_open instead of open.
54552         * lib/fcntl.in.h: Add special invocation convention.
54553         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
54554         (gl_FUNC_OPEN): Invoke it.
54555
54556         Override freopen more carefully.
54557         * lib/freopen.c (orig_freopen): New function.
54558         (rpl_freopen): Use orig_freopen instead of freopen.
54559         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
54560         (gl_FUNC_FREOPEN): Invoke it.
54561
54562         Override fopen more carefully.
54563         * lib/fopen.c (orig_fopen): New function.
54564         (rpl_fopen): Use orig_fopen instead of fopen.
54565         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
54566         (gl_FUNC_FOPEN): Invoke it.
54567         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
54568
54569 2008-09-28  Bruno Haible  <bruno@clisp.org>
54570
54571         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
54572         SIGPIPE.
54573
54574 2008-09-28  Bruno Haible  <bruno@clisp.org>
54575
54576         * tests/test-sigaction.c (handler, main): Disable the check whether
54577         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
54578         glibc systems with LinuxThreads.
54579
54580 2008-09-28  Bruno Haible  <bruno@clisp.org>
54581
54582         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
54583
54584         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
54585         with AIX xlc.
54586         * lib/fcntl.in.h (open): Likewise.
54587         Reported by Rainer Tammer <tammer@tammer.net>.
54588
54589 2008-09-28  Bruno Haible  <bruno@clisp.org>
54590
54591         * modules/posix_spawnp-tests: New file.
54592         * tests/test-posix_spawn.c: New file.
54593         * tests/test-posix_spawn.in.sh: New file.
54594
54595         New module 'posix_spawnp'.
54596         * modules/posix_spawnp: New file.
54597         * lib/spawnp.c: New file, from GNU libc with modifications.
54598         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
54599
54600         New module 'posix_spawn'.
54601         * modules/posix_spawn: New file.
54602         * lib/spawn.c: New file, from GNU libc with modifications.
54603         * doc/posix-functions/posix_spawn.texi: Mention the new module.
54604
54605         New module 'posix_spawnattr_destroy'.
54606         * modules/posix_spawnattr_destroy: New file.
54607         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
54608         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
54609         module.
54610
54611         New module 'posix_spawnattr_setsigmask'.
54612         * modules/posix_spawnattr_setsigmask: New file.
54613         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
54614         modifications.
54615         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
54616         new module.
54617
54618         New module 'posix_spawnattr_getsigmask'.
54619         * modules/posix_spawnattr_getsigmask: New file.
54620         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
54621         modifications.
54622         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
54623         new module.
54624
54625         New module 'posix_spawnattr_setsigdefault'.
54626         * modules/posix_spawnattr_setsigdefault: New file.
54627         * lib/spawnattr_setdefault.c: New file, from GNU libc with
54628         modifications.
54629         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
54630         new module.
54631
54632         New module 'posix_spawnattr_getsigdefault'.
54633         * modules/posix_spawnattr_getsigdefault: New file.
54634         * lib/spawnattr_getdefault.c: New file, from GNU libc with
54635         modifications.
54636         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
54637         new module.
54638
54639         New module 'posix_spawnattr_setschedpolicy'.
54640         * modules/posix_spawnattr_setschedpolicy: New file.
54641         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
54642         modifications.
54643         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
54644         new module.
54645
54646         New module 'posix_spawnattr_getschedpolicy'.
54647         * modules/posix_spawnattr_getschedpolicy: New file.
54648         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
54649         modifications.
54650         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
54651         new module.
54652
54653         New module 'posix_spawnattr_setschedparam'.
54654         * modules/posix_spawnattr_setschedparam: New file.
54655         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
54656         modifications.
54657         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
54658         new module.
54659
54660         New module 'posix_spawnattr_getschedparam'.
54661         * modules/posix_spawnattr_getschedparam: New file.
54662         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
54663         modifications.
54664         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
54665         new module.
54666
54667         New module 'posix_spawnattr_setpgroup'.
54668         * modules/posix_spawnattr_setpgroup: New file.
54669         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
54670         modifications.
54671         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
54672         module.
54673
54674         New module 'posix_spawnattr_getpgroup'.
54675         * modules/posix_spawnattr_getpgroup: New file.
54676         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
54677         modifications.
54678         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
54679         module.
54680
54681         New module 'posix_spawnattr_setflags'.
54682         * modules/posix_spawnattr_setflags: New file.
54683         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
54684         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
54685         module.
54686
54687         New module 'posix_spawnattr_getflags'.
54688         * modules/posix_spawnattr_getflags: New file.
54689         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
54690         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
54691         module.
54692
54693         New module 'posix_spawnattr_init'.
54694         * modules/posix_spawnattr_init: New file.
54695         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
54696         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
54697         module.
54698
54699         New module 'posix_spawn_file_actions_destroy'.
54700         * modules/posix_spawn_file_actions_destroy: New file.
54701         * lib/spawn_faction_destroy.c: New file, from GNU libc with
54702         modifications.
54703         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
54704         the new module.
54705
54706         New module 'posix_spawn_file_actions_addopen'.
54707         * modules/posix_spawn_file_actions_addopen: New file.
54708         * lib/spawn_faction_addopen.c: New file, from GNU libc with
54709         modifications.
54710         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
54711         the new module.
54712
54713         New module 'posix_spawn_file_actions_adddup2'.
54714         * modules/posix_spawn_file_actions_adddup2: New file.
54715         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
54716         modifications.
54717         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
54718         the new module.
54719
54720         New module 'posix_spawn_file_actions_addclose'.
54721         * modules/posix_spawn_file_actions_addclose: New file.
54722         * lib/spawn_faction_addclose.c: New file, from GNU libc with
54723         modifications.
54724         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
54725         the new module.
54726
54727         New module 'posix_spawn_file_actions_init'.
54728         * modules/posix_spawn_file_actions_init: New file.
54729         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
54730         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
54731         new module.
54732
54733         New module 'posix_spawn-internal'.
54734         * modules/posix_spawn-internal: New file.
54735         * lib/spawn_int.h: New file, from GNU libc with modifications.
54736         * lib/spawni.c: New file, from GNU libc with modifications.
54737         * m4/posix_spawn.m4: New file.
54738
54739         New module 'spawn'.
54740         * modules/spawn: New file.
54741         * lib/spawn.in.h: New file, from GNU libc with modifications.
54742         * m4/spawn_h.m4: New file.
54743         * doc/posix-headers/spawn.texi: Mention the new module.
54744
54745 2008-09-28  Bruno Haible  <bruno@clisp.org>
54746
54747         * modules/sched-tests: New file.
54748         * tests/test-sched.c: New file.
54749
54750         New module 'sched'.
54751         * modules/sched: New file.
54752         * lib/sched.in.h: New file.
54753         * m4/sched_h.m4: New file.
54754         * doc/posix-headers/sched.texi: Mention the new module.
54755
54756 2008-09-27  Eric Blake  <ebb9@byu.net>
54757
54758         Fix previous patch, and tweak references to $0.
54759         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
54760         (func_version, func_gnulib_dir): Don't call this program
54761         gnulib-tool.
54762         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
54763         with using $0 in function.
54764         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
54765         (func_fatal_error): Reuse the name the user invoked us with.
54766
54767 2008-09-27  Bruno Haible  <bruno@clisp.org>
54768
54769         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
54770         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
54771         (gl_ICONV_H): Not here.
54772         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
54773         instead of assigning ICONV_H directly.
54774
54775         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
54776         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
54777         WCHAR_H directly.
54778
54779 2008-09-27  Bruno Haible  <bruno@clisp.org>
54780
54781         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
54782         * modules/arpa_inet (Depends-on): Add link-warning.
54783         (Makefile.am): Insert the definition of GL_LINK-WARNING.
54784         * modules/unistd (Makefile.am): Likewise.
54785
54786 2008-09-26  Bruno Haible  <bruno@clisp.org>
54787
54788         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
54789         variables.
54790         (func_version): Essentially copied from gnulib-tool.
54791         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
54792         func_readlink): Copied from gnulib-tool.
54793
54794 2008-09-26  Bruno Haible  <bruno@clisp.org>
54795
54796         * gnulib-tool (func_version): Change directory to $gnulib_dir before
54797         invoking git-version-gen.
54798
54799 2008-09-26  Bruno Haible  <bruno@clisp.org>
54800
54801         * posix-modules: Update to directory names changed on 2008-01-19.
54802         Remove commas in output before splitting into words. No more need to
54803         avoid 'ftruncate' since 2007-02-19.
54804
54805 2008-09-26  Bruno Haible  <bruno@clisp.org>
54806
54807         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
54808
54809 2008-09-26  Bruno Haible  <bruno@clisp.org>
54810
54811         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
54812         * modules/fwriteerror (Depends-on): Add errno.
54813
54814 2008-09-26  Bruno Haible  <bruno@clisp.org>
54815
54816         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
54817         * tests/test-vc-list-files-cvs.sh: Likewise.
54818
54819 2008-09-26  Bruno Haible  <bruno@clisp.org>
54820
54821         * doc/posix-headers/sys_resource.texi: Reorder items.
54822
54823 2008-09-26  Jim Meyering  <meyering@redhat.com>
54824
54825         fts: tweak inode comparison function
54826         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
54827         inode numbers, as documented.
54828
54829         fts: sort dirent entries on inode number before traversing
54830         This avoids a quadratic, seek-related performance penalty when
54831         operating on a directory containing many entries (measurable at 10k;
54832         3.5 hours at 2 million entries with a cold cache) on certain types
54833         of file systems, including ext3 and ext4, but not tmpfs.
54834         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
54835         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
54836         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
54837         (fs_handles_readdir_ordered_dirents_efficiently): New function.
54838         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
54839         (fts_build): Set the stat.st_ino member from D_INO.
54840         If it is likely to be useful, sort dirent entries on inode number.
54841
54842         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
54843         and the struct statfs.f_type member.
54844         * modules/fts (Depends-on): Add d-ino.
54845
54846 2008-09-26  Bruno Haible  <bruno@clisp.org>
54847
54848         * modules/sigpipe-die (Depends-on): Add sigpipe.
54849
54850         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
54851         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
54852         and GNULIB_STDIO_H_SIGPIPE are set.
54853         * lib/stdio-write.c: New file.
54854         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
54855         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54856         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54857         REPLACE_STDIO_WRITE_FUNCS.
54858         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
54859         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54860         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54861         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54862         * modules/stdio (Files): Add lib/stdio-write.c.
54863         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
54864         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54865         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54866         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54867         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
54868         REPLACE_FPRINTF_POSIX.
54869         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
54870         REPLACE_PRINTF_POSIX.
54871         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
54872         REPLACE_VFPRINTF_POSIX.
54873         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
54874         REPLACE_VPRINTF_POSIX.
54875         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
54876         SIGPIPE issue.
54877         * doc/posix-functions/fputc.texi: Likewise.
54878         * doc/posix-functions/fputs.texi: Likewise.
54879         * doc/posix-functions/fwrite.texi: Likewise.
54880         * doc/posix-functions/printf.texi: Likewise.
54881         * doc/posix-functions/putc.texi: Likewise.
54882         * doc/posix-functions/putchar.texi: Likewise.
54883         * doc/posix-functions/puts.texi: Likewise.
54884         * doc/posix-functions/vfprintf.texi: Likewise.
54885         * doc/posix-functions/vprintf.texi: Likewise.
54886
54887         * modules/safe-write (Depends-on): Add write.
54888
54889         * modules/sigpipe-tests: New file.
54890         * tests/test-sigpipe.c: New file.
54891         * tests/test-sigpipe.sh: New file.
54892
54893         * modules/write: New file.
54894         * lib/unistd.in.h: Include <sys/types.h>.
54895         (write): New declaration.
54896         * lib/write.c: New file.
54897         * m4/write.m4: New file.
54898         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54899         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54900         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54901         GNULIB_WRITE, REPLACE_WRITE.
54902         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54903         and the SIGPIPE issue.
54904
54905         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54906         (raise): New declaration.
54907         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54908         (ext_signal): New function.
54909         (rpl_raise): New function.
54910         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54911         GNULIB_SIGNAL_H_SIGPIPE.
54912         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54913         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54914
54915         * modules/sigpipe: New file.
54916         * m4/sigpipe.m4: New file.
54917
54918 2008-09-25  Derek Price  <derek@ximbiot.com>
54919             Bruno Haible  <bruno@clisp.org>
54920
54921         * gnulib-tool (func_import): Report all license incompatibilities, not
54922         just the first one.
54923
54924 2008-09-25  Bruno Haible  <bruno@clisp.org>
54925
54926         * gnulib-tool (func_import): When computing the edits, consider not
54927         only the Makefile.ams that exist but also those that will be generated.
54928
54929 2008-09-25  Simon Josefsson  <simon@josefsson.org>
54930
54931         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
54932         fixes gnulib-tool --test warning about duplicate dependency.
54933
54934 2008-09-25  Bruno Haible  <bruno@clisp.org>
54935
54936         * gnulib-tool: Don't ask the user to perform edits in the generated
54937         Makefile.ams.
54938         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
54939         apply to the Makefile.am being generated.
54940         (func_emit_tests_Makefile_am): Execute edits that apply to the
54941         Makefile.am being generated.
54942         (func_import): Setup list of Makefile.am edits before emitting the
54943         Makefile.ams, not at the end.
54944         (func_create_testdir): Update.
54945         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54946
54947 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54948
54949         * gnulib-tool (func_import): Store the --tests-base option in the
54950         comment in gnulib-cache.m4.
54951
54952 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
54953
54954         * NEWS: Document increased portability that sys_select now provides.
54955
54956         * lib/sys_select.in.h: Install select wrapper.
54957         * lib/sys_socket.in.h: Use more descriptive name when there is no
54958         select wrapper.
54959         * lib/winsock-select.c: New.
54960         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
54961         Require gl_HEADER_SYS_SOCKET.
54962         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
54963         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
54964         * tests/test-sys_select.c: Add functional tests.
54965
54966 2008-09-24  Eric Blake  <ebb9@byu.net>
54967
54968         open, fopen: close fd leak in last patch
54969         * lib/open.c (rpl_open): Close fd before returning error.
54970         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54971         * doc/posix-functions/open.texi (open): Document that Irix also
54972         has the bug.
54973         * doc/posix-functions/fopen.texi (fopen): Likewise.
54974         Reported by Paolo Bonzini.
54975
54976 2008-09-24  Bruno Haible  <bruno@clisp.org>
54977
54978         Ensure that a filename ending in a slash cannot be used to access a
54979         non-directory.
54980         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54981         to check whether it's really a directory.
54982         * lib/fopen.c: Include fcntl.h, unistd.h.
54983         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54984         and fdopen().
54985         * modules/fopen (Depends-on): Add unistd.
54986         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54987         * tests/test-fopen.c (main): Likewise.
54988         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54989         * doc/posix-functions/fopen.texi: Likewise.
54990         Reported by Eric Blake.
54991
54992 2008-09-23  Eric Blake  <ebb9@byu.net>
54993
54994         c-stack: avoid compiler optimizations when provoking overflow
54995         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54996         recursion harder to optimize, to ensure a stack overflow occurs.
54997         * tests/test-c-stack.c (recurse): Likewise.
54998         Borrowed from libsigsegv.
54999
55000         c-stack: work around Irix sigaltstack bug
55001         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55002         whether sigaltstack uses wrong end of stack_t (copied in part from
55003         libsigsegv).
55004         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55005         Irix bug, without requiring an over-allocation.
55006         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55007         bug.
55008
55009         fopen: document mingw bug on directories
55010         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55011         not allowing a stream visiting a directory, even though reading
55012         from such a stream is not portable.
55013
55014 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55015
55016         * lib/poll.c: Rewrite.
55017         * modules/poll: Depend on alloca.
55018
55019 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55020
55021         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55022         instead define prototypes for a full set of wrappers.  Ensure
55023         that Cygwin does not use the compatibility code, which is only
55024         for MinGW.
55025         * lib/winsock.c: New.
55026         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55027         * modules/sys_socket: Add lib/winsock.c.
55028
55029         * modules/poll-tests: Add errno and perror.
55030         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55031
55032 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55033
55034         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55035
55036 2008-09-23  Bruno Haible  <bruno@clisp.org>
55037
55038         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55039         * doc/glibc-functions/*: Likewise.
55040
55041 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55042
55043         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55044         success.
55045
55046 2008-09-22  Eric Blake  <ebb9@byu.net>
55047             Bruno Haible  <bruno@clisp.org>
55048
55049         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55050         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55051         supply %A but mishandle pseudo-NaN.
55052         Reported by Simon Josefsson.
55053
55054 2008-09-21  Bruno Haible  <bruno@clisp.org>
55055
55056         * tests/test-lock.c (main): Tweak skip message.
55057         * tests/test-tls.c (main): Likewise.
55058
55059 2008-09-21  Bruno Haible  <bruno@clisp.org>
55060
55061         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55062         whether 'struct sigaction' has sa_sigaction here...
55063         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55064         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55065
55066 2008-09-21  Bruno Haible  <bruno@clisp.org>
55067
55068         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55069         section.
55070         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55071         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55072         the new section.
55073         (Support for obsolete systems lacking POSIX:2001): New section.
55074         (String handling <string.h>): Move strdup to the new section.
55075         Suggested by Simon Josefsson and Paolo Bonzini.
55076
55077 2008-09-21  Bruno Haible  <bruno@clisp.org>
55078
55079         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55080         exponents in %e and %g results on 'long double'. Needed for mingw's
55081         improved *printf functions.
55082         * tests/test-vasprintf-posix.c (test_function): Likewise.
55083         * tests/test-snprintf-posix.h (test_function): Likewise.
55084         * tests/test-sprintf-posix.h (test_function): Likewise.
55085         Reported by Eric Blake.
55086
55087 2008-09-21  Bruno Haible  <bruno@clisp.org>
55088
55089         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55090         * tests/test-sprintf-posix.h (test_function): Likewise.
55091
55092 2008-09-21  Bruno Haible  <bruno@clisp.org>
55093
55094         * modules/getpass (Depends-on): Add strdup-posix.
55095
55096         New module 'strdup-posix'.
55097         * modules/strdup-posix: New file.
55098         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55099         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55100         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55101         REPLACE_STRDUP.
55102         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55103         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55104         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55105         strdup-posix.
55106
55107         * modules/strdup (Depends-on): Remove malloc-posix.
55108
55109 2008-09-20  Bruno Haible  <bruno@clisp.org>
55110
55111         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55112         Wildenhues.
55113
55114 2008-09-20  Bruno Haible  <bruno@clisp.org>
55115
55116         Ensure that wint_t gets defined on IRIX 5.3.
55117         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55118         * lib/wctype.in.h (wint_t): Likewise.
55119         (__wctype_wint_t): Remove type.
55120         (isw*): Use wint_t instead of __wctype_wint_t.
55121         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55122         * modules/wchar (Files): Add m4/wint_t.m4.
55123         (Makefile.am): Substitute HAVE_WINT_T.
55124         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55125         * tests/test-wctype.c: Check that wint_t is defined.
55126         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55127         * doc/posix-headers/wctype.texi: Likewise.
55128         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55129
55130 2008-09-18  Bruno Haible  <bruno@clisp.org>
55131
55132         * gnulib-tool (func_exit): Update comment.
55133
55134 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55135
55136         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55137         assumes strdup exists and does not depend on strdup to return
55138         ENOMEM on out of memory conditions.
55139
55140 2008-09-18  Bruno Haible  <bruno@clisp.org>
55141
55142         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
55143         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55144         digits for the exponent.
55145
55146 2008-09-18  Jim Meyering  <meyering@redhat.com>
55147             Bruno Haible  <bruno@clisp.org>
55148
55149         * lib/vasnprintf.c (decimal_point_char): Define also if
55150         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55151
55152 2008-09-16  Bruno Haible  <bruno@clisp.org>
55153         and Eric Blake  <ebb9@byu.net>
55154
55155         vasnprintf: support Irix 5.3
55156         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55157         that mishandle long double infinity.
55158         Reported by Tom G. Christensen.
55159
55160 2008-09-16  Bruno Haible  <bruno@clisp.org>
55161
55162         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55163         Solaris 9.
55164         * doc/glibc-functions/alphasort.texi: Likewise.
55165         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55166
55167 2008-09-16  Jim Meyering  <meyering@redhat.com>
55168
55169         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55170         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55171         a umask modification leak out of a subshell.  Otherwise, the
55172         opensolaris /bin/sh would be accepted and thus cause unwarranted
55173         failures in the coreutils test suite.
55174
55175 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55176
55177         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55178         to succeed.
55179
55180 2008-09-16  Jim Meyering  <meyering@redhat.com>
55181
55182         avoid spurious test failure when library is built without ACL support
55183         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55184         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55185         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55186         * tests/test-copy-acl.sh: Likewise.
55187
55188 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55189
55190         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55191         based on character occurrence counts.
55192
55193 2008-09-15  Eric Blake  <ebb9@byu.net>
55194
55195         tests: avoid some compiler warnings
55196         * tests/test-memchr.c (main): Pass NULL indirectly.
55197         * tests/test-closein.c (main): Avoid unused variable.
55198
55199 2008-09-15  Bruno Haible  <bruno@clisp.org>
55200
55201         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55202         are missing on OpenBSD 4.0 individually.
55203         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55204
55205 2008-09-15  Bruno Haible  <bruno@clisp.org>
55206
55207         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55208         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55209         * doc/posix-functions/perror.texi: Likewise.
55210         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55211         is missing.
55212         Reported by Eric Blake.
55213
55214         * lib/errno.in.h: Use replacement values >= 2000.
55215         Reported by Eric Blake.
55216
55217 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55218
55219         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55220         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55221         limit.
55222         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55223         compareseq was aborted.
55224
55225 2008-09-14  Bruno Haible  <bruno@clisp.org>
55226
55227         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55228         yvec_edit_count.
55229         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55230         (fstrcmp_bounded): Simplify result computation accordingly.
55231
55232 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55233
55234         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55235         (fstrcmp): Define in terms of fstrcmp_bounded.
55236         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55237         lower_bound argument.
55238         Return quickly if the result is certainly < lower_bound.
55239         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55240
55241 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55242
55243         * lib/diffseq.h (EARLY_ABORT): New macro.
55244         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55245         evaluates to true.
55246
55247 2008-09-14  Bruno Haible  <bruno@clisp.org>
55248
55249         * modules/perror-tests: New file.
55250         * tests/test-perror.sh: New file.
55251         * tests/test-perror.c: New file.
55252
55253         New module 'perror'.
55254         * lib/stdio.in.h (perror): New declaration.
55255         * lib/perror.c: New file.
55256         * m4/perror.m4: New file.
55257         * modules/perror: New file.
55258         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55259         * doc/posix-functions/perror.texi: Mention the perror module.
55260         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55261         REPLACE_PERROR.
55262         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55263         REPLACE_PERROR.
55264
55265 2008-09-14  Bruno Haible  <bruno@clisp.org>
55266
55267         * modules/stdio (Makefile.am): Reorder to match the order in
55268         lib/stdio.in.h.
55269         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55270
55271 2008-09-13  Bruno Haible  <bruno@clisp.org>
55272
55273         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55274
55275 2008-09-13  Bruno Haible  <bruno@clisp.org>
55276
55277         Extend strerror to cover the added errno values.
55278         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55279         (rpl_strerror): Provide error messages for the added errno values and
55280         for the WSA* values.
55281         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55282         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55283         strerror.
55284         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55285         * modules/strerror (Depends-on): Add errno.
55286         * doc/posix-functions/strerror.texi: Document the change.
55287         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55288         and EOVERFLOW.
55289
55290 2008-09-13  Bruno Haible  <bruno@clisp.org>
55291
55292         * modules/EOVERFLOW: Remove file.
55293         * m4/eoverflow.m4: Remove file.
55294         * modules/EOVERFLOW-tests: Remove file.
55295         * tests/test-EOVERFLOW.c: Remove file.
55296         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55297         * modules/ftell (Depends-on): Likewise.
55298         * modules/getdelim (Depends-on): Likewise.
55299         * modules/getugroups (Depends-on): Likewise.
55300         * modules/poll (Depends-on): Likewise.
55301         * modules/snprintf (Depends-on): Likewise.
55302         * modules/sprintf-posix (Depends-on): Likewise.
55303         * modules/vasnprintf (Depends-on): Likewise.
55304         * modules/vasprintf (Depends-on): Likewise.
55305         * modules/vfprintf-posix (Depends-on): Likewise.
55306         * modules/vsnprintf (Depends-on): Likewise.
55307         * modules/vsprintf-posix (Depends-on): Likewise.
55308         * modules/xvasprintf (Depends-on): Likewise.
55309         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55310         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55311         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55312         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55313         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55314         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55315         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55316         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55317         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55318         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55319         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55320         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55321         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55322         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55323         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55324         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55325         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55326         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55327         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55328         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55329         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55330         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55331         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55332         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55333         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55334         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55335         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55336         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55337         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55338         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55339         * MODULES.html.sh: Remove EOVERFLOW.
55340         * NEWS: Mention the change.
55341
55342 2008-09-13  Bruno Haible  <bruno@clisp.org>
55343
55344         * modules/errno-tests: New file.
55345         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55346
55347         * lib/errno.in.h: New file.
55348         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55349         * modules/errno: New file.
55350         * doc/posix-headers/errno.texi: Update documentation.
55351         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55352
55353 2008-09-13  Bruno Haible  <bruno@clisp.org>
55354
55355         * tests/test-poll.c: Use #if for native Windows, rather than testing
55356         __MSVCRT__.
55357
55358 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55359             Bruno Haible  <bruno@clisp.org>
55360
55361         * lib/glob.c: Don't include <pwd.h> on native Windows.
55362         (WINDOWS32): New macro.
55363         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55364
55365 2008-09-13  Bruno Haible  <bruno@clisp.org>
55366
55367         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55368         (ETIMEDOUT): Remove macro.
55369         (glthread_cond_timedwait_multithreaded): New declaration.
55370         (glthread_cond_timedwait): Use it.
55371         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55372         (glthread_cond_timedwait_multithreaded): New function.
55373
55374 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55375
55376         * modules/poll-tests: Do not check for io.h.
55377         * tests/test-poll.c: Check for __MSVCRT__ instead.
55378
55379 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55380
55381         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55382         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55383         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55384
55385 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55386
55387         * modules/poll-tests: New.
55388         * tests/test-poll.c: New.
55389
55390 2008-09-12  Eric Blake  <ebb9@byu.net>
55391
55392         frexp: test for NetBSD failure on -0.0
55393         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55394         not all, bugs from NetBSD 3.0 have been fixed.
55395         * doc/posix-functions/frexp.texi (frexp): Document bug.
55396         Reported by Thomas Klausner.
55397
55398         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55399         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55400         literal -0.0.
55401         Reported by Jonathan C. Patschke <jp@centtech.com>.
55402
55403 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55404
55405         * lib/glthread/cond.h: Use dummy implementation also if
55406         USE_WIN32_THREADS.
55407
55408 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55409
55410         * modules/fnmatch-posix (License): Change to LGPLv2+.
55411         * modules/fnmatch-gnu (License): Likewise.
55412
55413 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55414
55415         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55416
55417 2008-09-11  Jim Meyering  <meyering@redhat.com>
55418
55419         * users.txt: Add gtk-vnc.
55420
55421 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55422
55423         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55424         rotate amounts.
55425
55426         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55427         required for 16-bit and 8-bit rotates.
55428         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55429         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55430         UINT8_MAX instead of hard-coded constants.
55431         Suggested by Paul Eggert.
55432
55433 2008-09-07  Bruno Haible  <bruno@clisp.org>
55434
55435         * tests/test-striconveh.c (main): Check behaviour when converting from
55436         UTF-7.
55437
55438         Make striconveh work better with stateful encodings.
55439         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55440         that iconv does not increment the inptr when returning -1/EINVAL.
55441
55442 2008-09-07  Bruno Haible  <bruno@clisp.org>
55443
55444         * build-aux/config.rpath: Update according to libtool-2.2.6.
55445         * build-aux/config.libpath: Likewise.
55446
55447 2008-09-06  Bruno Haible  <bruno@clisp.org>
55448
55449         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55450         * lib/freadptr.c (freadptr): Likewise.
55451         * lib/freadseek.c (freadptrinc): Likewise.
55452         Reported by Simon Josefsson.
55453
55454 2008-09-06  Bruno Haible  <bruno@clisp.org>
55455
55456         * modules/freadptr (License): Change to LGPLv2+.
55457         * modules/freadseek (License): Likewise.
55458         Suggested by Eric Blake.
55459
55460         * modules/memchr2 (License): Change to LGPLv2+.
55461         Approved by Eric Blake.
55462
55463 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55464             Bruno Haible  <bruno@clisp.org>
55465
55466         Make gnulib-tool work with native 'sed' on AIX.
55467         * gnulib-tool (sed_noop): New variable.
55468         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55469         func_add_or_update, func_create_testdir): Use it to initialize sed
55470         script variables.
55471         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55472
55473 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55474             Bruno Haible  <bruno@clisp.org>
55475
55476         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55477         also works after #include directives.
55478
55479 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
55480
55481         getdate.y: reject an out-of-range timezone value
55482         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55483         the range [-24...+24].  When specified with only one or two digits,
55484         * tests/test-getdate.c: Tests for the fix.
55485         * doc/getdate.texi: Document this change.
55486
55487 2008-09-03  Bruno Haible  <bruno@clisp.org>
55488
55489         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55490
55491 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55492
55493         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55494         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55495         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55496         Blake <ebb9@byu.net>.
55497
55498         * tests/test-bitrotate.c: Add more test vectors.
55499
55500 2008-09-02  Eric Blake  <ebb9@byu.net>
55501
55502         vasnprintf-posix: handle large precision via %.*d
55503         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55504         when handling it ourselves.
55505         * tests/test-vasnprintf-posix.c (test_function): Add test.
55506         * tests/test-snprintf-posix.h (test_function): Likewise.
55507         * tests/test-sprintf-posix.h (test_function): Likewise.
55508         * tests/test-vasprintf-posix.c (test_function): Likewise.
55509         Reported by Alain Guibert.
55510
55511 2008-09-01  Eric Blake  <ebb9@byu.net>
55512
55513         c-stack: make configure-time check more robust
55514         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
55515         successful sigaction call.
55516         Reported by Tom G. Christensen.
55517
55518 2008-09-01  Bruno Haible  <bruno@clisp.org>
55519
55520         New module 'findprog-lgpl'.
55521         * modules/findprog-lgpl: New file.
55522         * lib/findprog-lgpl.c: New file.
55523         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
55524         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
55525         to decide whether to use strdup or xstrdup, concatenated_filename or
55526         xconcatenated_filename.
55527
55528 2008-09-01  Bruno Haible  <bruno@clisp.org>
55529
55530         Split module 'concat-filename' into 'concat-filename' (LGPL) and
55531         'xconcat-filename' (GPL).
55532         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
55533         (License): Change to LGPLv2+.
55534         * modules/xconcat-filename: New file.
55535         * lib/concat-filename.h (concatenated_filename): Change specification.
55536         (xconcatenated_filename): New declaration.
55537         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
55538         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
55539         memory situations.
55540         * lib/xconcat-filename.c: New file.
55541         * NEWS: Mention the change.
55542         * lib/findprog.c: Include concat-filename.h, not filename.h.
55543         (find_in_path): Use xconcatenated_filename instead of
55544         concatenated_filename.
55545         * lib/javacomp.c: Include concat-filename.h, not filename.h.
55546         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
55547         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
55548         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
55549         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
55550         instead of concatenated_filename.
55551         * lib/javaexec.c: Include concat-filename.h, not filename.h.
55552         (execute_java_class): Use xconcatenated_filename instead of
55553         concatenated_filename.
55554         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
55555         * modules/javacomp (Depends-on): Likewise.
55556         * modules/javaexec (Depends-on): Likewise.
55557
55558 2008-09-01  Bruno Haible  <bruno@clisp.org>
55559
55560         Split module 'filename' into 'filename' and 'concat-filename'.
55561         * modules/filename: Keep only lib/filename.h.
55562         (License): Change to LGPLv2+.
55563         * modules/concat-filename: New file, extracted from modules/filename.
55564         * lib/filename.h (concatenated_filename): Remove declaration.
55565         * lib/concat-filename.h: New file, extracted from lib/filename.h.
55566         * lib/concat-filename.c: Include concat-filename.h.
55567         * NEWS: Mention the change.
55568
55569 2008-09-01  Simon Josefsson  <simon@josefsson.org>
55570
55571         * lib/bitrotate.h (rotl8, rotr8): Add.
55572
55573         * modules/bitrotate (configure.ac): Need
55574         AC_REQUIRE([AC_C_INLINE]).
55575         (Description): Mention stdint.h.  Reported by Bruno Haible
55576         <bruno@clisp.org>.
55577
55578         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
55579         Paolo Bonzini <bonzini@gnu.org>.
55580
55581 2008-08-31  Bruno Haible  <bruno@clisp.org>
55582
55583         Assume Solaris specific bi-arch conventions on Solaris systems.
55584         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
55585         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
55586         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
55587         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
55588         like acl_libdirstem.
55589         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
55590         acl_libdirstem.
55591         * NEWS: Mention the change.
55592         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
55593
55594 2008-08-31  Jim Meyering  <meyering@redhat.com>
55595
55596         * lib/strftime.h: Add comments describing the two added arguments.
55597
55598         remove duplicate #include directives
55599         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
55600         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
55601
55602 2008-08-31  Bruno Haible  <bruno@clisp.org>
55603
55604         New module 'sigpipe-die'.
55605         * modules/sigpipe-die: New file.
55606         * lib/sigpipe-die.h: New file.
55607         * lib/sigpipe-die.c: New file.
55608         * MODULES.html.sh (Signal handling): Add sigpipe-die.
55609
55610 2008-08-31  Bruno Haible  <bruno@clisp.org>
55611
55612         Don't override previously installed signal handlers.
55613         * lib/fatal-signal.c (saved_sigactions): New variable.
55614         (uninstall_handlers): Reset the signal to the saved handler, not
55615         to SIG_DFL (except when ignored).
55616         (install_handlers): Save the previous handlers.
55617
55618 2008-08-30  Bruno Haible  <bruno@clisp.org>
55619
55620         * gnulib-tool (func_reset_sigpipe): New function.
55621         (func_get_automake_snippet, func_modules_transitive_closure,
55622         func_import): Invoke it before a join command that reads from stdin,
55623         to avoid "echo: write error: Broken pipe" error messages on stderr.
55624         Reported by Sam Steingold <sds@gnu.org>.
55625
55626 2008-08-30  Bruno Haible  <bruno@clisp.org>
55627
55628         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
55629         Code copied from m4/open.m4.
55630         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
55631         access and the filename ends in a slash. Code copied from lib/open.c.
55632         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
55633         * tests/test-fopen.c (main): Check against bug with trailing slash.
55634
55635 2008-08-29  Bruno Haible  <bruno@clisp.org>
55636
55637         Avoid some "gcc -pedantic" warnings.
55638         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
55639         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
55640         * lib/dirent.in.h: Likewise.
55641         * lib/fcntl.in.h: Likewise.
55642         * lib/float.in.h: Likewise.
55643         * lib/iconv.in.h: Likewise.
55644         * lib/inttypes.in.h: Likewise.
55645         * lib/locale.in.h: Likewise.
55646         * lib/math.in.h: Likewise.
55647         * lib/netinet_in.in.h: Likewise.
55648         * lib/search.in.h: Likewise.
55649         * lib/signal.in.h: Likewise.
55650         * lib/stdarg.in.h: Likewise.
55651         * lib/stdint.in.h: Likewise.
55652         * lib/stdio.in.h: Likewise.
55653         * lib/stdlib.in.h: Likewise.
55654         * lib/string.in.h: Likewise.
55655         * lib/strings.in.h: Likewise.
55656         * lib/sys_select.in.h: Likewise.
55657         * lib/sys_socket.in.h: Likewise.
55658         * lib/sys_stat.in.h: Likewise.
55659         * lib/sys_time.in.h: Likewise.
55660         * lib/sysexits.in.h: Likewise.
55661         * lib/time.in.h: Likewise.
55662         * lib/unistd.in.h: Likewise.
55663         * lib/wchar.in.h: Likewise.
55664         * lib/wctype.in.h: Likewise.
55665         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
55666         * modules/fchdir (Makefile.am): Likewise.
55667         * modules/fcntl (Makefile.am): Likewise.
55668         * modules/float (Makefile.am): Likewise.
55669         * modules/iconv_open (Makefile.am): Likewise.
55670         * modules/inttypes (Makefile.am): Likewise.
55671         * modules/locale (Makefile.am): Likewise.
55672         * modules/math (Makefile.am): Likewise.
55673         * modules/netinet_in (Makefile.am): Likewise.
55674         * modules/search (Makefile.am): Likewise.
55675         * modules/signal (Makefile.am): Likewise.
55676         * modules/stdarg (Makefile.am): Likewise.
55677         * modules/stdint (Makefile.am): Likewise.
55678         * modules/stdio (Makefile.am): Likewise.
55679         * modules/stdlib (Makefile.am): Likewise.
55680         * modules/string (Makefile.am): Likewise.
55681         * modules/strings (Makefile.am): Likewise.
55682         * modules/sys_select (Makefile.am): Likewise.
55683         * modules/sys_socket (Makefile.am): Likewise.
55684         * modules/sys_stat (Makefile.am): Likewise.
55685         * modules/sys_time (Makefile.am): Likewise.
55686         * modules/sysexits (Makefile.am): Likewise.
55687         * modules/time (Makefile.am): Likewise.
55688         * modules/unistd (Makefile.am): Likewise.
55689         * modules/wchar (Makefile.am): Likewise.
55690         * modules/wctype (Makefile.am): Likewise.
55691         Reported by Reuben Thomas <rrt@sc3d.org>.
55692
55693 2008-08-29  Bruno Haible  <bruno@clisp.org>
55694
55695         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
55696         any more.
55697
55698 2008-08-29  Simon Josefsson  <simon@josefsson.org>
55699
55700         * MODULES.html.sh (Misc): Add bitrotate.
55701
55702         * modules/bitrotate: New file.
55703
55704         * lib/bitrotate.h: New file.
55705
55706         * modules/bitrotate-tests: New file.
55707
55708         * tests/test-bitrotate.c: New file.
55709
55710         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
55711         on the bitrotate module.
55712
55713         * lib/arctwo.c: Use new bitrotate module.
55714
55715 2008-08-29  Jim Meyering  <meyering@redhat.com>
55716
55717         bootstrap: merge changes from coreutils
55718         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
55719         of copied files.  Remove a kludge, now that this is fixed.
55720         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
55721         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
55722         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
55723
55724 2008-08-29  Bruno Haible  <bruno@clisp.org>
55725
55726         * MODULES.html.sh: Remove --cvs-urls option.
55727
55728 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
55729
55730         maint.mk: adjust to file name change
55731         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
55732
55733 2008-08-28  Jim Meyering  <meyering@redhat.com>
55734
55735         * modules/getndelim2 (License): Relicense to LGPLv2+.
55736         Approved by Richard Stallman for the version of 1995, and by
55737         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
55738
55739 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
55740
55741         * lib/getdelim.c (flockfile, funlockfile): Make all of them
55742         dummy if one is not available.  Do not touch them if
55743         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
55744         (getc_maybe_unlocked): New.
55745         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
55746
55747 2008-08-26  Eric Blake  <ebb9@byu.net>
55748
55749         doc/INSTALL: resync from autoconf
55750         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
55751         (INSTALL_PRELUDE): Delete; this is done more efficiently by
55752         moving...
55753         * install.texi [!autoconf]: ...here.  Resync from autoconf.
55754         * INSTALL: Regenerate.
55755         * INSTALL.ISO: New file.
55756         * INSTALL.UTF-8: Likewise.
55757
55758 2008-08-26  Jim Meyering  <meyering@redhat.com>
55759
55760         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
55761         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
55762         these definitions conditional, so that they may be overridden, too.
55763
55764 2008-08-26  Bruno Haible  <bruno@clisp.org>
55765
55766         Generate INSTALL file variants with prettier quotes.
55767         * doc/Makefile (INSTALL_PRELUDE): New macro.
55768         (INSTALL): Use it.
55769         (INSTALL.ISO, INSTALL.UTF-8): New rules.
55770
55771 2008-08-26  Bruno Haible  <bruno@clisp.org>
55772
55773         Run makeinfo in an English locale.
55774         * doc/Makefile (MAKEINFO): New variable.
55775
55776 2008-08-26  Bruno Haible  <bruno@clisp.org>
55777
55778         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
55779         Suggested by Eric Blake.
55780
55781 2008-08-25  Bruno Haible  <bruno@clisp.org>
55782
55783         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
55784
55785 2008-08-25  Eric Blake  <ebb9@byu.net>
55786
55787         c-stack: test that stack overflow can be caught
55788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
55789         that platform allows handling stack overflow; at least OS/2 EMX
55790         has sigaltstack, but crashes before transferring control to
55791         handler on stack overflow.
55792         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
55793         check for HAVE_STACK_OVERFLOW_HANDLING.
55794         Reported by Elbert Pol.
55795
55796 2008-08-25  Bruno Haible  <bruno@clisp.org>
55797
55798         * doc/posix-functions/strftime.texi: Fix description of strftime
55799         module.
55800
55801 2008-08-24  Bruno Haible  <bruno@clisp.org>
55802
55803         * tests/uniwidth/test-uc_width2.c: New file.
55804         * tests/uniwidth/test-uc_width2.sh: New file.
55805         * modules/uniwidth/width-tests (Files): Add the new files.
55806         (TESTS): Add uniwidth/test-uc_width2.sh.
55807         (TESTS_ENVIRONMENT): New variable.
55808         (check_PROGRAMS): Add test-uc_width2.
55809         (test_uc_width2_SOURCES): New variable.
55810
55811         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
55812         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
55813         not 0x00AB.
55814         Reported by Alexander V. Lukyanov <lav@netis.ru>.
55815
55816 2008-08-22  Eric Blake  <ebb9@byu.net>
55817
55818         test-lock, test-tls: mention why a test is skipped
55819         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
55820         skipped.
55821         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
55822
55823         count-one-bits: relax license
55824         * modules/count-one-bits (License): Relicense to LGPLv2+.
55825         Suggested by Ludovic Courtès, approved by Ben Pfaff.
55826
55827 2008-08-22  Andreas Schwab  <schwab@suse.de>
55828
55829         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55830         Remove spurious space in assignment.
55831
55832 2008-08-21  Simon Josefsson  <simon@josefsson.org>
55833
55834         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
55835         Paul Eggert <eggert@CS.UCLA.EDU>.
55836
55837 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
55838
55839         * modules/gettext: Add m4/threadlib.m4.
55840
55841 2008-08-19  Eric Blake  <ebb9@byu.net>
55842
55843         test-c-stack: fix compilation failure on FreeBSD 5.0
55844         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
55845         headers before <sys/resource.h>.
55846         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
55847         the bug.
55848         Reported by Nelson H. F. Beebe.
55849
55850         strverscmp: migrate from "strverscmp.h" to <string.h>
55851         * modules/string (Makefile.am): Add new hooks.
55852         * modules/strverscmp (Files): Remove strverscmp.h.
55853         (Depends-on): Add string.
55854         (configure.ac): Add indicator.
55855         (Include): Mention new header.
55856         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
55857         defaults.
55858         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
55859         results.
55860         * lib/strverscmp.h: Delete.
55861         * lib/string.in.h (strverscmp): Provide declaration, when needed.
55862         * tests/test-strverscmp.c (includes): Adjust client.
55863         * lib/check-version.c (includes): Likewise.
55864         * NEWS: Document the change.
55865
55866         strverscmp: add unit test
55867         * modules/strverscmp-tests: New file.
55868         * tests/test-strverscmp.c: Likewise.
55869
55870 2008-08-19  Simon Josefsson  <simon@josefsson.org>
55871
55872         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
55873         regarding Windows crypto stuff, from Mono.
55874
55875 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
55876
55877         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
55878         if present, for intel RND.  Return error on failures.
55879
55880 2008-08-18  Ben Pfaff  <blp@gnu.org>
55881
55882         gitlog-to-changelog: give better diagnostic for failed pipe-open
55883         * build-aux/gitlog-to-changelog: Improve error message: suggest
55884         that the version of Git may be too old.
55885
55886 2008-08-18  Simon Josefsson  <simon@josefsson.org>
55887
55888         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
55889         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
55890
55891 2008-08-18  Bruno Haible  <bruno@clisp.org>
55892
55893         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
55894         pthread_in_use().
55895
55896 2008-08-18  Bruno Haible  <bruno@clisp.org>
55897
55898         * lib/glthread/threadlib.c: Include <pthread.h>.
55899
55900 2008-08-18  Bruno Haible  <bruno@clisp.org>
55901
55902         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55903         glthread_recursive_lock_* macros.
55904         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55905         Fix syntax error.
55906
55907 2008-08-18  Bruno Haible  <bruno@clisp.org>
55908
55909         * lib/glthread/thread.c: Avoid forcing a context switch right after
55910         thread creation.
55911
55912 2008-08-17  Bruno Haible  <bruno@clisp.org>
55913
55914         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55915         * lib/glthread/thread.h: Provide Win32 specific implementation.
55916         * modules/thread (Files): Add lib/glthread/thread.c.
55917         (Depends-on): Add lock.
55918         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55919
55920 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55921
55922         New module 'yield'.
55923         * modules/yield: New file.
55924         * lib/glthread/yield.h: New file.
55925         * m4/yield.m4: New file.
55926         * MODULES.html.sh (Multithreading): Add yield.
55927
55928 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55929
55930         New module 'thread'.
55931         * modules/thread: New file.
55932         * lib/glthread/thread.h: New file.
55933         * m4/thread.m4: New file.
55934         * MODULES.html.sh (Multithreading): Add thread.
55935
55936 2008-08-17  Bruno Haible  <bruno@clisp.org>
55937
55938         * lib/glthread/lock.h: Include <stdlib.h> always.
55939         * lib/glthread/tls.h: Likewise.
55940         * lib/glthread/cond.h: Likewise.
55941
55942 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55943
55944         New module 'cond'.
55945         * modules/cond: New file.
55946         * lib/glthread/cond.h: New file.
55947         * lib/glthread/cond.c: New file.
55948         * m4/cond.m4: New file.
55949         * MODULES.html.sh (Multithreading): Add cond.
55950
55951 2008-08-16  Eric Blake  <ebb9@byu.net>
55952
55953         c-stack: fix regression on Irix 5.3 from 2008-06-21
55954         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
55955         sa_sigaction...
55956         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
55957         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
55958         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
55959         * modules/signal (Makefile.am): Use the value.
55960         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
55961         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
55962         * doc/posix-headers/signal.texi (signal.h): Document this
55963         portability issue.
55964         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
55965         Reported by Tom G. Christensen.
55966
55967 2008-08-17  Bruno Haible  <bruno@clisp.org>
55968
55969         New module 'threadlib'.
55970         * modules/threadlib: New file.
55971         * lib/glthread/threadlib.c: New file, extracted from
55972         lib/glthread/lock.c.
55973         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
55974         functions.
55975         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55976         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55977         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55978         macros.
55979         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55980         (gl_DISABLE_THREADS): Remove macro.
55981         * modules/lock (Files): Remove build-aux/config.rpath.
55982         (Depends-on): Remove havelib. Add threadlib.
55983         (configure.ac-early): Remove section.
55984         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55985         * modules/tls (Depends-on): Remove lock. Add threadlib.
55986         (Link): New section, copied from threadlib.
55987         * MODULES.html.sh (Multithreading): Add threadlib.
55988
55989 2008-08-14  Bruno Haible  <bruno@clisp.org>
55990
55991         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55992         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55993         glthread_rwlock_unlock, glthread_rwlock_destroy,
55994         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55995         glthread_recursive_lock_destroy): Define as macros always.
55996         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55997         glthread_lock_lock.
55998         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55999         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56000         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56001         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56002         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56003         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56004         (glthread_recursive_lock_lock_func): Renamed from
56005         glthread_recursive_lock_lock.
56006         (glthread_recursive_lock_unlock_func): Renamed from
56007         glthread_recursive_lock_unlock.
56008         (glthread_recursive_lock_destroy_func): Renamed from
56009         glthread_recursive_lock_destroy.
56010
56011 2008-08-14  Bruno Haible  <bruno@clisp.org>
56012
56013         * lib/glthread/lock.h: Renamed from lib/lock.h.
56014         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56015         * lib/glthread/tls.h: Renamed from lib/tls.h.
56016         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56017         * lib/fstrcmp.c: Update includes.
56018         * lib/strsignal.c: Update includes.
56019         * modules/lock (Files, Makefile.am): Update.
56020         (Include): Change to "glthread/lock.h".
56021         * modules/tls (Files, Makefile.am): Update.
56022         (Include): Change to "glthread/tls.h".
56023         * tests/test-lock.c: Update includes.
56024         * tests/test-tls.c: Update includes.
56025         * NEWS: Mention the renamed header files.
56026
56027 2008-08-11  Jim Meyering  <meyering@redhat.com>
56028
56029         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56030
56031 2008-08-11  Eric Blake  <ebb9@byu.net>
56032
56033         test-c-stack: avoid C99-ism
56034         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56035         before statement.
56036         Reported by Alain Guibert.
56037
56038 2008-08-10  Jim Meyering  <meyering@redhat.com>
56039
56040         ensure that return value of uinttostr et al are not ignored
56041         * lib/inttostr.h (__GNUC_PREREQ): Define.
56042         (__attribute_warn_unused_result__): Define.
56043         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56044
56045 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56046
56047         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56048         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56049
56050 2008-08-07  Jim Meyering  <meyering@redhat.com>
56051
56052         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56053
56054         * modules/mkstemp (License): Relicense under LGPLv2+.
56055         * modules/tempname (License): Likewise.
56056
56057 2008-08-06  Bruno Haible  <bruno@clisp.org>
56058
56059         * lib/poll.c (poll): Further micro-optimization.
56060
56061 2008-08-06  Jim Meyering  <meyering@redhat.com>
56062
56063         inet_pton.c: use locale-independent tolower
56064         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56065         (inet_pton6): Use c_tolower rather than tolower.
56066         * modules/inet_pton (Depends-on): Add c-ctype.
56067
56068 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56069
56070         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56071         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56072
56073 2008-08-06  Jim Meyering  <meyering@redhat.com>
56074
56075         * modules/inet_pton (License): Relicense under LGPLv2+.
56076
56077 2008-08-03  Bruno Haible  <bruno@clisp.org>
56078
56079         Additional non-aborting API for lock and tls.
56080         * lib/lock.h: Include <errno.h>.
56081         (glthread_lock_init): New macro/function.
56082         (gl_lock_init): Define as wrapper around glthread_lock_init.
56083         (glthread_lock_lock): New macro/function.
56084         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56085         (glthread_lock_unlock): New macro/function.
56086         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56087         (glthread_lock_destroy): New macro/function.
56088         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56089         (glthread_rwlock_init): New macro/function.
56090         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56091         (glthread_rwlock_rdlock): New macro/function.
56092         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56093         (glthread_rwlock_wrlock): New macro/function.
56094         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56095         (glthread_rwlock_unlock): New macro/function.
56096         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56097         (glthread_rwlock_destroy): New macro/function.
56098         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56099         (glthread_recursive_lock_init): New macro/function.
56100         (gl_recursive_lock_init): Define as wrapper around
56101         glthread_recursive_lock_init.
56102         (glthread_recursive_lock_lock): New macro/function.
56103         (gl_recursive_lock_lock): Define as wrapper around
56104         glthread_recursive_lock_lock.
56105         (glthread_recursive_lock_unlock): New macro/function.
56106         (gl_recursive_lock_unlock): Define as wrapper around
56107         glthread_recursive_lock_unlock.
56108         (glthread_recursive_lock_destroy): New macro/function.
56109         (gl_recursive_lock_destroy): Define as wrapper around
56110         glthread_recursive_lock_destroy.
56111         (glthread_once): New macro/function.
56112         (gl_once): Define as wrapper around glthread_once.
56113         Update function declarations.
56114         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56115         glthread_rwlock_init. Return error code.
56116         (glthread_rwlock_rdlock_multithreaded): Renamed from
56117         glthread_rwlock_rdlock. Return error code.
56118         (glthread_rwlock_wrlock_multithreaded): Renamed from
56119         glthread_rwlock_wrlock. Return error code.
56120         (glthread_rwlock_unlock_multithreaded): Renamed from
56121         glthread_rwlock_unlock. Return error code.
56122         (glthread_rwlock_destroy_multithreaded): Renamed from
56123         glthread_rwlock_destroy. Return error code.
56124         (glthread_recursive_lock_init_multithreaded): Renamed from
56125         glthread_recursive_lock_init. Return error code.
56126         (glthread_recursive_lock_lock_multithreaded): Renamed from
56127         glthread_recursive_lock_lock. Return error code.
56128         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56129         glthread_recursive_lock_unlock. Return error code.
56130         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56131         glthread_recursive_lock_destroy. Return error code.
56132         (glthread_once_call): Make static.
56133         (glthread_once_multithreaded): Renamed from glthread_once.
56134         * lib/tls.h: Include <errno.h>.
56135         (glthread_tls_key_init): New macro/function.
56136         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56137         (glthread_tls_set): New macro/function.
56138         (gl_tls_set): Define as wrapper around glthread_tls_set.
56139         (glthread_tls_key_destroy): New macro/function.
56140         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56141         Update function declarations.
56142         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56143         glthread_tls_get.
56144         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56145
56146 2008-08-04  Eric Blake  <ebb9@byu.net>
56147
56148         gnumakefile: use space, not TAB, outside of targets
56149         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56150
56151 2008-08-02  Jim Meyering  <meyering@redhat.com>
56152
56153         getdate.y: avoid locale-dependent date parsing failure
56154         In Turkish locales, getdate would fail to recognize keywords
56155         containing a lowercase "i".  The solution is not to rely on
56156         locale-sensitive case-conversion.
56157         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56158         (lookup_word): Use c_toupper in place of toupper.
56159         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56160         Reported by Vefa Bicakci <bicave@superonline.com> in
56161         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56162         * modules/getdate (Depends-on): Add c-ctype.
56163
56164 2008-08-02  Bruno Haible  <bruno@clisp.org>
56165
56166         * gnulib-tool (func_import): When updating or creating a .gitignore
56167         file, prepend each added line with a slash, and ignore leading slashes
56168         from the existing lines.
56169         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56170
56171 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56172
56173         Portability fix for GNU make 3.79.1.
56174         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56175         versions do not understand.
56176
56177 2008-08-01  Bruno Haible  <bruno@clisp.org>
56178
56179         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56180         * tests/test-isnanf.h (zero): New variable.
56181         (main): Avoid literal -0.0f.
56182         * tests/test-isnand.h (zero): New variable.
56183         (main): Avoid literal -0.0.
56184         * tests/test-isnanl.h (zero): New variable.
56185         (main): Avoid literal -0.0L.
56186         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56187         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56188         -0.0, -0.0L.
56189         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56190         (test_signbitd): Avoid literal -0.0.
56191         (test_signbitl): Avoid literal -0.0L.
56192         * tests/test-ceilf1.c (zero): New variable.
56193         (main): Avoid literal -0.0f.
56194         * tests/test-ceill.c (zero): New variable.
56195         (main): Avoid literal -0.0L.
56196         * tests/test-floorf1.c (zero): New variable.
56197         (main): Avoid literal -0.0f.
56198         * tests/test-floorl.c (zero): New variable.
56199         (main): Avoid literal -0.0L.
56200         * tests/test-roundf1.c (zero): New variable.
56201         (main): Avoid literal -0.0f.
56202         * tests/test-round1.c (zero): New variable.
56203         (main): Avoid literal -0.0.
56204         * tests/test-roundl.c (zero): New variable.
56205         (main): Avoid literal -0.0L.
56206         * tests/test-truncf1.c (zero): New variable.
56207         (main): Avoid literal -0.0f.
56208         * tests/test-trunc1.c (zero): New variable.
56209         (main): Avoid literal -0.0.
56210         * tests/test-truncl.c (zero): New variable.
56211         (main): Avoid literal -0.0L.
56212         * tests/test-frexp.c (zero): New variable.
56213         (main): Avoid literal -0.0.
56214         * tests/test-frexpl.c (zero): New variable.
56215         (main): Avoid literal -0.0L.
56216         * tests/test-ldexpl.c (zero): New variable.
56217         (main): Avoid literal -0.0L.
56218         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56219         (zerod, zerol): New variables.
56220         (test_function): Avoid literals -0.0, -0.0L.
56221         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56222         (zerod, zerol): New variables.
56223         (test_function): Avoid literals -0.0, -0.0L.
56224         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56225         (zerod, zerol): New variables.
56226         (test_function): Avoid literals -0.0, -0.0L.
56227         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56228         (zerod, zerol): New variables.
56229         (test_function): Avoid literals -0.0, -0.0L.
56230         * tests/test-strtod.c (zero): New variable.
56231         (main): Avoid literal -0.0.
56232         Reported by Jonathan C. Patschke <jp@centtech.com>.
56233
56234 2008-07-31  Jim Meyering  <meyering@redhat.com>
56235
56236         sha256.h: correct definition of SHA224_DIGEST_SIZE
56237         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56238         Reported by Paulie Pena IV <paulie4@gmail.com>.
56239         Define as 224 / 8, rather than as a literal.
56240         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56241         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56242         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56243
56244 2008-07-31  Bruno Haible  <bruno@clisp.org>
56245
56246         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56247         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56248         Reported by Jonathan Patschke <jp@centtech.com>.
56249
56250 2008-07-31  Bruno Haible  <bruno@clisp.org>
56251
56252         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56253         Reported by Paolo Bonzini <bonzini@gnu.org>.
56254
56255 2008-07-30  Eric Blake  <ebb9@byu.net>
56256
56257         test-strtod: allow compilation without -lm
56258         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56259         Reported by Dennis Clarke <blastwave@gmail.com>.
56260
56261 2008-07-28  Jim Meyering  <meyering@redhat.com>
56262
56263         bootstrap: work also when there are no .po files in po/
56264         * build-aux/bootstrap (update_po_files): Complete the change
56265         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56266
56267 2008-07-27  Jim Meyering  <meyering@redhat.com>
56268
56269         * users.txt: Add zile.
56270
56271 2008-07-26  Ben Pfaff  <blp@gnu.org>
56272
56273         Add missing dependencies on new m4/exponent[fdl].m4 files.
56274         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56275         * modules/isnand-nolibm: Add m4/exponentd.m4.
56276         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56277         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56278         m4/isnan[fdl].m4, because the macros actually used moved.
56279         Reported by Jim Meyering.
56280
56281 2008-07-14  Ben Pfaff  <blp@gnu.org>
56282
56283         Add isinf module.
56284         * lib/isinf.c: New file.
56285         * lib/math.in.h: Define isinf macro if we have decided to replace
56286         it.
56287         * m4/isinf.m4: New file.
56288         * m4/math_h.m4: Initialize and substitute variables for isinf
56289         module.
56290         * modules/isinf: New file.
56291         * modules/isinf-tests: New file.
56292         * modules/math: Add substitutions for new module.
56293         * tests/test-isinf.c: New file.
56294         * doc/posix-functions/isinf.texi: Mention new module.
56295         * MODULES.html.sh: Mention new module.
56296
56297 2008-07-14  Ben Pfaff  <blp@gnu.org>
56298
56299         Factor out some macros for use by additional modules.
56300         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56301         exponentf.m4.
56302         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56303         exponentd.m4.
56304         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56305         file exponentl.m4.
56306         * m4/exponentf.m4: New file.
56307         * m4/exponentd.m4: New file.
56308         * m4/exponentl.m4: New file.
56309         * modules/isnanf: Use new file m4/exponentf.m4.
56310         * modules/isnand: Use new file m4/exponentd.m4.
56311         * modules/isnanl: Use new file m4/exponentl.m4.
56312
56313 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56314
56315         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56316         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56317         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56318         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56319
56320         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56321         readlink on platforms without PATH_MAX.
56322
56323 2008-07-21  Eric Blake  <ebb9@byu.net>
56324
56325         Warn, not fail, on stale version.
56326         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56327
56328         Don't allow installation with stale devel version number.
56329         * top/GNUmakefile (_is-install-target): New macro.
56330         (_curr-ver): Forbid installation with stale version number.
56331
56332 2008-07-20  Bruno Haible  <bruno@clisp.org>
56333
56334         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56335         TESTS_ENVIRONMENT.
56336         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56337
56338 2008-07-20  Bruno Haible  <bruno@clisp.org>
56339
56340         * lib/c-stack.h (c_stack_action): Add documentation.
56341         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56342
56343 2008-07-20  Bruno Haible  <bruno@clisp.org>
56344
56345         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56346         * modules/readlink (License): Likewise.
56347
56348 2008-07-17  Eric Blake  <ebb9@byu.net>
56349
56350         * modules/c-stack (Link): Fix typo.
56351
56352         Make c-stack use libsigsegv, when available.
56353         * modules/c-stack (Depends-on): Add libsigsegv.
56354         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56355         needed.
56356         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56357         (segv_handler, overflow_handler, c_stack_action)
56358         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56359         implementation when libsigsegv is available, but only when using
56360         the library is necessary.
56361         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56362         comment, explaining why XSI check fails on Linux.
56363         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56364         * tests/test-c-stack2.sh: Tweak skip message.
56365         * NEWS: Document new link-time requirements.
56366
56367 2008-07-16  Eric Blake  <ebb9@byu.net>
56368
56369         c-stack: Expose false positives when not using libsigsegv.
56370         * modules/c-stack-tests (Files): Expand test.
56371         * tests/test-c-stack.c (main): Add means to conditionally trigger
56372         non-overflow SIGSEGV.
56373         * tests/test-c-stack2.sh: New file.
56374
56375 2008-07-14  Bruno Haible  <bruno@clisp.org>
56376
56377         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56378         Reported by Eric Blake.
56379
56380 2008-07-14  Sam Steingold  <sds@gnu.org>
56381             Bruno Haible  <bruno@clisp.org>
56382
56383         New module libsigsegv.
56384         * modules/libsigsegv: New file.
56385         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56386         modifications.
56387         * MODULES.html.sh (Signal handling): New section.
56388
56389 2008-07-14  Bruno Haible  <bruno@clisp.org>
56390
56391         * modules/unictype/ctype-* (Description): Add the word "function".
56392         Improves the resulting doc in MODULES.html.
56393
56394 2008-07-12  Ben Pfaff  <blp@gnu.org>
56395
56396         Add longlong module.
56397         * modules/longlong: New file.
56398
56399 2008-07-12  Bruno Haible  <bruno@clisp.org>
56400
56401         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56402         to empty.
56403
56404 2008-07-10  Ben Pfaff  <blp@gnu.org>
56405
56406         Add isnan module.
56407         * doc/posix-functions/isnan.texi: Mention new module.
56408         * lib/math.in.h: Define isnan macro if we have decided to replace
56409         it.
56410         * m4/isnan.m4: New file.
56411         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56412         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56413         also.
56414         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56415         redundancy.
56416         * m4/math_h.m4: Initialize and substitute variables for isnan
56417         module.
56418         * modules/isnan: New file.
56419         * modules/isnan-tests: New file.
56420         * modules/math: Add substitutions for new module.
56421         * tests/test-isnan.c: New file.
56422         * MODULES.html.sh: Mention new module.
56423
56424 2008-07-10  Ben Pfaff  <blp@gnu.org>
56425
56426         Add isnanf module.
56427         * lib/isnanf.m4: New file.
56428         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56429         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56430         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56431         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56432         * modules/isnanf: New file.
56433         * modules/isnanf-tests: New file.
56434         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56435         files.
56436         * tests/test-isnanf-nolibm.c: factored most of its contents into
56437         new file tests/test-isnanf.h.
56438         * tests/test-isnanf.h: New file.
56439         * tests/test-isnanf.c: New file.
56440         * MODULES.html.sh: Mention new module.
56441         * doc/glibc-functions/isnanf.texi: Mention new module.
56442
56443 2008-07-10  Ben Pfaff  <blp@gnu.org>
56444
56445         Add isnand module.
56446         * lib/isnand.h: New file.
56447         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56448         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56449         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56450         functionality also.
56451         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56452         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56453         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56454         * modules/isnand: New file.
56455         * modules/isnand-tests: New file.
56456         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56457         files.
56458         * tests/test-isnand-nolibm.c: factored most of its contents into
56459         new file tests/test-isnand.h.
56460         * tests/test-isnand.h: New file.
56461         * tests/test-isnand.c: New file.
56462         * MODULES.html.sh: Mention new module.
56463
56464 2008-07-10  Ben Pfaff  <blp@gnu.org>
56465
56466         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56467         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56468         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56469         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56470         * modules/isnanf-nolibm: Update references to renamed files.
56471         * modules/isnand-nolibm: Likewise.
56472         * modules/isnanf-nolibm-tests: Likewise.
56473         * modules/isnand-nolibm-tests: Likewise.
56474         * lib/frexp.c: Likewise.
56475         * lib/isfinite.c: Likewise.
56476         * lib/signbitd.c: Likewise.
56477         * lib/signbitf.c: Likewise.
56478         * lib/vasnprintf.c: Likewise.
56479         * tests/test-ceilf1.c: Likewise.
56480         * tests/test-ceilf2.c: Likewise.
56481         * tests/test-floorf1.c: Likewise.
56482         * tests/test-floorf2.c: Likewise.
56483         * tests/test-frexp.c: Likewise.
56484         * tests/test-round1.c: Likewise.
56485         * tests/test-round2.c: Likewise.
56486         * tests/test-roundf1.c: Likewise.
56487         * tests/test-strtod.c: Likewise.
56488         * tests/test-trunc1.c: Likewise.
56489         * tests/test-trunc2.c: Likewise.
56490         * tests/test-truncf1.c: Likewise.
56491         * tests/test-truncf2.c: Likewise.
56492         * NEWS: Mention the renamed header files.
56493
56494 2008-07-11  Jim Meyering  <meyering@redhat.com>
56495
56496         vc-list-files: make the last-resort awk code more portable
56497         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56498         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56499         does not support it.
56500
56501 2008-07-10  Eric Blake  <ebb9@byu.net>
56502
56503         Work with tar's bootstrap.
56504         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56505         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56506         an m4 comment.
56507
56508 2008-07-09  Jim Meyering  <meyering@redhat.com>
56509
56510         posix-shell.m4: fix typo that made this test malfunction
56511         * m4/posix-shell.m4: Remove capitalization in variable name.
56512
56513 2008-07-08  Bruno Haible  <bruno@clisp.org>
56514
56515         * m4/onceonly.m4: Update comments.
56516         Reported by Ben Pfaff <blp@cs.stanford.edu>.
56517
56518 2008-07-04  Jim Meyering  <meyering@redhat.com>
56519
56520         * users.txt: Add vc-dwim.
56521         (bison, coreutils): Use the gitweb URL.
56522
56523 2008-07-03  Jim Meyering  <meyering@redhat.com>
56524
56525         * users.txt: Add libffcall.  From Sam Steingold.
56526
56527 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
56528
56529         getdate.y: do not ignore TZ with relative day, month or year offset
56530         * lib/getdate.y (get_date): Move the tz-handling block to follow the
56531         relative-date-handling, since otherwise, the latter would clobber the
56532         sole output (an updated Start value) of the tz-handling block.
56533         * tests/test-getdate.c: Tests for the fix
56534
56535 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56536
56537         Recognize 'foo_LIBRARIES += libgnu.a'.
56538         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
56539         makefile snippet has already specified an installation location,
56540         also using '+='.
56541
56542 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
56543
56544         getdate.y: factor out common actions
56545         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
56546         Use them in place of open-coded actions.
56547
56548 2008-07-01  Simon Josefsson  <simon@josefsson.org>
56549
56550         Add self-test for getdate module.
56551         * modules/getdate-tests: New file.
56552         * tests/test-getdate.c: New file.
56553
56554 2008-06-29  Bruno Haible  <bruno@clisp.org>
56555
56556         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
56557         .gitignore.
56558         Reported by Sylvain Beucler <beuc@beuc.net>.
56559
56560 2008-06-29  Bruno Haible  <bruno@clisp.org>
56561
56562         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
56563         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
56564
56565 2008-06-29  Bruno Haible  <bruno@clisp.org>
56566
56567         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
56568         EXTRA_DIST.
56569         Reported by Sylvain Beucler <beuc@beuc.net>.
56570
56571 2008-06-26  Jim Meyering  <meyering@redhat.com>
56572
56573         make several modules depend on the "open" module
56574         This provides slightly increased consistency when opening-for-write
56575         the name of a non-directory spelled with a trailing slash.
56576         * modules/chdir-safer: Likewise.
56577         * modules/chown: Likewise.
56578         * modules/clean-temp: Likewise.
56579         * modules/copy-file: Likewise.
56580         * modules/fchdir: Likewise.
56581         * modules/fcntl-safer: Likewise.
56582         * modules/pipe: Likewise.
56583         * modules/utime: Likewise.
56584         Prompted by Eric Blake and Bruno Haible.
56585
56586 2008-06-24  Andreas Schwab  <schwab@suse.de>
56587
56588         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
56589         literals can be used as initializers for global variables.
56590
56591 2008-06-23  Eric Blake  <ebb9@byu.net>
56592
56593         Make gnulib-cache.m4 easier to diff.
56594         * gnulib-tool (func_import): Allow newlines when reading cached
56595         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
56596
56597 2008-06-23  Bruno Haible  <bruno@clisp.org>
56598
56599         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
56600         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
56601         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
56602         m4/signalblocking.m4.
56603         (gl_PREREQ_SIGACTION): Don't invoke it.
56604         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
56605         gl_PREREQ_SIG_HANDLER_H.
56606         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56607         Don't check for sigaction here.
56608
56609 2008-06-23  Bruno Haible  <bruno@clisp.org>
56610
56611         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
56612         (install_handlers): Don't set the SA_RESETHAND flag.
56613
56614 2008-06-23  Bruno Haible  <bruno@clisp.org>
56615
56616         * m4/sigaction.m4: Comment fixes.
56617         * lib/signal.in.h: Likewise.
56618
56619 2008-06-23  Eric Blake  <ebb9@byu.net>
56620
56621         Fix typo.
56622         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
56623
56624         Avoid SA_ namespace.
56625         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
56626         Reported by Ralf Wildenhues.
56627
56628         Avoid test failure due to SA_RESTORER.
56629         * tests/test-sigaction.c (SA_MASK): New macro.
56630         (main): Avoid failing due to extension flags being set.
56631         Reported by Jim Meyering.
56632
56633         Revert use of sig-handler.h in sigprocmask.c.
56634         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
56635         it requires the existence of struct sigaction.
56636         * lib/sigprocmask.c (handler_t): Restore typedef.
56637         (rpl_signal, old_handlers): Use local type.
56638
56639 2008-06-22  Bruno Haible  <bruno@clisp.org>
56640
56641         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
56642         conditionally.
56643         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
56644
56645 2008-06-22  Bruno Haible  <bruno@clisp.org>
56646
56647         * doc/posix-functions/siginterrupt.texi: Move note.
56648
56649         * lib/signal.in.h (SA_RESTART): New macro.
56650         * lib/sigaction.c: Update comment.
56651
56652         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
56653
56654         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
56655         (gl_PREREQ_SIGPROCMASK): Invoke it.
56656         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
56657
56658         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
56659
56660         * lib/sigprocmask.c: Update a comment.
56661
56662 2008-06-21  Eric Blake  <ebb9@byu.net>
56663
56664         Use sigaction module rather than signal().
56665         * modules/c-stack (Depends-on): Add sigaction.
56666         * modules/fatal-signal (Depends-on): Likewise.
56667         * modules/nanosleep (Depends-on): Likewise.
56668         * modules/sigprocmask (Files): Add sig-handler.h.
56669         * modules/sigaction (Files): Likewise.
56670         * lib/sig-handler.h (get_handler): New file, suggested by Paul
56671         Eggert.
56672         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
56673         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
56674         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
56675         (init_fatal_signals): Likewise.
56676         * lib/nanosleep.c (rpl_nanosleep): Likewise.
56677         (siginterrupt): Delete fallback.
56678         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
56679         instead.
56680         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
56681         siginterrupt.
56682
56683         New module sigaction, for mingw.
56684         * modules/sigaction: New module...
56685         * modules/sigaction-tests: ...and its test.
56686         * m4/sigaction.m4: New file.
56687         * lib/sigaction.c: Likewise.
56688         * tests/test-sigaction.c: Likewise.
56689         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
56690         * modules/signal (Makefile.am): Likewise.
56691         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
56692         needed.
56693         * doc/posix-headers/signal.texi (signal.h): Mention provided
56694         types.
56695         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
56696         that sigaction is preferable.
56697         * doc/posix-functions/sigaction.texi (sigaction): Mention new
56698         module.
56699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
56700         sigaction.
56701
56702         Improve robustness of sigprocmask by overriding signal.
56703         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
56704         is in use.
56705         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
56706         (SIGKILL, SIGSTOP): Provide fallbacks.
56707         (rpl_signal): Implement.
56708         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
56709         signal can be called inside handlers.
56710
56711         Fix nanosleep module on mingw.
56712         * modules/nanosleep (Depends-on): Add sys_select.
56713         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
56714
56715         Fix licensing of sigprocmask.
56716         * modules/raise (License): Relicense as LGPL.
56717
56718 2008-06-21  Bruno Haible  <bruno@clisp.org>
56719
56720         * lib/propername.c (proper_name_utf8): Don't use the transliterated
56721         result if it contains question marks.
56722         Reported by Michael Geng <linux@michaelgeng.de>.
56723
56724 2008-06-19  Bruno Haible  <bruno@clisp.org>
56725
56726         Fix CVS-ism.
56727         * doc/gnulib.texi: Include updated-stamp.texi.
56728         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
56729         (updated-stamp.texi): New rule.
56730         (gnulib.info): Depend on it.
56731         * doc/.gitignore: Add updated-stamp.texi.
56732         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
56733
56734 2008-06-19  Bruno Haible  <bruno@clisp.org>
56735
56736         * doc/Makefile (gnulib.info): Update and simplify dependencies.
56737         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
56738
56739 2008-06-19  Eric Blake  <ebb9@byu.net>
56740
56741         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
56742         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
56743         Reported by Stepan Kasal.
56744
56745 2008-06-18  Bruno Haible  <bruno@clisp.org>
56746
56747         * lib/fatal-signal.c (init_fatal_signals): Add comment.
56748         Reported by Eric Blake.
56749
56750 2008-06-18  Eric Blake  <ebb9@byu.net>
56751
56752         Work around cygwin 1.5.25 strsignal bug.
56753         * tests/test-strsignal.c: Allow for const char *.
56754         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
56755
56756 2008-06-18  Simon Josefsson  <simon@josefsson.org>
56757
56758         * users.txt: Update URL to article and add author/date
56759         information.
56760
56761 2008-06-17  Bruno Haible  <bruno@clisp.org>
56762
56763         New macro gl_DISABLE_THREADS.
56764         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
56765         if the user did not pass --enable-threads or --disable-threads option.
56766         (gl_DISABLE_THREADS): New macro.
56767         Reported by Eric Blake <ebb9@byu.net>.
56768
56769 2008-06-17  Bruno Haible  <bruno@clisp.org>
56770
56771         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
56772         when the macro ignores it.
56773         Based on a patch by Eric Blake <ebb9@byu.net>.
56774
56775 2008-06-17  Bruno Haible  <bruno@clisp.org>
56776
56777         * modules/tls (License): Change to LGPLv2+.
56778         Reported by Eric Blake.
56779
56780 2008-06-17  Eric Blake  <ebb9@byu.net>
56781
56782         Simplify c-stack prerequisites.
56783         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
56784         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
56785         no longer requires <ucontext.h> to exist.  Optimize setrlimit
56786         check.
56787         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
56788         <sys/resource.h>.
56789
56790         Move c-stack test into testsuite.
56791         * modules/c-stack-tests: New file.
56792         * lib/c-stack.c [DEBUG]: Move test program...
56793         * tests/test-c-stack.c: ...into this new file.  Skip rather than
56794         fail test if sigaltstack is lacking.
56795         * tests/test-c-stack.sh: New driver file.
56796
56797 2008-06-16  Eric Blake  <ebb9@byu.net>
56798
56799         Use raise module consistently.
56800         * modules/fatal-signal (Depends-on): Add raise.
56801         * modules/sigprocmask (Depends-on): Likewise.
56802         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
56803         * lib/sigprocmask.c (sigprocmask): Likewise.
56804         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
56805         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
56806
56807         Fix compliance bug in sigpending.
56808         * lib/sigprocmask.c (sigpending): Return pending array via
56809         parameter, not return value.
56810
56811 2008-06-14  Eric Blake  <ebb9@byu.net>
56812
56813         Improve obstack-printf test code.
56814         * tests/test-obstack-printf.c (test_function): Fix comment, and
56815         simplify usage of obstack_* in macros.  Add a test for coverage.
56816         Reported by Bruno Haible.
56817
56818 2008-06-14  Bruno Haible  <bruno@clisp.org>
56819
56820         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
56821         array size as a constant, not as a const variable.
56822         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
56823         AC_USE_SYSTEM_EXTENSIONS.
56824         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
56825         Test whether the obstack_printf function actually exists.
56826         * modules/obstack-printf (Depends-on): Add extensions.
56827         (Include): Remove obstack.h.
56828         * modules/obstack-printf-posix (Depends-on): Add extensions.
56829         (Include): Remove obstack.h.
56830
56831 2008-06-13  Eric Blake  <ebb9@byu.net>
56832
56833         Add obstack-printf and obstack-printf-posix modules.
56834         * modules/obstack-printf: New file.
56835         * modules/obstack-printf-posix: Likewise.
56836         * MODULES.html.sh (Misc): Mention them.
56837         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
56838         Likewise.
56839         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
56840         Likewise.
56841         * modules/stdio (Makefile.am): Accomodate new modules.
56842         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56843         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
56844         Declare.
56845         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
56846         functions.
56847         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
56848         (gl_REPLACE_OBSTACK_PRINTF): New macros
56849         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
56850         * tests/test-obstack-printf.c: New file.
56851         * modules/obstack-printf-tests: Likewise.
56852         * modules/obstack-printf-posix-tests: Likewise.
56853
56854 2008-06-11  Bruno Haible  <bruno@clisp.org>
56855
56856         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
56857         * lib/open.c: Include errno.h.
56858         (open): Fail when attempting to write to a file that has a trailing
56859         slash.
56860         * tests/test-open.c (main): Test against trailing slash bug.
56861         * doc/posix-functions/open.texi: Mention the trailing slash bug.
56862
56863 2008-06-10  Bruno Haible  <bruno@clisp.org>
56864
56865         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
56866         for $? to work inside the trap command, with various /bin/sh-s.
56867         * tests/test-vc-list-files-cvs.sh: Likewise.
56868
56869 2008-06-10  Bruno Haible  <bruno@clisp.org>
56870
56871         * lib/acl-internal.h: Don't include gettext.h here.
56872         * lib/set-mode-acl.c: Include gettext.h here.
56873         * lib/copy-acl.c: Likewise.
56874
56875 2008-06-10  Bruno Haible  <bruno@clisp.org>
56876
56877         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
56878         * lib/wait-process.c (wait_subprocess): Likewise.
56879         * lib/execute.h (execute): Add termsigp argument.
56880         * lib/execute.c (execute): Likewise.
56881         * lib/csharpcomp.c (compile_csharp_using_pnet,
56882         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
56883         * lib/csharpexec.c (execute_csharp_using_pnet,
56884         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
56885         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56886         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
56887         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
56888         is_jikes_present): Update.
56889         * lib/javaexec.c (execute_java_class): Update.
56890         * lib/javaversion.c (execute_and_read_line): Update.
56891         * NEWS: Document the changes.
56892         Reported by Eric Blake.
56893
56894 2008-06-10  Eric Blake  <ebb9@byu.net>
56895
56896         Add missing include.
56897         * tests/test-strstr.c (includes): Add <signal.h>.
56898         * tests/test-strcasestr.c (includes): Likewise.
56899         * tests/test-memmem.c (includes): Likewise.
56900
56901 2008-06-10  Bruno Haible  <bruno@clisp.org>
56902
56903         * lib/wait-process.c (wait_subprocess): Add an assertion.
56904
56905 2008-06-10  Bruno Haible  <bruno@clisp.org>
56906
56907         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56908
56909 2008-06-10  Bruno Haible  <bruno@clisp.org>
56910
56911         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56912         using alarm().
56913         * tests/test-strcasestr.c (main): Likewise.
56914         * tests/test-strstr.c (main): Likewise.
56915
56916 2008-06-09  Bruno Haible  <bruno@clisp.org>
56917
56918         Work around the Solaris 10 ACE ACLs ABI change.
56919         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56920         declare if ACL_NO_TRIVIAL is present.
56921         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
56922         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
56923         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
56924         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
56925         define if ACL_NO_TRIVIAL is present.
56926         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
56927         and use the current ABI.
56928         (file_has_acl): Use same #if condition as elsewhere.
56929         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
56930         in use, and use the current ABI.
56931         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
56932         Reported by Jim Meyering.
56933
56934 2008-06-09  Eric Blake  <ebb9@byu.net>
56935
56936         Work around environments that (stupidly) ignore SIGALRM.
56937         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
56938         before using alarm().
56939         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56940         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56941         Reported by Ian Beckwith <ianb@erislabs.net>.
56942
56943         Produce autobuild blurb earlier in log.
56944         * modules/autobuild (configure.ac-early): Move AB_INIT here.
56945
56946 2008-06-09  Jim Meyering  <meyering@redhat.com>
56947         and Ondřej Vašík  <ovasik@redhat.com>
56948
56949         utimens.c: correct kernel bug work-around
56950         Ondřej Vašík found that the invalid return value of 280 indicates
56951         failure, not success, and the kernel bug we're trying to work
56952         around affects not just the utimensat call, but also the fallback
56953         futimens call.
56954         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56955         not success.
56956         [HAVE_FUTIMENS]: Use the same work-around, here.
56957
56958 2008-06-09  Jim Meyering  <meyering@redhat.com>
56959
56960         add more guards around definition of ACE_-related code
56961         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
56962         ALLOW and ACE_OWNER are also defined.
56963
56964 2008-06-08  Bruno Haible  <bruno@clisp.org>
56965
56966         * lib/acl-internal.h: Add me as co-author.
56967         * lib/file-has-acl.c: Likewise.
56968         * lib/set-mode-acl.c: Likewise.
56969         * lib/copy-acl.c: Likewise.
56970
56971 2008-06-08  Bruno Haible  <bruno@clisp.org>
56972
56973         Add support for AIX ACLs.
56974         * lib/acl-internal.h (acl_nontrivial): New declaration.
56975         * lib/file-has-acl.c (acl_nontrivial): New function.
56976         (file_has_acl): Add implementation using AIX 4 ACL API.
56977         * lib/set-mode-acl.c (qset_acl): Likewise.
56978         * lib/copy-acl.c (qcopy_acl): Likewise.
56979
56980 2008-06-08  Bruno Haible  <bruno@clisp.org>
56981
56982         Add support for HP-UX ACLs.
56983         * lib/acl-internal.h (acl_nontrivial): New declaration.
56984         * lib/file-has-acl.c (acl_nontrivial): New function.
56985         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56986         * lib/set-mode-acl.c (qset_acl): Likewise.
56987         * lib/copy-acl.c (qcopy_acl): Likewise.
56988
56989 2008-06-08  Bruno Haible  <bruno@clisp.org>
56990
56991         Add support for Cygwin ACLs.
56992         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56993         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56994         the chmod_or_fchmod call.
56995         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56996
56997 2008-06-08  Bruno Haible  <bruno@clisp.org>
56998
56999         Fix bug with setuid modes in Solaris 10+ code.
57000         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57001         succeeded, when the mode contains some special bits.
57002
57003 2008-06-08  Bruno Haible  <bruno@clisp.org>
57004
57005         Add support for Solaris 7..10 ACLs.
57006         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57007         declarations.
57008         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57009         functions.
57010         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57011         * lib/set-mode-acl.c (qset_acl): Likewise.
57012         * lib/copy-acl.c (qcopy_acl): Likewise.
57013
57014 2008-06-08  Bruno Haible  <bruno@clisp.org>
57015
57016         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57017         declaration.
57018         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57019         (acl_access_nontrivial): Remove MacOS X case.
57020         (file_has_acl): Use acl_extended_nontrivial.
57021         * lib/copy-acl.c (qcopy_acl): Likewise.
57022
57023 2008-06-08  Bruno Haible  <bruno@clisp.org>
57024
57025         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57026
57027 2008-06-08  Jim Meyering  <meyering@redhat.com>
57028
57029         * modules/acl (Maintainer): Add Bruno Haible.
57030
57031 2008-06-07  Bruno Haible  <bruno@clisp.org>
57032
57033         Improve support for Tru64 ACLs.
57034         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57035         ACL on OSF/1.
57036
57037 2008-06-07  Bruno Haible  <bruno@clisp.org>
57038
57039         Add support for MacOS X ACLs.
57040         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57041         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57042         * lib/set-mode-acl.c (qset_acl): Likewise.
57043         * lib/copy-acl.c (qcopy_acl): Likewise.
57044
57045 2008-06-07  Bruno Haible  <bruno@clisp.org>
57046
57047         Fix memory leak introduced on 2008-05-22.
57048         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57049         use.
57050
57051 2008-06-07  Bruno Haible  <bruno@clisp.org>
57052
57053         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57054         to construct an empty ACL.
57055
57056 2008-06-07  Bruno Haible  <bruno@clisp.org>
57057
57058         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57059         precisely.
57060         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57061
57062 2008-06-07  Bruno Haible  <bruno@clisp.org>
57063
57064         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57065         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57066
57067 2008-06-07  Bruno Haible  <bruno@clisp.org>
57068
57069         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57070         regardless of POSIX.
57071         * doc/posix-functions/_longjmp.texi: Likewise.
57072         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57073         SystemV platform in this case.
57074
57075 2008-06-06  Eric Blake  <ebb9@byu.net>
57076
57077         Document abort() bugs.
57078         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57079
57080         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57081         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57082         sigsetjmp.
57083         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57084         siglongjmp, but only as a macro.
57085         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57086         is obsolete.
57087         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57088
57089         Tweak documentation to cover cygwin argz bugs.
57090         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57091         argz bug fix; no code change needed since no cygwin releases
57092         occurred between the last fix and the bug being tested.
57093         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57094         module and recently fixed cygwin bugs.
57095         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57096         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57097         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57098         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57099         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57100         Likewise.
57101         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57102         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57103         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57104         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57105         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57106         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57107         Likewise.
57108
57109         Avoid gcc warning on cygwin.
57110         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57111         !ACL_NO_TRIVIAL]: Avoid unused variable.
57112
57113 2008-06-05  Eric Blake  <ebb9@byu.net>
57114
57115         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57116         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57117         git-version-gen fails to come up with a version.
57118         Reported by Simon Josefsson.
57119
57120 2008-06-05  Jim Meyering  <meyering@redhat.com>
57121             Paul Eggert  <eggert@cs.ucla.edu>
57122
57123         utimens.c: work around a probable Linux kernel bug
57124         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57125         appears to be a kernel bug that causes utimensat to return 280
57126         instead of 0, indicating success.
57127
57128 2008-06-04  Bruno Haible  <bruno@clisp.org>
57129
57130         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57131         2008-06-01 commit.
57132
57133 2008-06-04  Bruno Haible  <bruno@clisp.org>
57134
57135         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57136         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57137         (file_has_acl): Use it. Save errno afterwards.
57138         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57139
57140 2008-06-03  Bruno Haible  <bruno@clisp.org>
57141
57142         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57143         draft code. Simplify #ifs.
57144         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57145         Put Solaris code after POSIX-draft code. Fix comments regarding
57146         Solaris 10, HP-UX. Mention Cygwin.
57147         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57148
57149 2008-06-03  Eric Blake  <ebb9@byu.net>
57150
57151         Provide fallback for older kernels.
57152         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57153         Provide runtime fallback if kernel lacks support.
57154         Reported by Mike Frysinger.
57155
57156 2008-06-02  Bruno Haible  <bruno@clisp.org>
57157
57158         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57159         it exists.
57160
57161 2008-06-02  Bruno Haible  <bruno@clisp.org>
57162
57163         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57164         * lib/copy-acl.c (qcopy_acl): Update comment.
57165
57166 2008-06-02  Bruno Haible  <bruno@clisp.org>
57167
57168         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57169         like ACL APIs.
57170
57171 2008-06-02  Bruno Haible  <bruno@clisp.org>
57172
57173         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57174         * tests/test-set-mode-acl.sh: Likewise.
57175         * tests/test-copy-acl.sh: Likewise.
57176         * tests/test-copy-file.sh: Likewise.
57177
57178 2008-06-02  Bruno Haible  <bruno@clisp.org>
57179
57180         * tests/test-file-has-acl.sh: Remove unused code.
57181
57182 2008-06-01  Bruno Haible  <bruno@clisp.org>
57183
57184         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57185         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57186         messages.
57187         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57188
57189 2008-06-01  Bruno Haible  <bruno@clisp.org>
57190
57191         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57192         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57193         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57194         APIs.
57195         * modules/acl-tests (configure.ac): Remove tests now contained in
57196         m4/acl.m4.
57197
57198 2008-06-02  Jim Meyering  <meyering@redhat.com>
57199
57200         announce-gen: use a better key-server host name
57201         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57202         it may be more consistently reliable.  Suggested by Werner Koch
57203         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57204
57205 2008-06-01  Bruno Haible  <bruno@clisp.org>
57206
57207         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57208         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57209
57210 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57211
57212         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57213
57214 2008-06-01  Bruno Haible  <bruno@clisp.org>
57215
57216         New ACL tests.
57217         * tests/test-file-has-acl.sh: New file.
57218         * tests/test-file-has-acl.c: New file.
57219         * tests/test-set-mode-acl.sh: New file.
57220         * tests/test-set-mode-acl.c: New file.
57221         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57222         * tests/test-copy-acl.c: New file.
57223         * modules/acl-tests: New file, based on modules/copy-file-tests.
57224         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57225         (Depends-on): Add acl-tests.
57226         (configure.ac): Remove checks.
57227         (Makefile.am): Don't create test-sameacls program here any more.
57228
57229 2008-06-01  Bruno Haible  <bruno@clisp.org>
57230
57231         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57232         * tests/test-sameacls.c: Include progname.h.
57233         (main): Invoke set_program_name. Portability fixes for MacOS X,
57234         Solaris, HP-UX.
57235
57236 2008-06-01  Bruno Haible  <bruno@clisp.org>
57237
57238         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57239         function.
57240         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57241
57242 2008-06-01  Bruno Haible  <bruno@clisp.org>
57243
57244         * modules/rpmatch (Depends-on): Add strdup.
57245
57246 2008-06-01  Bruno Haible  <bruno@clisp.org>
57247
57248         * lib/pipe.c: Include unistd-safer.h.
57249         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57250         * modules/pipe (Depends-on): Add unistd-safer.
57251
57252 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57253
57254         * modules/autobuild (configure.ac): Call AB_INIT.
57255
57256 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57257
57258         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57259         Suggested by Bruno Haible <bruno@clisp.org>.
57260
57261 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57262
57263         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57264         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57265         <bruno@clisp.org>.
57266
57267 2008-05-29  Eric Blake  <ebb9@byu.net>
57268
57269         Prefer new POSIX 200x interfaces over futimesat.
57270         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57271         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57272         when available.
57273         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57274
57275 2008-05-28  Bruno Haible  <bruno@clisp.org>
57276
57277         * modules/stpcpy (License): Change to LGPLv2+.
57278         Requested by David Lutterkort <dlutter@redhat.com>.
57279
57280 2008-05-27  Bruno Haible  <bruno@clisp.org>
57281
57282         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57283         current mingw.
57284         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57285
57286 2008-05-27  Bruno Haible  <bruno@clisp.org>
57287
57288         * modules/iconv_open (Link): New section, from module 'iconv'.
57289         * modules/striconv (Link): Likewise.
57290         * modules/striconveh (Link): Likewise.
57291         * modules/xstriconv (Link): Likewise.
57292         * modules/unicodeio (Link): Likewise.
57293         * modules/propername (Link): Likewise.
57294         Reported by Jim Meyering.
57295
57296 2008-05-26  Jim Meyering  <meyering@redhat.com>
57297
57298         sha256: do not artificially restrict buffer length to be < 2^32
57299         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57300         uint32_t to size_t.
57301         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57302         to match.
57303
57304         avoid unaligned access errors, e.g., on sparc
57305         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57306         direct access through a possibly-unaligned uint64* pointer.
57307         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57308         direct access through a possibly-unaligned uint32* pointer.
57309         Prompted by this patch from Tom "spot" Callaway:
57310         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57311
57312         sha512.c: fix typo in comment
57313         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57314
57315 2008-05-25  Bruno Haible  <bruno@clisp.org>
57316
57317         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57318         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57319         (Makefile.am): Update lib_SOURCES.
57320
57321 2008-05-25  Bruno Haible  <bruno@clisp.org>
57322
57323         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57324
57325 2008-05-25  Jim Meyering  <meyering@redhat.com>
57326
57327         useless-if-before-free: freed expr may have white-space differences
57328         * build-aux/useless-if-before-free: Recognize cases in which the
57329         freed expression differs from the tested one in embedded white
57330         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57331         $1 was used, so we can't make any regexp shy.  Improved tests now
57332         detect this.
57333
57334         useless-if-before-free: accept white space in the expression.
57335         * build-aux/useless-if-before-free: For now, any white space
57336         in the expression must be identical in the free argument.
57337
57338         useless-if-before-free: efficiency tweak
57339         * build-aux/useless-if-before-free: Make the expression-matching
57340         regexp "shy".
57341         Make the *outer* regexp shy, not the expr-matching one.
57342
57343         update code-in-comment to accept cast of free arg
57344         * build-aux/useless-if-before-free: Update regexp.
57345
57346 2008-05-25  Bruno Haible  <bruno@clisp.org>
57347
57348         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57349         * modules/copy-file-tests (Files, Makefile.am): Update.
57350         * tests/test-copy-file.c (func_test_copy): Update.
57351
57352 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57353
57354         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57355
57356 2008-05-23  Bruno Haible  <bruno@clisp.org>
57357
57358         Improve support for ACLs on OSF/1.
57359         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57360         Remove fallback for unknown flavors of ACLs.
57361
57362 2008-05-22  Bruno Haible  <bruno@clisp.org>
57363
57364         Add support for ACLs on OSF/1.
57365         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57366         replacements.
57367         (acl_free_text): New macro fallback.
57368         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57369         acl_free.
57370         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57371         acl_free_text function. Require AC_C_INLINE.
57372
57373 2008-05-22  Bruno Haible  <bruno@clisp.org>
57374
57375         Make copy_acl work on MacOS X 10.5.
57376         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57377         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57378         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57379         If MODE_INSIDE_ACL, don't assume that every system has the same text
57380         representation for ACLs as FreeBSD.
57381         * lib/copy-acl.c (copy_acl): Add support for platforms with
57382         !MODE_INSIDE_ACL.
57383         * lib/file-has-acl.c (file_has_acl): Likewise.
57384         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57385         FreeBSD, MacOS X, or IRIX, respectively.
57386
57387 2008-05-22  Bruno Haible  <bruno@clisp.org>
57388
57389         * lib/acl.h: Don't include <sys/acl.h>.
57390         (GETACLCNT): Move fallback to lib/acl-internal.h.
57391         * lib/acl-internal.h: Include <sys/acl.h> here.
57392         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57393
57394 2008-05-22  Bruno Haible  <bruno@clisp.org>
57395
57396         Split off copy_acl function to separate file.
57397         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57398         * lib/acl.c (copy_acl): Moved function to separate file.
57399         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57400         * modules/acl (Files): Add lib/copy-acl.c.
57401         (Makefiles.am): Augment lib_SOURCES.
57402
57403 2008-05-22  Bruno Haible  <bruno@clisp.org>
57404
57405         * modules/copy-file-tests: New file.
57406         * tests/test-copy-file.sh: New file.
57407         * tests/test-copy-file.c: New file.
57408         * tests/test-copy-file-sameacls.c: New file.
57409
57410 2008-05-22  Eric Blake  <ebb9@byu.net>
57411
57412         Avoid gcc warning.
57413         * tests/test-memcmp.c (main): Pass NULL indirectly.
57414
57415 2008-05-21  Bruno Haible  <bruno@clisp.org>
57416
57417         Add reference doc about ACLs.
57418         * doc/acl-resources.txt: New file.
57419         * doc/acl-cygwin.txt: New file.
57420
57421 2008-05-21  Bruno Haible  <bruno@clisp.org>
57422
57423         Avoid one more warning from gcc.
57424         * lib/vasnprintf.c (IF_LINT): Update comments.
57425         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57426
57427 2008-05-21  Jim Meyering  <meyering@redhat.com>
57428
57429         avoid a warning from gcc
57430         * lib/vasnprintf.c (IF_LINT): Define.
57431         (scale10_round_decimal_long_double):
57432         Use it to avoid a "may be used uninitialized" warning.
57433         (scale10_round_decimal_double): Likewise.
57434
57435 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57436
57437         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57438         declared.
57439
57440 2008-05-20  Bruno Haible  <bruno@clisp.org>
57441
57442         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57443         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57444
57445 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57446
57447         * modules/memcmp-tests: New file.
57448         * tests/test-memcmp.c: New file.
57449
57450 2008-05-19  Bruno Haible  <bruno@clisp.org>
57451
57452         * modules/propername (Notice, configure.ac): Put quoted "..." into
57453         --keyword option.
57454         * lib/propername.h: Update comments accordingly.
57455         Reported by Eric Blake.
57456
57457 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57458
57459         * modules/getpass-gnu (Depends-on): Add fseeko.
57460
57461 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57462
57463         * modules/base64-tests: New file.
57464
57465 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57466
57467         * lib/base64.c (base64_decode_ctx): If a decode context structure
57468         was passed in use it to ignore newlines.  If a context structure
57469         was _not_ passed in, continue to treat newlines as garbage (this
57470         is the historical behavior).  Formerly base64_decode.
57471         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57472         takes a decode context structure.
57473         * lib/base64.h (base64_decode): Macro for four-argument calls.
57474         (base64_decode_alloc): Likewise.
57475         * lib/base64.c (base64_decode_ctx): If a decode context structure
57476         was passed in use it to ignore newlines.  If a context structure
57477         was _not_ passed in, continue to treat newlines as garbage (this
57478         is the historical behavior).  Formerly base64_decode.
57479         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57480         takes a decode context structure.
57481         * lib/base64.h (base64_decode): Macro for four-argument calls.
57482         (base64_decode_alloc): Likewise.
57483
57484 2008-05-19  Jim Meyering  <meyering@redhat.com>
57485
57486         avoid a warning from gcc
57487         * lib/trim.c (IF_LINT): Define.
57488         (trim2): Use it to avoid a "may be used uninitialized" warning.
57489
57490         Fix doc typo.
57491         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57492
57493 2008-05-19  Bruno Haible  <bruno@clisp.org>
57494
57495         * doc/glibc-functions/getpass.texi: Document limits of other
57496         implementations.
57497
57498 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57499             Bruno Haible <bruno@clisp.org>
57500
57501         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57502
57503 2008-05-18  Bruno Haible  <bruno@clisp.org>
57504
57505         * modules/propername: New file, from GNU gettext.
57506         * lib/propername.h: New file, from GNU gettext.
57507         * lib/propername.c: New file, from GNU gettext.
57508         * MODULES.html.sh (Internationalization functions): Add propername.
57509
57510 2008-05-16  Jim Meyering  <meyering@redhat.com>
57511             Bruno Haible  <bruno@clisp.org>
57512
57513         Avoid some warnings from "gcc -Wshadow".
57514         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
57515
57516 2008-05-15  Eric Blake  <ebb9@byu.net>
57517
57518         Extend previous patch to cygwin 1.7.0.
57519         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
57520         fast implementation in cygwin >= 1.7.0.
57521         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57522         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57523
57524 2008-05-15  Bruno Haible  <bruno@clisp.org>
57525
57526         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
57527         implementation in glibc >= 2.9.
57528         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57529         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57530
57531 2008-05-15  Bruno Haible  <bruno@clisp.org>
57532
57533         * MODULES.html.sh (Internationalization functions): Remove linebreak.
57534         (Unicode string functions): Add unilbrk/*.
57535         Reported by Karl Berry.
57536
57537 2008-05-15  Eric Blake  <ebb9@byu.net>
57538
57539         Fix violation of <stdbool.h> replacement in regex.
57540         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
57541         * lib/regexec.c (re_search_internal): Likewise.
57542         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
57543
57544 2008-05-15  Jim Meyering  <meyering@redhat.com>
57545
57546         avoid distracting test output when git or cvs is not found
57547         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
57548         * tests/test-vc-list-files-git.sh: Likewise.
57549
57550 2008-05-15  Eric Blake  <ebb9@byu.net>
57551
57552         Glibc finally accepted the memmem speedup code, bugzilla #5514.
57553         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
57554         glibc version.
57555         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
57556         * doc/posix-functions/strstr.texi (strstr): Likewise.
57557         * lib/str-two-way.h (MAX): Sychronize with glibc.
57558
57559 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
57560
57561         * lib/regcomp.c (optimize_utf8): Add a note on why we test
57562         opr.ctx_type.
57563         (calc_first): Initialize constraint field.
57564         (duplicate_node_closure): Use it instead of special casing ANCHORS.
57565         Fix grammar.
57566         (duplicate_node): Merge constraint field for all node types.
57567         (calc_eclosure_iter): Look at constraint field for all node types.
57568         * lib/regex_internal.c (create_cd_newstate): Don't look at
57569         opr.ctx_type.
57570
57571 2008-05-14  Bruno Haible  <bruno@clisp.org>
57572
57573         Help GCC to do better code generation.
57574         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
57575         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
57576         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
57577         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
57578         Declare with attribute 'malloc' if supported.
57579
57580 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
57581
57582         use "echo STR|wc -c" rather than unportable "expr length STR"
57583         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
57584         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
57585
57586 2008-05-14  Jim Meyering  <meyering@redhat.com>
57587
57588         use dd ibs=$n count=1 ... rather than less-portable head -c$n
57589         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
57590         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
57591         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
57592         via Collin Lasse.
57593
57594 2008-05-14  Eric Blake  <ebb9@byu.net>
57595
57596         Avoid quadratic growth in gl_LIBSOURCES.
57597         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
57598         Suggested by Bruno Haible.
57599
57600         Test xmemdup0.
57601         * modules/xmemdup0-tests: New file.
57602         * tests/test-xmemdup0.c: Likewise.
57603
57604 2008-05-13  Eric Blake  <ebb9@byu.net>
57605
57606         Split xmemdup0 into its own module.
57607         * modules/xmemdup0: New file.
57608         * lib/xmemdup0.h: Likewise.
57609         * lib/xmemdup0.c: Likewise.
57610         * MODULES.html.sh (Memory management functions): Add xmemdup0.
57611         * lib/xalloc.h (xmemdup0): Remove.
57612         * lib/xmalloc.c (xmemdup0): Likewise.
57613
57614 2008-05-13  Eric Blake  <ebb9@byu.net>
57615             Bruno Haible  <bruno@clisp.org>
57616
57617         Reduce number of forks required during autoconf.
57618         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
57619         and gl_LIBSOURCES_DIR.
57620         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
57621         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
57622         m4_syscmd per file.
57623         <m4_foreach_w>: Move...
57624         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
57625
57626 2008-05-13  Eric Blake  <ebb9@byu.net>
57627
57628         * gnulib-tool: Fix various comment typos.
57629
57630 2008-05-12  Bruno Haible  <bruno@clisp.org>
57631
57632         Tailor the linebreaking algorithm.
57633         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
57634
57635 2008-05-12  Bruno Haible  <bruno@clisp.org>
57636
57637         Update to Unicode 5.0.0.
57638         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57639         LBP_JV, LBP_JT. Redistribute values.
57640         (unilbrk_table): Change size.
57641         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
57642         Unicode TR#14 rev. 22.
57643         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
57644         LBP_JV, LBP_JT. Redistribute values.
57645         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
57646         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
57647         Update.
57648         * lib/unilbrk/lbrkprop1.h: Regenerated.
57649         * lib/unilbrk/lbrkprop2.h: Regenerated.
57650         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
57651         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
57652         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
57653         Likewise.
57654         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
57655         Likewise.
57656         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
57657         result.
57658         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
57659         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
57660         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
57661         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
57662         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
57663         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
57664
57665 2008-05-11  Bruno Haible  <bruno@clisp.org>
57666
57667         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
57668
57669 2008-05-11  Bruno Haible  <bruno@clisp.org>
57670
57671         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
57672         * modules/unilbrk/gen-lbrk: New file.
57673
57674 2008-05-11  Bruno Haible  <bruno@clisp.org>
57675
57676         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
57677         * m4/sha512.m4 (gl_SHA512): Likewise.
57678
57679 2008-05-11  Jim Meyering  <meyering@redhat.com>
57680
57681         New modules: crypto/sha256, crypto/sha512 (from coreutils)
57682         * modules/crypto/sha256: New file.
57683         * modules/crypto/sha512: Likewise.
57684         * lib/sha256.c: Likewise.
57685         * lib/sha256.h: Likewise.
57686         * lib/sha512.c: Likewise.
57687         * lib/sha512.h: Likewise.
57688         * lib/u64.h: Likewise.
57689         * m4/sha256.m4: Likewise.
57690         * m4/sha512.m4: Likewise.
57691         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
57692
57693 2008-05-10  Bruno Haible  <bruno@clisp.org>
57694
57695         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
57696         (Input/Output <stdio.h>): Add xprintf.
57697         (Signal handling <signal.h>): Add strsignal.
57698         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
57699         (Core language properties): Add func.
57700         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
57701         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
57702         strings.
57703         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
57704         (Input/output): New section.
57705         (File system functions): Add openat-die, stat-macros.
57706         (Networking functions): Add sockets.
57707         (Unicode string functions): Add unictype/*.
57708         (Support for building libraries and executables): Add gperf.
57709         (Support for building documentation): Add agpl-3.0.
57710         (Misc): Add nocrash.
57711
57712 2008-05-10  Bruno Haible  <bruno@clisp.org>
57713
57714         * modules/unictype/gen-ctype: New file.
57715
57716 2008-05-10  Jim Meyering  <meyering@redhat.com>
57717
57718         Make chdir-safer.c more efficient on a system with no symlinks.
57719         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
57720         also if ELOOP is zero.  Suggested by Bruno Haible.
57721
57722         Make chdir-safer.c slightly safer.
57723         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
57724         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
57725
57726         Avoid compile failure on systems without ELOOP (like mingw).
57727         * lib/chdir-safer.c (ELOOP): Define if not already defined.
57728         Reported by Bruno Haible.
57729
57730 2008-05-10  Bruno Haible  <bruno@clisp.org>
57731
57732         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
57733         (is_utf8_encoding): Use a case-insensitive comparison.
57734         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
57735         streq.
57736
57737 2008-05-10  Bruno Haible  <bruno@clisp.org>
57738
57739         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
57740         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
57741         * lib/unilbrk/ulc-common.h (iconv_string_length,
57742         iconv_string_keeping_offsets): Remove declarations.
57743         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
57744         Don't include <iconv.h>, streq.h, xsize.h.
57745         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
57746         conversion.
57747         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
57748         <iconv.h>, streq.h, xsize.h.
57749         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
57750         conversion.
57751         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
57752         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
57753         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
57754         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
57755
57756 2008-05-10  Bruno Haible  <bruno@clisp.org>
57757
57758         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
57759         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
57760
57761         * modules/unilbrk/u32-width-linebreaks-tests: New file.
57762         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
57763
57764         * modules/unilbrk/u16-width-linebreaks-tests: New file.
57765         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
57766
57767         * modules/unilbrk/u8-width-linebreaks-tests: New file.
57768         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
57769
57770         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
57771         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
57772
57773         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
57774         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
57775
57776         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
57777         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
57778
57779         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
57780         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
57781
57782 2008-05-10  Bruno Haible  <bruno@clisp.org>
57783
57784         Split up 'linebreak' module.
57785         * lib/unilbrk.h: New file, based on lib/linebreak.h.
57786         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
57787         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
57788         modifications.
57789         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
57790         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
57791         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
57792         lib/linebreak.c.
57793         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
57794         lib/linebreak.c.
57795         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
57796         lib/linebreak.c.
57797         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
57798         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
57799         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
57800         lib/linebreak.c.
57801         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
57802         lib/linebreak.c.
57803         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
57804         lib/linebreak.c.
57805         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
57806         lib/linebreak.c.
57807         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
57808         lib/linebreak.c.
57809         * modules/unilbrk/base: New file.
57810         * modules/unilbrk/tables: New file.
57811         * modules/unilbrk/u8-possible-linebreaks: New file.
57812         * modules/unilbrk/u16-possible-linebreaks: New file.
57813         * modules/unilbrk/u32-possible-linebreaks: New file.
57814         * modules/unilbrk/ulc-common: New file.
57815         * modules/unilbrk/ulc-possible-linebreaks: New file.
57816         * modules/unilbrk/u8-width-linebreaks: New file.
57817         * modules/unilbrk/u16-width-linebreaks: New file.
57818         * modules/unilbrk/u32-width-linebreaks: New file.
57819         * modules/unilbrk/ulc-width-linebreaks: New file.
57820         * lib/linebreak.h: Remove file.
57821         * lib/linebreak.c: Remove file.
57822         * m4/linebreak.m4: Remove file.
57823         * modules/linebreak: Remove file.
57824         * NEWS: Mention the changes.
57825
57826 2008-05-09  Eric Blake  <ebb9@byu.net>
57827
57828         Add xmemdup0.
57829         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
57830         implementation.
57831         * lib/xmalloc.c (xmemdup0): New C implementation.
57832
57833 2008-05-08  Bruno Haible  <bruno@clisp.org>
57834
57835         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
57836
57837 2008-05-07  Eric Blake  <ebb9@byu.net>
57838
57839         Support cross-compilation of <wctype.h>.
57840         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
57841         AC_CACHE_CHECK.
57842
57843 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
57844
57845         * build-aux/vc-list-files: Add support for bzr.
57846
57847 2008-05-03  Jim Meyering  <meyering@redhat.com>
57848
57849         avoid failed assertion with tight malloc
57850         * tests/test-getndelim2.c: Correct an off-by-one assertion.
57851
57852 2008-05-03  Simon Josefsson  <simon@josefsson.org>
57853
57854         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
57855         are needed from arpa/inet.h.
57856         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
57857         Reported by Bruno Haible.
57858
57859 2008-05-02  Jim Meyering  <meyering@redhat.com>
57860
57861         avoid compilation error on FreeBSD 6
57862         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
57863
57864 2008-05-01  Jim Meyering  <meyering@redhat.com>
57865
57866         useless-if-before-free: correct --help's exit status description
57867         * build-aux/useless-if-before-free (usage): Like grep, exit 0
57868         for one or more matches, etc.  Reported by Bruno Haible.
57869
57870         vc-list-files: make the stand-alone gnulib test work
57871         * modules/vc-list-files-tests (configure.ac):
57872         Define and AC_SUBST abs_aux_dir.
57873         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
57874         $(abs_top_srcdir) to each script and having each of them
57875         duplicate the work of setting PATH, set PATH here, using
57876         the new variable, abs_aux_dir instead.
57877         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
57878         * tests/test-vc-list-files-git.sh: Likewise.
57879         Reported by Bruno Haible.
57880
57881 2008-05-01  Bruno Haible  <bruno@clisp.org>
57882
57883         * lib/getndelim2.c (getndelim2): Fix newsize computation during
57884         reallocation. Rename 'done' to 'found_delimiter'.
57885
57886 2008-05-01  Jim Meyering  <meyering@redhat.com>
57887
57888         vc-list-files: accommodate /bin/sh like the one from Solaris 10
57889         * build-aux/vc-list-files: Use `...`, not $(...).
57890
57891 2008-04-30  Jim Meyering  <meyering@redhat.com>
57892
57893         add tests for vc-list-files
57894         * modules/vc-list-files-tests: New module.
57895         * tests/test-vc-list-files-cvs.sh: New file.
57896         * tests/test-vc-list-files-git.sh: New file.
57897
57898         avoid a warning from gcc
57899         * lib/getndelim2.c (IF_LINT): Define.
57900         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57901
57902         vc-list-files: work properly with build-aux/cvsu, too
57903         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57904         to all cvs-based clauses.
57905
57906         vc-list-files: work properly in the CVS+awk case, too
57907         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57908
57909         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57910         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57911         take more than one file argument, so .  Add quotes, just in case $dir
57912         ever contains a shell meta-character.  Prompted by Soren Hansen in
57913         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57914
57915 2008-04-29  Eric Blake  <ebb9@byu.net>
57916
57917         Optimize getndelim2 to use block operations when possible.
57918         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57919         freadseek, and memchr2.
57920         * lib/getndelim2.c (getndelim2): Use them for block reads.
57921
57922 2008-04-29  Bruno Haible  <bruno@clisp.org>
57923
57924         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
57925         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57926         * modules/inet_ntop (Depends-on): Add extensions.
57927         * modules/inet_pton (Depends-on): Likewise.
57928         Reported by Simon Josefsson.
57929
57930 2008-04-29  Jim Meyering  <meyering@redhat.com>
57931
57932         When the is more than one match in a block, match all of them.
57933         * build-aux/useless-if-before-free: Iterate through each block
57934         until there are no more matches.
57935
57936         Fix broken useless-if-before-free script.
57937         * build-aux/useless-if-before-free: Fix typo: missing "?" after
57938         the expression to match cast of argument to free-like function.
57939
57940 2008-04-29  Eric Blake  <ebb9@byu.net>
57941
57942         Use new header.
57943         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
57944
57945 2008-04-29  Jim Meyering  <meyering@redhat.com>
57946
57947         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
57948         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
57949         by gnulib to exist and to declare e.g., inet_ntop.
57950         Don't include "inet_ntop.h", now removed.
57951
57952         * m4/arpa_inet_h.m4: Remove trailing blanks.
57953
57954 2008-04-29  Eric Blake  <ebb9@byu.net>
57955
57956         Silence valgrind on safe reads beyond potential array bounds.
57957         * lib/rawmemchr.valgrind: New file.
57958         * lib/strchrnul.valgrind: Likewise.
57959         * modules/rawmemchr (Files): Distribute new file.
57960         * modules/strchrnul (Files): Likewise.
57961         Suggested by Bruno Haible.
57962
57963 2008-04-29  Bruno Haible  <bruno@clisp.org>
57964
57965         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
57966         (inet_ntop, inet_pton): Change portability warning's wording.
57967         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
57968         Invoke gl_CHECK_NEXT_HEADERS.
57969         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
57970         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
57971         set ARPA_INET_H.
57972         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57973         * modules/arpa_inet (Description): No longer only for systems that
57974         lack it.
57975         (Depends-on): Add include_next.
57976         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57977         HAVE_ARPA_INET_H.
57978
57979 2008-04-29  Jim Meyering  <meyering@redhat.com>
57980
57981         * modules/mkdir (License): Re-license as LGPLv2+.
57982
57983 2008-04-29  Bruno Haible  <bruno@clisp.org>
57984
57985         * modules/rawmemchr (Maintainer): Set to Eric.
57986         * modules/strchrnul (Maintainer): Likewise.
57987
57988 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57989
57990         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57991         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57992
57993         * modules/arpa_inet (arpa/inet.h): Use them.
57994
57995 2008-04-28  Eric Blake  <ebb9@byu.net>
57996
57997         Test getndelim2.
57998         * modules/getndelim2-tests: New file.
57999         * tests/test-getndelim2.c: Likewise.
58000         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58001         stream.
58002         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58003
58004         * MODULES.html.sh: Document new module.
58005
58006 2008-04-20  Bruno Haible  <bruno@clisp.org>
58007
58008         * lib/c-stack.c (die): Use raise.
58009         * modules/c-stack (Depends-on): Add raise.
58010
58011 2008-04-28  Bruno Haible  <bruno@clisp.org>
58012
58013         Expect rpmatch to be declared.
58014         * lib/yesno.c (rpmatch): Remove declaration.
58015
58016         Declare rpmatch.
58017         * lib/stdlib.in.h (rpmatch): New declaration.
58018         * lib/rpmatch.c: Include <stdlib.h> first.
58019         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58020         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58021         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58022         HAVE_RPMATCH.
58023         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58024         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58025         (Include): Set to <stdlib.h>.
58026         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58027         HAVE_RPMATCH.
58028         * NEWS: Document the change.
58029
58030 2008-04-28  Bruno Haible  <bruno@clisp.org>
58031
58032         Change rpmatch to use nl_langinfo when appropriate.
58033         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58034         (N_): New macro.
58035         (localized_pattern): New function/macro.
58036         (try): Remove match, nomatch arguments. Copy the pattern into safe
58037         memory before caching it.
58038         (rpmatch): Use localized_pattern. Add translator comments.
58039         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58040         Suggested by Eric Blake.
58041         * modules/rpmatch (Depends-on): Add stdbool.
58042
58043 2008-04-28  Eric Blake  <ebb9@byu.net>
58044
58045         Add rawmemchr module, matching glibc.
58046         * modules/string (Makefile.am): New indicator.
58047         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58048         * lib/string.in.h (rawmemchr): Declare when appropriate.
58049         * modules/rawmemchr: New file.
58050         * m4/rawmemchr.m4: Likewise.
58051         * lib/rawmemchr.c: Likewise.
58052         * modules/rawmemchr-tests: Likewise.
58053         * tests/test-rawmemchr.c: Likewise.
58054         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58055         module.
58056         * modules/strchrnul (Depends-on): Add rawmemchr.
58057         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58058
58059         Whitespace cleanup.
58060         * tests/test-strchrnul.c: Reindent.
58061         * lib/strchrnul.c: Likewise.
58062
58063         Optimize and test strchrnul.
58064         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58065         * modules/strchrnul-tests: New file.
58066         * tests/test-strchrnul.c: Likewise.
58067
58068         Remove intprops dependency.
58069         * modules/memchr (Depends-on): Remove intprops.
58070         * modules/memrchr (Depends-on): Likewise.
58071         * modules/memchr2 (Depends-on): Likewise.
58072         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58073         * lib/memrchr.c (__memrchr): Likewise.
58074         * lib/memrchr2.c (memchr2): Likewise.
58075         Reported by Simon Josefsson.
58076
58077 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58078
58079         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58080         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58081
58082 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58083
58084         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58085
58086         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58087
58088         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58089
58090         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58091         declarations.
58092         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58093
58094         * m4/inet_pton.m4: Don't check for header files.
58095
58096         * m4/inet_ntop.m4: Don't check for header files.
58097
58098 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58099
58100         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58101         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58102         trigger for cygwin).
58103         Reported by Bruno Haible  <bruno@clisp.org>.
58104
58105 2008-04-28  Bruno Haible  <bruno@clisp.org>
58106
58107         * doc/posix-functions/strdup.texi: Mention mingw problem.
58108
58109 2008-04-27  Bruno Haible  <bruno@clisp.org>
58110
58111         * modules/stat-time-tests (Depends-on): Add sleep.
58112         * tests/test-stat-time.c (force_unlink): New function.
58113         (cleanup): Use it.
58114         (test_mtime): Remove the ctime related tests.
58115         (test_ctime): New function, containing the ctime related tests.
58116         (main): Call test_ctime, except on native Windows platforms.
58117
58118 2008-04-27  Bruno Haible  <bruno@clisp.org>
58119
58120         * lib/rpmatch.c (rpmatch): Add some comments.
58121         Reported by James Youngman <jay@gnu.org>.
58122
58123 2008-04-27  Bruno Haible  <bruno@clisp.org>
58124
58125         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58126         quiet NaNs.
58127
58128 2008-04-27  Bruno Haible  <bruno@clisp.org>
58129
58130         Make test-yesno.sh work on mingw.
58131         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58132         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58133         (main): Set stdin to binary mode.
58134         * modules/yesno-tests (Depends-on): Add binary-io.
58135
58136 2008-04-27  Bruno Haible  <bruno@clisp.org>
58137
58138         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58139         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58140         argument that lie outside the IEEE 854 domain.
58141         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58142         (gl_ISFINITE): Use it.
58143         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58144
58145 2008-04-27  Bruno Haible  <bruno@clisp.org>
58146
58147         Allow local renaming in config.h.
58148         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58149
58150 2008-04-27  Bruno Haible  <bruno@clisp.org>
58151
58152         * lib/memchr.c (__memchr): Change type of 'i'.
58153         * lib/memchr2.c (memchr2): Likewise.
58154
58155 2008-04-26  Eric Blake  <ebb9@byu.net>
58156         and Bruno Haible  <bruno@clisp.org>
58157
58158         Optimize and test memrchr.
58159         * modules/memrchr (Depends-on): Add intprops.
58160         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58161         * modules/memrchr-tests: New file.
58162         * tests/test-memrchr.c: New file.
58163
58164 2008-04-26  Bruno Haible  <bruno@clisp.org>
58165
58166         Add tentative support for DragonFly BSD.
58167         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58168         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58169         fp.
58170         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58171         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58172         * lib/fpurge.c (fpurge): Likewise.
58173         * lib/freadable.c (freaadable): Likewise.
58174         * lib/freadahead.c (freadahead): Likewise.
58175         * lib/freading.c (freading): Likewise.
58176         * lib/freadptr.c (freadptr): Likewise.
58177         * lib/freadseek.c (freadptrinc): Likewise.
58178         * lib/fseeko.c (fseeko): Likewise.
58179         * lib/fseterr.c (fseterr): Likewise.
58180         * lib/fwritable.c (fwritable): Likewise.
58181         * lib/fwriting.c (fwriting): Likewise.
58182
58183 2008-04-26  Bruno Haible  <bruno@clisp.org>
58184
58185         * lib/stdio-impl.h: New file.
58186         * lib/fbufmode.c: Include stdio-impl.h.
58187         (fbufmode): Use fp_, remove redundant #defines.
58188         * lib/fflush.c: Include stdio-impl.h.
58189         (clear_ungetc_buffer): Remove redundant #defines.
58190         * lib/fpurge.c: Include stdio-impl.h.
58191         (fpurge): Remove redundant #defines.
58192         * lib/freadable.c: Include stdio-impl.h.
58193         (freadable): Remove redundant #defines.
58194         * lib/freadahead.c: Include stdio-impl.h.
58195         (freadahead): Remove redundant #defines.
58196         * lib/freading.c: Include stdio-impl.h.
58197         (freading): Remove redundant #defines.
58198         * lib/freadptr.c: Include stdio-impl.h.
58199         (freadptr): Remove redundant #defines.
58200         * lib/freadseek.c: Include stdio-impl.h.
58201         (freadptrinc): Remove redundant #defines.
58202         * lib/fseeko.c: Include stdio-impl.h.
58203         (rpl_fseeko): Remove redundant #defines.
58204         * lib/fseterr.c: Include stdio-impl.h.
58205         (fseterr): Remove redundant #defines.
58206         * lib/fwritable.c: Include stdio-impl.h.
58207         (fwritable: Remove redundant #defines.
58208         * lib/fwriting.c: Include stdio-impl.h.
58209         (fwriting): Remove redundant #defines.
58210         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58211         * modules/fflush (Files): Likewise.
58212         * modules/fpurge (Files): Likewise.
58213         * modules/freadable (Files): Likewise.
58214         * modules/freadahead (Files): Likewise.
58215         * modules/freading (Files): Likewise.
58216         * modules/freadptr (Files): Likewise.
58217         * modules/freadseek (Files): Likewise.
58218         * modules/fseeko (Files): Likewise.
58219         * modules/fseterr (Files): Likewise.
58220         * modules/fwritable (Files): Likewise.
58221         * modules/fwriting (Files): Likewise.
58222
58223 2008-04-26  Bruno Haible  <bruno@clisp.org>
58224
58225         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58226         restore_seek_optimization, update_fpos_cache): New functions, extracted
58227         from rpl_fflush.
58228         (rpl_fflush): Use them.
58229         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58230         (gl_REPLACE_FFLUSH): Use it.
58231
58232 2008-04-26  Bruno Haible  <bruno@clisp.org>
58233
58234         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58235         on Solaris.
58236         * tests/test-xstrtoimax.sh: Likewise.
58237         * tests/test-xstrtoumax.sh: Likewise.
58238         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58239
58240 2008-04-26  Bruno Haible  <bruno@clisp.org>
58241
58242         * modules/memchr-tests: New file.
58243         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58244
58245 2008-04-26  Eric Blake  <ebb9@byu.net>
58246             Bruno Haible  <bruno@clisp.org>
58247
58248         * lib/memchr.c: Include intprops.h.
58249         (__memchr): Optimize parallel detection of matching bytes. Rename local
58250         variables. Add explanatory comments.
58251
58252 2008-04-26  Bruno Haible  <bruno@clisp.org>
58253
58254         Fix module 'memchr', broken since 2000-10-28.
58255         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58256
58257 2008-04-26  Bruno Haible  <bruno@clisp.org>
58258
58259         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58260         comments.
58261
58262 2008-04-25  Eric Blake  <ebb9@byu.net>
58263
58264         Use native fstatat on cygwin 1.7.0.
58265         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58266         first.
58267
58268 2008-04-23  Eric Blake  <ebb9@byu.net>
58269
58270         Improve memchr2 performance.
58271         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58272         NUL bytes.
58273         * modules/memchr2 (Depends-on): Use intprops.h.
58274
58275 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58276
58277         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58278         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58279         <blp@cs.stanford.edu>.
58280
58281 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58282
58283         * lib/arpa_inet.in.h: New file.
58284
58285         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58286         (Makefile.am): Sed in substitute header file.
58287
58288         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58289         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58290
58291         * modules/inet_ntop (configure.ac): Use
58292         gl_ARPA_INET_MODULE_INDICATOR.
58293
58294         * modules/inet_pton (configure.ac): Use
58295         gl_ARPA_INET_MODULE_INDICATOR.
58296
58297 2008-04-22  Jim Meyering  <meyering@redhat.com>
58298
58299         * modules/verify (License): Re-license as LGPLv2+.
58300
58301 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58302
58303         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58304         parameter to void* as per POSIX standard (MinGW uses char*).
58305
58306 2008-04-21  Bruno Haible  <bruno@clisp.org>
58307
58308         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58309         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58310         Define to replacements if REPLACE_ISWCNTRL is 1.
58311         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58312         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58313         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58314         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58315         what it fixes.
58316         * doc/posix-functions/iswalpha.texi: Likewise.
58317         * doc/posix-functions/iswblank.texi: Likewise.
58318         * doc/posix-functions/iswcntrl.texi: Likewise.
58319         * doc/posix-functions/iswdigit.texi: Likewise.
58320         * doc/posix-functions/iswgraph.texi: Likewise.
58321         * doc/posix-functions/iswlower.texi: Likewise.
58322         * doc/posix-functions/iswprint.texi: Likewise.
58323         * doc/posix-functions/iswpunct.texi: Likewise.
58324         * doc/posix-functions/iswspace.texi: Likewise.
58325         * doc/posix-functions/iswupper.texi: Likewise.
58326         * doc/posix-functions/iswxdigit.texi: Likewise.
58327         Reported by Alain Guibert.
58328
58329 2008-04-21  Bruno Haible  <bruno@clisp.org>
58330
58331         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58332         Patch by Alain Guibert.
58333
58334 2008-04-21  Bruno Haible  <bruno@clisp.org>
58335
58336         Fix test failures on mingw.
58337         * tests/test-xstrtol.c (print_no_progname): New function.
58338         (main): Install it in error_print_progname hook.
58339         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58340         * tests/test-xstrtoimax.sh: Likewise.
58341         * tests/test-xstrtoumax.sh: Likewise.
58342
58343 2008-04-21  Bruno Haible  <bruno@clisp.org>
58344
58345         Fix test failure on mingw.
58346         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58347
58348 2008-04-21  Bruno Haible  <bruno@clisp.org>
58349
58350         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58351         Actually assign a value.
58352
58353 2008-04-20  Bruno Haible  <bruno@clisp.org>
58354
58355         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58356         take 2.
58357         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58358         'canonicalize-lgpl' module is also used.
58359         * lib/canonicalize-lgpl.c: Undo last change.
58360         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58361
58362 2008-04-20  Bruno Haible  <bruno@clisp.org>
58363
58364         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58365         config.h. Provide _mkdir based fallback for mingw.
58366         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58367         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58368         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58369         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58370         rather than defining mkdir in config.h.
58371         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58372         (gl_SYS_STAT_H_DEFAULTS): New macro.
58373         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58374         HAVE_IO_H any more.
58375         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58376         HAVE_DECL_MKDIR and HAVE_IO_H.
58377
58378 2008-04-20  Bruno Haible  <bruno@clisp.org>
58379
58380         * lib/isapipe.c: Port to native Windows platforms.
58381
58382 2008-04-20  Bruno Haible  <bruno@clisp.org>
58383
58384         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58385
58386 2008-04-21  Eric Blake  <ebb9@byu.net>
58387
58388         Work around preprocessors that don't handle UINTMAX_MAX.
58389         * lib/memchr2.c (memchr2): Avoid embedded #if.
58390         Reported by Alain Guibert, fix suggested by Bruno Haible.
58391
58392 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58393
58394         * doc/posix-functions/strftime.texi (strftime): Explain better
58395         Windows incompatibility.  Suggested by Micah Cowan
58396         <micah@cowan.name>.
58397
58398 2008-04-20  Bruno Haible  <bruno@clisp.org>
58399
58400         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58401         unistr/u8-mblen.
58402
58403 2008-04-20  Bruno Haible  <bruno@clisp.org>
58404
58405         Fix test failure on platforms with non-GNU iconv.
58406         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58407         (U_TO_U8): Use it, rather than u16_to_u8.
58408         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58409         units at the end of the input string.
58410         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58411
58412 2008-04-20  Bruno Haible  <bruno@clisp.org>
58413
58414         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58415         when the resulting length is 0.
58416         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58417
58418 2008-04-20  Bruno Haible  <bruno@clisp.org>
58419
58420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58421         works.
58422         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58423
58424 2008-04-20  Bruno Haible  <bruno@clisp.org>
58425
58426         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58427         * modules/tsearch-tests (configure.ac): Test for initstate function.
58428
58429 2008-04-20  Bruno Haible  <bruno@clisp.org>
58430
58431         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58432         for nlink_t if missing.
58433         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58434
58435 2008-04-19  Bruno Haible  <bruno@clisp.org>
58436
58437         Work around snprintf bug on Linux libc5.
58438         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58440         gl_SNPRINTF_SIZE1.
58441         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58442         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58443         that test failed.
58444         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58445         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58446         * modules/snprintf (Files): Add m4/printf.m4.
58447         * modules/vsnprintf (Files): Likewise.
58448         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58449         * doc/posix-functions/vsnprintf.texi: Likewise.
58450
58451 2008-04-19  Bruno Haible  <bruno@clisp.org>
58452
58453         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58454         from 0.0058 to less than 10^-7.
58455
58456 2008-04-19  Bruno Haible  <bruno@clisp.org>
58457
58458         Fix rounding when a precision is given.
58459         * lib/vasnprintf.c (is_borderline): New function.
58460         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58461         9...9x.
58462         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58463         %e, %g.
58464         * tests/test-vasprintf-posix.c (test_function): Likewise.
58465         * tests/test-snprintf-posix.h (test_function): Likewise.
58466         * tests/test-sprintf-posix.h (test_function): Likewise.
58467         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58468         * tests/test-printf-posix.h (test_function): Likewise.
58469         * tests/test-printf-posix.output: Update.
58470         Reported by John Darrington <john@darrington.wattle.id.au> via
58471         Ben Pfaff <blp@cs.stanford.edu>.
58472
58473 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58474
58475         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58476         Suggested by Bruno Haible <bruno@clisp.org>.
58477
58478 2008-04-17  Bruno Haible  <bruno@clisp.org>
58479
58480         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58481         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58482         implementation.
58483         Patch by Bruce Merry <bmerry@gmail.com>.
58484
58485 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58486
58487         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58488         doesn't work under Windows.
58489
58490 2008-04-16  Bruno Haible  <bruno@clisp.org>
58491
58492         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58493         New macros.
58494         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58495         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58496         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58497         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58498         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58499         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58500         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58501         macros.
58502         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58503         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58504         Northern Sotho, Uighur.
58505
58506 2008-04-16  Bruno Haible  <bruno@clisp.org>
58507
58508         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
58509         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
58510         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
58511         Reported by Daniel Bergström <daniel@octocode.com>.
58512
58513 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
58514             Bruno Haible  <bruno@clisp.org>
58515
58516         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
58517         function.
58518         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
58519         New functions, mostly extracted from gl_locale_name_default.
58520         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
58521
58522 2008-04-16  Eric Blake  <ebb9@byu.net>
58523
58524         Adjust strtod detection to catch glibc 2.7 bug.
58525         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
58526         Reported by John Gatewood Ham.
58527
58528 2008-04-16  Bruno Haible  <bruno@clisp.org>
58529
58530         Add tentative support for Linux libc5.
58531         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
58532         * lib/fpurge.c (fpurge): Likewise.
58533         * lib/freadable.c (freadable): Likewise.
58534         * lib/freadahead.c (freadahead): Likewise.
58535         * lib/freading.c (freading): Likewise.
58536         * lib/freadptr.c (freadptr): Likewise.
58537         * lib/freadseek.c (freadptrinc): Likewise.
58538         * lib/fseeko.c (rpl_fseeko): Likewise.
58539         * lib/fseterr.c (fseterr): Likewise.
58540         * lib/fwritable.c (fwritable): Likewise.
58541         * lib/fwriting.c (fwriting): Likewise.
58542         Reported by Alain Guibert <alguibert+bts@free.fr>.
58543
58544 2008-04-15  Bruno Haible  <bruno@clisp.org>
58545
58546         * modules/mathl (configure.ac): Define module indicator.
58547
58548 2008-04-15  Bruno Haible  <bruno@clisp.org>
58549
58550         * lib/logl.c (logl): Remove unused variables.
58551
58552 2008-04-15  Bruno Haible  <bruno@clisp.org>
58553
58554         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
58555         fails.
58556
58557 2008-04-15  Bruno Haible  <bruno@clisp.org>
58558
58559         * lib/trim.c (trim2): Fix argument of isspace() macro.
58560
58561 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
58562
58563         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
58564         to 0.
58565         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
58566
58567 2008-04-14  Bruno Haible  <bruno@clisp.org>
58568
58569         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
58570         AC_LANG_PROGRAM argument.
58571         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
58572         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
58573         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
58574         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
58575         * m4/math_h.m4 (gl_MATH_H): Likewise.
58576         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
58577         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
58578         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
58579         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
58580         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
58581         * m4/regex.m4 (gl_REGEX): Likewise.
58582         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
58583         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
58584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58585         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
58586         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
58587         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58588         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
58589         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
58590
58591 2008-04-14  Jim Meyering  <meyering@redhat.com>
58592
58593         test-strtod: fix typos: s/abs/fabs/
58594         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
58595
58596 2008-04-13  Bruno Haible  <bruno@clisp.org>
58597
58598         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
58599         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
58600         module is also used and while not building the reloc-wrapper.
58601
58602 2008-04-13  Bruno Haible  <bruno@clisp.org>
58603
58604         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
58605
58606 2008-04-13  Bruno Haible  <bruno@clisp.org>
58607
58608         Fix AIX compilation failure introduced on 2008-04-02.
58609         * tests/test-frexp.c (exp): Undefine before redefining.
58610         * tests/test-frexpl.c (exp): Likewise.
58611
58612 2008-04-13  Bruno Haible  <bruno@clisp.org>
58613
58614         Work around a HP-UX stdio bug.
58615         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
58616         * tests/test-ftello.c (main): Likewise.
58617         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
58618         * doc/posix-functions/ftello.texi: Likewise.
58619
58620 2008-04-13  Bruno Haible  <bruno@clisp.org>
58621
58622         Make test-signbit pass on HP-UX/hppa.
58623         * tests/test-signbit.c (minus_zerol): New variable.
58624         (test_signbitl): Use it.
58625
58626 2008-04-13  Bruno Haible  <bruno@clisp.org>
58627
58628         Make truncl work on OSF/1 4.0.
58629         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
58630         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58631         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
58632         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
58633         HAVE_DECL_TRUNCL.
58634         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
58635         HAVE_DECL_TRUNCL.
58636         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
58637
58638 2008-04-13  Bruno Haible  <bruno@clisp.org>
58639
58640         * lib/unictype.h: Remove trailing comma from enumeration definitions.
58641
58642 2008-04-13  Bruno Haible  <bruno@clisp.org>
58643
58644         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
58645         expression, so as to avoid HP-UX 11 cc compiler bug.
58646
58647 2008-04-13  Bruno Haible  <bruno@clisp.org>
58648
58649         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
58650
58651 2008-04-13  Bruno Haible  <bruno@clisp.org>
58652
58653         * lib/git-merge-changelog.c: Remove empty declaration outside of
58654         functions.
58655
58656 2008-04-13  Bruno Haible  <bruno@clisp.org>
58657
58658         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
58659
58660 2008-04-13  Bruno Haible  <bruno@clisp.org>
58661
58662         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
58663         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
58664         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
58665         also if it exists but lacks definitions of the SHUT_* macros.
58666         * modules/sys_socket (Description): Update.
58667         Reported by Elbert Pol <e.pol@chello.nl>.
58668
58669 2008-04-13  Bruno Haible  <bruno@clisp.org>
58670
58671         * lib/localcharset.c (OS2): Don't redefine if already defined.
58672         Reported by Elbert Pol <e.pol@chello.nl>.
58673
58674 2008-04-13  Bruno Haible  <bruno@clisp.org>
58675
58676         * lib/binary-io.h [__EMX__]: Include <io.h>.
58677         Reported by Elbert Pol <e.pol@chello.nl>.
58678
58679 2008-04-12  Bruno Haible  <bruno@clisp.org>
58680
58681         * lib/fpucw.h: Enable the definitions also for x86_64.
58682         Needed for NetBSD/x86_64.
58683         Reported by Thomas Klausner <tk@giga.or.at>.
58684
58685 2008-04-12  Bruno Haible  <bruno@clisp.org>
58686
58687         * tests/test-strtod.c: Include isnand.h.
58688         (main): Use isnand instead of isnan.
58689         Reported by Jim Meyering.
58690
58691 2008-04-12  Bruno Haible  <bruno@clisp.org>
58692
58693         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
58694         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
58695
58696 2008-04-12  Jim Meyering  <meyering@redhat.com>
58697
58698         * m4/math_h.m4 (gl_MATH_H): Fix typos.
58699
58700 2008-04-12  Bruno Haible  <bruno@clisp.org>
58701
58702         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
58703         Reported by Elbert Pol <e.pol@chello.nl>.
58704
58705 2008-04-12  Eric Blake  <ebb9@byu.net>
58706
58707         Work around Solaris 10 math.h bug.
58708         * m4/math_h.m4 (gl_MATH_H): Check for bug.
58709         (gl_MATH_H_DEFAULTS): Set up default.
58710         * modules/math (Makefile.am): Replace new indicators.
58711         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
58712         * tests/test-math.c (main): Test this.
58713         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
58714         * doc/posix-headers/math.texi (math.h): Mention bug.
58715         Reported by Nelson H. F. Beebe and Jim Meyering.
58716
58717 2008-04-11  Bruno Haible  <bruno@clisp.org>
58718
58719         Adapt to future versions of Apple GCC.
58720         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
58721         Reported by Peter O'Gorman <peter@pogma.com>.
58722
58723 2008-04-11  Bruno Haible  <bruno@clisp.org>
58724
58725         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
58726
58727 2008-04-11  Bruno Haible  <bruno@clisp.org>
58728
58729         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
58730
58731         * modules/getaddrinfo-tests (Makefile.am): Define
58732         test_getaddrinfo_LDADD.
58733
58734 2008-04-11  Bruno Haible  <bruno@clisp.org>
58735
58736         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
58737         (init): Fix syntax error.
58738         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
58739         is declared.
58740
58741 2008-04-11  Bruno Haible  <bruno@clisp.org>
58742
58743         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
58744         * modules/glob (Depends-on): Add stdbool.
58745
58746 2008-04-11  Bruno Haible  <bruno@clisp.org>
58747
58748         * lib/trim.c: Include <string.h>.
58749
58750 2008-04-11  Eric Blake  <ebb9@byu.net>
58751
58752         Avoid compile failure on OS/2.
58753         * lib/regex_internal.h (internal_function): Disable optimization
58754         on OS/2 (__EMX__), where it caused compiler error.
58755         Reported by Elbert Pol.
58756
58757 2008-04-11  Bruno Haible  <bruno@clisp.org>
58758
58759         Flush the standard error stream before aborting. Needed on mingw.
58760         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
58761         * tests/test-array_list.c (ASSERT): Likewise.
58762         * tests/test-array_oset.c (ASSERT): Likewise.
58763         * tests/test-avltree_list.c (ASSERT): Likewise.
58764         * tests/test-avltree_oset.c (ASSERT): Likewise.
58765         * tests/test-avltreehash_list.c (ASSERT): Likewise.
58766         * tests/test-binary-io.c (ASSERT): Likewise.
58767         * tests/test-byteswap.c (ASSERT): Likewise.
58768         * tests/test-c-ctype.c (ASSERT): Likewise.
58769         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
58770         * tests/test-c-strcasestr.c (ASSERT): Likewise.
58771         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
58772         * tests/test-c-strstr.c (ASSERT): Likewise.
58773         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
58774         * tests/test-canonicalize.c (ASSERT): Likewise.
58775         * tests/test-carray_list.c (ASSERT): Likewise.
58776         * tests/test-ceilf1.c (ASSERT): Likewise.
58777         * tests/test-ceilf2.c (ASSERT): Likewise.
58778         * tests/test-ceill.c (ASSERT): Likewise.
58779         * tests/test-count-one-bits.c (ASSERT): Likewise.
58780         * tests/test-fbufmode.c (ASSERT): Likewise.
58781         * tests/test-fflush2.c (ASSERT): Likewise.
58782         * tests/test-floorf1.c (ASSERT): Likewise.
58783         * tests/test-floorf2.c (ASSERT): Likewise.
58784         * tests/test-floorl.c (ASSERT): Likewise.
58785         * tests/test-fopen.c (ASSERT): Likewise.
58786         * tests/test-fpending.c (ASSERT): Likewise.
58787         * tests/test-fprintf-posix.c (ASSERT): Likewise.
58788         * tests/test-fpurge.c (ASSERT): Likewise.
58789         * tests/test-freadable.c (ASSERT): Likewise.
58790         * tests/test-freadahead.c (ASSERT): Likewise.
58791         * tests/test-freading.c (ASSERT): Likewise.
58792         * tests/test-freadptr.c (ASSERT): Likewise.
58793         * tests/test-freadptr2.c (ASSERT): Likewise.
58794         * tests/test-freadseek.c (ASSERT): Likewise.
58795         * tests/test-freopen.c (ASSERT): Likewise.
58796         * tests/test-frexp.c (ASSERT): Likewise.
58797         * tests/test-frexpl.c (ASSERT): Likewise.
58798         * tests/test-fseek.c (ASSERT): Likewise.
58799         * tests/test-fseeko.c (ASSERT): Likewise.
58800         * tests/test-fstrcmp.c (ASSERT): Likewise.
58801         * tests/test-ftell.c (ASSERT): Likewise.
58802         * tests/test-ftello.c (ASSERT): Likewise.
58803         * tests/test-func.c (ASSERT): Likewise.
58804         * tests/test-fwritable.c (ASSERT): Likewise.
58805         * tests/test-fwriting.c (ASSERT): Likewise.
58806         * tests/test-getdelim.c (ASSERT): Likewise.
58807         * tests/test-getline.c (ASSERT): Likewise.
58808         * tests/test-i-ring.c (ASSERT): Likewise.
58809         * tests/test-iconv-utf.c (ASSERT): Likewise.
58810         * tests/test-iconv.c (ASSERT): Likewise.
58811         * tests/test-isfinite.c (ASSERT): Likewise.
58812         * tests/test-isnand.c (ASSERT): Likewise.
58813         * tests/test-isnanf.c (ASSERT): Likewise.
58814         * tests/test-isnanl.h (ASSERT): Likewise.
58815         * tests/test-ldexpl.c (ASSERT): Likewise.
58816         * tests/test-linked_list.c (ASSERT): Likewise.
58817         * tests/test-linkedhash_list.c (ASSERT): Likewise.
58818         * tests/test-localename.c (ASSERT): Likewise.
58819         * tests/test-lseek.c (ASSERT): Likewise.
58820         * tests/test-mbscasecmp.c (ASSERT): Likewise.
58821         * tests/test-mbscasestr1.c (ASSERT): Likewise.
58822         * tests/test-mbscasestr2.c (ASSERT): Likewise.
58823         * tests/test-mbscasestr3.c (ASSERT): Likewise.
58824         * tests/test-mbscasestr4.c (ASSERT): Likewise.
58825         * tests/test-mbschr.c (ASSERT): Likewise.
58826         * tests/test-mbscspn.c (ASSERT): Likewise.
58827         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
58828         * tests/test-mbspbrk.c (ASSERT): Likewise.
58829         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
58830         * tests/test-mbsrchr.c (ASSERT): Likewise.
58831         * tests/test-mbsspn.c (ASSERT): Likewise.
58832         * tests/test-mbsstr1.c (ASSERT): Likewise.
58833         * tests/test-mbsstr2.c (ASSERT): Likewise.
58834         * tests/test-mbsstr3.c (ASSERT): Likewise.
58835         * tests/test-memchr2.c (ASSERT): Likewise.
58836         * tests/test-memmem.c (ASSERT): Likewise.
58837         * tests/test-open.c (ASSERT): Likewise.
58838         * tests/test-printf-frexp.c (ASSERT): Likewise.
58839         * tests/test-printf-frexpl.c (ASSERT): Likewise.
58840         * tests/test-printf-posix.c (ASSERT): Likewise.
58841         * tests/test-quotearg.c (ASSERT): Likewise.
58842         * tests/test-rbtree_list.c (ASSERT): Likewise.
58843         * tests/test-rbtree_oset.c (ASSERT): Likewise.
58844         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
58845         * tests/test-round1.c (ASSERT): Likewise.
58846         * tests/test-roundf1.c (ASSERT): Likewise.
58847         * tests/test-roundl.c (ASSERT): Likewise.
58848         * tests/test-signbit.c (ASSERT): Likewise.
58849         * tests/test-sleep.c (ASSERT): Likewise.
58850         * tests/test-snprintf-posix.c (ASSERT): Likewise.
58851         * tests/test-snprintf.c (ASSERT): Likewise.
58852         * tests/test-sprintf-posix.c (ASSERT): Likewise.
58853         * tests/test-stat-time.c (ASSERT): Likewise.
58854         * tests/test-strcasestr.c (ASSERT): Likewise.
58855         * tests/test-strerror.c (ASSERT): Likewise.
58856         * tests/test-striconv.c (ASSERT): Likewise.
58857         * tests/test-striconveh.c (ASSERT): Likewise.
58858         * tests/test-striconveha.c (ASSERT): Likewise.
58859         * tests/test-strsignal.c (ASSERT): Likewise.
58860         * tests/test-strstr.c (ASSERT): Likewise.
58861         * tests/test-strtod.c (ASSERT): Likewise.
58862         * tests/test-trunc1.c (ASSERT): Likewise.
58863         * tests/test-trunc2.c (ASSERT): Likewise.
58864         * tests/test-truncf1.c (ASSERT): Likewise.
58865         * tests/test-truncf2.c (ASSERT): Likewise.
58866         * tests/test-truncl.c (ASSERT): Likewise.
58867         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
58868         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
58869         * tests/test-vasnprintf.c (ASSERT): Likewise.
58870         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
58871         * tests/test-vasprintf.c (ASSERT): Likewise.
58872         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
58873         * tests/test-vprintf-posix.c (ASSERT): Likewise.
58874         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
58875         * tests/test-vsnprintf.c (ASSERT): Likewise.
58876         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
58877         * tests/test-wcwidth.c (ASSERT): Likewise.
58878         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
58879         * tests/test-xprintf-posix.c (ASSERT): Likewise.
58880         * tests/test-xvasprintf.c (ASSERT): Likewise.
58881         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
58882         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
58883         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
58884         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
58885         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
58886         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
58887         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
58888         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
58889         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
58890         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
58891         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
58892         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
58893         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
58894         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
58895         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
58896         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
58897         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58898         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58899         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58900         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58901         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58902         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58903         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58904         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58905         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58906         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58907         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58908         * tests/unictype/test-combining.c (ASSERT): Likewise.
58909         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58910         * tests/unictype/test-digit.c (ASSERT): Likewise.
58911         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58912         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58913         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58914         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58915         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58916         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58917         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58918         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58919         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58920         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
58921         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
58922         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
58923         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
58924         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
58925         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
58926         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
58927         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
58928         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
58929         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
58930         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
58931         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
58932         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
58933         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
58934         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
58935         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
58936         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
58937         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
58938         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
58939         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
58940         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
58941         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
58942         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
58943         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
58944         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
58945         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
58946         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
58947         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
58948         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
58949         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
58950         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
58951         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
58952         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
58953         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
58954         Reported by Eric Blake.
58955
58956 2008-04-11  Bruno Haible  <bruno@clisp.org>
58957
58958         * lib/wchar.in.h: Tweak comment.
58959
58960 2008-04-11  Bruno Haible  <bruno@clisp.org>
58961
58962         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
58963         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
58964         gl_COMMON.
58965         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
58966
58967 2008-04-11  Bruno Haible  <bruno@clisp.org>
58968
58969         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
58970
58971 2008-04-11  Simon Josefsson  <simon@josefsson.org>
58972
58973         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
58974         of attempting to use non-existing /dev/*random.  Based on patch
58975         from Adam Strzelecki <ono@java.pl> in
58976         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58977
58978 2008-04-08  Bruno Haible  <bruno@clisp.org>
58979
58980         Add tentative support for emx+gcc.
58981         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58982         * lib/fpurge.c (fpurge): Likewise.
58983         * lib/freadable.c (freadable): Likewise.
58984         * lib/freadahead.c (freadahead): Likewise.
58985         * lib/freading.c (freading): Likewise.
58986         * lib/freadptr.c (freadptr): Likewise.
58987         * lib/freadseek.c (freadptrinc): Likewise.
58988         * lib/fseeko.c (rpl_fseeko): Likewise.
58989         * lib/fseterr.c (fseterr): Likewise.
58990         * lib/fwritable.c (fwritable): Likewise.
58991         * lib/fwriting.c (fwriting): Likewise.
58992         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58993
58994 2008-04-09  Eric Blake  <ebb9@byu.net>
58995
58996         Avoid some autoconf warnings.
58997         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58998         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58999         * m4/afs.m4 (gl_AFS): Likewise.
59000         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59001         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59002         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59003         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59004         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59005         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59006         (AC_CHECK_DECLS_ONCE): Likewise.
59007         Rename file...
59008         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59009         gnulib-tool requires autoconf 2.59 or better.
59010         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59011
59012 2008-04-08  Eric Blake  <ebb9@byu.net>
59013
59014         Use 'git describe --match' if present (added in git 1.5.5).
59015         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59016         if possible.
59017
59018 2008-04-08  Bruno Haible  <bruno@clisp.org>
59019
59020         Add tentative support for OpenServer.
59021         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59022         _ptr, _cnt.
59023         * lib/fpurge.c (fpurge): Likewise.
59024         * lib/freadable.c (freadable): Likewise.
59025         * lib/freadahead.c (freadahead): Likewise.
59026         * lib/freading.c (freading): Likewise.
59027         * lib/freadptr.c (freadptr): Likewise.
59028         * lib/freadseek.c (freadptrinc): Likewise.
59029         * lib/fseeko.c (rpl_fseeko): Likewise.
59030         * lib/fseterr.c (fseterr): Likewise.
59031         * lib/fwritable.c (fwritable): Likewise.
59032         * lib/fwriting.c (fwriting): Likewise.
59033         Reported by Roger Cornelius <rac@tenzing.org> and
59034         Brian K. White <brian@aljex.com>.
59035
59036 2008-04-06  Jim Meyering  <meyering@redhat.com>
59037
59038         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59039
59040 2008-04-06  Bruno Haible  <bruno@clisp.org>
59041
59042         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59043         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59044         * tests/test-printf-posix.sh: Likewise.
59045         * tests/test-vfprintf-posix.sh: Likewise.
59046         * tests/test-vprintf-posix.sh: Likewise.
59047         * tests/test-xprintf-posix.sh: Likewise.
59048
59049 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59050
59051         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59052         hide error from 'ls', needed on OS/2.
59053         Report by Elbert Pol <elbert.pol@gmail.com>.
59054
59055 2008-04-04  Eric Blake  <ebb9@byu.net>
59056
59057         Make test-fseeko.c failures meaningful.
59058         * tests/test-fseeko.c: Print line number on failure.
59059         * tests/test-fseek.c: Likewise.
59060         Reported by Nelson H. F. Beebe.
59061
59062         Improve strtod bug detection check.
59063         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59064         required for Solaris 10.
59065         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59066
59067 2008-04-04  Bruno Haible  <bruno@clisp.org>
59068
59069         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59070         by m4/setenv.m4.
59071
59072 2008-04-03  Eric Blake  <ebb9@byu.net>
59073
59074         Ensure sane .version contents.
59075         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59076         version string.
59077         * build-aux/git-version-gen: Improve documentation.
59078
59079         Make GNU make output nicer.
59080         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59081         MAKECMDGOALS to enforce message for all command line targets.  Set
59082         srcdir for use in maint.mk.
59083
59084         Another maintainer tweak.
59085         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59086         a target that regenerates version.
59087
59088 2008-04-03  Jim Meyering  <meyering@redhat.com>
59089
59090         vc-list-files: don't cause coreutils "make po-check" failure
59091         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59092
59093 2008-04-03  Eric Blake  <ebb9@byu.net>
59094
59095         Allow VPATH usage of vc-list-files.
59096         * build-aux/vc-list-files (scriptversion): Add timestamp.
59097         (options): Add --help, --version, -C.
59098         (CVS): Support installed cvsu.
59099
59100 2008-04-02  Bruno Haible  <bruno@clisp.org>
59101
59102         Avoid some "statement with no effect" warnings from gcc.
59103         * tests/test-wctype.c (main): Explicitly ignore unused values.
59104         Reported by Jim Meyering.
59105
59106 2008-04-02  Jim Meyering  <meyering@redhat.com>
59107
59108         Avoid some warnings from "gcc -Wshadow".
59109         * tests/test-frexp.c (exp): Define to a different identifier.
59110         * tests/test-frexpl.c (exp): Likewise.
59111
59112 2008-04-03  Jim Meyering  <meyering@redhat.com>
59113
59114         bootstrap: remove dangling *.[ch] symlinks from lib
59115         * build-aux/bootstrap [dangling symlink removal]: Move find's
59116         -depth option to precede all others, to avoid a warning.
59117         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59118
59119 2008-04-02  Bruno Haible  <bruno@clisp.org>
59120
59121         Avoid some warnings from "gcc -Wshadow".
59122         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59123         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59124         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59125         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59126         Reported by Jim Meyering.
59127
59128 2008-04-01  Bruno Haible  <bruno@clisp.org>
59129
59130         Fix test to work on IRIX 6.5 with cc.
59131         * tests/test-math.c (numeric_equal): New function.
59132         (main): Use it.
59133
59134 2008-04-01  Bruno Haible  <bruno@clisp.org>
59135
59136         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59137
59138 2008-04-01  Bruno Haible  <bruno@clisp.org>
59139
59140         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59141         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59142         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59143         (Depends-on): Remove math.
59144
59145         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59146         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59147         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59148         (Depends-on): Remove math.
59149
59150         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59151         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59152         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59153         (Depends-on): Remove math.
59154         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59155         (Depends-on): Remove math.
59156
59157         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59158         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59159         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59160         (Depends-on): Remove math.
59161         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59162         (Depends-on): Remove math.
59163
59164         * tests/test-round1.c: Include nan.h.
59165         (main): Use NaNd instead of NAN.
59166         * modules/round-tests (Files): Add tests/nan.h.
59167
59168         * tests/test-trunc1.c: Include nan.h.
59169         (main): Use NaNd instead of NAN.
59170         * modules/trunc-tests (Files): Add tests/nan.h.
59171
59172         * tests/test-roundf1.c: Include nan.h.
59173         (main): Use NaNf instead of NAN.
59174         * modules/roundf-tests (Files): Add tests/nan.h.
59175
59176         * tests/test-truncf1.c: Include nan.h.
59177         (main): Use NaNf instead of NAN.
59178         * modules/truncf-tests (Files): Add tests/nan.h.
59179
59180         * tests/test-ceilf1.c: Include nan.h.
59181         (main): Use NaNf instead of NAN.
59182         * modules/ceilf-tests (Files): Add tests/nan.h.
59183
59184         * tests/test-floorf1.c: Include nan.h.
59185         (main): Use NaNf instead of NAN.
59186         * modules/floorf-tests (Files): Add tests/nan.h.
59187
59188         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59189         (main): Use NaNf instead of NAN.
59190         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59191
59192         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59193         (main): Use NaNd instead of NAN.
59194         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59195
59196         * tests/test-frexp.c: Include nan.h.
59197         (main): Use NaNd instead of NAN.
59198         * modules/frexp-tests (Files): Add tests/nan.h.
59199
59200         * lib/isnan.c: Don't include <math.h>.
59201         (FUNC): Don't use NAN macro.
59202         * modules/isnand-nolibm (Depends-on): Remove math.
59203         * modules/isnanf-nolibm (Depends-on): Remove math.
59204         * modules/isnanl (Depends-on): Remove math.
59205         * modules/isnanl-nolibm (Depends-on): Remove math.
59206
59207         * tests/nan.h: New file.
59208
59209 2008-04-01  Eric Blake  <ebb9@byu.net>
59210
59211         Fix typos.
59212         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59213         values to be the right type.
59214
59215         For now, cater to gnulib strtod inaccuracies.
59216         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59217         fractional results.  While not as nice from a QoI perspective, it
59218         is a quicker patch than correctly implementing decimal to binary
59219         rounding.
59220
59221 2008-03-31  Eric Blake  <ebb9@byu.net>
59222
59223         Guarantee a definition of NAN.
59224         * lib/math.in.h (NAN): Define if missing.
59225         * tests/test-math.c (main): Test it.
59226         * doc/posix-headers/math.texi (math.h): Document this.
59227         * lib/isnan.c (rpl_isnand): Use it.
59228         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59229         * tests/test-floorf1.c (NaN): Likewise.
59230         * tests/test-frexp.c (NaN): Likewise.
59231         * tests/test-isnand.c (NaN): Likewise.
59232         * tests/test-isnanf.c (NaN): Likewise.
59233         * tests/test-round1.c (NaN): Likewise.
59234         * tests/test-roundf1.c (NaN): Likewise.
59235         * tests/test-snprintf-posix.h (NaN): Likewise.
59236         * tests/test-sprintf-posix.h (NaN): Likewise.
59237         * tests/test-trunc1.c (NaN): Likewise.
59238         * tests/test-truncf1.c (NaN): Likewise.
59239         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59240         * tests/test-vasprintf-posix.c (NaN): Likewise.
59241         * modules/isnand-nolibm (Depends-on): Add math.
59242         * modules/isnanf-nolibm (Depends-on): Likewise.
59243         * modules/isnanl (Depends-on): Likewise.
59244         * modules/isnanl-nolibm (Depends-on): Likewise.
59245         * modules/snprintf-posix-tests (Depends-on): Likewise.
59246         * modules/sprintf-posix-tests (Depends-on): Likewise.
59247         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59248         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59249         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59250         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59251
59252 2008-03-31  Bruno Haible  <bruno@clisp.org>
59253
59254         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59255         * doc/posix-functions/strtod.texi: Likewise.
59256
59257 2008-03-31  Bruno Haible  <bruno@clisp.org>
59258
59259         * tests/test-strtod.c (main): Don't use C99 syntax.
59260
59261 2008-03-31  Bruno Haible  <bruno@clisp.org>
59262
59263         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59264         Reported by Eric Blake.
59265
59266 2008-03-31  Jim Meyering  <meyering@redhat.com>
59267
59268         Don't compare actual signbit return values.
59269         * tests/test-strtod.c (main): Rather, compare only their
59270         zero/non-zero nature.
59271
59272 2008-03-31  Eric Blake  <ebb9@byu.net>
59273
59274         More strtod documentation.
59275         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59276         failures as distinct bugs.
59277
59278 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59279
59280         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59281         Problem reported by Erik Benada in
59282         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59283
59284 2008-03-30  Bruno Haible  <bruno@clisp.org>
59285
59286         * tests/test-strtod.c: Add comments about which assertion fails on which
59287         platform.
59288         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59289
59290 2008-03-30  Eric Blake  <ebb9@byu.net>
59291
59292         Test signbit behavior on zeros.
59293         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59294         (test_signbitd, test_signbitl): Likewise.
59295
59296         More strtod touchups.
59297         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59298         sign of negative underflow, for now.  Use .5, not .1.
59299         * doc/posix-functions/strtod.texi (strtod): Mention these
59300         limitations.
59301         Reported by Jim Meyering.
59302
59303 2008-03-30  Bruno Haible  <bruno@clisp.org>
59304
59305         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59306         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59307
59308 2008-03-30  Bruno Haible  <bruno@clisp.org>
59309
59310         Avoid failure when attempting to return empty iconv results on some
59311         platforms.
59312         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59313         allocation, don't report ENOMEM when the resulting string is empty.
59314
59315 2008-03-30  Bruno Haible  <bruno@clisp.org>
59316
59317         Fix buffer overrun.
59318         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59319         Don't consider the width for tmp_length. Check count against tmp_length
59320         before doing the padding. Ensure enough allocation during padding.
59321
59322 2008-03-30  Eric Blake  <ebb9@byu.net>
59323
59324         strtod touchups.
59325         * lib/strtod.c (strtod): Avoid compiler warnings.
59326         Reported by Jim Meyering.
59327
59328 2008-03-30  Bruno Haible  <bruno@clisp.org>
59329
59330         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59331         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59332         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59333         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59334         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59335         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59336         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59337         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59338
59339         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59340         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59341         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59342         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59343         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59344         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59345         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59346         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59347
59348         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59349         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59350         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59351         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59352         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59353         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59354         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59355         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59356
59357         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59358         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59359
59360         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59361         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59362
59363         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59364         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59365
59366         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59367         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59368         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59369
59370         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59371         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59372         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59373
59374         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59375         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59376         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59377
59378         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59379         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59380         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59381
59382         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59383         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59384         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59385         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59386         (Depends-on): Add EOVERFLOW.
59387         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59388         (Depends-on): Add EOVERFLOW.
59389         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59390         (Depends-on): Add EOVERFLOW.
59391         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59392         (Depends-on): Add EOVERFLOW.
59393         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59394         (Depends-on): Add EOVERFLOW.
59395         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59396         (Depends-on): Add EOVERFLOW.
59397         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59398         (Depends-on): Add EOVERFLOW.
59399         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59400         (Depends-on): Add EOVERFLOW.
59401
59402         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59403         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59404         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59405
59406         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59407         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59408         * modules/snprintf (Depends-on): Add EOVERFLOW.
59409
59410         * lib/poll.c (EOVERFLOW): Remove fallback.
59411         * modules/poll (Depends-on): Add EOVERFLOW.
59412
59413         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59414         * modules/getugroups (Depends-on): Add EOVERFLOW.
59415
59416         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59417         * modules/getdelim (Depends-on): Add EOVERFLOW.
59418
59419         * lib/ftell.c (EOVERFLOW): Remove fallback.
59420         * modules/ftell (Depends-on): Add EOVERFLOW.
59421
59422         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59423         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59424         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59425
59426         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59427
59428         * modules/EOVERFLOW-tests: New file.
59429         * tests/test-EOVERFLOW.c: New file.
59430
59431         * modules/EOVERFLOW: New file.
59432         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59433
59434 2008-03-30  Bruno Haible  <bruno@clisp.org>
59435
59436         Fix bug introduced on 2007-06-10.
59437         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59438         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59439
59440 2008-03-30  Bruno Haible  <bruno@clisp.org>
59441
59442         Improve freadseek's efficiency after ungetc.
59443         * lib/freadseek.c: Include freadahead.h.
59444         (freadptrinc): New function, extracted from freadseek.
59445         (freadseek): Use it in a loop. Use freadahead to determine the number
59446         of loop iterations.
59447         * modules/freadseek (Depends-on): Add freadahead.
59448         (configure.ac): Require AC_C_INLINE.
59449
59450 2008-03-30  Bruno Haible  <bruno@clisp.org>
59451
59452         * lib/freadseek.c (freadseek): Don't ignore the return value of
59453         freadptr.
59454
59455 2008-03-29  Eric Blake  <ebb9@byu.net>
59456
59457         Add hex float support.
59458         * modules/strtod (Depends-on): Add c-ctype.
59459         (Link): Mention POW_LIB.
59460         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59461         whitespace between 'e' and exponent.
59462         * tests/test-strtod.c (main): Enable hex float tests.
59463         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59464         now provides.
59465
59466         Document various strtod bugs, with some fixes.
59467         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59468         "-0x", "inf", "nan", and hex constants.
59469         * doc/posix-functions/atof.texi (atof): Likewise.
59470         * modules/stdlib (Makefile.am): Support strtod.
59471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59472         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59473         detect additional strtod bugs.
59474         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59475         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59476         bool where appropriate.  Parse 'inf' and 'nan'.
59477         * tests/test-strtod.c: New file.
59478         * modules/strtod (Depends-on): Add stdbool, stdlib.
59479         (configure.ac): Turn on module indicator.
59480         * modules/strtod-tests: New module.
59481
59482 2008-03-29  Eric Blake  <ebb9@byu.net>
59483
59484         Fix ftell on mingw.
59485         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59486         * modules/ftell-tests (Depends-on): Add binary-io.
59487         * modules/ftello-tests (Depends-on): Likewise.
59488         * tests/test-ftell.c (main): Enhance test to cover behavior after
59489         ungetc.  Enforce binary mode.
59490         * tests/test-ftello.c (main): Likewise.
59491
59492         Pass test-freadseek on cygwin.
59493         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59494         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59495         ungetc buffer.
59496
59497         * tests/test-fflush2.c (main): Fix typo.
59498
59499 2008-03-29  Bruno Haible  <bruno@clisp.org>
59500
59501         * tests/test-fflush2.c (main): Temporarily disable the contents of
59502         this test.
59503         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59504         Reported by Eric Blake.
59505
59506 2008-03-28  Simon Josefsson  <simon@josefsson.org>
59507
59508         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
59509         (GC_SHA224_DIGEST_SIZE): Add.
59510
59511         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
59512         (gc_hash_digest_length): Likewise.
59513         (gc_hash_buffer): Likewise.
59514
59515 2008-03-25  Bruno Haible  <bruno@clisp.org>
59516
59517         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
59518         detail which gettext release to use.
59519         Reported by Simon Josefsson.
59520
59521 2008-03-26  Jim Meyering  <meyering@redhat.com>
59522
59523         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
59524         * modules/gnumakefile (clean-GNUmakefile): Also, use
59525         test ... && ... || : syntax rather than if-then ... fi.
59526
59527         gnumakefile: Don't double-quote-expand $(VPATH) value.
59528         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
59529
59530 2008-03-24  Eric Blake  <ebb9@byu.net>
59531
59532         Alter GNUmakefile to install into top directory.
59533         * modules/maintainer-makefile: Split, and add dependency...
59534         * modules/gnumakefile: to this new module.
59535         * build-aux/GNUmakefile: Move...
59536         * top/GNUmakefile: ...here.
59537         * build-aux/maint.mk: Move...
59538         * top/maint.mk: ...here.
59539         * MODULES.html.sh (Support for maintaining...): Document new
59540         module.
59541
59542 2008-03-23  Bruno Haible  <bruno@clisp.org>
59543
59544         * gnulib-tool: New options --vc-files, --no-vc-files.
59545         (func_usage): Document them.
59546         (vc_files): New variable.
59547         (func_import): Consider vc_files.
59548         (func_create_testdir): Set vc_files to empty.
59549         Suggested by Jim Meyering and Karl Berry.
59550
59551 2008-03-23  Bruno Haible  <bruno@clisp.org>
59552
59553         Fix regex compilation error on HP-UX 11.
59554         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
59555         * modules/regex (Files): Add m4/mbstate_t.m4.
59556         Reported by Ton Voon <ton.voon@altinity.com>.
59557
59558 2008-03-23  Bruno Haible  <bruno@clisp.org>
59559
59560         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
59561
59562 2008-03-23  Eric Blake  <ebb9@byu.net>
59563             Bruno Haible  <bruno@clisp.org>
59564
59565         Install files from top/ in the destination directory.
59566         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
59567         augmentation also for the files from top/.
59568         (func_import, func_create_testdir): Rewrite file names:
59569         top/filename -> filename.
59570
59571 2008-03-23  Bruno Haible  <bruno@clisp.org>
59572
59573         Tweak "gnulib --version" output.
59574         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
59575
59576 2008-03-23  Bruno Haible  <bruno@clisp.org>
59577
59578         Tweak "gnulib --version" output.
59579         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
59580         rather than contents of ChangeLog, when possible.
59581
59582 2008-03-21  Eric Blake  <ebb9@byu.net>
59583
59584         More --version tweaks.
59585         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
59586         date of last ChangeLog entry.
59587
59588 2008-03-21  Jim Meyering  <meyering@redhat.com>
59589
59590         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
59591
59592 2008-03-20  Eric Blake  <ebb9@byu.net>
59593
59594         VPATH fix.
59595         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
59596
59597 2008-03-20  Simon Josefsson  <simon@josefsson.org>
59598
59599         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
59600         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
59601
59602 2008-03-20  Eric Blake  <ebb9@byu.net>
59603
59604         Sync GNUmakefile with coreutils.
59605         * build-aux/GNUmakefile (have-Makefile): Rename...
59606         (_have-Makefile): ...to this, for namespace consideration.
59607         (GNUmakefile.cfg): Include, if present.
59608         (_autoreconf): Define a default.
59609         (_is-dist-target): New rule for rebuilds to pick up intra-release
59610         version.
59611         (maint-cfg.mk): Rename...
59612         (cfg.mk): ...to this.
59613
59614 2008-03-18  Jim Meyering  <meyering@redhat.com>
59615
59616         New script and module: mktempd
59617         * MODULES.html.sh (maint+release support): Add mktempd.
59618         * build-aux/mktempd: New file.
59619         * modules/mktempd: New file.
59620
59621 2008-03-15  Jim Meyering  <meyering@redhat.com>
59622
59623         Undo last change.
59624         * lib/sha1.c, lib/md5.c: 63 != ~63.
59625         Reported by Andreas Schwab.
59626
59627         sha1.c, md5.c: Hoist a redundant expression.
59628         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
59629         "ctx->buflen" only once, before calling *_process_block.
59630         * lib/md5.c (md5_process_bytes): Likewise.
59631
59632 2008-03-14  Eric Blake  <ebb9@byu.net>
59633
59634         Bump copyright year in files generated by gnulib-tool.
59635         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
59636         gnulib-tool, rather than hard-coding it.
59637
59638         Fix 'gnulib-tool --version' output to work with git.
59639         * gnulib-tool (func_gnulib_dir): New function, extracted from...
59640         (startup): ...here.
59641         (func_version): Use it to invoke git-version-gen, rather than
59642         relying on CVS keyword expansion.  Modernize wording.
59643         (cvsdatestamp, last_checkin_date, version): Kill unused
59644         variables.
59645
59646 2008-03-12  Jim Meyering  <meyering@redhat.com>
59647
59648         Recognize optional cast of the argument to free.
59649         * build-aux/useless-if-before-free: Update regexps.
59650
59651         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
59652
59653 2008-03-11  Bruno Haible  <bruno@clisp.org>
59654
59655         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
59656         by a single package.
59657         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
59658         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
59659         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
59660         Reported by Sam Steingold <sds@gnu.org>.
59661
59662 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
59663
59664         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
59665         repositories.
59666
59667 2008-03-11  Bruno Haible  <bruno@clisp.org>
59668
59669         Avoid conflicts between local macro definitions.
59670         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
59671         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
59672
59673 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
59674             Bruno Haible  <bruno@clisp.org>
59675
59676         Make va_copy work with some version of xlc on AIX 5.1.
59677         * lib/stdarg.in.h: New file.
59678         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
59679         On AIX, use a <stdarg.h> file substitute.
59680         * modules/stdarg (Files): Add lib/stdarg.in.h.
59681         (Depends-on): Add include_next.
59682         (Makefile.am): Build a stdarg.h substitute if requested.
59683         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
59684
59685 2008-03-10  Bruno Haible  <bruno@clisp.org>
59686
59687         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
59688         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59689         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59690
59691 2008-03-10  Bruno Haible  <bruno@clisp.org>
59692
59693         * modules/stdlib (Depends-on): Add include_next, remove
59694         absolute-header.
59695
59696 2008-03-09  Bruno Haible  <bruno@clisp.org>
59697
59698         * lib/freadahead.h (freadahead): Document more precisely.
59699         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
59700         the sum of both buffer sizes.
59701         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
59702         * NEWS: Document the change.
59703
59704 2008-03-09  Bruno Haible  <bruno@clisp.org>
59705
59706         Extend freadptr to return also the buffer size.
59707         * lib/freadptr.h (freadptr): Add sizep argument.
59708         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
59709         (freadptr): Add sizep argument. Determine buffer size like freadahead
59710         does.
59711         * tests/test-freadptr.c: Don't include freadahead.h.
59712         (main): Adapt for new calling convention of freadptr.
59713         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
59714         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
59715         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
59716         tests/test-freadptr2.sh.
59717         (Depends): Remove freadahead.
59718         (TESTS): Add test-freadptr2.sh.
59719         (check_PROGRAMS): Add test-freadptr2.
59720
59721 2008-03-09  Bruno Haible  <bruno@clisp.org>
59722
59723         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
59724         Report and solution by Simon Josefsson.
59725
59726 2008-03-06  Bruno Haible  <bruno@clisp.org>
59727
59728         Make fflush after ungetc work on BSD platforms.
59729         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
59730         * tests/test-fflush2.c: New file.
59731         * tests/test-fflush2.sh: New file.
59732         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
59733         tests/test-fflush2.c.
59734         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
59735         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
59736
59737 2008-03-06  Eric Blake  <ebb9@byu.net>
59738
59739         Likewise for ftello.
59740         * modules/ftello (Dependencies): Add extensions.
59741         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
59742
59743 2008-03-06  Bruno Haible  <bruno@clisp.org>
59744
59745         * modules/fseeko (Dependencies): Add extensions.
59746         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
59747         Needed on glibc systems.
59748
59749 2008-03-06  Bruno Haible  <bruno@clisp.org>
59750
59751         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
59752         email address.
59753         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59754
59755 2008-03-06  Bruno Haible  <bruno@clisp.org>
59756
59757         * users.txt: Add libgnupdf.
59758
59759 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
59760
59761         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
59762         (Header File Substitutes, Function Substitutes,
59763         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
59764         (Build robot for gnulib): Fix typo.
59765
59766 2008-03-06  Bruno Haible  <bruno@clisp.org>
59767
59768         * doc/gnulib-tool.texi (VCS Issues): Small updates.
59769         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
59770
59771 2008-03-06  Bruno Haible  <bruno@clisp.org>
59772
59773         * doc/func.texi: New file, extracted from doc/gnulib.texi.
59774         * doc/gnulib.texi: Include it.
59775
59776 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59777
59778         * modules/func (License): Change license to unlimited; there was
59779         no LGPL parts in the module anyway.
59780
59781 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59782
59783         * modules/__func__: Renamed to modules/func.
59784         * modules/__func__-tests: Renamed to modules/func-tests.
59785         * tests/test-__func__.c: Renamed to tests/test-func.c.
59786         * m4/__func__.m4: Renamed to m4/func.m4.
59787         * doc/gnulib.texi (__func__): Section renamed to func.
59788         Suggested by Eric Blake <ebb9@byu.net>.
59789
59790 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59791
59792         * doc/gnulib.texi (__func__): Use C99 terminology when talking
59793         about __func__.  Make example self-contained.  Suggested by Eric
59794         Blake <ebb9@byu.net>.
59795
59796         * tests/test-__func__.c (main): Avoid extraneous () around __func.
59797         Suggested by Eric Blake <ebb9@byu.net>.
59798
59799 2008-03-06  Simon Josefsson  <simon@josefsson.org>
59800
59801         * modules/__func__: New file.
59802         * modules/__func__-tests: New file.
59803         * tests/test-__func__.c: New file.
59804         * m4/__func__.m4: New file.
59805         * doc/gnulib.texi (__func__): Document __func__ module.
59806
59807 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59808
59809         * modules/byteswap (License): Re-license as LGPLv2+.
59810
59811 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59812
59813         * doc/Makefile: Add pdf target.
59814
59815 2008-03-05  Simon Josefsson  <simon@josefsson.org>
59816
59817         * modules/inline (License): Use 'unlimited', since there are only
59818         *.m4 files in this module.
59819
59820 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59821             Bruno Haible  <bruno@clisp.org>
59822
59823         Add support for HP C 7.1 on OpenVMS 8.3.
59824         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
59825
59826 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59827
59828         Update VMS specifics.
59829         * lib/getopt.c [VMS]: Remove include of unixlib.h.
59830
59831 2008-03-02  Jim Meyering  <meyering@redhat.com>
59832
59833         Remove the last dependency on the "free" module.
59834         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
59835         Reported by Bob Proulx.
59836
59837         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
59838
59839         Remove useless "if" tests before free.  Deprecate "free" module.
59840         * doc/posix-functions/free.texi: Mention that this
59841         module is no longer useful.
59842         * modules/free (Notice): Say this module is obsolete.
59843         * modules/readutmp (Depends-on): Remove free.
59844         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
59845         * lib/putenv.c (putenv): Likewise.
59846         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
59847         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
59848         * tests/test-c-strcasestr.c (main): Likewise.
59849         * tests/test-c-strstr.c (main): Likewise.
59850         * tests/test-mbscasestr1.c (main): Likewise.
59851         * tests/test-mbscasestr2.c (main): Likewise.
59852         * tests/test-mbsstr1.c (main): Likewise.
59853         * tests/test-mbsstr2.c (main): Likewise.
59854         * tests/test-memmem.c (main): Likewise.
59855         * tests/test-strcasestr.c (main): Likewise.
59856         * tests/test-striconv.c (main): Likewise.
59857         * tests/test-striconveh.c (main): Likewise.
59858         * tests/test-striconveha.c (main): Likewise.
59859         * tests/test-strstr.c (main): Likewise.
59860
59861         * build-aux/git-version-gen: Adjust a comment and the Usage string.
59862
59863         bootstrap: sync from coreutils again
59864         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
59865
59866 2008-03-01  Jim Meyering  <meyering@redhat.com>
59867
59868         bootstrap: sync from coreutils
59869         * build-aux/bootstrap (update_po_files): Copy a .po file into place
59870         also when the target doesn't exist.
59871
59872 2008-03-01  Eric Blake  <ebb9@byu.net>
59873
59874         Fix bugs in last patch.
59875         * lib/memchr2.c (memchr2): Fix typo.
59876         * tests/test-memchr2.c: Test previous bug, and don't use GNU
59877         extension.
59878         Reported by Bruce Korb.
59879
59880         New module 'memchr2'.
59881         * modules/memchr2: New file.
59882         * modules/memchr2-tests: Likewise.
59883         * lib/memchr2.h: Likewise.
59884         * lib/memchr2.c: Likewise, based on memchr.c.
59885         * tests/test-memchr2.c: New test.
59886         * MODULES.html.sh (String handling): Add memchr2.
59887
59888 2008-02-29  Bruno Haible  <bruno@clisp.org>
59889
59890         * modules/freadseek-tests: New file.
59891         * tests/test-freadseek.sh: New file.
59892         * tests/test-freadseek.c: New file.
59893
59894         New module 'freadseek'.
59895         * modules/freadseek: New file.
59896         * lib/freadseek.h: New file.
59897         * lib/freadseek.c: New file.
59898         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59899
59900 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59901
59902         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59903         wydawca.
59904
59905         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59906         program_invocation_name and program_invocation_short_name are
59907         present.
59908
59909 2008-02-28  Bruno Haible  <bruno@clisp.org>
59910
59911         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59912         * tests/test-freadptr.sh: Also test non-seekable stdin.
59913
59914 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59915
59916         * build-aux/bootstrap (source_base, m4_base)
59917         (doc_base, tests_base): New variables.
59918         (gnulib_tool_options): Do not hardcode base directories, use
59919         the above variables instead.
59920
59921 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
59922
59923         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
59924
59925 2008-02-28  Bruno Haible  <bruno@clisp.org>
59926
59927         * modules/freadptr-tests: New file.
59928         * tests/test-freadptr.sh: New file.
59929         * tests/test-freadptr.c: New file.
59930
59931         New module 'freadptr'.
59932         * modules/freadptr: New file.
59933         * lib/freadptr.h: New file.
59934         * lib/freadptr.c: New file.
59935         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
59936
59937 2008-02-26  Karl Berry  <karl@freefriends.org>
59938
59939         Sync from Libtool:
59940         * libltdl/argz.c (argz_add, argz_count): New functions.
59941         * libltdl/argz.in.h: Declare them.
59942         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
59943
59944 2008-02-22  Bruno Haible  <bruno@clisp.org>
59945
59946         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
59947         is a pointer type.  Needed for HP-UX 10.
59948         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
59949         * doc/posix-functions/gmtime_r.texi: Likewise.
59950         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59951
59952 2008-02-24  Bruno Haible  <bruno@clisp.org>
59953
59954         * modules/environ-tests: New file.
59955         * tests/test-environ.c: New file.
59956
59957         New module 'environ'.
59958         * modules/environ: New file.
59959         * lib/unistd.in.h (environ): New declaration.
59960         * m4/environ.m4: New file.
59961         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
59962         after use.
59963         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
59964         HAVE_DECL_ENVIRON.
59965         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
59966         HAVE_DECL_ENVIRON.
59967         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
59968         wrong claim that 'environ' is missing on some systems.
59969         * modules/execute (Depends-on): Add environ.
59970         * lib/execute.c (environ): Remove fallback declaration.
59971         * modules/pipe (Depends-on): Add environ.
59972         * lib/pipe.c (environ): Remove fallback declaration.
59973         * modules/setenv (Depends-on): Add environ.
59974         * lib/setenv.c (environ): Remove fallback declaration.
59975         * modules/unsetenv (Depends-on): Add environ.
59976         * lib/unsetenv.c (environ): Remove fallback declaration.
59977         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59978         m4/environ.m4.
59979         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59980         (gl_PREREQ_UNSETENV): Likewise.
59981
59982 2008-02-24  Bruno Haible  <bruno@clisp.org>
59983
59984         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59985
59986 2008-02-20  Bob Proulx  <bob@proulx.com>
59987
59988         Enable use of older two part flavor 'git describe'.
59989         * build-aux/git-version-gen: If using the older two part flavor of
59990         git version then recreate the third part now present in the
59991         newer three part flavor of git describe.
59992
59993 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59994
59995         * lib/fts.c (fts_build): Typo correction to comment.
59996
59997 2008-02-17  Bruno Haible  <bruno@clisp.org>
59998
59999         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60000         generating no-op conflicts.
60001
60002 2008-02-17  Bruno Haible  <bruno@clisp.org>
60003
60004         Speed up by 10%.
60005         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60006         result_entries, rather than an index-based loop.
60007
60008 2008-02-17  Bruno Haible  <bruno@clisp.org>
60009
60010         Speed up by 25%.
60011         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60012         'hashcode_cached'.
60013         (entry_create): New function.
60014         (entry_hashcode): Use the cached hashcode if possible.
60015         (read_changelog_file, try_split_merged_entry): Use entry_create.
60016
60017 2008-02-17  Bruno Haible  <bruno@clisp.org>
60018
60019         Speed up from O(n^2) to O(n) for long ChangeLog files.
60020         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60021         (read_changelog_file): Change implementation of entries_reversed list
60022         to rbtreehash.
60023         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60024
60025 2008-02-17  Bruno Haible  <bruno@clisp.org>
60026
60027         New option --split-merged-entry.
60028         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60029         (find_paragraph_end, try_split_merged_entry): New functions.
60030         (long_options): Add option --split-merged-entry.
60031         (usage): Document option --split-merged-entry.
60032         (main): Implement option --split-merged-entry.
60033         Reported by Eric Blake.
60034
60035 2008-02-17  Bruno Haible  <bruno@clisp.org>
60036
60037         * lib/git-merge-changelog.c: Include c-strstr.h.
60038         (main): Support the "git pull --rebase" situation.
60039         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60040         Reported by Eric Blake.
60041
60042 2008-02-16  Eric Blake  <ebb9@byu.net>
60043
60044         Avoid doubling \ in common case of "c-maybe" quoting style.
60045         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60046         eliding outer quotes.
60047         * lib/quotearg.h: Document this.
60048         * tests/test-quotearg.c (result_strings, inputs, results_g)
60049         (flag_results, locale_results): Test it by adding a new string to
60050         each test group.
60051         (compare_strings): Test new string.
60052
60053 2008-02-13  Eric Blake  <ebb9@byu.net>
60054
60055         Avoid trigraph quoting in default output.
60056         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60057         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60058         unless explicitly requested.
60059         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60060
60061 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60062
60063         Don't rely on signed integer overflowing to negative value.
60064         * lib/getugroups.c (getugroups): Include <limits.h>.
60065         Instead, compare against INT_MAX, and increment only if the test passes.
60066
60067 2008-02-13  Jim Meyering  <meyering@redhat.com>
60068         and Eric Blake  <ebb9@byu.net>
60069
60070         Avoid shadowing warning and compile errors on Linux.
60071         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60072         forwarding macros on Linux.
60073         (dcgettext): Define a stub, for Linux.
60074         (results_g, main): Avoid warnings.
60075
60076 2008-02-12  Eric Blake  <ebb9@byu.net>
60077
60078         Silence warning in last patch.
60079         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60080
60081         Quotearg part 4: add tests, fix c-maybe colon quoting.
60082         * lib/quotearg.h: Improve documentation.
60083         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60084         escapes when adding outer quotes.  When quoting trigraphs, use
60085         valid C notation.  When quoting NUL, omit extra characters if next
60086         character is not digit.  Alter prototype.
60087         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60088         callers.
60089         * modules/quotearg-tests: New module.
60090         * tests/test-quotearg.c: New test.
60091
60092 2008-02-07  Eric Blake  <ebb9@byu.net>
60093
60094         Quotearg part 3: add flag to control outer quote elision.
60095         * lib/quotearg.h (c_maybe_quoting_style): New style.
60096         (enum quoting_flags): Better documentation of flags.
60097         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60098         c-maybe style.
60099         (quotearg_buffer_restyled): Handle new flag to elide outer
60100         quotes.
60101
60102         Quotearg part 2: add flag that can control NUL elision.
60103         * lib/quotearg.h (set_quoting_flags): New prototype.
60104         * lib/quotearg.c (struct quoting_options): Add flag field.
60105         (set_quoting_flags): New function.
60106         (quotearg_buffer_restyled): Add flags parameter.
60107         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60108         (quotearg_n_options): Set the flag, since length cannot be
60109         returned.
60110         (quoting_options_from_style): Default flags correctly.
60111
60112         Quotearg part 1: more wrappers, restore quotearg_char state.
60113         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60114         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60115         (quotearg_colon_mem): New wrappers.
60116         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60117         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60118         functions.
60119         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60120         (quotearg_colon_mem): New functions.
60121
60122 2008-02-11  Bruno Haible  <bruno@clisp.org>
60123
60124         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60125         library in the current directory: it does not work with parallel make.
60126         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60127
60128 2008-02-11  Bruno Haible  <bruno@clisp.org>
60129
60130         * .gitattributes: New file.
60131
60132 2008-02-11  Jim Meyering  <meyering@redhat.com>
60133
60134         useless-if-before-free: Fix reversed exit values.
60135         * build-aux/useless-if-before-free: Use correct values
60136         for EXIT_MATCH and EXIT_NO_MATCH.
60137
60138         * build-aux/useless-if-before-free: Close stdout carefully.
60139
60140 2008-02-10  Bruno Haible  <bruno@clisp.org>
60141
60142         New module 'git-merge-changelog'.
60143         * modules/git-merge-changelog: New file.
60144         * lib/git-merge-changelog.c: New file.
60145
60146 2008-02-10  Jim Meyering  <meyering@redhat.com>
60147
60148         useless-if-before-free: New option: --list (-l).
60149
60150         useless-if-before-free: Don't exit immediately upon open failure.
60151         * build-aux/useless-if-before-free: Exit 2 for errors.
60152         Upon failure to open a file, don't exit immediately.
60153         Rather, just warn and continue with any remaining files.
60154
60155 2008-02-10  Bruno Haible  <bruno@clisp.org>
60156
60157         New abstract list operation 'node_set_value'.
60158         * lib/gl_list.h (gl_list_node_set_value): New function.
60159         (struct gl_list_implementation): New field node_set_value.
60160         * lib/gl_list.c (gl_list_node_set_value): New function.
60161         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60162         (gl_array_list_implementation): Update.
60163         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60164         (gl_carray_list_implementation): Update.
60165         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60166         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60167         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60168         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60169         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60170         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60171         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60172         Update.
60173         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60174         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60175         (gl_sublist_list_implementation): Update.
60176
60177 2008-02-10  Bruno Haible  <bruno@clisp.org>
60178
60179         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60180         Needed when ELEMENT is #defined to 'some_type *'.
60181
60182 2008-02-10  Jim Meyering  <meyering@redhat.com>
60183
60184         New script and module: useless-if-before-free
60185         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60186         * build-aux/useless-if-before-free: New file.
60187         * modules/useless-if-before-free: New file.
60188
60189         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60190
60191         xstrtol_error: Fix typo.
60192         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60193         s/exit_failure/exit_status/.
60194
60195 2008-02-09  Jim Meyering  <meyering@redhat.com>
60196
60197         New script and module: gitlog-to-changelog
60198         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60199         * modules/gitlog-to-changelog: New file.
60200         * build-aux/gitlog-to-changelog: New file.
60201
60202 2008-02-08  Jim Meyering  <meyering@redhat.com>
60203
60204         Avoid two "parameter unused" warnings.
60205         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60206         Mark "st" as used.
60207
60208         Use "git COMMAND", not "git-COMMAND".
60209         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60210         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60211         * build-aux/git-version-gen: Use "git status", not "git-status".
60212
60213 2008-02-07  Bruno Haible  <bruno@clisp.org>
60214
60215         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60216         Avoids a crash on Windows Vista.
60217         Reported by Adam Strzelecki <ono@java.pl> via
60218         Simon Josefsson <simon@josefsson.org>.
60219
60220 2008-02-06  Bruno Haible  <bruno@clisp.org>
60221
60222         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60223         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60224         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60226         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60227         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60228         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60229         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60230         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60231         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60232         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60233         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60234         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60235         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60236         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60237         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60238         left-adjust flag.
60239         * tests/test-snprintf-posix.h (test_function): Likewise.
60240         * tests/test-sprintf-posix.h (test_function): Likewise.
60241         * tests/test-vasprintf-posix.c (test_function): Likewise.
60242         * doc/posix-functions/fprintf.texi: Update.
60243         * doc/posix-functions/printf.texi: Update.
60244         * doc/posix-functions/snprintf.texi: Update.
60245         * doc/posix-functions/sprintf.texi: Update.
60246         * doc/posix-functions/vfprintf.texi: Update.
60247         * doc/posix-functions/vprintf.texi: Update.
60248         * doc/posix-functions/vsnprintf.texi: Update.
60249         * doc/posix-functions/vsprintf.texi: Update.
60250         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60251
60252 2008-02-06  Bruno Haible  <bruno@clisp.org>
60253
60254         Fix bug introduced on 2008-01-26.
60255         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60256
60257 2008-02-06  Bruno Haible  <bruno@clisp.org>
60258
60259         Fix bug introduced on 2007-06-10.
60260         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60261         !NEED_PRINTF_FLAG_ZERO.
60262
60263 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60264
60265         getloadavg: use libperfstat on AIX5
60266         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60267
60268 2008-02-03  Bruno Haible  <bruno@clisp.org>
60269
60270         * lib/diffseq.h: Add comments about required #includes.
60271         Reported by Michael Biggs <gnulib@doubleplum.net>.
60272
60273 2008-02-01  Bruno Haible  <bruno@clisp.org>
60274
60275         * users.txt: Add gnuit.
60276
60277 2008-01-31  Bruno Haible  <bruno@clisp.org>
60278
60279         * lib/md4.c (set_uint32): Mark as inline.
60280         * lib/md5.c (set_uint32): Likewise.
60281         * lib/sha1.c (set_uint32): Likewise.
60282         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60283         * m4/md5.m4 (gl_MD5): Likewise.
60284         * m4/sha1.m4 (gl_SHA1): Likewise.
60285
60286 2008-01-31  Jim Meyering  <meyering@redhat.com>
60287
60288         Use "sizeof VAR", rather than a literal "4".
60289         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60290         * lib/md4.c (md4_read_ctx): Likewise.
60291         * lib/sha1.c (sha1_read_ctx): Likewise.
60292
60293 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60294
60295         * tests/test-sha1.c: New file, based on test-md5.c.
60296
60297         * modules/crypto/sha1-tests: New file.
60298
60299 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60300
60301         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60302
60303 2008-01-31  Jim Meyering  <meyering@redhat.com>
60304
60305         Prefer "sizeof v" over the equivalent "4".
60306         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60307         * lib/md5.c (set_uint32): Likewise.
60308         * lib/sha1.c (set_uint32): Likewise.
60309
60310 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60311
60312         * lib/sha1.c (set_uint32): Mark function as static.
60313
60314 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60315
60316         md2: clarify comments to say that alignment is not required.
60317         * lib/md2.h: Remove warning about alignment in comment.
60318         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60319         never been required.
60320
60321 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60322
60323         md4: adapt alignment constraint fix from sha1.
60324         * lib/md4.c (set_uint32): New function, from sha1.c
60325         (md4_read_ctx): Use it.
60326         (md4_finish_ctx): Doc fix.
60327         * lib/md4.h: Doc fix.
60328
60329 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60330
60331         md5: adapt alignment constraint fix from sha1.
60332         * lib/md5.c (set_uint32): New function, from sha1.c
60333         (md5_read_ctx): Use it.
60334         (md5_finish_ctx): Doc fix.
60335         * lib/md5.h: Doc fix.
60336
60337 2008-01-30  Peter Palfrader  <weasel@debian.org>
60338
60339         sha1: remove the result buffer alignment constraint
60340         * lib/sha1.c (set_uint32): New function.
60341         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60342         constraint.
60343         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60344         * lib/sha1.h: Likewise.
60345
60346 2008-01-30  Andreas Schwab  <schwab@suse.de>
60347             Bruno Haible  <bruno@clisp.org>
60348
60349         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60350         correct definition of LDBL_MIN_EXP.
60351
60352 2008-01-30  Karl Berry  <karl@gnu.org>
60353
60354         * config/srclist-update: try to preserve x bit on updates.
60355         * config/srclistvars.sh: update for karl.
60356
60357 2008-01-29  Jim Meyering  <meyering@redhat.com>
60358
60359         vasnprintf.c: Avoid warning about unused label
60360         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60361         "overflow" label definition and associated code with the
60362         same cpp condition that guards the sole use of that label.
60363
60364 2008-01-26  Bruno Haible  <bruno@clisp.org>
60365
60366         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60367         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60368         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60369         * lib/isnanl-nolibm.h (isnanl): Likewise.
60370         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60371
60372 2008-01-26  Bruno Haible  <bruno@clisp.org>
60373
60374         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60375         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60376
60377 2008-01-26  Bruno Haible  <bruno@clisp.org>
60378
60379         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60380         GCC >= 4.0 built-in.
60381         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60382
60383 2008-01-26  Bruno Haible  <bruno@clisp.org>
60384
60385         Rename isnan, applicable to 'double' only, to isnand.
60386         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60387         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60388         (configure.ac): Update.
60389         (Include): Replace "isnan.h" with "isnand.h".
60390         * m4/isnand.m4: Renamed from m4/isnan.m4.
60391         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60392         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60393         instead of isnan.c.
60394         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60395         instead of HAVE_ISNAN_IN_LIBC.
60396         (isnand): Renamed from isnan.
60397         * lib/isnand.c: New file.
60398         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60399         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60400         (Makefile.am): Update.
60401         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60402         Include isnand.h instead of isnan.h.
60403         (main): Test isnand instead of isnan.
60404         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60405         isnan-nolibm.
60406         * modules/frexp (Depends-on): Likewise.
60407         * modules/frexp-tests (Depends-on): Likewise.
60408         * modules/frexp-nolibm (Depends-on): Likewise.
60409         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60410         * modules/isfinite (Depends-on): Likewise.
60411         * modules/round-tests (Depends-on): Likewise.
60412         * modules/signbit (Depends-on): Likewise.
60413         * modules/signbit-tests (Depends-on): Likewise.
60414         * modules/snprintf-posix (Depends-on): Likewise.
60415         * modules/sprintf-posix (Depends-on): Likewise.
60416         * modules/trunc-tests (Depends-on): Likewise.
60417         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60418         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60419         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60420         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60421         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60422         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60423         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60424         * modules/vasnprintf-posix (Depends-on): Likewise.
60425         * modules/vasprintf-posix (Depends-on): Likewise.
60426         * modules/vfprintf-posix (Depends-on): Likewise.
60427         * modules/vsnprintf-posix (Depends-on): Likewise.
60428         * modules/vsprintf-posix (Depends-on): Likewise.
60429         * lib/frexp.c: Include isnand.h instead of isnan.h.
60430         (ISNAN): Set to isnand instead of isnan.
60431         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60432         (gl_isfinited): Use isnand instead of isnan.
60433         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60434         (gl_signbitd): Use isnand instead of isnan.
60435         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60436         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60437         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60438         (main): Use isnand instead of isnan.
60439         * tests/test-round1.c: Include isnand.h.
60440         (main): Use isnand instead of isnan.
60441         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60442         (ISNAN): Set to isnand instead of isnan.
60443         * tests/test-trunc1.c: Include isnand.h.
60444         (main): Use isnand instead of isnan.
60445         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60446         (equal): Use isnand instead of isnan.
60447         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60448         isnand-nolibm.
60449         * NEWS: Mention the change.
60450
60451 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60452             Bruno Haible  <bruno@clisp.org>
60453
60454         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60455         the GCC builtins for signbits are present and set
60456         REPLACE_SIGNBIT_USING_GCC if so.
60457         * lib/math.in.h (signbit): Define using GCC builtins if
60458         REPLACE_SIGNBIT_USING_GCC is set.
60459         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60460         REPLACE_SIGNBIT_USING_GCC.
60461         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60462
60463 2008-01-25  Jim Meyering  <meyering@redhat.com>
60464
60465         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60466         * lib/poll.c: Include <config.h>, not "config.h".
60467         * tests/test-getaddrinfo.c: Likewise.
60468
60469 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60470
60471         * modules/sockets-tests: New file.
60472
60473 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60474
60475         * modules/sockets: New module, can be used to call WSA_Startup and
60476         WSA_Cleanup when needed.
60477
60478         * lib/sockets.h, lib/sockets.c: New files.
60479
60480         * m4/sockets.m4: New file.
60481
60482         * tests/test-sockets.c: New file.
60483
60484 2008-01-19  Bruno Haible  <bruno@clisp.org>
60485
60486         * doc/posix-headers: Renamed from doc/headers.
60487         * doc/posix-functions: Renamed from doc/functions.
60488         * doc/gnulib.texi: Update.
60489
60490 2008-01-19  Bruno Haible  <bruno@clisp.org>
60491
60492         * doc/glibc-functions/strcasestr.texi: Include contents of
60493         doc/functions/strcasestr.texi, fixing the list of platforms.
60494         * doc/functions/strcasestr.texi: Remove file.
60495
60496 2008-01-19  Bruno Haible  <bruno@clisp.org>
60497
60498         * doc/glibc-functions/memmem.texi: Include contents of
60499         doc/functions/memmem.texi.
60500         * doc/functions/memmem.texi: Remove file.
60501
60502 2008-01-18  Bruno Haible  <bruno@clisp.org>
60503
60504         * doc/glibc-functions/*.texi: New files.
60505         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60506         to use the new files.
60507
60508 2008-01-17  Bruno Haible  <bruno@clisp.org>
60509
60510         * tests/test-gethostname.c (main): Fix printf statement.
60511
60512 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60513
60514         * modules/gethostname-tests: New file.
60515
60516         * tests/test-gethostname.c: New file.
60517
60518 2008-01-17  Simon Josefsson  <simon@josefsson.org>
60519
60520         * lib/gethostname.c: Include string.h unconditionally, strncpy is
60521         used by the UNAME case.  Reported by Bruno Haible
60522         <bruno@clisp.org>.
60523
60524 2008-01-17  Eric Blake  <ebb9@byu.net>
60525
60526         Convert c-strcasestr to be more efficient.
60527         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
60528         (Depends-on): Add c-strcase, remove malloca, strnlen.
60529         * tests/test-c-strcasestr.c (main): Enhance test.
60530         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
60531
60532 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
60533
60534         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
60535         Use it in creating po/Makevars.
60536
60537 2008-01-15  Simon Josefsson  <simon@josefsson.org>
60538
60539         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
60540         Applications that requires it should initialize libgcrypt
60541         manually.
60542
60543 2008-01-16  Simon Josefsson  <simon@josefsson.org>
60544
60545         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
60546
60547 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
60548
60549         Fix problem with getdate on mingw32 reported by Simon Josefsson
60550         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
60551         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
60552         tzname", when deciding whether to declare tzname.
60553         * lib/strftime.c (tzname): Likewise.
60554
60555 2008-01-15  Bruno Haible  <bruno@clisp.org>
60556
60557         Work around a MacOS X 10.5 bug in frexpl().
60558         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
60559         * doc/functions/frexpl.texi: Document the bug.
60560         Reported by Elias Pipping <pipping@gentoo.org>.
60561
60562 2008-01-14  Eric Blake  <ebb9@byu.net>
60563
60564         Touch up previous patch.
60565         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
60566         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
60567
60568         Convert strcasestr module to use Two-Way algorithm.
60569         * modules/strcasestr-simple: New module, based on the old
60570         strcasestr, but with Two-Way rather than KMP.
60571         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
60572         * lib/string.in.h (rpl_strcasestr): Declare.
60573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
60574         performance.
60575         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
60576         * modules/string (Makefile.am): Support strcasestr.
60577         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
60578         * modules/strcasestr-tests (Depends-on): Check for alarm.
60579         * tests/test-strcasestr.c: Augment test.
60580         * lib/str-two-way.h: Clean up stray macro.
60581         * NEWS: Document new module.
60582         * MODULES.html.sh (string handling): Likewise.
60583         * doc/functions/strcasestr.texi: New file.
60584         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
60585         here, since it is not a POSIX function.
60586
60587 2008-01-14  Colin Watson  <cjwatson@debian.org>
60588             Bruno Haible  <bruno@clisp.org>
60589
60590         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
60591         works fine; if not, set REPLACE_STRSIGNAL.
60592         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
60593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60594         REPLACE_STRSIGNAL.
60595         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
60596         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
60597         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
60598
60599 2008-01-14  Bruno Haible  <bruno@clisp.org>
60600
60601         * modules/strsignal (Include): Change to <string.h>.
60602
60603 2008-01-14  Colin Watson  <cjwatson@debian.org>
60604
60605         * modules/argp (Notice): Add a notice recommending to change
60606         XGETTEXT_OPTIONS.
60607         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
60608
60609 2008-01-13  Colin Watson  <cjwatson@debian.org>
60610
60611         * modules/strsignal-tests: New file.
60612         * tests/test-strsignal.c: New file.
60613
60614         * lib/strsignal.c: New file, from glibc with modifications.
60615         * lib/siglist.h: New file, from glibc with modifications.
60616         * lib/string.in.h (strsignal): New declaration.
60617         * m4/strsignal.m4: New file.
60618         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
60619         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
60620         * modules/strsignal: New file.
60621         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
60622         HAVE_DECL_STRSIGNAL.
60623
60624 2008-01-13  Bruno Haible  <bruno@clisp.org>
60625
60626         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
60627         locale encoding is not ASCII. Needed for OpenBSD 4.0.
60628         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
60629         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
60630
60631 2008-01-13  Bruno Haible  <bruno@clisp.org>
60632
60633         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
60634         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
60635         * lib/argp.h (__attribute__): Likewise.
60636         * lib/c-stack.c (__attribute__): Likewise.
60637         * lib/error.h (__attribute__): Likewise.
60638         * lib/fts.c (__attribute__): Likewise.
60639         * lib/openat.h (__attribute__): Likewise.
60640         * lib/stdio.in.h (__attribute__): Likewise.
60641         * lib/string.in.h (__attribute__): Likewise.
60642         * lib/utimens.c (__attribute__): Likewise.
60643         * lib/vasnprintf.h (__attribute__): Likewise.
60644         * lib/xalloc.h (__attribute__): Likewise.
60645         * lib/xprintf.h (__attribute__): Likewise.
60646         * lib/xstrtol.h (__attribute__): Likewise.
60647         * lib/xvasprintf.h (__attribute__): Likewise.
60648
60649 2008-01-12  Bruno Haible  <bruno@clisp.org>
60650
60651         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
60652         * doc/glibc-headers/a.out.texi: New file.
60653         * doc/glibc-headers/aliases.texi: New file.
60654         * doc/glibc-headers/alloca.texi: New file.
60655         * doc/glibc-headers/ar.texi: New file.
60656         * doc/glibc-headers/argp.texi: New file.
60657         * doc/glibc-headers/argz.texi: New file.
60658         * doc/glibc-headers/byteswap.texi: New file.
60659         * doc/glibc-headers/crypt.texi: New file.
60660         * doc/glibc-headers/endian.texi: New file.
60661         * doc/glibc-headers/envz.texi: New file.
60662         * doc/glibc-headers/err.texi: New file.
60663         * doc/glibc-headers/error.texi: New file.
60664         * doc/glibc-headers/execinfo.texi: New file.
60665         * doc/glibc-headers/fpu_control.texi: New file.
60666         * doc/glibc-headers/fstab.texi: New file.
60667         * doc/glibc-headers/fts.texi: New file.
60668         * doc/glibc-headers/getopt.texi: New file.
60669         * doc/glibc-headers/ieee754.texi: New file.
60670         * doc/glibc-headers/ifaddrs.texi: New file.
60671         * doc/glibc-headers/libintl.texi: New file.
60672         * doc/glibc-headers/mcheck.texi: New file.
60673         * doc/glibc-headers/mntent.texi: New file.
60674         * doc/glibc-headers/obstack.texi: New file.
60675         * doc/glibc-headers/paths.texi: New file.
60676         * doc/glibc-headers/printf.texi: New file.
60677         * doc/glibc-headers/pty.texi: New file.
60678         * doc/glibc-headers/resolv.texi: New file.
60679         * doc/glibc-headers/shadow.texi: New file.
60680         * doc/glibc-headers/sysexits.texi: New file.
60681         * doc/glibc-headers/ttyent.texi: New file.
60682
60683 2008-01-12  Jim Meyering  <meyering@redhat.com>
60684
60685         announce-gen: emit Gnulib's git-based version string.
60686         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
60687         New option --gnulib-version=V, where V is expected to be
60688         the output of running git describe in the gnulib directory.
60689         (get_tool_versions): Request feedback on xdelta.  I suspect it's
60690         not useful, and plan to stop publishing an xdelta file with each
60691         coreutils release.
60692
60693         * build-aux/announce-gen: Also check for lzma-compressed files.
60694
60695 2008-01-11  Bruno Haible  <bruno@clisp.org>
60696
60697         * tests/test-memmem.c (main): Increase maximum allowed time.
60698         * tests/test-strstr.c (main): Likewise.
60699
60700 2008-01-11  Bruno Haible  <bruno@clisp.org>
60701
60702         * doc/functions/memmem.texi: Add more precisions about platforms.
60703         * doc/functions/strstr.texi: Likewise.
60704
60705 2008-01-10  Eric Blake  <ebb9@byu.net>
60706
60707         * m4/strstr.m4: Delete cruft from copy-n-paste.
60708         Reported by Bruno Haible.
60709
60710 2008-01-10  Bruno Haible  <bruno@clisp.org>
60711
60712         Make c-strstr rely on strstr.
60713         * lib/c-strstr.c: Don't include str-kmp.h.
60714         (c_strstr): Define in terms of strstr.
60715         * modules/c-strstr (Files): Remove lib/str-kmp.h.
60716         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
60717
60718 2008-01-10  Bruno Haible  <bruno@clisp.org>
60719
60720         * doc/gnulib.texi (String Functions in C Locale): New section.
60721         * doc/c-ctype.texi: New file.
60722         * doc/c-strcase.texi: New file.
60723         * doc/c-strcaseeq.texi: New file.
60724         * doc/c-strcasestr.texi: New file.
60725         * doc/c-strstr.texi: New file.
60726         * doc/c-strtod.texi: New file.
60727         * doc/c-strtold.texi: New file.
60728
60729 2008-01-10  Eric Blake  <ebb9@byu.net>
60730
60731         * lib/relocatable.h: Fix a comment.
60732
60733 2008-01-10  Eric Blake  <ebb9@byu.net>
60734
60735         Share two-way algorithm.
60736         * lib/str-two-way.h: New file, merged from...
60737         * lib/memmem.c: ...here...
60738         * lib/strstr.c: ...and here.
60739         * modules/memmem (Files): Use it.
60740         * modules/strstr (Files): Likewise.
60741
60742         Avoid quadratic strstr implementations.
60743         * lib/strstr.c: New file.
60744         * m4/strstr.m4: Likewise.
60745         * modules/strstr: Likewise.
60746         * modules/strstr-tests: Likewise.
60747         * tests/test-strstr.c: Likewise.
60748         * lib/string.in.h (rpl_strstr): Declare.
60749         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
60750         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
60751         * modules/string (Makefile.am): Likewise.
60752         * MODULES.html.sh (string handling): Mention new module.
60753         * doc/functions/strstr.texi (strstr): Document the bug.
60754
60755 2008-01-10  Bruno Haible  <bruno@clisp.org>
60756
60757         * lib/relocatable.h (relocate): State whether result is freshly
60758         allocated or not.
60759         * lib/relocatable.c (relocate): Return a freshly allocated string
60760         instead of a pointer to a privately held string.
60761         Reported by Sylvain Beucler <beuc@gnu.org>.
60762
60763 2008-01-10  Colin Watson  <cjwatson@debian.org>
60764
60765         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
60766         s/S_ISNLK/S_ISLNK/.
60767
60768 2008-01-09  Bruno Haible  <bruno@clisp.org>
60769
60770         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
60771         and other files.
60772         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
60773         if it's only a guess.
60774         * modules/memmem: Simplify by depending on memmem-simple.
60775
60776 2008-01-09  Bruno Haible  <bruno@clisp.org>
60777
60778         Work around OpenBSD 4.0 tdelete() bug.
60779         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
60780         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
60781         macros and don't redefine the enum values.
60782         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
60783         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
60784         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
60785
60786 2008-01-09  Bruno Haible  <bruno@clisp.org>
60787
60788         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
60789         (main): Don't perform the tests if setlocale did not install a UTF-8
60790         locale. Needed on OpenBSD 4.0.
60791         * modules/wcwidth-tests (Depends-on): Add localcharset.
60792
60793 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
60794
60795         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
60796         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
60797         * NEWS: announce this.
60798         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
60799
60800 2008-01-09  Simon Josefsson  <simon@josefsson.org>
60801         and Eric Blake  <ebb9@byu.net>
60802
60803         Add memmem-simple module.
60804         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
60805         (gl_FUNC_MEMMEM): Separate performance from presence checks.
60806         * modules/memmem-simple: New file.
60807         * modules/memmem (Description): Tweak.
60808         * MODULES.html.sh (string handling): Mention new module.
60809         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
60810         addressed by memmem-simple.
60811         * NEWS: Document the difference.
60812
60813 2008-01-09  Eric Blake  <ebb9@byu.net>
60814
60815         Give gcc some memmem optimization hints.
60816         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
60817         (strcasestr): Declare as pure.
60818         * modules/memmem (Maintainer): Claim my implementation.
60819
60820 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60821
60822         Support AIX 6.1 and higher.
60823         * build-aux/config.libpath: Likewise.
60824         * build-aux/config.rpath: Likewise.
60825
60826 2008-01-08  Jim Meyering  <meyering@redhat.com>
60827             Bruno Haible  <bruno@clisp.org>
60828
60829         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
60830         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
60831         Reported by Peter Fales in
60832         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
60833
60834 2008-01-08  Bruno Haible  <bruno@clisp.org>
60835
60836         * modules/unictype/category-of (Depends-on): Add
60837         unictype/category-none.
60838         * modules/unictype/category-and-tests (Depends-on): Add
60839         unictype/category-{L,N,Lu,Nd}.
60840         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
60841         * modules/unictype/category-or-tests (Depends-on): Add
60842         unictype/category-{L,N}.
60843         * modules/unictype/category-name-tests (Depends-on): Add
60844         unictype/category-{Z,Nl}.
60845         Reported by Simon Josefsson.
60846
60847 2008-01-08  Bruno Haible  <bruno@clisp.org>
60848
60849         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
60850         convention better.
60851         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
60852         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
60853         Reported by Peter Miller <millerp@canb.auug.org.au>.
60854
60855 2008-01-08  Eric Blake  <ebb9@byu.net>
60856
60857         Rewrite memmem to guarantee linear complexity without malloc.
60858         * lib/memmem.c (memmem): Use Two-Way rather than
60859         Knuth-Morris-Pratt, to allow O(1) space usage.
60860         (critical_factorization, two_way_short_needle)
60861         (two_way_long_needle): New functions.
60862         (knuth_morris_pratt): Delete.
60863         * modules/memmem (Depends-on): No longer need malloca or stdbool.
60864         Add stdint.
60865         * tests/test-memmem.c (main): Add tests for periodic needle and
60866         sublinear performance.
60867         * doc/functions/memmem.texi (memmem): Document other deficiencies
60868         in cygwin and older glibc.
60869
60870 2008-01-08  Bruno Haible  <bruno@clisp.org>
60871
60872         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
60873         augmentation.
60874
60875 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
60876
60877         Add a configure time option: --disable-acl.
60878         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
60879         AC_ARG_ENABLE(acl).
60880
60881 2008-01-06  Simon Josefsson  <simon@josefsson.org>
60882
60883         * tests/test-localename.c: Don't include obsolete "setenv.h".
60884
60885         * modules/localename-tests (Depends-on): Need unsetenv.
60886
60887 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60888
60889         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
60890
60891 2008-01-06  Colin Watson  <cjwatson@debian.org>
60892
60893         * users.txt: Add man-db.
60894
60895 2008-01-07  Bruno Haible  <bruno@clisp.org>
60896
60897         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60898         previous section name.
60899
60900 2008-01-07  Bruno Haible  <bruno@clisp.org>
60901
60902         * lib/progname.c (set_program_name): Don't strip off a leading
60903         "lt-" prefix outside a .libs directory.
60904         Suggested by Paul Eggert.
60905
60906 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60907             Bruno Haible  <bruno@clisp.org>
60908
60909         Improve memory cleanup in 'relocatable' module.
60910         * lib/relocatable.h (compute_curr_prefix): Change return type to
60911         'char *'.
60912         * lib/relocatable.c (compute_curr_prefix): Change return type to
60913         'char *'. Free curr_installdir after use.
60914         (relocate): Free curr_prefix_better after use.
60915         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60916
60917 2008-01-01  Bruno Haible  <bruno@clisp.org>
60918
60919         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60920         failure on older glibc systems.
60921         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60922
60923 2008-01-05  Eric Blake  <ebb9@byu.net>
60924
60925         Avoid quadratic system memmem.
60926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
60927         Reported by Ralf Wildenhues.
60928
60929         Fix memmem test for mingw.
60930         * modules/memmem-tests (configure.ac): Check for alarm.
60931         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
60932         it.
60933         * doc/functions/memmem.texi: New file.
60934         * doc/gnulib.texi (Function Substitutes): Add memmem.
60935         Reported by Bruno Haible.
60936
60937 2008-01-04  Bruno Haible  <bruno@clisp.org>
60938
60939         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
60940         Require gl_HEADER_STRINGS_H_DEFAULTS, not
60941         gl_HEADER_STRING_H_DEFAULTS.
60942
60943 2008-01-04  Eric Blake  <ebb9@byu.net>
60944
60945         Shorten duration of memmem test.
60946         * tests/test-memmem.c (main): Use alarm to declare failure if test
60947         is taking too long.
60948         Reported by Ralf Wildenhues.
60949
60950 2007-12-21  Simon Josefsson  <simon@josefsson.org>
60951
60952         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
60953         string, needed by strerror.
60954
60955 2008-01-03  Colin Watson  <cjwatson@debian.org>
60956             Bruno Haible  <bruno@clisp.org>
60957
60958         * doc/gnulib-tool.texi (Localization): New section.
60959
60960 2008-01-02  Bruno Haible  <bruno@clisp.org>
60961
60962         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
60963         variables to 'unsigned char *' type.
60964         Reported by Paul Eggert.
60965
60966 2008-01-02  Jim Meyering  <jim@meyering.net>
60967
60968         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
60969
60970 2007-12-31  Jim Meyering  <jim@meyering.net>
60971
60972         Avoid use of private FTS type name.
60973         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
60974
60975 2007-12-30  Karl Berry  <karl@gnu.org>
60976
60977         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60978         work around defect in Texinfo and/or the standalone Info browser.
60979
60980 2007-12-30  Bruno Haible  <bruno@clisp.org>
60981
60982         Unify 5 copies of the KMP code.
60983         * lib/str-kmp.h: New file.
60984         * lib/c-strcasestr.c: Include str-kmp.h.
60985         (knuth_morris_pratt): Remove function.
60986         (c_strcasestr): Update.
60987         * lib/c-strstr.c: Include str-kmp.h.
60988         (knuth_morris_pratt): Remove function.
60989         (c_strcasestr): Update.
60990         * lib/mbscasestr.c: Include str-kmp.h.
60991         (knuth_morris_pratt_unibyte): Remove function.
60992         * lib/mbsstr.c: Include str-kmp.h.
60993         (knuth_morris_pratt_unibyte): Remove function.
60994         * lib/strcasestr.c: Include str-kmp.h.
60995         (knuth_morris_pratt): Remove function.
60996         (strcasestr): Update.
60997         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60998         * modules/c-strstr (Files): Likewise.
60999         * modules/mbscasestr (Files): Likewise.
61000         * modules/mbsstr (Files): Likewise.
61001         * modules/strcasestr (Files): Likewise.
61002         Suggested by Paul Eggert.
61003
61004 2007-12-30  Bruno Haible  <bruno@clisp.org>
61005
61006         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61007         defined.
61008
61009 2007-12-30  Bruno Haible  <bruno@clisp.org>
61010
61011         * lib/xmalloca.h: Include xalloc.h.
61012         (xnmalloca): New macro.
61013
61014 2007-12-30  Bruno Haible  <bruno@clisp.org>
61015
61016         * lib/malloca.h (nmalloca): New macro.
61017         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61018         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61019         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61020         knuth_morris_pratt_multibyte): Likewise.
61021         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61022         knuth_morris_pratt_multibyte): Likewise.
61023         * lib/memmem.c (knuth_morris_pratt): Likewise.
61024         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61025
61026 2007-12-25  Bruno Haible  <bruno@clisp.org>
61027
61028         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61029         * lib/glob.c: Don't include openat.h.
61030         (link_exists2_p): Add back the code that deals with the
61031         !GLOB_ALTDIRFUNC case.
61032         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61033         let it do the filename concatenation.
61034         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61035         * modules/glob (Depends-on): Remove openat.
61036
61037 2007-12-31  Bruno Haible  <bruno@clisp.org>
61038
61039         * modules/dirfd (License): Change to LGPLv2+.
61040         Approved by Jim Meyering.
61041
61042 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61043
61044         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61045         when multiplying M by sizeof (size_t).
61046
61047 2007-12-10  Martin Lambers  <marlam@marlam.de>
61048
61049         Override getpagesize on mingw.
61050         * lib/getpagesize.c: New file.
61051         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61052         * modules/getpagesize (Files): Add lib/getpagesize.c.
61053         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61054         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61055         REPLACE_GETPAGESIZE.
61056         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61057
61058 2007-12-25  Bruno Haible  <bruno@clisp.org>
61059
61060         * modules/localcharset (Notice): New field.
61061         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61062         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61063
61064 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61065             Bruno Haible  <bruno@clisp.org>
61066
61067         Avoid using the syntax symbol() in formatted documentation.
61068         * MODULES.html.sh (func_module): When replacing symbol() with a
61069         hyperlink, remove the parentheses. Show an error if some remain.
61070         Recognize and render the '...' syntax.
61071         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61072         Rework. Add paragraph about GCC's inlining.
61073         * doc/alloca.texi: Likewise.
61074         * doc/error.texi: Remove parentheses from symbol reference.
61075         * doc/gnulib-intro.texi: Likewise.
61076         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61077         * modules/fnmatch (Description): Reword to say "the ... function".
61078         * modules/full-read (Description): Likewise.
61079         * modules/full-write (Description): Likewise.
61080         * modules/safe-read (Description): Likewise.
61081         * modules/safe-write (Description): Likewise.
61082         * modules/strchrnul (Description): Likewise.
61083         * modules/trim (Description): Likewise.
61084         * modules/error (Description): Remove parentheses from symbol
61085         references.
61086         * modules/verror (Description): Likewise.
61087         Reported by Karl Berry.
61088
61089 2007-12-25  Bruno Haible  <bruno@clisp.org>
61090
61091         Fixup after 2007-10-16 commit.
61092         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61093
61094 2007-12-24  Bruno Haible  <bruno@clisp.org>
61095
61096         Make --enable-relocatable work with DESTDIR.
61097         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61098         to compute installdir from destprog.
61099         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61100         also set the RELOC_DESTDIR variable.
61101         Reported by Левашев Иван <octagram@bluebottle.com>.
61102
61103 2007-12-24  Bruno Haible  <bruno@clisp.org>
61104
61105         Fix link error due to xalloc_die().
61106         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61107         of xreadlink.
61108         * lib/relocwrapper.c: Update comments.
61109         * build-aux/install-reloc: Remove xreadlink.c from file list.
61110         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61111         xreadlink.c.
61112         Reported by Левашев Иван <octagram@bluebottle.com>.
61113
61114 2007-12-24  Bruno Haible  <bruno@clisp.org>
61115
61116         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61117         * lib/setenv.h: Remove file.
61118         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61119         lib/setenv.h.
61120         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61121         (Depends-on): Add stdlib.
61122         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61123         gl_FUNC_UNSETENV.
61124         (Include): Replace setenv.h with <stdlib.h>.
61125         * modules/unsetenv: New file.
61126         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61127         * lib/unsetenv.c: Include <stdlib.h> first.
61128         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61129         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61130         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61131         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61132         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61133         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61134         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61135         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61136         * doc/functions/unsetenv.texi: Update.
61137         * modules/xsetenv (Depends-on): Add unsetenv.
61138         * modules/getdate (Depends-on): Likewise.
61139         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61140         * lib/xsetenv.c: Don't include setenv.h.
61141         * lib/getdate.y: Likewise.
61142         * lib/relocwrapper.c: Likewise.
61143         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61144         (Depends-on): Add stdlib.
61145         * NEWS: Mention the changes.
61146         Reported by Левашев Иван <octagram@bluebottle.com>.
61147
61148 2007-12-23  Bruno Haible  <bruno@clisp.org>
61149
61150         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61151         indentation.
61152
61153 2007-12-23  Bruno Haible  <bruno@clisp.org>
61154
61155         * lib/c-strcasestr.c: Add more comments.
61156         * lib/c-strstr.c: Likewise.
61157         * lib/mbscasestr.c: Likewise.
61158         * lib/mbsstr.c: Likewise.
61159         * lib/strcasestr.c: Likewise.
61160         * lib/memmem.c: Likewise.
61161
61162 2007-12-23  Bruno Haible  <bruno@clisp.org>
61163
61164         * tests/test-memmem.c: Include <string.h> first.
61165
61166 2007-12-22  Bruno Haible  <bruno@clisp.org>
61167
61168         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61169         the contents of $testsbase.
61170         Reported by Ralf Wildenhues.
61171
61172 2007-12-22  Bruno Haible  <bruno@clisp.org>
61173
61174         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61175         two variables local_ldadd_before, local_ldadd_last.
61176
61177 2007-12-20  Eric Blake  <ebb9@byu.net>
61178
61179         Work around circular library issue when cross-compiling.
61180         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61181         that progname.o does not need to pull in rpl_memcmp.
61182
61183 2007-12-19  Eric Blake  <ebb9@byu.net>
61184
61185         Fix memmem to avoid O(n^2) worst-case complexity.
61186         * lib/memmem.c (knuth_morris_pratt): New function.
61187         (memmem): Use it if first few naive iterations fail.
61188         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61189         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61190         * modules/memchr (License): Likewise.
61191         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61192         malloca.
61193         * tests/test-memmem.c: Rewrite, borrowing ideas from
61194         test-mbsstr1.c; the old version wouldn't even compile!
61195         * modules/memmem-tests: New file.
61196         * lib/string.in.h (rpl_memmem): Add declaration.
61197         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61198         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61199         REPLACE_MEMMEM.
61200
61201 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61202
61203         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61204         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61205         before any system include files, and undef after them all.  This
61206         should fix a problem on VMS reported by John E. Malmberg in
61207         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61208
61209 2007-12-17  Eric Blake  <ebb9@byu.net>
61210
61211         Revert addition of verify, for BSD/OS.
61212         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61213         can't handle large files, for the sake of obsolete platforms.
61214         * modules/fseeko (Depends-on): Remove verify.
61215         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61216         * doc/functions/ftello.texi (ftello): Likewise.
61217         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61218         Reported by Larry Jones.
61219
61220 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61221
61222         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61223         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61224
61225 2007-12-17  Jim Meyering  <meyering@redhat.com>
61226
61227         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61228         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61229         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61230         * modules/getcwd (Depends-on): Add openat.
61231         Reported by Petr Salinger.
61232
61233 2007-12-17  Bruno Haible  <bruno@clisp.org>
61234
61235         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61236         avoid a segmentation fault of the configure test on x86_64 systems.
61237
61238 2007-12-15  Jim Meyering  <meyering@redhat.com>
61239
61240         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61241
61242 2007-12-13  Eric Blake  <ebb9@byu.net>
61243
61244         Another fseek test.
61245         * tests/test-fseek.c (main): Also test ungetc handling.
61246         * tests/test-fseeko.c (main): Likewise.
61247         * modules/fseeko (Depends-on): Add verify.
61248         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61249         large.
61250         Reported by Larry Jones.
61251
61252         Fix fseeko on mingw.
61253         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61254         seek.
61255
61256         Beef up fseek tests.
61257         * tests/test-fseek.c (main): Also test eof handling.
61258         * tests/test-fseeko.c (main): Likewise.
61259         Reported by Larry Jones.
61260
61261 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61262
61263         Fix fseeko on BSD-based platforms.
61264         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61265         successful seek.
61266
61267 2007-12-12  Eric Blake  <ebb9@byu.net>
61268
61269         Allow circular dependency of separate libtests.a
61270         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61271         when use_libtests.
61272
61273 2007-12-11  Eric Blake  <ebb9@byu.net>
61274
61275         Fix bug with -0.0L in previous patch.
61276         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61277         * tests/test-isnan.c (main): Also test on zeroes.
61278         * tests/test-isnanf.c (main): Likewise.
61279         * tests/test-isnanl.h (main): Likewise.
61280
61281         Detect pseudo-denormals on x86 even when cross-compiling.
61282         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61283         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61284         invalid bit patterns that happen to satisfy ==.
61285
61286         Avoid link failures with separate libtests.a.
61287         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61288         last, to satisfy circular dependencies.
61289
61290 2007-12-11  Eric Blake  <ebb9@byu.net>
61291         and Bruno Haible  <bruno@clisp.org>
61292
61293         Fix OpenBSD 4.0 <float.h> handling of long double.
61294         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61295         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61296         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61297
61298 2007-12-11  Jim Meyering  <meyering@redhat.com>
61299
61300         * users.txt: Add libvirt.
61301
61302         Support versions of autoconf prior to 2.59c.
61303         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61304         if it is not already defined.
61305
61306 2007-12-09  Bruno Haible  <bruno@clisp.org>
61307
61308         Let 'gnulib-tool --import' collect sources needed for the tests in
61309         tests/ rather than in lib/.
61310         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61311         argument. If true, add rules to generate libtests.a, and put libtests.a
61312         into $(LDADD). Consider source files in subdirectories and set
61313         uses_subdirs.
61314         (func_emit_initmacro_start, func_emit_initmacro_end,
61315         func_emit_initmacro_done): Pass all arguments explicitly.
61316         (func_import): Determine two module lists main_modules,
61317         testsrelated_modules. Determine use_libtests. Determine two variables
61318         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61319         instead of just sed_transform_lib_file. Determine two variables
61320         main_files and testsrelated_files. Compute 'files' as the union of
61321         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61322         func_add_or_update. In the generated gnulib-comp.m4, collect the
61323         object files for tests/ in different variables than those for lib/.
61324         Substitute LIBTESTS_LIBDEPS.
61325         (func_create_testdir): Combine the uses_subdirs results from
61326         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61327
61328 2007-12-09  Bruno Haible  <bruno@clisp.org>
61329
61330         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61331         the build-aux directory.
61332
61333 2007-12-09  Bruno Haible  <bruno@clisp.org>
61334
61335         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61336         introduced on 2006-09-09.
61337
61338 2007-12-07  Jim Meyering  <meyering@redhat.com>
61339
61340         Let these macros work also with autoconf-2.59.
61341         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61342         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61343         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61344
61345 2007-12-06  Jim Meyering  <meyering@redhat.com>
61346
61347         Avoid a configure-time syntax error in gl_FUNC_ACL.
61348         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61349         function in each branch, before testing the cache variable.
61350
61351 2007-12-04  Eric Blake  <ebb9@byu.net>
61352
61353         Make scripts executable.
61354         * build-aux/config.guess: Add execute permissions.
61355         * build-aux/config.sub: Likewise.
61356         * build-aux/gendocs.sh: Likewise.
61357
61358         Fix frexp on mingw.
61359         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61360         cross-compiling.
61361         * doc/functions/frexp.texi (frexp): Document the bug.
61362
61363         Make cygwin fseeko check more reliable.
61364         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61365         version numbers, rather than unrelated feature check.
61366         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61367         * doc/functions/ftello.texi (ftello): Likewise.
61368         Reported by Bruno Haible.
61369
61370         * m4/strerror.m4: Bump version number.
61371
61372 2007-12-03  Bruno Haible  <bruno@clisp.org>
61373
61374         * doc/functions/mprotect.texi: Mention the mingw problem.
61375
61376 2007-12-03  Eric Blake  <ebb9@byu.net>
61377
61378         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61379         REPLACE_STRERROR is initialized before this macro.
61380
61381 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61382
61383         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61384         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61385         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61386         put -lsec in even for programs other than 'ls'.  This fixes a problem
61387         for gettext reported by Bruno Haible in
61388         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61389         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61390         Add support for Solaris 10.  This isn't efficient, but should get the
61391         job done for now.
61392
61393 2007-12-03  James Youngman  <jay@gnu.org>
61394
61395         * doc/regexprops-generic.texi: change "an close-group" to "a
61396         close-group" and "illegal" to "not allowed".
61397
61398 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61399
61400         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61401         pr_byname.h. Needed for the rare case when the maintainer has done
61402         "make maintainer-clean" in the source directory and then attempts a
61403         build outside the source directory.
61404         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61405         scripts_byname.h.
61406
61407 2007-12-02  Martin Lambers <marlam@marlam.de>
61408             Bruno Haible  <bruno@clisp.org>
61409
61410         * lib/getpagesize.h: Remove file.
61411         * lib/unistd.in.h: Include declaration of getpagesize here.
61412         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61413         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61414         HAVE_SYS_PARAM_H.
61415         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61416         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61417         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61418         (Depends-on): Add unistd.
61419         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61420         (Include): Use <unistd.h> instead of getpagesize.h.
61421         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61422         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61423         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61424         gl_GETPAGESIZE invocation, already handled by module dependency.
61425         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61426
61427 2007-12-02  Bruno Haible  <bruno@clisp.org>
61428
61429         * modules/strings-tests: New file.
61430         * tests/test-strings.c: New file.
61431
61432         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61433         * lib/strings.in.h: New file.
61434         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61435         * m4/strings_h.m4: New file.
61436         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61437         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61438         * modules/strings: New file.
61439         * modules/string (Makefile.am): Update.
61440         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61441         Reported by Karl Berry.
61442
61443 2007-12-01  Eric Blake  <ebb9@byu.net>
61444
61445         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61446         accommodate fix in cygwin 1.5.25.
61447
61448 2007-12-01  Jim Meyering  <meyering@redhat.com>
61449
61450         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61451         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61452         that would inhibit utf8-optimization of a regexp containing line-
61453         or buffer-anchors, e.g., `^', `$'.
61454
61455 2007-11-30  Bruno Haible  <bruno@clisp.org>
61456
61457         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61458         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61459         glthread_recursive_lock_init.
61460         * lib/lock.c (glthread_recursive_lock_init)
61461         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61462         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61463
61464 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61465
61466         New function qset_acl, like set_acl but with syscall semantics.
61467         * lib/acl.h (qset_acl): New decl.
61468         * lib/acl.c (qset_acl): New function.
61469         (set_acl): Use new function.  Use more-consistent diagnostics.
61470
61471 2007-11-28  Jim Meyering  <meyering@redhat.com>
61472
61473         * modules/physmem (License): Change from GPL to LGPLv2+.
61474
61475 2007-11-26  Bruno Haible  <bruno@clisp.org>
61476
61477         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61478         'long double' type has excess precision.
61479         Reported by Jim Meyering in
61480         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61481
61482 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61483
61484         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61485         Sync from <http://gnu.org/licenses>.
61486         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61487         with license text from same location.
61488         * doc/maintain.texi, doc/standards.texi:  Sync from
61489         <http://savannah.gnu.org/projects/gnustandards>.
61490
61491 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
61492         and Jim Meyering  <meyering@redhat.com>
61493
61494         Adjust getdate' grammar to accept a slightly more regular language.
61495         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61496         Before, the former was rejected.
61497         * lib/getdate.y (digits_to_date_time): New function, factored
61498         out of ...
61499         (number): ...here.  Just call digits_to_date_time.
61500         (hybrid): New non-terminal to handle an <unsigned number,
61501         signed relative offset> sequence consistently.
61502
61503 2007-11-18  Jim Meyering  <meyering@redhat.com>
61504
61505         Pull my changes from coreutils:
61506         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
61507         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
61508         use of $gnulib_tool_option_extras, so that it's separated from the
61509         preceding argument.
61510
61511         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
61512         * build-aux/bootstrap (cp_mark_as_generated): Create any required
61513         parent destination directories before copying a file into place.
61514
61515 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
61516
61517         bootstrap: work also with 4-argument variant of AC_INIT
61518         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
61519
61520 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
61521
61522         Port test-getaddrinfo to Solaris.
61523         Problem reported by Bruno Haible in
61524         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
61525         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
61526         explanation of setting 'hints'.
61527         Don't reject an implementation merely because it returns EAI_SERVICE.
61528         (EAI_SERVICE): Define to 0 if not defined.
61529
61530 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
61531
61532         The license of gnu-make and posix-shell is now "GPLed build tool".
61533         * modules/gnu-make (License): Likewise.
61534         * modules/posix-shell (License): Likewise.
61535
61536         New module posix-shell, for determining a POSIX shell
61537         or perhaps something that is close enough to a POSIX shell.
61538         * m4/posix-shell.m4: New file.
61539         * modules/posix-shell: New file.
61540
61541         * MODULES.html.sh: Mention new module.
61542
61543         New module gnu-make, for determining whether we're using GNU Make.
61544         * m4/gnu-make.m4: New file.
61545         * modules/gnu-make: New file.
61546         * MODULES.html.sh: Mention new module.
61547
61548 2007-11-14  Jim Meyering  <meyering@redhat.com>
61549
61550         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
61551         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
61552         use this macro to create a function _definition_.
61553         Remove useless "#undef ARGMATCH_DIE".
61554
61555 2007-11-14  Bruno Haible  <bruno@clisp.org>
61556
61557         * lib/config.charset: Update for OpenBSD 4.1.
61558         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
61559
61560 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
61561
61562         Document 64-bit #if problems in stdint.texi.
61563         * doc/headers/stdint.texi (stdint.h): Mention problems with
61564         64-bit-#if, and how to work around them.
61565
61566         Don't insist on 'long long int' support in the preprocessor.  It
61567         breaks too many things.  For example, PRIdMAX still uses a 'long
61568         long int' format with the latest Sun compiler, even though
61569         HAVE_LONG_LONG_INT isn't defined due to that compiler's
61570         preprocessor problem.  This causes the latest coreutils to dump
61571         core on Solaris 10 sparc with the Sun C compiler.
61572         Instead, fix the 2007-10-16 problem in a different way, by evaluating
61573         the troublesome expressions at configure-time, not at #if-time.
61574         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
61575         preprocessor.
61576         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
61577         compile-time C checks, done at 'configure'-time.
61578         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
61579         * modules/inttypes (Makefile): Substitute the new symbols that
61580         gl_INTTYPES_H now generates.
61581         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
61582
61583 2007-11-12  Bruno Haible  <bruno@clisp.org>
61584
61585         Tests for Unicode character classification functions.
61586
61587         * modules/unictype/bidicategory-byname-tests: New file.
61588         * modules/unictype/bidicategory-name-tests: New file.
61589         * modules/unictype/bidicategory-of-tests: New file.
61590         * modules/unictype/bidicategory-test-tests: New file.
61591         * modules/unictype/block-list-tests: New file.
61592         * modules/unictype/block-of-tests: New file.
61593         * modules/unictype/block-test-tests: New file.
61594         * modules/unictype/category-C-tests: New file.
61595         * modules/unictype/category-Cc-tests: New file.
61596         * modules/unictype/category-Cf-tests: New file.
61597         * modules/unictype/category-Cn-tests: New file.
61598         * modules/unictype/category-Co-tests: New file.
61599         * modules/unictype/category-Cs-tests: New file.
61600         * modules/unictype/category-L-tests: New file.
61601         * modules/unictype/category-Ll-tests: New file.
61602         * modules/unictype/category-Lm-tests: New file.
61603         * modules/unictype/category-Lo-tests: New file.
61604         * modules/unictype/category-Lt-tests: New file.
61605         * modules/unictype/category-Lu-tests: New file.
61606         * modules/unictype/category-M-tests: New file.
61607         * modules/unictype/category-Mc-tests: New file.
61608         * modules/unictype/category-Me-tests: New file.
61609         * modules/unictype/category-Mn-tests: New file.
61610         * modules/unictype/category-N-tests: New file.
61611         * modules/unictype/category-Nd-tests: New file.
61612         * modules/unictype/category-Nl-tests: New file.
61613         * modules/unictype/category-No-tests: New file.
61614         * modules/unictype/category-P-tests: New file.
61615         * modules/unictype/category-Pc-tests: New file.
61616         * modules/unictype/category-Pd-tests: New file.
61617         * modules/unictype/category-Pe-tests: New file.
61618         * modules/unictype/category-Pf-tests: New file.
61619         * modules/unictype/category-Pi-tests: New file.
61620         * modules/unictype/category-Po-tests: New file.
61621         * modules/unictype/category-Ps-tests: New file.
61622         * modules/unictype/category-S-tests: New file.
61623         * modules/unictype/category-Sc-tests: New file.
61624         * modules/unictype/category-Sk-tests: New file.
61625         * modules/unictype/category-Sm-tests: New file.
61626         * modules/unictype/category-So-tests: New file.
61627         * modules/unictype/category-Z-tests: New file.
61628         * modules/unictype/category-Zl-tests: New file.
61629         * modules/unictype/category-Zp-tests: New file.
61630         * modules/unictype/category-Zs-tests: New file.
61631         * modules/unictype/category-and-not-tests: New file.
61632         * modules/unictype/category-and-tests: New file.
61633         * modules/unictype/category-byname-tests: New file.
61634         * modules/unictype/category-name-tests: New file.
61635         * modules/unictype/category-none-tests: New file.
61636         * modules/unictype/category-of-tests: New file.
61637         * modules/unictype/category-or-tests: New file.
61638         * modules/unictype/category-test-withtable-tests: New file.
61639         * modules/unictype/combining-class-tests: New file.
61640         * modules/unictype/ctype-alnum-tests: New file.
61641         * modules/unictype/ctype-alpha-tests: New file.
61642         * modules/unictype/ctype-blank-tests: New file.
61643         * modules/unictype/ctype-cntrl-tests: New file.
61644         * modules/unictype/ctype-digit-tests: New file.
61645         * modules/unictype/ctype-graph-tests: New file.
61646         * modules/unictype/ctype-lower-tests: New file.
61647         * modules/unictype/ctype-print-tests: New file.
61648         * modules/unictype/ctype-punct-tests: New file.
61649         * modules/unictype/ctype-space-tests: New file.
61650         * modules/unictype/ctype-upper-tests: New file.
61651         * modules/unictype/ctype-xdigit-tests: New file.
61652         * modules/unictype/decimal-digit-tests: New file.
61653         * modules/unictype/digit-tests: New file.
61654         * modules/unictype/mirror-tests: New file.
61655         * modules/unictype/numeric-tests: New file.
61656         * modules/unictype/property-alphabetic-tests: New file.
61657         * modules/unictype/property-ascii-hex-digit-tests: New file.
61658         * modules/unictype/property-bidi-arabic-digit-tests: New file.
61659         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
61660         * modules/unictype/property-bidi-block-separator-tests: New file.
61661         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
61662         * modules/unictype/property-bidi-common-separator-tests: New file.
61663         * modules/unictype/property-bidi-control-tests: New file.
61664         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
61665         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
61666         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
61667         * modules/unictype/property-bidi-european-digit-tests: New file.
61668         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
61669         * modules/unictype/property-bidi-left-to-right-tests: New file.
61670         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
61671         * modules/unictype/property-bidi-other-neutral-tests: New file.
61672         * modules/unictype/property-bidi-pdf-tests: New file.
61673         * modules/unictype/property-bidi-segment-separator-tests: New file.
61674         * modules/unictype/property-bidi-whitespace-tests: New file.
61675         * modules/unictype/property-byname-tests: New file.
61676         * modules/unictype/property-combining-tests: New file.
61677         * modules/unictype/property-composite-tests: New file.
61678         * modules/unictype/property-currency-symbol-tests: New file.
61679         * modules/unictype/property-dash-tests: New file.
61680         * modules/unictype/property-decimal-digit-tests: New file.
61681         * modules/unictype/property-default-ignorable-code-point-tests: New file.
61682         * modules/unictype/property-deprecated-tests: New file.
61683         * modules/unictype/property-diacritic-tests: New file.
61684         * modules/unictype/property-extender-tests: New file.
61685         * modules/unictype/property-format-control-tests: New file.
61686         * modules/unictype/property-grapheme-base-tests: New file.
61687         * modules/unictype/property-grapheme-extend-tests: New file.
61688         * modules/unictype/property-grapheme-link-tests: New file.
61689         * modules/unictype/property-hex-digit-tests: New file.
61690         * modules/unictype/property-hyphen-tests: New file.
61691         * modules/unictype/property-id-continue-tests: New file.
61692         * modules/unictype/property-id-start-tests: New file.
61693         * modules/unictype/property-ideographic-tests: New file.
61694         * modules/unictype/property-ids-binary-operator-tests: New file.
61695         * modules/unictype/property-ids-trinary-operator-tests: New file.
61696         * modules/unictype/property-ignorable-control-tests: New file.
61697         * modules/unictype/property-iso-control-tests: New file.
61698         * modules/unictype/property-join-control-tests: New file.
61699         * modules/unictype/property-left-of-pair-tests: New file.
61700         * modules/unictype/property-line-separator-tests: New file.
61701         * modules/unictype/property-logical-order-exception-tests: New file.
61702         * modules/unictype/property-lowercase-tests: New file.
61703         * modules/unictype/property-math-tests: New file.
61704         * modules/unictype/property-non-break-tests: New file.
61705         * modules/unictype/property-not-a-character-tests: New file.
61706         * modules/unictype/property-numeric-tests: New file.
61707         * modules/unictype/property-other-alphabetic-tests: New file.
61708         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
61709         * modules/unictype/property-other-grapheme-extend-tests: New file.
61710         * modules/unictype/property-other-id-continue-tests: New file.
61711         * modules/unictype/property-other-id-start-tests: New file.
61712         * modules/unictype/property-other-lowercase-tests: New file.
61713         * modules/unictype/property-other-math-tests: New file.
61714         * modules/unictype/property-other-uppercase-tests: New file.
61715         * modules/unictype/property-paired-punctuation-tests: New file.
61716         * modules/unictype/property-paragraph-separator-tests: New file.
61717         * modules/unictype/property-pattern-syntax-tests: New file.
61718         * modules/unictype/property-pattern-white-space-tests: New file.
61719         * modules/unictype/property-private-use-tests: New file.
61720         * modules/unictype/property-punctuation-tests: New file.
61721         * modules/unictype/property-quotation-mark-tests: New file.
61722         * modules/unictype/property-radical-tests: New file.
61723         * modules/unictype/property-sentence-terminal-tests: New file.
61724         * modules/unictype/property-soft-dotted-tests: New file.
61725         * modules/unictype/property-space-tests: New file.
61726         * modules/unictype/property-terminal-punctuation-tests: New file.
61727         * modules/unictype/property-test-tests: New file.
61728         * modules/unictype/property-titlecase-tests: New file.
61729         * modules/unictype/property-unassigned-code-value-tests: New file.
61730         * modules/unictype/property-unified-ideograph-tests: New file.
61731         * modules/unictype/property-uppercase-tests: New file.
61732         * modules/unictype/property-variation-selector-tests: New file.
61733         * modules/unictype/property-white-space-tests: New file.
61734         * modules/unictype/property-xid-continue-tests: New file.
61735         * modules/unictype/property-xid-start-tests: New file.
61736         * modules/unictype/property-zero-width-tests: New file.
61737         * modules/unictype/scripts-tests: New file.
61738         * modules/unictype/syntax-c-ident-tests: New file.
61739         * modules/unictype/syntax-c-whitespace-tests: New file.
61740         * modules/unictype/syntax-java-ident-tests: New file.
61741         * modules/unictype/syntax-java-whitespace-tests: New file.
61742         * tests/unictype/test-bidi_byname.c: New file.
61743         * tests/unictype/test-bidi_name.c: New file.
61744         * tests/unictype/test-bidi_of.c: New file.
61745         * tests/unictype/test-bidi_test.c: New file.
61746         * tests/unictype/test-block_list.c: New file.
61747         * tests/unictype/test-block_of.c: New file.
61748         * tests/unictype/test-block_test.c: New file.
61749         * tests/unictype/test-categ_and.c: New file.
61750         * tests/unictype/test-categ_and_not.c: New file.
61751         * tests/unictype/test-categ_byname.c: New file.
61752         * tests/unictype/test-categ_name.c: New file.
61753         * tests/unictype/test-categ_none.c: New file.
61754         * tests/unictype/test-categ_of.c: New file.
61755         * tests/unictype/test-categ_or.c: New file.
61756         * tests/unictype/test-categ_test_withtable.c: New file.
61757         * tests/unictype/test-combining.c: New file.
61758         * tests/unictype/test-decdigit.c: New file.
61759         * tests/unictype/test-digit.c: New file.
61760         * tests/unictype/test-mirror.c: New file.
61761         * tests/unictype/test-numeric.c: New file.
61762         * tests/unictype/test-pr_byname.c: New file.
61763         * tests/unictype/test-pr_test.c: New file.
61764         * tests/unictype/test-predicate-part1.h: New file.
61765         * tests/unictype/test-predicate-part2.h: New file.
61766         * tests/unictype/test-scripts.c: New file.
61767         * tests/unictype/test-sy_c_ident.c: New file.
61768         * tests/unictype/test-sy_java_ident.c: New file.
61769
61770         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
61771         for Unicode 5.0.0.
61772         * tests/unictype/test-categ_Cc.c: Likewise.
61773         * tests/unictype/test-categ_Cf.c: Likewise.
61774         * tests/unictype/test-categ_Cn.c: Likewise.
61775         * tests/unictype/test-categ_Co.c: Likewise.
61776         * tests/unictype/test-categ_Cs.c: Likewise.
61777         * tests/unictype/test-categ_L.c: Likewise.
61778         * tests/unictype/test-categ_Ll.c: Likewise.
61779         * tests/unictype/test-categ_Lm.c: Likewise.
61780         * tests/unictype/test-categ_Lo.c: Likewise.
61781         * tests/unictype/test-categ_Lt.c: Likewise.
61782         * tests/unictype/test-categ_Lu.c: Likewise.
61783         * tests/unictype/test-categ_M.c: Likewise.
61784         * tests/unictype/test-categ_Mc.c: Likewise.
61785         * tests/unictype/test-categ_Me.c: Likewise.
61786         * tests/unictype/test-categ_Mn.c: Likewise.
61787         * tests/unictype/test-categ_N.c: Likewise.
61788         * tests/unictype/test-categ_Nd.c: Likewise.
61789         * tests/unictype/test-categ_Nl.c: Likewise.
61790         * tests/unictype/test-categ_No.c: Likewise.
61791         * tests/unictype/test-categ_P.c: Likewise.
61792         * tests/unictype/test-categ_Pc.c: Likewise.
61793         * tests/unictype/test-categ_Pd.c: Likewise.
61794         * tests/unictype/test-categ_Pe.c: Likewise.
61795         * tests/unictype/test-categ_Pf.c: Likewise.
61796         * tests/unictype/test-categ_Pi.c: Likewise.
61797         * tests/unictype/test-categ_Po.c: Likewise.
61798         * tests/unictype/test-categ_Ps.c: Likewise.
61799         * tests/unictype/test-categ_S.c: Likewise.
61800         * tests/unictype/test-categ_Sc.c: Likewise.
61801         * tests/unictype/test-categ_Sk.c: Likewise.
61802         * tests/unictype/test-categ_Sm.c: Likewise.
61803         * tests/unictype/test-categ_So.c: Likewise.
61804         * tests/unictype/test-categ_Z.c: Likewise.
61805         * tests/unictype/test-categ_Zl.c: Likewise.
61806         * tests/unictype/test-categ_Zp.c: Likewise.
61807         * tests/unictype/test-categ_Zs.c: Likewise.
61808         * tests/unictype/test-ctype_alnum.c: Likewise.
61809         * tests/unictype/test-ctype_alpha.c: Likewise.
61810         * tests/unictype/test-ctype_blank.c: Likewise.
61811         * tests/unictype/test-ctype_cntrl.c: Likewise.
61812         * tests/unictype/test-ctype_digit.c: Likewise.
61813         * tests/unictype/test-ctype_graph.c: Likewise.
61814         * tests/unictype/test-ctype_lower.c: Likewise.
61815         * tests/unictype/test-ctype_print.c: Likewise.
61816         * tests/unictype/test-ctype_punct.c: Likewise.
61817         * tests/unictype/test-ctype_space.c: Likewise.
61818         * tests/unictype/test-ctype_upper.c: Likewise.
61819         * tests/unictype/test-ctype_xdigit.c: Likewise.
61820         * tests/unictype/test-decdigit.h: Likewise.
61821         * tests/unictype/test-digit.h: Likewise.
61822         * tests/unictype/test-numeric.h: Likewise.
61823         * tests/unictype/test-pr_alphabetic.c: Likewise.
61824         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
61825         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61826         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61827         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
61828         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61829         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
61830         * tests/unictype/test-pr_bidi_control.c: Likewise.
61831         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
61832         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
61833         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61834         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61835         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61836         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61837         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61838         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61839         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
61840         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
61841         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
61842         * tests/unictype/test-pr_combining.c: Likewise.
61843         * tests/unictype/test-pr_composite.c: Likewise.
61844         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61845         * tests/unictype/test-pr_dash.c: Likewise.
61846         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61847         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
61848         * tests/unictype/test-pr_deprecated.c: Likewise.
61849         * tests/unictype/test-pr_diacritic.c: Likewise.
61850         * tests/unictype/test-pr_extender.c: Likewise.
61851         * tests/unictype/test-pr_format_control.c: Likewise.
61852         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61853         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61854         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61855         * tests/unictype/test-pr_hex_digit.c: Likewise.
61856         * tests/unictype/test-pr_hyphen.c: Likewise.
61857         * tests/unictype/test-pr_id_continue.c: Likewise.
61858         * tests/unictype/test-pr_id_start.c: Likewise.
61859         * tests/unictype/test-pr_ideographic.c: Likewise.
61860         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
61861         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
61862         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61863         * tests/unictype/test-pr_iso_control.c: Likewise.
61864         * tests/unictype/test-pr_join_control.c: Likewise.
61865         * tests/unictype/test-pr_left_of_pair.c: Likewise.
61866         * tests/unictype/test-pr_line_separator.c: Likewise.
61867         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61868         * tests/unictype/test-pr_lowercase.c: Likewise.
61869         * tests/unictype/test-pr_math.c: Likewise.
61870         * tests/unictype/test-pr_non_break.c: Likewise.
61871         * tests/unictype/test-pr_not_a_character.c: Likewise.
61872         * tests/unictype/test-pr_numeric.c: Likewise.
61873         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61874         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
61875         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
61876         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61877         * tests/unictype/test-pr_other_id_start.c: Likewise.
61878         * tests/unictype/test-pr_other_lowercase.c: Likewise.
61879         * tests/unictype/test-pr_other_math.c: Likewise.
61880         * tests/unictype/test-pr_other_uppercase.c: Likewise.
61881         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
61882         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
61883         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
61884         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
61885         * tests/unictype/test-pr_private_use.c: Likewise.
61886         * tests/unictype/test-pr_punctuation.c: Likewise.
61887         * tests/unictype/test-pr_quotation_mark.c: Likewise.
61888         * tests/unictype/test-pr_radical.c: Likewise.
61889         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61890         * tests/unictype/test-pr_soft_dotted.c: Likewise.
61891         * tests/unictype/test-pr_space.c: Likewise.
61892         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61893         * tests/unictype/test-pr_titlecase.c: Likewise.
61894         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61895         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61896         * tests/unictype/test-pr_uppercase.c: Likewise.
61897         * tests/unictype/test-pr_variation_selector.c: Likewise.
61898         * tests/unictype/test-pr_white_space.c: Likewise.
61899         * tests/unictype/test-pr_xid_continue.c: Likewise.
61900         * tests/unictype/test-pr_xid_start.c: Likewise.
61901         * tests/unictype/test-pr_zero_width.c: Likewise.
61902         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61903         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61904
61905 2007-11-12  Bruno Haible  <bruno@clisp.org>
61906
61907         Unicode character classification functions.
61908         * lib/unictype.h: New file.
61909         * modules/unictype/base: New file.
61910         * modules/unictype/category-L: New file.
61911         * modules/unictype/category-Lu: New file.
61912         * modules/unictype/category-Ll: New file.
61913         * modules/unictype/category-Lt: New file.
61914         * modules/unictype/category-Lm: New file.
61915         * modules/unictype/category-Lo: New file.
61916         * modules/unictype/category-M: New file.
61917         * modules/unictype/category-Mn: New file.
61918         * modules/unictype/category-Mc: New file.
61919         * modules/unictype/category-Me: New file.
61920         * modules/unictype/category-N: New file.
61921         * modules/unictype/category-Nd: New file.
61922         * modules/unictype/category-Nl: New file.
61923         * modules/unictype/category-No: New file.
61924         * modules/unictype/category-P: New file.
61925         * modules/unictype/category-Pc: New file.
61926         * modules/unictype/category-Pd: New file.
61927         * modules/unictype/category-Ps: New file.
61928         * modules/unictype/category-Pe: New file.
61929         * modules/unictype/category-Pi: New file.
61930         * modules/unictype/category-Pf: New file.
61931         * modules/unictype/category-Po: New file.
61932         * modules/unictype/category-S: New file.
61933         * modules/unictype/category-Sm: New file.
61934         * modules/unictype/category-Sc: New file.
61935         * modules/unictype/category-Sk: New file.
61936         * modules/unictype/category-So: New file.
61937         * modules/unictype/category-Z: New file.
61938         * modules/unictype/category-Zs: New file.
61939         * modules/unictype/category-Zl: New file.
61940         * modules/unictype/category-Zp: New file.
61941         * modules/unictype/category-C: New file.
61942         * modules/unictype/category-Cc: New file.
61943         * modules/unictype/category-Cf: New file.
61944         * modules/unictype/category-Cs: New file.
61945         * modules/unictype/category-Co: New file.
61946         * modules/unictype/category-Cn: New file.
61947         * modules/unictype/category-or: New file.
61948         * modules/unictype/category-of: New file.
61949         * modules/unictype/category-test: New file.
61950         * modules/unictype/category-test-withtable: New file.
61951         * modules/unictype/category-byname: New file.
61952         * modules/unictype/category-none: New file.
61953         * modules/unictype/category-and: New file.
61954         * modules/unictype/category-and-not: New file.
61955         * modules/unictype/category-name: New file.
61956         * modules/unictype/combining-class: New file.
61957         * modules/unictype/category-all: New file.
61958         * modules/unictype/bidicategory-all: New file.
61959         * modules/unictype/bidicategory-byname: New file.
61960         * modules/unictype/bidicategory-name: New file.
61961         * modules/unictype/bidicategory-of: New file.
61962         * modules/unictype/bidicategory-test: New file.
61963         * modules/unictype/decimal-digit: New file.
61964         * modules/unictype/digit: New file.
61965         * modules/unictype/numeric: New file.
61966         * modules/unictype/mirror: New file.
61967         * modules/unictype/property-white-space: New file.
61968         * modules/unictype/property-alphabetic: New file.
61969         * modules/unictype/property-other-alphabetic: New file.
61970         * modules/unictype/property-not-a-character: New file.
61971         * modules/unictype/property-default-ignorable-code-point: New file.
61972         * modules/unictype/property-other-default-ignorable-code-point: New
61973         file.
61974         * modules/unictype/property-deprecated: New file.
61975         * modules/unictype/property-logical-order-exception: New file.
61976         * modules/unictype/property-variation-selector: New file.
61977         * modules/unictype/property-private-use: New file.
61978         * modules/unictype/property-unassigned-code-value: New file.
61979         * modules/unictype/property-uppercase: New file.
61980         * modules/unictype/property-other-uppercase: New file.
61981         * modules/unictype/property-lowercase: New file.
61982         * modules/unictype/property-other-lowercase: New file.
61983         * modules/unictype/property-titlecase: New file.
61984         * modules/unictype/property-soft-dotted: New file.
61985         * modules/unictype/property-id-start: New file.
61986         * modules/unictype/property-other-id-start: New file.
61987         * modules/unictype/property-id-continue: New file.
61988         * modules/unictype/property-other-id-continue: New file.
61989         * modules/unictype/property-xid-start: New file.
61990         * modules/unictype/property-xid-continue: New file.
61991         * modules/unictype/property-pattern-white-space: New file.
61992         * modules/unictype/property-pattern-syntax: New file.
61993         * modules/unictype/property-join-control: New file.
61994         * modules/unictype/property-grapheme-base: New file.
61995         * modules/unictype/property-grapheme-extend: New file.
61996         * modules/unictype/property-other-grapheme-extend: New file.
61997         * modules/unictype/property-grapheme-link: New file.
61998         * modules/unictype/property-bidi-control: New file.
61999         * modules/unictype/property-bidi-left-to-right: New file.
62000         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62001         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62002         * modules/unictype/property-bidi-european-digit: New file.
62003         * modules/unictype/property-bidi-eur-num-separator: New file.
62004         * modules/unictype/property-bidi-eur-num-terminator: New file.
62005         * modules/unictype/property-bidi-arabic-digit: New file.
62006         * modules/unictype/property-bidi-common-separator: New file.
62007         * modules/unictype/property-bidi-block-separator: New file.
62008         * modules/unictype/property-bidi-segment-separator: New file.
62009         * modules/unictype/property-bidi-whitespace: New file.
62010         * modules/unictype/property-bidi-non-spacing-mark: New file.
62011         * modules/unictype/property-bidi-boundary-neutral: New file.
62012         * modules/unictype/property-bidi-pdf: New file.
62013         * modules/unictype/property-bidi-embedding-or-override: New file.
62014         * modules/unictype/property-bidi-other-neutral: New file.
62015         * modules/unictype/property-hex-digit: New file.
62016         * modules/unictype/property-ascii-hex-digit: New file.
62017         * modules/unictype/property-ideographic: New file.
62018         * modules/unictype/property-unified-ideograph: New file.
62019         * modules/unictype/property-radical: New file.
62020         * modules/unictype/property-ids-binary-operator: New file.
62021         * modules/unictype/property-ids-trinary-operator: New file.
62022         * modules/unictype/property-zero-width: New file.
62023         * modules/unictype/property-space: New file.
62024         * modules/unictype/property-non-break: New file.
62025         * modules/unictype/property-iso-control: New file.
62026         * modules/unictype/property-format-control: New file.
62027         * modules/unictype/property-dash: New file.
62028         * modules/unictype/property-hyphen: New file.
62029         * modules/unictype/property-punctuation: New file.
62030         * modules/unictype/property-line-separator: New file.
62031         * modules/unictype/property-paragraph-separator: New file.
62032         * modules/unictype/property-quotation-mark: New file.
62033         * modules/unictype/property-sentence-terminal: New file.
62034         * modules/unictype/property-terminal-punctuation: New file.
62035         * modules/unictype/property-currency-symbol: New file.
62036         * modules/unictype/property-math: New file.
62037         * modules/unictype/property-other-math: New file.
62038         * modules/unictype/property-paired-punctuation: New file.
62039         * modules/unictype/property-left-of-pair: New file.
62040         * modules/unictype/property-combining: New file.
62041         * modules/unictype/property-composite: New file.
62042         * modules/unictype/property-decimal-digit: New file.
62043         * modules/unictype/property-numeric: New file.
62044         * modules/unictype/property-diacritic: New file.
62045         * modules/unictype/property-extender: New file.
62046         * modules/unictype/property-ignorable-control: New file.
62047         * modules/unictype/property-test: New file.
62048         * modules/unictype/property-byname: New file.
62049         * modules/unictype/property-all: New file.
62050         * modules/unictype/scripts: New file.
62051         * modules/unictype/scripts-all: New file.
62052         * modules/unictype/block-of: New file.
62053         * modules/unictype/block-test: New file.
62054         * modules/unictype/block-list: New file.
62055         * modules/unictype/block-all: New file.
62056         * modules/unictype/syntax-c-whitespace: New file.
62057         * modules/unictype/syntax-java-whitespace: New file.
62058         * modules/unictype/syntax-c-ident: New file.
62059         * modules/unictype/syntax-java-ident: New file.
62060         * modules/unictype/ctype-alnum: New file.
62061         * modules/unictype/ctype-alpha: New file.
62062         * modules/unictype/ctype-cntrl: New file.
62063         * modules/unictype/ctype-digit: New file.
62064         * modules/unictype/ctype-graph: New file.
62065         * modules/unictype/ctype-lower: New file.
62066         * modules/unictype/ctype-print: New file.
62067         * modules/unictype/ctype-punct: New file.
62068         * modules/unictype/ctype-space: New file.
62069         * modules/unictype/ctype-upper: New file.
62070         * modules/unictype/ctype-xdigit: New file.
62071         * modules/unictype/ctype-blank: New file.
62072         * lib/unictype/bidi_byname.c: New file.
62073         * lib/unictype/bidi_name.c: New file.
62074         * lib/unictype/bidi_of.c: New file.
62075         * lib/unictype/bidi_test.c: New file.
62076         * lib/unictype/bitmap.h: New file.
62077         * lib/unictype/block_test.c: New file.
62078         * lib/unictype/blocks.c: New file.
62079         * lib/unictype/categ_C.c: New file.
62080         * lib/unictype/categ_Cc.c: New file.
62081         * lib/unictype/categ_Cf.c: New file.
62082         * lib/unictype/categ_Cn.c: New file.
62083         * lib/unictype/categ_Co.c: New file.
62084         * lib/unictype/categ_Cs.c: New file.
62085         * lib/unictype/categ_L.c: New file.
62086         * lib/unictype/categ_Ll.c: New file.
62087         * lib/unictype/categ_Lm.c: New file.
62088         * lib/unictype/categ_Lo.c: New file.
62089         * lib/unictype/categ_Lt.c: New file.
62090         * lib/unictype/categ_Lu.c: New file.
62091         * lib/unictype/categ_M.c: New file.
62092         * lib/unictype/categ_Mc.c: New file.
62093         * lib/unictype/categ_Me.c: New file.
62094         * lib/unictype/categ_Mn.c: New file.
62095         * lib/unictype/categ_N.c: New file.
62096         * lib/unictype/categ_Nd.c: New file.
62097         * lib/unictype/categ_Nl.c: New file.
62098         * lib/unictype/categ_No.c: New file.
62099         * lib/unictype/categ_P.c: New file.
62100         * lib/unictype/categ_Pc.c: New file.
62101         * lib/unictype/categ_Pd.c: New file.
62102         * lib/unictype/categ_Pe.c: New file.
62103         * lib/unictype/categ_Pf.c: New file.
62104         * lib/unictype/categ_Pi.c: New file.
62105         * lib/unictype/categ_Po.c: New file.
62106         * lib/unictype/categ_Ps.c: New file.
62107         * lib/unictype/categ_S.c: New file.
62108         * lib/unictype/categ_Sc.c: New file.
62109         * lib/unictype/categ_Sk.c: New file.
62110         * lib/unictype/categ_Sm.c: New file.
62111         * lib/unictype/categ_So.c: New file.
62112         * lib/unictype/categ_Z.c: New file.
62113         * lib/unictype/categ_Zl.c: New file.
62114         * lib/unictype/categ_Zp.c: New file.
62115         * lib/unictype/categ_Zs.c: New file.
62116         * lib/unictype/categ_and.c: New file.
62117         * lib/unictype/categ_and_not.c: New file.
62118         * lib/unictype/categ_byname.c: New file.
62119         * lib/unictype/categ_name.c: New file.
62120         * lib/unictype/categ_none.c: New file.
62121         * lib/unictype/categ_of.c: New file.
62122         * lib/unictype/categ_or.c: New file.
62123         * lib/unictype/categ_test.c: New file.
62124         * lib/unictype/combining.c: New file.
62125         * lib/unictype/ctype_alnum.c: New file.
62126         * lib/unictype/ctype_alpha.c: New file.
62127         * lib/unictype/ctype_blank.c: New file.
62128         * lib/unictype/ctype_cntrl.c: New file.
62129         * lib/unictype/ctype_digit.c: New file.
62130         * lib/unictype/ctype_graph.c: New file.
62131         * lib/unictype/ctype_lower.c: New file.
62132         * lib/unictype/ctype_print.c: New file.
62133         * lib/unictype/ctype_punct.c: New file.
62134         * lib/unictype/ctype_space.c: New file.
62135         * lib/unictype/ctype_upper.c: New file.
62136         * lib/unictype/ctype_xdigit.c: New file.
62137         * lib/unictype/decdigit.c: New file.
62138         * lib/unictype/digit.c: New file.
62139         * lib/unictype/identsyntaxmap.h: New file.
62140         * lib/unictype/mirror.c: New file.
62141         * lib/unictype/numeric.c: New file.
62142         * lib/unictype/pr_alphabetic.c: New file.
62143         * lib/unictype/pr_ascii_hex_digit.c: New file.
62144         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62145         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62146         * lib/unictype/pr_bidi_block_separator.c: New file.
62147         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62148         * lib/unictype/pr_bidi_common_separator.c: New file.
62149         * lib/unictype/pr_bidi_control.c: New file.
62150         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62151         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62152         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62153         * lib/unictype/pr_bidi_european_digit.c: New file.
62154         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62155         * lib/unictype/pr_bidi_left_to_right.c: New file.
62156         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62157         * lib/unictype/pr_bidi_other_neutral.c: New file.
62158         * lib/unictype/pr_bidi_pdf.c: New file.
62159         * lib/unictype/pr_bidi_segment_separator.c: New file.
62160         * lib/unictype/pr_bidi_whitespace.c: New file.
62161         * lib/unictype/pr_byname.c: New file.
62162         * lib/unictype/pr_byname.gperf: New file.
62163         * lib/unictype/pr_combining.c: New file.
62164         * lib/unictype/pr_composite.c: New file.
62165         * lib/unictype/pr_currency_symbol.c: New file.
62166         * lib/unictype/pr_dash.c: New file.
62167         * lib/unictype/pr_decimal_digit.c: New file.
62168         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62169         * lib/unictype/pr_deprecated.c: New file.
62170         * lib/unictype/pr_diacritic.c: New file.
62171         * lib/unictype/pr_extender.c: New file.
62172         * lib/unictype/pr_format_control.c: New file.
62173         * lib/unictype/pr_grapheme_base.c: New file.
62174         * lib/unictype/pr_grapheme_extend.c: New file.
62175         * lib/unictype/pr_grapheme_link.c: New file.
62176         * lib/unictype/pr_hex_digit.c: New file.
62177         * lib/unictype/pr_hyphen.c: New file.
62178         * lib/unictype/pr_id_continue.c: New file.
62179         * lib/unictype/pr_id_start.c: New file.
62180         * lib/unictype/pr_ideographic.c: New file.
62181         * lib/unictype/pr_ids_binary_operator.c: New file.
62182         * lib/unictype/pr_ids_trinary_operator.c: New file.
62183         * lib/unictype/pr_ignorable_control.c: New file.
62184         * lib/unictype/pr_iso_control.c: New file.
62185         * lib/unictype/pr_join_control.c: New file.
62186         * lib/unictype/pr_left_of_pair.c: New file.
62187         * lib/unictype/pr_line_separator.c: New file.
62188         * lib/unictype/pr_logical_order_exception.c: New file.
62189         * lib/unictype/pr_lowercase.c: New file.
62190         * lib/unictype/pr_math.c: New file.
62191         * lib/unictype/pr_non_break.c: New file.
62192         * lib/unictype/pr_not_a_character.c: New file.
62193         * lib/unictype/pr_numeric.c: New file.
62194         * lib/unictype/pr_other_alphabetic.c: New file.
62195         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62196         * lib/unictype/pr_other_grapheme_extend.c: New file.
62197         * lib/unictype/pr_other_id_continue.c: New file.
62198         * lib/unictype/pr_other_id_start.c: New file.
62199         * lib/unictype/pr_other_lowercase.c: New file.
62200         * lib/unictype/pr_other_math.c: New file.
62201         * lib/unictype/pr_other_uppercase.c: New file.
62202         * lib/unictype/pr_paired_punctuation.c: New file.
62203         * lib/unictype/pr_paragraph_separator.c: New file.
62204         * lib/unictype/pr_pattern_syntax.c: New file.
62205         * lib/unictype/pr_pattern_white_space.c: New file.
62206         * lib/unictype/pr_private_use.c: New file.
62207         * lib/unictype/pr_punctuation.c: New file.
62208         * lib/unictype/pr_quotation_mark.c: New file.
62209         * lib/unictype/pr_radical.c: New file.
62210         * lib/unictype/pr_sentence_terminal.c: New file.
62211         * lib/unictype/pr_soft_dotted.c: New file.
62212         * lib/unictype/pr_space.c: New file.
62213         * lib/unictype/pr_terminal_punctuation.c: New file.
62214         * lib/unictype/pr_test.c: New file.
62215         * lib/unictype/pr_titlecase.c: New file.
62216         * lib/unictype/pr_unassigned_code_value.c: New file.
62217         * lib/unictype/pr_unified_ideograph.c: New file.
62218         * lib/unictype/pr_uppercase.c: New file.
62219         * lib/unictype/pr_variation_selector.c: New file.
62220         * lib/unictype/pr_white_space.c: New file.
62221         * lib/unictype/pr_xid_continue.c: New file.
62222         * lib/unictype/pr_xid_start.c: New file.
62223         * lib/unictype/pr_zero_width.c: New file.
62224         * lib/unictype/scripts.c: New file.
62225         * lib/unictype/sy_c_ident.c: New file.
62226         * lib/unictype/sy_c_whitespace.c: New file.
62227         * lib/unictype/sy_java_ident.c: New file.
62228         * lib/unictype/sy_java_whitespace.c: New file.
62229
62230         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62231         Unicode 5.0.0.
62232         * lib/unictype/blocks.h: Likewise.
62233         * lib/unictype/categ_C.h: Likewise.
62234         * lib/unictype/categ_Cc.h: Likewise.
62235         * lib/unictype/categ_Cf.h: Likewise.
62236         * lib/unictype/categ_Cn.h: Likewise.
62237         * lib/unictype/categ_Co.h: Likewise.
62238         * lib/unictype/categ_Cs.h: Likewise.
62239         * lib/unictype/categ_L.h: Likewise.
62240         * lib/unictype/categ_Ll.h: Likewise.
62241         * lib/unictype/categ_Lm.h: Likewise.
62242         * lib/unictype/categ_Lo.h: Likewise.
62243         * lib/unictype/categ_Lt.h: Likewise.
62244         * lib/unictype/categ_Lu.h: Likewise.
62245         * lib/unictype/categ_M.h: Likewise.
62246         * lib/unictype/categ_Mc.h: Likewise.
62247         * lib/unictype/categ_Me.h: Likewise.
62248         * lib/unictype/categ_Mn.h: Likewise.
62249         * lib/unictype/categ_N.h: Likewise.
62250         * lib/unictype/categ_Nd.h: Likewise.
62251         * lib/unictype/categ_Nl.h: Likewise.
62252         * lib/unictype/categ_No.h: Likewise.
62253         * lib/unictype/categ_P.h: Likewise.
62254         * lib/unictype/categ_Pc.h: Likewise.
62255         * lib/unictype/categ_Pd.h: Likewise.
62256         * lib/unictype/categ_Pe.h: Likewise.
62257         * lib/unictype/categ_Pf.h: Likewise.
62258         * lib/unictype/categ_Pi.h: Likewise.
62259         * lib/unictype/categ_Po.h: Likewise.
62260         * lib/unictype/categ_Ps.h: Likewise.
62261         * lib/unictype/categ_S.h: Likewise.
62262         * lib/unictype/categ_Sc.h: Likewise.
62263         * lib/unictype/categ_Sk.h: Likewise.
62264         * lib/unictype/categ_Sm.h: Likewise.
62265         * lib/unictype/categ_So.h: Likewise.
62266         * lib/unictype/categ_Z.h: Likewise.
62267         * lib/unictype/categ_Zl.h: Likewise.
62268         * lib/unictype/categ_Zp.h: Likewise.
62269         * lib/unictype/categ_Zs.h: Likewise.
62270         * lib/unictype/categ_of.h: Likewise.
62271         * lib/unictype/combining.h: Likewise.
62272         * lib/unictype/ctype_alnum.h: Likewise.
62273         * lib/unictype/ctype_alpha.h: Likewise.
62274         * lib/unictype/ctype_blank.h: Likewise.
62275         * lib/unictype/ctype_cntrl.h: Likewise.
62276         * lib/unictype/ctype_digit.h: Likewise.
62277         * lib/unictype/ctype_graph.h: Likewise.
62278         * lib/unictype/ctype_lower.h: Likewise.
62279         * lib/unictype/ctype_print.h: Likewise.
62280         * lib/unictype/ctype_punct.h: Likewise.
62281         * lib/unictype/ctype_space.h: Likewise.
62282         * lib/unictype/ctype_upper.h: Likewise.
62283         * lib/unictype/ctype_xdigit.h: Likewise.
62284         * lib/unictype/decdigit.h: Likewise.
62285         * lib/unictype/digit.h: Likewise.
62286         * lib/unictype/mirror.h: Likewise.
62287         * lib/unictype/numeric.h: Likewise.
62288         * lib/unictype/pr_alphabetic.h: Likewise.
62289         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62290         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62291         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62292         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62293         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62294         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62295         * lib/unictype/pr_bidi_control.h: Likewise.
62296         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62297         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62298         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62299         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62300         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62301         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62302         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62303         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62304         * lib/unictype/pr_bidi_pdf.h: Likewise.
62305         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62306         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62307         * lib/unictype/pr_combining.h: Likewise.
62308         * lib/unictype/pr_composite.h: Likewise.
62309         * lib/unictype/pr_currency_symbol.h: Likewise.
62310         * lib/unictype/pr_dash.h: Likewise.
62311         * lib/unictype/pr_decimal_digit.h: Likewise.
62312         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62313         * lib/unictype/pr_deprecated.h: Likewise.
62314         * lib/unictype/pr_diacritic.h: Likewise.
62315         * lib/unictype/pr_extender.h: Likewise.
62316         * lib/unictype/pr_format_control.h: Likewise.
62317         * lib/unictype/pr_grapheme_base.h: Likewise.
62318         * lib/unictype/pr_grapheme_extend.h: Likewise.
62319         * lib/unictype/pr_grapheme_link.h: Likewise.
62320         * lib/unictype/pr_hex_digit.h: Likewise.
62321         * lib/unictype/pr_hyphen.h: Likewise.
62322         * lib/unictype/pr_id_continue.h: Likewise.
62323         * lib/unictype/pr_id_start.h: Likewise.
62324         * lib/unictype/pr_ideographic.h: Likewise.
62325         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62326         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62327         * lib/unictype/pr_ignorable_control.h: Likewise.
62328         * lib/unictype/pr_iso_control.h: Likewise.
62329         * lib/unictype/pr_join_control.h: Likewise.
62330         * lib/unictype/pr_left_of_pair.h: Likewise.
62331         * lib/unictype/pr_line_separator.h: Likewise.
62332         * lib/unictype/pr_logical_order_exception.h: Likewise.
62333         * lib/unictype/pr_lowercase.h: Likewise.
62334         * lib/unictype/pr_math.h: Likewise.
62335         * lib/unictype/pr_non_break.h: Likewise.
62336         * lib/unictype/pr_not_a_character.h: Likewise.
62337         * lib/unictype/pr_numeric.h: Likewise.
62338         * lib/unictype/pr_other_alphabetic.h: Likewise.
62339         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62340         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62341         * lib/unictype/pr_other_id_continue.h: Likewise.
62342         * lib/unictype/pr_other_id_start.h: Likewise.
62343         * lib/unictype/pr_other_lowercase.h: Likewise.
62344         * lib/unictype/pr_other_math.h: Likewise.
62345         * lib/unictype/pr_other_uppercase.h: Likewise.
62346         * lib/unictype/pr_paired_punctuation.h: Likewise.
62347         * lib/unictype/pr_paragraph_separator.h: Likewise.
62348         * lib/unictype/pr_pattern_syntax.h: Likewise.
62349         * lib/unictype/pr_pattern_white_space.h: Likewise.
62350         * lib/unictype/pr_private_use.h: Likewise.
62351         * lib/unictype/pr_punctuation.h: Likewise.
62352         * lib/unictype/pr_quotation_mark.h: Likewise.
62353         * lib/unictype/pr_radical.h: Likewise.
62354         * lib/unictype/pr_sentence_terminal.h: Likewise.
62355         * lib/unictype/pr_soft_dotted.h: Likewise.
62356         * lib/unictype/pr_space.h: Likewise.
62357         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62358         * lib/unictype/pr_titlecase.h: Likewise.
62359         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62360         * lib/unictype/pr_unified_ideograph.h: Likewise.
62361         * lib/unictype/pr_uppercase.h: Likewise.
62362         * lib/unictype/pr_variation_selector.h: Likewise.
62363         * lib/unictype/pr_white_space.h: Likewise.
62364         * lib/unictype/pr_xid_continue.h: Likewise.
62365         * lib/unictype/pr_xid_start.h: Likewise.
62366         * lib/unictype/pr_zero_width.h: Likewise.
62367         * lib/unictype/scripts.h: Likewise.
62368         * lib/unictype/scripts_byname.gperf: Likewise.
62369         * lib/unictype/sy_c_ident.h: Likewise.
62370         * lib/unictype/sy_c_whitespace.h: Likewise.
62371         * lib/unictype/sy_java_ident.h: Likewise.
62372         * lib/unictype/sy_java_whitespace.h: Likewise.
62373
62374         * lib/unictype/Makefile: New file.
62375         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62376         glibc.
62377         * lib/unictype/3level.h: New file, copied from glibc.
62378         * lib/unictype/3levelbit.h: New file.
62379
62380 2007-11-11  Bruno Haible  <bruno@clisp.org>
62381
62382         * modules/gperf: New file.
62383         * modules/iconv_open (Depends-on): Add it.
62384         (Makefile.am): Remove the GPERF definition.
62385
62386 2007-11-11  Bruno Haible  <bruno@clisp.org>
62387
62388         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62389         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62390
62391 2007-11-11  Bruno Haible  <bruno@clisp.org>
62392
62393         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62394         (usage): Remove function.
62395
62396 2007-11-11  Bruno Haible  <bruno@clisp.org>
62397
62398         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62399         gl_FUNC_CEILF_LIBS.
62400         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62401         gl_FUNC_CEIL_LIBS.
62402         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62403         gl_FUNC_CEILL_LIBS.
62404         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62405         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62406         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62407
62408 2007-11-11  Bruno Haible  <bruno@clisp.org>
62409
62410         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62411         roundf were declared but do not exist on functions.
62412         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62413         roundl were declared but do not exist on functions.
62414         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62415         HAVE_FLOORL_AND_CEILL, respectively.
62416         Needed for Sun C on Solaris 10.
62417
62418 2007-11-11  Bruno Haible  <bruno@clisp.org>
62419
62420         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62421         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62422         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62423         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62424         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62425         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62426         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62427         HAVE_DECL_ROUNDF.
62428         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62429         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62431         of HAVE_DECL_ROUND*.
62432         * modules/math (Makefile.am): Update.
62433
62434 2007-11-10  Bruno Haible  <bruno@clisp.org>
62435
62436         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62437         ptrdiff_t as m4/intl.m4.
62438
62439 2007-11-10  Jim Meyering  <meyering@redhat.com>
62440
62441         Avoid link failure for the argmatch test.
62442         * tests/test-argmatch.c (usage): Define function to avoid a link
62443         failure: argmatch_die requires a usage function.
62444
62445 2007-11-09  Bruno Haible  <bruno@clisp.org>
62446
62447         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62448         * doc/functions/vsnprintf.texi: Likewise.
62449         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62450         with a size argument < 2.
62451
62452 2007-11-09  Bruno Haible  <bruno@clisp.org>
62453
62454         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62455         buffer. Fixes an inefficiency introduced on 2007-11-03.
62456
62457 2007-11-09  Bruno Haible  <bruno@clisp.org>
62458
62459         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62460         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62461
62462 2007-11-08  Jim Meyering  <meyering@redhat.com>
62463
62464         Change cache variable name prefix "jm_" to "gl_" everywhere.
62465         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62466         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62467         * m4/uptime.m4: s/gl_/jm_/
62468
62469 2007-11-07  Bruno Haible  <bruno@clisp.org>
62470
62471         Update to GNU gettext 0.17.
62472         * m4/intl.m4: Update to GNU gettext 0.17.
62473         * m4/po.m4: Likewise.
62474         * modules/gettext (Files): Remove m4/ulonglong.m4.
62475         (configure.ac): Require gettext infrastructure from version 0.17.
62476
62477 2007-11-06  Bruno Haible  <bruno@clisp.org>
62478
62479         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62480         symbolic values are not defined in a public header.
62481         * lib/freadable.c (freadable) [QNX]: Likewise.
62482         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62483         * lib/freading.c (freading) [QNX]: Likewise.
62484         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62485         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62486         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62487         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62488         Reported by Alain Magloire.
62489
62490         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62491
62492 2007-11-05  Bruno Haible  <bruno@clisp.org>
62493
62494         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62495         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62496         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62497         Reported by Eric Blake.
62498
62499 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62500             Bruno Haible  <bruno@clisp.org>
62501
62502         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62503         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62504         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62505         (malloc): Undefine also before including <stdlib.h>.
62506         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
62507         Needed on OSF/1 4.0.
62508
62509 2007-11-05  Jim Meyering  <meyering@redhat.com>
62510
62511         git-version-gen: sync from coreutils.
62512         * build-aux/git-version-gen: Add comments.
62513         Change the first '-' to '.' in the snapshot version string,
62514         e.g., 6.9-377-08144 -> 6.9.377-08144
62515         Remove first parameter.
62516         Don't declare a version "-dirty" merely because a time
62517         stamp has changed.
62518
62519 2007-11-04  Bruno Haible  <bruno@clisp.org>
62520
62521         * lib/lock.h: Protect all macro definitions containing an 'if'
62522         statement through a "do { ... } while (0)".
62523         * lib/tls.h: Likewise.
62524
62525 2007-11-04  Bruno Haible  <bruno@clisp.org>
62526
62527         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
62528
62529 2007-11-04  Bruno Haible  <bruno@clisp.org>
62530
62531         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
62532         * modules/fprintf-posix (Depends-on): Add nocrash.
62533         * modules/snprintf-posix (Depends-on): Likewise.
62534         * modules/sprintf-posix (Depends-on): Likewise.
62535         * modules/vasnprintf-posix (Depends-on): Likewise.
62536         * modules/vasprintf-posix (Depends-on): Likewise.
62537         * modules/vfprintf-posix (Depends-on): Likewise.
62538         * modules/vsnprintf-posix (Depends-on): Likewise.
62539         * modules/vsprintf-posix (Depends-on): Likewise.
62540         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
62541         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
62542         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
62543         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
62544         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
62545         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
62546         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
62547
62548 2007-11-04  Bruno Haible  <bruno@clisp.org>
62549
62550         * modules/nocrash: New file.
62551         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
62552         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
62553
62554 2007-11-04  Bruno Haible  <bruno@clisp.org>
62555
62556         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
62557         precision handling.
62558         * tests/test-vasprintf-posix.c (test_function): Likewise.
62559         * tests/test-snprintf-posix.h (test_function): Likewise.
62560         * tests/test-sprintf-posix.h (test_function): Likewise.
62561
62562         Fix *printf behaviour for large precisions on mingw and BeOS.
62563         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
62564         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
62565         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
62566         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62567         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62568         gl_PRINTF_PRECISION and test its result. Invoke
62569         gl_PREREQ_VASNPRINTF_PRECISION.
62570         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62571         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62572         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62573         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62574         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62575         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62576         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62577         * doc/functions/fprintf.texi: Update.
62578         * doc/functions/printf.texi: Update.
62579         * doc/functions/snprintf.texi: Update.
62580         * doc/functions/sprintf.texi: Update.
62581         * doc/functions/vfprintf.texi: Update.
62582         * doc/functions/vprintf.texi: Update.
62583         * doc/functions/vsnprintf.texi: Update.
62584         * doc/functions/vsprintf.texi: Update.
62585
62586 2007-11-04  Bruno Haible  <bruno@clisp.org>
62587
62588         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
62589
62590 2007-11-04  Bruno Haible  <bruno@clisp.org>
62591
62592         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
62593         Reported by Sylvain Beucler <beuc@gnu.org>.
62594
62595 2007-11-03  Bruno Haible  <bruno@clisp.org>
62596
62597         * tests/test-fprintf-posix2.sh: New file.
62598         * tests/test-fprintf-posix2.c: New file.
62599         * modules/fprintf-posix-tests (Files): Add them.
62600         (TESTS): Add test-fprintf-posix2.sh.
62601         (configure.ac): Check for getrlimit and setrlimit.
62602         (check_PROGRAMS): Add test-fprintf-posix2.
62603
62604         * tests/test-printf-posix2.sh: New file.
62605         * tests/test-printf-posix2.c: New file.
62606         * modules/printf-posix-tests (Files): Add them.
62607         (TESTS): Add test-printf-posix2.sh.
62608         (configure.ac): Check for getrlimit and setrlimit.
62609         (check_PROGRAMS): Add test-printf-posix2.
62610
62611         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
62612         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
62613         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
62614         (decode_double): New function, copied from decode_long_double.
62615         (scale10_round_decimal_decoded): New function, extracted from
62616         scale10_round_decimal_long_double.
62617         (scale10_round_decimal_long_double): Use it.
62618         (scale10_round_decimal_double): New function.
62619         (floorlog10): New function.
62620         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
62621         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
62622         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
62623         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62624         gl_PRINTF_ENOMEM and test its result. Invoke
62625         gl_PREREQ_VASNPRINTF_ENOMEM.
62626         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
62627         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62628         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
62629         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
62630         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
62631         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
62632         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
62633         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
62634         * modules/snprintf-posix (Depends-on): Likewise.
62635         * modules/sprintf-posix (Depends-on): Likewise.
62636         * modules/vasnprintf-posix (Depends-on): Likewise.
62637         * modules/vasprintf-posix (Depends-on): Likewise.
62638         * modules/vfprintf-posix (Depends-on): Likewise.
62639         * modules/vsnprintf-posix (Depends-on): Likewise.
62640         * modules/vsprintf-posix (Depends-on): Likewise.
62641         * doc/functions/fprintf.texi: Update.
62642         * doc/functions/printf.texi: Update.
62643         * doc/functions/snprintf.texi: Update.
62644         * doc/functions/sprintf.texi: Update.
62645         * doc/functions/vfprintf.texi: Update.
62646         * doc/functions/vprintf.texi: Update.
62647         * doc/functions/vsnprintf.texi: Update.
62648         * doc/functions/vsprintf.texi: Update.
62649
62650 2007-11-03  Bruno Haible  <bruno@clisp.org>
62651
62652         * modules/frexp-nolibm-tests: New file.
62653
62654         * modules/frexp-nolibm: New file.
62655         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
62656
62657 2007-11-03  Bruno Haible  <bruno@clisp.org>
62658
62659         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
62660         value is C99 compliant.
62661         Needed for OSF/1 5.1.
62662
62663 2007-11-03  Bruno Haible  <bruno@clisp.org>
62664
62665         Fix out-of-memory handling of vasnprintf.
62666         * lib/printf-parse.c: Include <errno.h>.
62667         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
62668         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
62669         is already set.
62670
62671 2007-11-02  Eric Blake  <ebb9@byu.net>
62672
62673         Fix tests on cygwin.
62674         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
62675
62676 2007-11-01  Bruno Haible  <bruno@clisp.org>
62677
62678         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
62679         warning.
62680         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
62681         needed for POSIX compatibility.
62682
62683 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
62684
62685         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
62686         for compatibility with GNU.
62687
62688 2007-11-01  Bruno Haible  <bruno@clisp.org>
62689
62690         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
62691         (putenv): Renamed from rpl_putenv. Change argument type from
62692         'const char *' to 'char *'.
62693         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
62694         of defining putenv in config.h, just set REPLACE_PUTENV.
62695         * modules/putenv (Depends-on): Add stdlib.
62696         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
62697         (Include): Use <stdlib.h>.
62698         * lib/stdlib.in.h (putenv): New declaration.
62699         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
62700         REPLACE_PUTENV.
62701         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
62702         REPLACE_PUTENV.
62703         Needed for MacOS X 10.5.0.
62704         Reported by Peter O'Gorman <peter@pogma.com>.
62705
62706 2007-11-01  Jim Meyering  <meyering@redhat.com>
62707
62708         Treat an empty date string exactly like "0".
62709         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
62710         if the remaining date string (to be parsed) is empty, use "0".
62711         Reported by Mischa Molhoek and discussed in this thread:
62712         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
62713
62714 2007-10-31  Bruno Haible  <bruno@clisp.org>
62715
62716         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
62717         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
62718         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
62719         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
62720         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
62721         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
62722
62723 2007-10-31  Bruno Haible  <bruno@clisp.org>
62724
62725         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
62726         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
62727         (AC_TYPE_LONG_LONG_INT): Use it.
62728         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
62729         it as well.
62730         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
62731         to m4/longlong.m4.
62732         * modules/stdint (Files): Remove m4/ulonglong.m4.
62733         * modules/strtoull (Files): Use m4/longlong.m4 instead of
62734         m4/ulonglong.m4.
62735         * modules/strtoumax (Files): Likewise.
62736
62737 2007-10-30  Bruno Haible  <bruno@clisp.org>
62738
62739         * modules/xvasprintf-posix: New file.
62740         Suggested by Eric Blake.
62741
62742 2007-10-30  Bruno Haible  <bruno@clisp.org>
62743
62744         * modules/xprintf-posix-tests: New file.
62745         * tests/test-xprintf-posix.sh: New file.
62746         * tests/test-xprintf-posix.c: New file.
62747         * tests/test-xfprintf-posix.c: New file.
62748
62749         * modules/xprintf-posix: New file.
62750
62751 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62752
62753         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
62754         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
62755         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
62756
62757 2007-10-29  Bruno Haible  <bruno@clisp.org>
62758
62759         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
62760         contain the special marker '_cv_'.
62761         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
62762         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
62763         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
62764         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
62765         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
62766         Reported by Ralf Wildenhues.
62767
62768 2007-10-29  Bruno Haible  <bruno@clisp.org>
62769
62770         * gnulib-tool (func_import): When --lgpl is not specified, set
62771         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
62772         GPLv3.
62773         Reported by Simon Josefsson.
62774
62775 2007-10-28  Bruno Haible  <bruno@clisp.org>
62776
62777         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
62778         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
62779         HAVE_DECL_ISFINITE.
62780         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62781         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
62782         HAVE_DECL_ISFINITE.
62783
62784 2007-10-28  Bruno Haible  <bruno@clisp.org>
62785
62786         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
62787         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
62788
62789 2007-10-28  Bruno Haible  <bruno@clisp.org>
62790
62791         Fix link errors with Sun C 5.0 on Solaris 10.
62792         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
62793         function is declared but not present in the compiler's libm.
62794         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
62795         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
62796         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
62797         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
62798         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
62799         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
62800         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
62801         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
62802         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
62803         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
62804         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
62805         HAVE_DECL_FLOORL.
62806
62807 2007-10-28  Bruno Haible  <bruno@clisp.org>
62808
62809         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
62810         gl_FUNC_FLOORL. Cache the result.
62811         (gl_FUNC_FLOORL): Use it.
62812         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
62813         gl_FUNC_CEILL. Cache the result.
62814         (gl_FUNC_CEILL): Use it.
62815
62816         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
62817         gl_FUNC_FLOOR. Cache the result.
62818         (gl_FUNC_FLOOR): Use it.
62819         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
62820         gl_FUNC_CEIL. Cache the result.
62821         (gl_FUNC_CEIL): Use it.
62822
62823         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
62824         gl_FUNC_FLOORF. Cache the result.
62825         (gl_FUNC_FLOORF): Use it.
62826         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
62827         gl_FUNC_CEILF. Cache the result.
62828         (gl_FUNC_CEILF): Use it.
62829
62830 2007-10-28  Bruno Haible  <bruno@clisp.org>
62831
62832         * gnulib-tool: Allow specifying the LGPL version number through
62833         --lgpl=2 or --lgpl=3.
62834         (func_usage): Document --lgpl with argument.
62835         Handle --lgpl=... arguments.
62836         (func_import): Recognize also gl_LGPL calls with an argument. When
62837         --lgpl=2 is used and the module's license is just LGPL, report an
62838         error. Set sed_transform_lib_file according to the lgpl variable. In
62839         the generated files, use --lgpl or gl_LGPL invocations with argument,
62840         if necessary.
62841         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
62842         an LGPv2+ license.
62843         * doc/gnulib-tool.texi (Modified imports): Update explanation of
62844         gl_LGPL macro.
62845
62846 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62847             Bruno Haible  <bruno@clisp.org>
62848
62849         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
62850         (u16_uctomb_aux): Likewise.
62851         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
62852         !HAVE_INLINE.
62853         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
62854
62855 2007-10-28  Bruno Haible  <bruno@clisp.org>
62856
62857         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
62858         Invoke AM_GETTEXT_OPTION if it exists.
62859         * modules/vasprintf: Likewise.
62860         * modules/verror: Likewise.
62861         * modules/xprintf: Likewise.
62862         * modules/xvasprintf: Likewise.
62863
62864 2007-10-27  Ben Pfaff  <blp@gnu.org>
62865
62866         * lib/math.in.h: Define isfinite macro and prototypes for
62867         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
62868         implementations.
62869         * m4/math_h.m4: New substitutions for isfinite module.
62870         * lib/isfinite.c: New file.
62871         * m4/isfinite.m4: New file.
62872         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
62873         * modules/isfinite: New file.
62874         * modules/isfinite-tests: New file.
62875         * tests/tests-isfinite.c: New file.
62876         * doc/functions/isfinite.texi: Mention isfinite module.
62877         * MODULES.html.sh: Mention new module.
62878
62879 2007-10-27  Ben Pfaff  <blp@gnu.org>
62880
62881         Ralf Wildenhues reported that Tru64 4.0D declares the round
62882         functions but does not have definitions.
62883         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
62884         cannot be found in any library, set the output variable to
62885         "missing" instead of "".
62886         * m4/round.m4: Also use our substitute if we cannot find round in
62887         any library, even if it is declared.
62888         * m4/roundf.m4: Likewise for roundf.
62889         * m4/roundl.m4: Likewise for roundl.
62890         * lib/math.in.h: Undefine roundf, round, roundl before defining
62891         their replacements, to allow for hypothetical systems where these
62892         may be defined as macros but not available in libraries.
62893
62894 2007-10-27  Bruno Haible  <bruno@clisp.org>
62895
62896         * doc/gnulib.texi: Invoke @firstparagraphindent.
62897         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62898         changes in gnulib.
62899         (Source changes): New section.
62900
62901 2007-10-26  Bruno Haible  <bruno@clisp.org>
62902
62903         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62904         borrowed from autoconf.
62905
62906 2007-10-26  Bruno Haible  <bruno@clisp.org>
62907
62908         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62909         strerror returned the empty string. Needed on HP-UX 11.00.
62910
62911 2007-10-24  Micah Cowan  <micah@cowan.name>
62912
62913         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62914         * build-aux/bootstrap: Remove support for now-unnecessary option,
62915         --cvs-user, and envvars CVS_USER, CVS_RSH.
62916
62917 2007-10-24  Jim Meyering  <meyering@redhat.com>
62918
62919         Avoid diagnostics from sha1sum when there is no cached checksum.
62920         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
62921         if the po.s1 file hasn't been created yet.
62922
62923         * build-aux/bootstrap: Sync from coreutils:
62924         2007-10-24  Jim Meyering  <meyering@redhat.com>
62925         Get gnulib from the git repository, not from an obsolete cvs one.
62926         * build-aux/bootstrap: Suggestion from Micah Cowan.
62927         2007-10-04  Jim Meyering  <jim@meyering.net>
62928         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
62929         (update_po_files): Work also when there are no .po files in po/.
62930
62931 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62932
62933         * README: Append ".git" to git and cg examples.
62934         Problem reported by Benoit Sigoure.
62935
62936 2007-10-23  Micah Cowan  <micah@cowan.name>
62937
62938         * users.txt: Add wget.
62939
62940 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62941
62942         Fix linking of some unistdio tests on FreeBSD.
62943         * modules/unistdio/u16-vsnprintf-tests
62944         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
62945         * modules/unistdio/u16-vsprintf-tests
62946         (test_u16_vsnprintf1_LDADD): Likewise.
62947         * modules/unistdio/u32-vsnprintf-tests
62948         (test_u32_vsnprintf1_LDADD): Likewise.
62949         * modules/unistdio/u32-vsprintf-tests
62950         (test_u32_vsprintf1_LDADD): Likewise.
62951         * modules/unistdio/u8-vsnprintf-tests
62952         (test_u8_vsnprintf1_LDADD): Likewise.
62953         * modules/unistdio/u8-vsprintf-tests
62954         (test_u8_vsprintf1_LDADD): Likewise.
62955         * modules/unistdio/ulc-vsnprintf-tests
62956         (test_ulc_vsnprintf1_LDADD): Likewise.
62957         * modules/unistdio/ulc-vsprintf-tests
62958         (test_ulc_vsprintf1_LDADD): Likewise.
62959
62960         Fix linking of some uniconv tests on FreeBSD.
62961         * modules/uniconv/u16-conv-from-enc-tests
62962         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
62963         * modules/uniconv/u16-conv-to-enc-tests
62964         (test_u16_conv_to_enc_LDADD): Likewise.
62965         * modules/uniconv/u16-strconv-from-enc-tests
62966         (test_u16_strconv_from_enc_LDADD): Likewise.
62967         * modules/uniconv/u16-strconv-to-enc-tests
62968         (test_u16_strconv_to_enc_LDADD): Likewise.
62969         * modules/uniconv/u32-conv-from-enc-tests
62970         (test_u32_conv_from_enc_LDADD): Likewise.
62971         * modules/uniconv/u32-conv-to-enc-tests
62972         (test_u32_conv_to_enc_LDADD): Likewise.
62973         * modules/uniconv/u32-strconv-from-enc-tests
62974         (test_u32_strconv_from_enc_LDADD): Likewise.
62975         * modules/uniconv/u32-strconv-to-enc-tests
62976         (test_u32_strconv_to_enc_LDADD): Likewise.
62977         * modules/uniconv/u8-conv-from-enc-tests
62978         (test_u8_conv_from_enc_LDADD): Likewise.
62979         * modules/uniconv/u8-conv-to-enc-tests
62980         (test_u8_conv_to_enc_LDADD): Likewise.
62981         * modules/uniconv/u8-strconv-from-enc-tests
62982         (test_u8_strconv_from_enc_LDADD): Likewise.
62983         * modules/uniconv/u8-strconv-to-enc-tests
62984         (test_u8_strconv_to_enc_LDADD): Likewise.
62985
62986 2007-10-22  Bruno Haible  <bruno@clisp.org>
62987
62988         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62989         size.
62990
62991 2007-10-22  Eric Blake  <ebb9@byu.net>
62992
62993         Tweak x*printf documentation.
62994         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62995         variable name and comments.
62996         Suggested by Bruno Haible.
62997
62998 2007-10-22  Bruno Haible  <bruno@clisp.org>
62999
63000         * lib/acl.c (copy_acl): Fix file name in comment.
63001
63002 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63003
63004         Fix Tru64 problem with stdbool.h.
63005         * lib/stdbool.in.h (false, true):
63006         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63007         Don't declare as an enum in this situation; it runs afoul of Tru64.
63008         Problem reported by Steven M. Schweda in
63009         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63010
63011 2007-10-22  Eric Blake  <ebb9@byu.net>
63012
63013         Also wrap vf?printf.
63014         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63015         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63016         (xvprintf, xvfprintf): New functions.
63017
63018 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63019
63020         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63021         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63022
63023         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63024         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63025
63026 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63027
63028         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63029         by Bruno Haible.
63030
63031 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63032
63033         * lib/getloadavg.c
63034         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63035         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63036
63037         * tests/test-i-ring.c: Work for C89.
63038
63039 2007-10-22  Bruno Haible  <bruno@clisp.org>
63040
63041         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63042         -1u, in preprocessor expression, so that we don't test for the bug
63043         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63044         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63045
63046 2007-10-22  Eric Blake  <ebb9@byu.net>
63047
63048         * tests/test-yesno.sh: Silence stderr during test.
63049
63050 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63051
63052         * modules/crypto/gc-camellia: New file.
63053
63054         * m4/gc-camellia.m4: New file.
63055
63056         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63057
63058         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63059
63060 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63061
63062         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63063         --help to stdout.  Reported by sms@antinode.org (Steven
63064         M. Schweda).
63065
63066 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63067
63068         * users.txt: Fix link to libksba.
63069
63070 2007-10-21  Ben Pfaff  <blp@gnu.org>
63071
63072         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63073         round.c roundf implementation that depends on floorf and ceilf to
63074         be tested unconditionally.
63075
63076 2007-10-21  Ben Pfaff  <blp@gnu.org>
63077
63078         * m4/check-libm-func.m4: Removed.
63079         * m4/check-math-lib.m4: New file.
63080         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63081         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63082         definition and lack of AC_LIBOBJ([roundf]).
63083         * m4/roundl.m4: Ditto, and similarly for roundl.
63084         * modules/round: Reference new m4 file.
63085         * modules/roundf: Ditto.
63086         * modules/roundl: Ditto.
63087         * tests/test-round2.c (main): Use ROUND instead of round.
63088         Bug report from Bruno Haible.
63089
63090 2007-10-21  Bruno Haible  <bruno@clisp.org>
63091
63092         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63093         context.
63094
63095 2007-10-21  Bruno Haible  <bruno@clisp.org>
63096
63097         * tests/test-wcwidth.c (main): Allow negative result for some control
63098         characters.
63099
63100         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63101         Needed on OSF/1 5.1.
63102
63103 2007-10-21  Bruno Haible  <bruno@clisp.org>
63104
63105         * tests/test-floorf1.c: Include isnanf.h.
63106         (main): Use isnanf() instead of isnan().
63107         * tests/test-ceilf1.c: Include isnanf.h.
63108         (main): Use isnanf() instead of isnan().
63109         * tests/test-truncf1.c: Include isnanf.h.
63110         (main): Use isnanf() instead of isnan().
63111         * tests/test-roundf1.c: Include isnanf.h.
63112         (main): Use isnanf() instead of isnan().
63113
63114 2007-10-21  Eric Blake  <ebb9@byu.net>
63115
63116         * users.txt: Update URL for m4.
63117
63118 2007-10-21  Bruno Haible  <bruno@clisp.org>
63119
63120         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63121
63122 2007-10-21  Bruno Haible  <bruno@clisp.org>
63123
63124         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63125         Git's management files if the CVS files are not present.
63126
63127 2007-10-20  Bruno Haible  <bruno@clisp.org>
63128
63129         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63130         gcc-3.4.x.
63131
63132 2007-10-20  Ben Pfaff  <blp@gnu.org>
63133
63134         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63135         implementations.
63136         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63137         * lib/round.c: New file.
63138         * lib/roundf.c: New file.
63139         * lib/roundl.c: New file.
63140         * m4/round.m4: New file.
63141         * m4/roundf.m4: New file.
63142         * m4/roundl.m4: New file.
63143         * m4/check-libm-func-m4: New file.
63144         * modules/math: Replace round, roundf, roundl related @VARS@ in
63145         math.in.h.
63146         * modules/round: New file.
63147         * modules/round-tests: New file.
63148         * modules/roundf: New file.
63149         * modules/roundf-tests: New file.
63150         * modules/roundl: New file.
63151         * modules/roundl-tests: New file.
63152         * tests/test-round1.c: New file.
63153         * tests/test-round2.c: New file.
63154         * tests/test-roundf1.c: New file.
63155         * tests/test-roundf2.c: New file.
63156         * tests/test-roundl.c: New file.
63157         * doc/functions/round.texi: Mention round module.
63158         * doc/functions/roundf.texi: Mention roundf module.
63159         * doc/functions/roundl.texi: Mention roundl module.
63160         * MODULES.html.sh: Mention new modules.
63161         Thanks to Bruno Haible for suggestions.
63162
63163 2007-10-20  Jim Meyering  <meyering@redhat.com>
63164
63165         * lib/xprintf.c: Include <config.h> unconditionally.
63166
63167         Change xprintf's license to GPL.
63168         * modules/xprintf (License): s/LGPL/GPL/, since this module
63169         depends on modules (exit and exitfail) which are GPL.
63170         Suggestion from Bruno Haible.
63171
63172         xprintf fixes.
63173         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63174         Use a clearer diagnostic.
63175         Patch from Bruno Haible.
63176
63177 2007-10-20  Bruno Haible  <bruno@clisp.org>
63178
63179         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63180         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63181         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63182
63183 2007-10-20  Bruno Haible  <bruno@clisp.org>
63184
63185         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63186         precision in the comparison result > x - 1 or similar.
63187         * tests/test-ceilf2.c (correct_result_p): Likewise.
63188         * tests/test-truncf2.c (correct_result_p): Likewise.
63189         * tests/test-trunc2.c (correct_result_p): Likewise.
63190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63191
63192 2007-10-20  Bruno Haible  <bruno@clisp.org>
63193
63194         * modules/ceil: New file.
63195         * m4/ceil.m4: New file.
63196         * doc/functions/ceil.texi: Mention the 'ceil' module.
63197
63198 2007-10-20  Bruno Haible  <bruno@clisp.org>
63199
63200         * modules/floor: New file.
63201         * m4/floor.m4: New file.
63202         * doc/functions/floor.texi: Mention the 'floor' module.
63203
63204 2007-10-20  Bruno Haible  <bruno@clisp.org>
63205
63206         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63207         of %a.
63208         * modules/floorf-tests (Depends-on): Likewise.
63209         * modules/truncf-tests (Depends-on): Likewise.
63210         * modules/trunc-tests (Depends-on): Likewise.
63211         Reported by Ben Pfaff.
63212
63213 2007-10-19  Jim Meyering  <meyering@redhat.com>
63214
63215         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63216         Don't bother testing specific errno values.  Just test ferror.
63217
63218         New module: xprintf
63219         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63220
63221 2007-10-19  Bruno Haible  <bruno@clisp.org>
63222
63223         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63224         syntax.
63225         * modules/javaexec (Makefile.am): Likewise.
63226         * modules/relocatable-prog (Makefile.am): Likewise.
63227         Suggested by Jim Meyering.
63228
63229 2007-10-18  Bruno Haible  <bruno@clisp.org>
63230
63231         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63232         Reported by Jim Meyering.
63233
63234 2007-10-18  Eric Blake  <ebb9@byu.net>
63235
63236         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63237
63238 2007-10-18  Bruno Haible  <bruno@clisp.org>
63239
63240         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63241         the format string into writable memory. Needed in Fortify conditions.
63242
63243 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63244             Bruno Haible  <bruno@clisp.org>
63245
63246         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63247         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63248         * modules/trim (Depends-on): Add mbchar.
63249         (configure.ac): Add gl_FUNC_MBRTOWC.
63250         (Makefile.am): Augment lib_SOURCES.
63251
63252 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63253
63254         Modify glob.c to use fstatat and dirfd, to simplify it.
63255         Suggested by Eric Blake.
63256         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63257         Don't include <stdbool.h>; not used.
63258         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63259         (link_exists_p): Simplify implementation, since we can now assume
63260         dirfd and fstatat.
63261         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63262
63263 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63264
63265         * gnulib-tool (func_get_dependencies): Fix sed script to
63266         match only tests.
63267
63268 2007-10-17  Bruno Haible  <bruno@clisp.org>
63269
63270         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63271         allow locale names without encoding suffix.
63272         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63273         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63274
63275 2007-10-16  Bruno Haible  <bruno@clisp.org>
63276
63277         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63278         * lib/getgroups.c (getgroups): Likewise.
63279         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63280
63281 2007-10-16  Bruno Haible  <bruno@clisp.org>
63282
63283         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63284         * modules/malloc-posix (License): Likewise.
63285         * modules/realloc-posix (License): Likewise.
63286         * modules/calloc-posix (License): Likewise.
63287         * modules/intprops (License): Change from GPL to LGPL, with
63288         Paul Eggert's approval.
63289
63290 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63291
63292         Merge glibc changes into lib/glob.c.
63293
63294         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63295         2007-10-15 04:59:03 UTC.  Here are the changes:
63296
63297         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63298
63299         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63300
63301         * lib/glob.c: Add some branch prediction throughout.
63302
63303         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63304
63305         [BZ #5103]
63306         * lib/glob.c (glob): Recognize patterns starting \/.
63307
63308         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63309
63310         [BZ #3996]
63311         * lib/glob.c (attribute_hidden): Define if not defined.
63312         (glob): Unescape dirname, filename or username when needed and not
63313         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63314         is NULL.  Handle unescaped [ in pattern without closing ].
63315         Don't pass GLOB_CHECK down to recursive glob for directories.
63316         (__glob_pattern_type): New function.
63317         (__glob_pattern_p): Implement using __glob_pattern_type.
63318         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63319         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63320         Remove unreachable code.
63321
63322         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63323
63324         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63325         explain why there are no leaks.
63326
63327         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63328
63329         [BZ #3253]
63330         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63331         time, rather allocate increasingly bigger arrays of pointers, if
63332         possible with alloca, if too large with malloc.
63333
63334 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63335
63336         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63337         Problem reported by H.Merijn Brand in
63338         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63339         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63340         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63341
63342 2007-10-15  Bruno Haible  <bruno@clisp.org>
63343
63344         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63345         with explicit rpl_ prefix.
63346         * lib/fopen.c (fopen): Likewise.
63347         * lib/freopen.c (freopen): Likewise.
63348         * lib/iconv.c (iconv): Likewise.
63349         * lib/iconv_close.c (iconv_close): Likewise.
63350
63351 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63352
63353         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63354
63355 2007-10-15  Bruno Haible  <bruno@clisp.org>
63356
63357         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63358         <stddef.h> instead of <stdlib.h> since we only need NULL.
63359         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63360
63361 2007-10-15  Bruno Haible  <bruno@clisp.org>
63362
63363         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63364         Replace paragraph talking about LIBOBJS.
63365         Reported by Colin Watson <cjwatson@debian.org>.
63366
63367 2007-10-15  Bruno Haible  <bruno@clisp.org>
63368
63369         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63370         <stdlib.h> before using NULL.
63371
63372 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63373
63374         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63375         Reported by Albert Chin <china@thewrittenword.com>.
63376
63377 2007-10-14  Bruno Haible  <bruno@clisp.org>
63378
63379         * modules/iconv_open-utf-tests: New file.
63380         * tests/test-iconv-utf.c: New file.
63381
63382         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63383         * modules/iconv_open-utf: New file.
63384         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63385         (iconv, iconv_close): New declarations.
63386         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63387         be defined.
63388         (iconv_open): Add special handling of conversion between UTF-8 and
63389         UTF-{16,32}{BE,LE}.
63390         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63391         * lib/iconv_close.c: New file.
63392         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63393         gl_FUNC_ICONV_OPEN.
63394         (gl_FUNC_ICONV_OPEN): Use it.
63395         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63396         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63397         and REPLACE_ICONV_UTF.
63398         * modules/iconv_open (Depends-on): Add c-strcase.
63399         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63400         ICONV_CONST.
63401         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63402
63403 2007-10-13  Albert Chin  <china@thewrittenword.com>
63404             Bruno Haible  <bruno@clisp.org>
63405
63406         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63407         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63408
63409 2007-10-13  Bruno Haible  <bruno@clisp.org>
63410
63411         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63412         defined, use the ISO C99 inline semantics.
63413         * lib/argp.h (ARGP_EI): Likewise.
63414
63415 2007-10-13  Bruno Haible  <bruno@clisp.org>
63416
63417         Handle 'inline' change in gcc 4.3.0.
63418         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63419         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63420         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63421         argp_fmtstream_point): Disable 'extern' declaration if the function
63422         definition is going to be provided inline.
63423         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63424         semantics, not the ISO C99 inline semantics.
63425         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63426         'extern' declaration if the function definition is going to be provided
63427         inline.
63428         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63429         the GNU C inline semantics, not the ISO C99 inline semantics. With
63430         GCC 4.2, avoid a warning.
63431
63432 2007-10-13  Bruno Haible  <bruno@clisp.org>
63433
63434         * lib/freading.h (freading): Enable the use of __freading for
63435         glibc >= 2.7.
63436         * lib/freading.c (freading): Likewise.
63437
63438 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63439
63440         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63441         "warning: C99 inline functions are not supported; using GNU89".
63442
63443 2007-10-12  Bruno Haible  <bruno@clisp.org>
63444
63445         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63446         of 2.
63447         * tests/test-ceilf2.c: New file.
63448         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63449
63450         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63451         * modules/ceilf-tests: Update.
63452
63453 2007-10-12  Bruno Haible  <bruno@clisp.org>
63454
63455         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63456         of 2.
63457         * tests/test-floorf2.c: New file.
63458         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63459
63460         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63461         * modules/floorf-tests: Update.
63462
63463 2007-10-12  Bruno Haible  <bruno@clisp.org>
63464
63465         * tests/test-trunc2.c: New file.
63466         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63467
63468         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63469         * modules/trunc-tests: Update.
63470
63471 2007-10-12  Bruno Haible  <bruno@clisp.org>
63472
63473         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63474         of 2.
63475         * tests/test-truncf2.c: New file.
63476         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63477
63478         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63479         * modules/truncf-tests: Update.
63480
63481 2007-10-11  Eric Blake  <ebb9@byu.net>
63482
63483         Don't claim strerror is broken on Interix.
63484         * doc/functions/strerror.texi (strerror): Known broken systems are
63485         now Solaris 8, and not Interix.
63486         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63487         Interix on cross-compile.
63488         Reported by Martin Koeppe in
63489         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63490
63491 2007-10-11  Bruno Haible  <bruno@clisp.org>
63492
63493         * modules/i-ring-tests: New file.
63494         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63495         instead of assert.
63496
63497 2007-10-11  Bruno Haible  <bruno@clisp.org>
63498
63499         * modules/filenamecat-tests: New file.
63500         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63501         * lib/filenamecat.c: Remove test code.
63502
63503 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63504
63505         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63506
63507         * lib/strerror.c: Include <string.h> always, to test interface,
63508         and to remove the need for the dummy.
63509         Include intprops.h to compute width instead of doing it ourselves
63510         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
63511         (strerror): Define it to return NULL if there's no system strerror.
63512         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
63513         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
63514         ancient pre-strerror Unix systems well any more.  Saying "unknown
63515         system error" is enough.
63516         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
63517         simpler strerror.c implementation.
63518         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
63519         Simplify the tests to reflect the simpler strerror implementation.
63520         * modules/strerror (Depends-on): Add intprops.
63521
63522 2007-10-09  Eric Blake  <ebb9@byu.net>
63523
63524         Silence test-fpending.
63525         * modules/fpending-tests (Files): Add wrapper script.
63526         * tests/test-fpending.sh: New file.
63527
63528 2007-10-09  Bruno Haible  <bruno@clisp.org>
63529
63530         * MODULES.html.sh (func_module): Don't create a hyperlink for
63531         function names like 'printf_frexp'.
63532         (Misc): Add crc, memxor.
63533         (Characteristics of floating types): New section.
63534         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
63535         isnanf-nolibm, signbit, trunc, truncf, truncl.
63536         (Enhancements for ISO C 99 functions): New subsection Input/output.
63537         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
63538         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
63539         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
63540         (Compatibility checks for POSIX:2001 functions): Add clock-time.
63541         (Enhancements for POSIX:2001 functions): Add chdir-long.
63542         (File system functions): Add areadlink, chdir-safer, read-file.
63543         Remove cycle-check.
63544         (File system as inode set): New section.
63545         (Date and time): Add gethrxtime.
63546         (Multithreading): Add openmp.
63547         (Internationalization functions): Add localename.
63548         (Unicode string functions): Add unistr/u*-mbsnlen.
63549         (Support for maintaining and releasing projects): Add git-version-gen.
63550         (Lone files): Remove directories.
63551
63552 2007-10-08  Ben Pfaff  <blp@gnu.org>
63553
63554         * lib/xmalloca.h: Fix typo in comment.
63555
63556 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
63557
63558         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
63559         when avoiding problems with integer overflow.  Use a portable test
63560         instead.
63561
63562 2007-10-08  Simon Josefsson  <simon@josefsson.org>
63563
63564         * modules/dummy (License): Change to LGPLv2+.
63565         * modules/float (License): Likewise
63566         * modules/realloc (License): Likewise
63567         * modules/stdlib (License): Likewise
63568
63569 2007-10-07  Bruno Haible  <bruno@clisp.org>
63570
63571         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
63572         * floor.c (TWO_MANT_DIG): Likewise.
63573         * ceil.c (TWO_MANT_DIG): Likewise.
63574         Reported by Ben Pfaff.
63575
63576 2007-10-07  Bruno Haible  <bruno@clisp.org>
63577
63578         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
63579         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
63580         * lib/frexp.c (FUNC): Likewise.
63581         * lib/printf-frexp.h (printf_frexp): Likewise.
63582         * lib/printf-frexpl.h (printf_frexpl): Likewise.
63583         * lib/printf-frexp.c (FUNC): Likewise.
63584         Suggested by Jim Meyering.
63585
63586 2007-10-07  Jim Meyering  <meyering@redhat.com>
63587
63588         Make xnanosleep's integer overflow test more robust.
63589         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
63590         so that gcc-4.3.0 doesn't optimize away this test for overflow.
63591
63592 2007-10-07  Bruno Haible  <bruno@clisp.org>
63593
63594         * NEWS: Mention the license change.
63595
63596         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
63597         abbreviations in the modules files.
63598
63599         Change copyright notice from GPLv2+ to GPLv3+.
63600         * README: Change copyright notice.
63601         * MODULES.html.sh: Likewise.
63602         * build-aux/bootstrap.conf: Likewise.
63603         * build-aux/config.libpath: Likewise.
63604         * build-aux/csharpcomp.sh.in: Likewise.
63605         * build-aux/csharpexec.sh.in: Likewise.
63606         * build-aux/install-reloc: Likewise.
63607         * build-aux/javacomp.sh.in: Likewise.
63608         * build-aux/javaexec.sh.in: Likewise.
63609         * build-aux/ldd.sh.in: Likewise.
63610         * build-aux/reloc-ldflags: Likewise.
63611         * build-aux/relocatable.sh.in: Likewise.
63612         * build-aux/x-to-1.in: Likewise.
63613         * check-module: Likewise.
63614         * config/srclistvars.sh: Likewise.
63615         * gnulib-tool: Likewise.
63616         * lib/acl-internal.h: Likewise.
63617         * lib/acl.c: Likewise.
63618         * lib/acl.h: Likewise.
63619         * lib/acl_entries.c: Likewise.
63620         * lib/areadlink-with-size.c: Likewise.
63621         * lib/areadlink.c: Likewise.
63622         * lib/areadlink.h: Likewise.
63623         * lib/argmatch.c: Likewise.
63624         * lib/argmatch.h: Likewise.
63625         * lib/argp-ba.c: Likewise.
63626         * lib/argp-eexst.c: Likewise.
63627         * lib/argp-fmtstream.c: Likewise.
63628         * lib/argp-fmtstream.h: Likewise.
63629         * lib/argp-fs-xinl.c: Likewise.
63630         * lib/argp-help.c: Likewise.
63631         * lib/argp-namefrob.h: Likewise.
63632         * lib/argp-parse.c: Likewise.
63633         * lib/argp-pin.c: Likewise.
63634         * lib/argp-pv.c: Likewise.
63635         * lib/argp-pvh.c: Likewise.
63636         * lib/argp-xinl.c: Likewise.
63637         * lib/argp.h: Likewise.
63638         * lib/at-func.c: Likewise.
63639         * lib/atanl.c: Likewise.
63640         * lib/backupfile.c: Likewise.
63641         * lib/backupfile.h: Likewise.
63642         * lib/basename.c: Likewise.
63643         * lib/binary-io.h: Likewise.
63644         * lib/byteswap.in.h: Likewise.
63645         * lib/c-stack.c: Likewise.
63646         * lib/c-stack.h: Likewise.
63647         * lib/c-strcasestr.c: Likewise.
63648         * lib/c-strcasestr.h: Likewise.
63649         * lib/c-strstr.c: Likewise.
63650         * lib/c-strstr.h: Likewise.
63651         * lib/c-strtod.c: Likewise.
63652         * lib/calloc.c: Likewise.
63653         * lib/canon-host.c: Likewise.
63654         * lib/canon-host.h: Likewise.
63655         * lib/canonicalize-lgpl.c: Likewise.
63656         * lib/canonicalize.c: Likewise.
63657         * lib/canonicalize.h: Likewise.
63658         * lib/ceil.c: Likewise.
63659         * lib/ceilf.c: Likewise.
63660         * lib/ceill.c: Likewise.
63661         * lib/chdir-long.c: Likewise.
63662         * lib/chdir-long.h: Likewise.
63663         * lib/chdir-safer.c: Likewise.
63664         * lib/chdir-safer.h: Likewise.
63665         * lib/chown.c: Likewise.
63666         * lib/classpath.c: Likewise.
63667         * lib/classpath.h: Likewise.
63668         * lib/clean-temp.c: Likewise.
63669         * lib/clean-temp.h: Likewise.
63670         * lib/cloexec.c: Likewise.
63671         * lib/close-stream.c: Likewise.
63672         * lib/closein.c: Likewise.
63673         * lib/closein.h: Likewise.
63674         * lib/closeout.c: Likewise.
63675         * lib/closeout.h: Likewise.
63676         * lib/concat-filename.c: Likewise.
63677         * lib/copy-file.c: Likewise.
63678         * lib/copy-file.h: Likewise.
63679         * lib/count-one-bits.h: Likewise.
63680         * lib/crc.c: Likewise.
63681         * lib/crc.h: Likewise.
63682         * lib/creat-safer.c: Likewise.
63683         * lib/csharpcomp.c: Likewise.
63684         * lib/csharpcomp.h: Likewise.
63685         * lib/csharpexec.c: Likewise.
63686         * lib/csharpexec.h: Likewise.
63687         * lib/cycle-check.c: Likewise.
63688         * lib/cycle-check.h: Likewise.
63689         * lib/diacrit.c: Likewise.
63690         * lib/diacrit.h: Likewise.
63691         * lib/diffseq.h: Likewise.
63692         * lib/dirchownmod.c: Likewise.
63693         * lib/dirent.in.h: Likewise.
63694         * lib/dirfd.c: Likewise.
63695         * lib/dirfd.h: Likewise.
63696         * lib/dirname.c: Likewise.
63697         * lib/dirname.h: Likewise.
63698         * lib/dummy.c: Likewise.
63699         * lib/dup-safer.c: Likewise.
63700         * lib/dup2.c: Likewise.
63701         * lib/eealloc.h: Likewise.
63702         * lib/error.c: Likewise.
63703         * lib/error.h: Likewise.
63704         * lib/euidaccess.c: Likewise.
63705         * lib/exclude.c: Likewise.
63706         * lib/exclude.h: Likewise.
63707         * lib/execute.c: Likewise.
63708         * lib/execute.h: Likewise.
63709         * lib/exitfail.c: Likewise.
63710         * lib/exitfail.h: Likewise.
63711         * lib/expl.c: Likewise.
63712         * lib/fatal-signal.c: Likewise.
63713         * lib/fatal-signal.h: Likewise.
63714         * lib/fbufmode.c: Likewise.
63715         * lib/fbufmode.h: Likewise.
63716         * lib/fchdir.c: Likewise.
63717         * lib/fchmodat.c: Likewise.
63718         * lib/fchownat.c: Likewise.
63719         * lib/fcntl--.h: Likewise.
63720         * lib/fcntl-safer.h: Likewise.
63721         * lib/fcntl.in.h: Likewise.
63722         * lib/fd-safer.c: Likewise.
63723         * lib/fflush.c: Likewise.
63724         * lib/file-has-acl.c: Likewise.
63725         * lib/file-set.c: Likewise.
63726         * lib/file-type.c: Likewise.
63727         * lib/file-type.h: Likewise.
63728         * lib/fileblocks.c: Likewise.
63729         * lib/filemode.c: Likewise.
63730         * lib/filemode.h: Likewise.
63731         * lib/filename.h: Likewise.
63732         * lib/filenamecat.c: Likewise.
63733         * lib/filenamecat.h: Likewise.
63734         * lib/findprog.c: Likewise.
63735         * lib/findprog.h: Likewise.
63736         * lib/float.in.h: Likewise.
63737         * lib/floor.c: Likewise.
63738         * lib/floorf.c: Likewise.
63739         * lib/floorl.c: Likewise.
63740         * lib/fopen-safer.c: Likewise.
63741         * lib/fopen.c: Likewise.
63742         * lib/fpending.c: Likewise.
63743         * lib/fpending.h: Likewise.
63744         * lib/fprintf.c: Likewise.
63745         * lib/fprintftime.h: Likewise.
63746         * lib/fpucw.h: Likewise.
63747         * lib/fpurge.c: Likewise.
63748         * lib/fpurge.h: Likewise.
63749         * lib/freadable.c: Likewise.
63750         * lib/freadable.h: Likewise.
63751         * lib/freadahead.c: Likewise.
63752         * lib/freadahead.h: Likewise.
63753         * lib/freading.c: Likewise.
63754         * lib/freading.h: Likewise.
63755         * lib/free.c: Likewise.
63756         * lib/freopen.c: Likewise.
63757         * lib/frexp.c: Likewise.
63758         * lib/frexpl.c: Likewise.
63759         * lib/fseek.c: Likewise.
63760         * lib/fseterr.c: Likewise.
63761         * lib/fseterr.h: Likewise.
63762         * lib/fstatat.c: Likewise.
63763         * lib/fstrcmp.c: Likewise.
63764         * lib/fstrcmp.h: Likewise.
63765         * lib/fsusage.c: Likewise.
63766         * lib/fsusage.h: Likewise.
63767         * lib/ftell.c: Likewise.
63768         * lib/ftello.c: Likewise.
63769         * lib/fts-cycle.c: Likewise.
63770         * lib/fts.c: Likewise.
63771         * lib/fts_.h: Likewise.
63772         * lib/full-read.c: Likewise.
63773         * lib/full-read.h: Likewise.
63774         * lib/full-write.c: Likewise.
63775         * lib/full-write.h: Likewise.
63776         * lib/fwritable.c: Likewise.
63777         * lib/fwritable.h: Likewise.
63778         * lib/fwriteerror.c: Likewise.
63779         * lib/fwriteerror.h: Likewise.
63780         * lib/fwriting.c: Likewise.
63781         * lib/fwriting.h: Likewise.
63782         * lib/gcd.c: Likewise.
63783         * lib/gcd.h: Likewise.
63784         * lib/getcwd.c: Likewise.
63785         * lib/getdate.h: Likewise.
63786         * lib/getdate.y: Likewise.
63787         * lib/getdomainname.c: Likewise.
63788         * lib/getdomainname.h: Likewise.
63789         * lib/getgroups.c: Likewise.
63790         * lib/gethostname.c: Likewise.
63791         * lib/gethrxtime.c: Likewise.
63792         * lib/gethrxtime.h: Likewise.
63793         * lib/getloadavg.c: Likewise.
63794         * lib/getndelim2.c: Likewise.
63795         * lib/getndelim2.h: Likewise.
63796         * lib/getnline.c: Likewise.
63797         * lib/getnline.h: Likewise.
63798         * lib/getopt.c: Likewise.
63799         * lib/getopt.in.h: Likewise.
63800         * lib/getopt1.c: Likewise.
63801         * lib/getopt_int.h: Likewise.
63802         * lib/getpagesize.h: Likewise.
63803         * lib/getsubopt.c: Likewise.
63804         * lib/gettime.c: Likewise.
63805         * lib/getugroups.c: Likewise.
63806         * lib/getugroups.h: Likewise.
63807         * lib/getusershell.c: Likewise.
63808         * lib/gl_anyavltree_list1.h: Likewise.
63809         * lib/gl_anyavltree_list2.h: Likewise.
63810         * lib/gl_anyhash_list1.h: Likewise.
63811         * lib/gl_anyhash_list2.h: Likewise.
63812         * lib/gl_anylinked_list1.h: Likewise.
63813         * lib/gl_anylinked_list2.h: Likewise.
63814         * lib/gl_anyrbtree_list1.h: Likewise.
63815         * lib/gl_anyrbtree_list2.h: Likewise.
63816         * lib/gl_anytree_list1.h: Likewise.
63817         * lib/gl_anytree_list2.h: Likewise.
63818         * lib/gl_anytree_oset.h: Likewise.
63819         * lib/gl_anytreehash_list1.h: Likewise.
63820         * lib/gl_anytreehash_list2.h: Likewise.
63821         * lib/gl_array_list.c: Likewise.
63822         * lib/gl_array_list.h: Likewise.
63823         * lib/gl_array_oset.c: Likewise.
63824         * lib/gl_array_oset.h: Likewise.
63825         * lib/gl_avltree_list.c: Likewise.
63826         * lib/gl_avltree_list.h: Likewise.
63827         * lib/gl_avltree_oset.c: Likewise.
63828         * lib/gl_avltree_oset.h: Likewise.
63829         * lib/gl_avltreehash_list.c: Likewise.
63830         * lib/gl_avltreehash_list.h: Likewise.
63831         * lib/gl_carray_list.c: Likewise.
63832         * lib/gl_carray_list.h: Likewise.
63833         * lib/gl_linked_list.c: Likewise.
63834         * lib/gl_linked_list.h: Likewise.
63835         * lib/gl_linkedhash_list.c: Likewise.
63836         * lib/gl_linkedhash_list.h: Likewise.
63837         * lib/gl_list.c: Likewise.
63838         * lib/gl_list.h: Likewise.
63839         * lib/gl_oset.c: Likewise.
63840         * lib/gl_oset.h: Likewise.
63841         * lib/gl_rbtree_list.c: Likewise.
63842         * lib/gl_rbtree_list.h: Likewise.
63843         * lib/gl_rbtree_oset.c: Likewise.
63844         * lib/gl_rbtree_oset.h: Likewise.
63845         * lib/gl_rbtreehash_list.c: Likewise.
63846         * lib/gl_rbtreehash_list.h: Likewise.
63847         * lib/gl_sublist.c: Likewise.
63848         * lib/gl_sublist.h: Likewise.
63849         * lib/group-member.c: Likewise.
63850         * lib/group-member.h: Likewise.
63851         * lib/hard-locale.c: Likewise.
63852         * lib/hard-locale.h: Likewise.
63853         * lib/hash-pjw.c: Likewise.
63854         * lib/hash-pjw.h: Likewise.
63855         * lib/hash-triple.c: Likewise.
63856         * lib/hash.c: Likewise.
63857         * lib/hash.h: Likewise.
63858         * lib/human.c: Likewise.
63859         * lib/human.h: Likewise.
63860         * lib/i-ring.c: Likewise.
63861         * lib/i-ring.h: Likewise.
63862         * lib/idcache.c: Likewise.
63863         * lib/imaxabs.c: Likewise.
63864         * lib/imaxdiv.c: Likewise.
63865         * lib/inet_pton.c: Likewise.
63866         * lib/inet_pton.h: Likewise.
63867         * lib/intprops.h: Likewise.
63868         * lib/inttostr.c: Likewise.
63869         * lib/inttostr.h: Likewise.
63870         * lib/inttypes.in.h: Likewise.
63871         * lib/isapipe.c: Likewise.
63872         * lib/isdir.c: Likewise.
63873         * lib/isnan.c: Likewise.
63874         * lib/isnan.h: Likewise.
63875         * lib/isnanf.c: Likewise.
63876         * lib/isnanf.h: Likewise.
63877         * lib/isnanl-nolibm.h: Likewise.
63878         * lib/isnanl.c: Likewise.
63879         * lib/isnanl.h: Likewise.
63880         * lib/javacomp.c: Likewise.
63881         * lib/javacomp.h: Likewise.
63882         * lib/javaexec.c: Likewise.
63883         * lib/javaexec.h: Likewise.
63884         * lib/javaversion.c: Likewise.
63885         * lib/javaversion.h: Likewise.
63886         * lib/javaversion.java: Likewise.
63887         * lib/lbrkprop.h: Likewise.
63888         * lib/lchmod.h: Likewise.
63889         * lib/lchown.c: Likewise.
63890         * lib/ldexpl.c: Likewise.
63891         * lib/linebreak.c: Likewise.
63892         * lib/linebreak.h: Likewise.
63893         * lib/linebuffer.c: Likewise.
63894         * lib/linebuffer.h: Likewise.
63895         * lib/locale.in.h: Likewise.
63896         * lib/logl.c: Likewise.
63897         * lib/long-options.c: Likewise.
63898         * lib/long-options.h: Likewise.
63899         * lib/lstat.c: Likewise.
63900         * lib/lstat.h: Likewise.
63901         * lib/math.in.h: Likewise.
63902         * lib/mbchar.c: Likewise.
63903         * lib/mbchar.h: Likewise.
63904         * lib/mbfile.h: Likewise.
63905         * lib/mbiter.h: Likewise.
63906         * lib/mbscasecmp.c: Likewise.
63907         * lib/mbscasestr.c: Likewise.
63908         * lib/mbschr.c: Likewise.
63909         * lib/mbscspn.c: Likewise.
63910         * lib/mbslen.c: Likewise.
63911         * lib/mbsncasecmp.c: Likewise.
63912         * lib/mbsnlen.c: Likewise.
63913         * lib/mbspbrk.c: Likewise.
63914         * lib/mbspcasecmp.c: Likewise.
63915         * lib/mbsrchr.c: Likewise.
63916         * lib/mbssep.c: Likewise.
63917         * lib/mbsspn.c: Likewise.
63918         * lib/mbsstr.c: Likewise.
63919         * lib/mbstok_r.c: Likewise.
63920         * lib/mbswidth.c: Likewise.
63921         * lib/mbswidth.h: Likewise.
63922         * lib/mbuiter.h: Likewise.
63923         * lib/memcasecmp.c: Likewise.
63924         * lib/memcasecmp.h: Likewise.
63925         * lib/memchr.c: Likewise.
63926         * lib/memcmp.c: Likewise.
63927         * lib/memcoll.c: Likewise.
63928         * lib/memcoll.h: Likewise.
63929         * lib/memcpy.c: Likewise.
63930         * lib/memrchr.c: Likewise.
63931         * lib/mkancesdirs.c: Likewise.
63932         * lib/mkdir-p.c: Likewise.
63933         * lib/mkdir-p.h: Likewise.
63934         * lib/mkdir.c: Likewise.
63935         * lib/mkdirat.c: Likewise.
63936         * lib/mkdtemp.c: Likewise.
63937         * lib/mkstemp-safer.c: Likewise.
63938         * lib/mkstemp.c: Likewise.
63939         * lib/modechange.c: Likewise.
63940         * lib/modechange.h: Likewise.
63941         * lib/mountlist.c: Likewise.
63942         * lib/mountlist.h: Likewise.
63943         * lib/mpsort.c: Likewise.
63944         * lib/nanosleep.c: Likewise.
63945         * lib/obstack.c: Likewise.
63946         * lib/obstack.h: Likewise.
63947         * lib/open-safer.c: Likewise.
63948         * lib/open.c: Likewise.
63949         * lib/openat-die.c: Likewise.
63950         * lib/openat-priv.h: Likewise.
63951         * lib/openat-proc.c: Likewise.
63952         * lib/openat.c: Likewise.
63953         * lib/openat.h: Likewise.
63954         * lib/pagealign_alloc.c: Likewise.
63955         * lib/pagealign_alloc.h: Likewise.
63956         * lib/physmem.c: Likewise.
63957         * lib/physmem.h: Likewise.
63958         * lib/pipe-safer.c: Likewise.
63959         * lib/pipe.c: Likewise.
63960         * lib/pipe.h: Likewise.
63961         * lib/posixtm.c: Likewise.
63962         * lib/posixtm.h: Likewise.
63963         * lib/posixver.c: Likewise.
63964         * lib/printf-frexp.c: Likewise.
63965         * lib/printf-frexp.h: Likewise.
63966         * lib/printf-frexpl.c: Likewise.
63967         * lib/printf-frexpl.h: Likewise.
63968         * lib/printf.c: Likewise.
63969         * lib/progname.c: Likewise.
63970         * lib/progname.h: Likewise.
63971         * lib/progreloc.c: Likewise.
63972         * lib/putenv.c: Likewise.
63973         * lib/quote.c: Likewise.
63974         * lib/quote.h: Likewise.
63975         * lib/quotearg.c: Likewise.
63976         * lib/quotearg.h: Likewise.
63977         * lib/raise.c: Likewise.
63978         * lib/readline.c: Likewise.
63979         * lib/readline.h: Likewise.
63980         * lib/readlink.c: Likewise.
63981         * lib/readtokens.c: Likewise.
63982         * lib/readtokens.h: Likewise.
63983         * lib/readtokens0.c: Likewise.
63984         * lib/readtokens0.h: Likewise.
63985         * lib/readutmp.c: Likewise.
63986         * lib/readutmp.h: Likewise.
63987         * lib/realloc.c: Likewise.
63988         * lib/relocwrapper.c: Likewise.
63989         * lib/rename-dest-slash.c: Likewise.
63990         * lib/rename.c: Likewise.
63991         * lib/rmdir.c: Likewise.
63992         * lib/rpmatch.c: Likewise.
63993         * lib/safe-read.c: Likewise.
63994         * lib/safe-read.h: Likewise.
63995         * lib/safe-write.c: Likewise.
63996         * lib/safe-write.h: Likewise.
63997         * lib/same-inode.h: Likewise.
63998         * lib/same.c: Likewise.
63999         * lib/same.h: Likewise.
64000         * lib/save-cwd.c: Likewise.
64001         * lib/save-cwd.h: Likewise.
64002         * lib/savedir.c: Likewise.
64003         * lib/savedir.h: Likewise.
64004         * lib/savewd.c: Likewise.
64005         * lib/savewd.h: Likewise.
64006         * lib/search.in.h: Likewise.
64007         * lib/setenv.c: Likewise.
64008         * lib/setenv.h: Likewise.
64009         * lib/settime.c: Likewise.
64010         * lib/sh-quote.c: Likewise.
64011         * lib/sh-quote.h: Likewise.
64012         * lib/sig2str.c: Likewise.
64013         * lib/sig2str.h: Likewise.
64014         * lib/signal.in.h: Likewise.
64015         * lib/signbitd.c: Likewise.
64016         * lib/signbitf.c: Likewise.
64017         * lib/signbitl.c: Likewise.
64018         * lib/sigprocmask.c: Likewise.
64019         * lib/sincosl.c: Likewise.
64020         * lib/sleep.c: Likewise.
64021         * lib/sprintf.c: Likewise.
64022         * lib/sqrtl.c: Likewise.
64023         * lib/stat-time.h: Likewise.
64024         * lib/stdio--.h: Likewise.
64025         * lib/stdio-safer.h: Likewise.
64026         * lib/stdlib--.h: Likewise.
64027         * lib/stdlib-safer.h: Likewise.
64028         * lib/stdlib.in.h: Likewise.
64029         * lib/stpcpy.c: Likewise.
64030         * lib/stpncpy.c: Likewise.
64031         * lib/strchrnul.c: Likewise.
64032         * lib/strcspn.c: Likewise.
64033         * lib/strerror.c: Likewise.
64034         * lib/strftime.c: Likewise.
64035         * lib/strftime.h: Likewise.
64036         * lib/striconveh.c: Likewise.
64037         * lib/striconveh.h: Likewise.
64038         * lib/striconveha.c: Likewise.
64039         * lib/striconveha.h: Likewise.
64040         * lib/stripslash.c: Likewise.
64041         * lib/strnlen1.c: Likewise.
64042         * lib/strnlen1.h: Likewise.
64043         * lib/strtod.c: Likewise.
64044         * lib/strtoimax.c: Likewise.
64045         * lib/strtok_r.c: Likewise.
64046         * lib/strtol.c: Likewise.
64047         * lib/strtoll.c: Likewise.
64048         * lib/strtoul.c: Likewise.
64049         * lib/strtoull.c: Likewise.
64050         * lib/sysexits.in.h: Likewise.
64051         * lib/tempname.c: Likewise.
64052         * lib/tempname.h: Likewise.
64053         * lib/timespec.h: Likewise.
64054         * lib/tls.c: Likewise.
64055         * lib/tls.h: Likewise.
64056         * lib/tmpdir.c: Likewise.
64057         * lib/tmpdir.h: Likewise.
64058         * lib/tmpfile-safer.c: Likewise.
64059         * lib/tmpfile.c: Likewise.
64060         * lib/trigl.c: Likewise.
64061         * lib/trigl.h: Likewise.
64062         * lib/trim.c: Likewise.
64063         * lib/trim.h: Likewise.
64064         * lib/trunc.c: Likewise.
64065         * lib/truncf.c: Likewise.
64066         * lib/truncl.c: Likewise.
64067         * lib/tsearch.c: Likewise.
64068         * lib/unicodeio.c: Likewise.
64069         * lib/unicodeio.h: Likewise.
64070         * lib/unistd--.h: Likewise.
64071         * lib/unistd-safer.h: Likewise.
64072         * lib/unistdio/ulc-fprintf.c: Likewise.
64073         * lib/unistdio/ulc-vfprintf.c: Likewise.
64074         * lib/unlinkdir.c: Likewise.
64075         * lib/unlinkdir.h: Likewise.
64076         * lib/unlocked-io.h: Likewise.
64077         * lib/unsetenv.c: Likewise.
64078         * lib/userspec.c: Likewise.
64079         * lib/utime.c: Likewise.
64080         * lib/utimecmp.c: Likewise.
64081         * lib/utimecmp.h: Likewise.
64082         * lib/utimens.c: Likewise.
64083         * lib/verify.h: Likewise.
64084         * lib/verror.c: Likewise.
64085         * lib/verror.h: Likewise.
64086         * lib/version-etc-fsf.c: Likewise.
64087         * lib/version-etc.c: Likewise.
64088         * lib/version-etc.h: Likewise.
64089         * lib/vfprintf.c: Likewise.
64090         * lib/vprintf.c: Likewise.
64091         * lib/vsprintf.c: Likewise.
64092         * lib/w32spawn.h: Likewise.
64093         * lib/wait-process.c: Likewise.
64094         * lib/wait-process.h: Likewise.
64095         * lib/wcwidth.c: Likewise.
64096         * lib/write-any-file.c: Likewise.
64097         * lib/xalloc-die.c: Likewise.
64098         * lib/xalloc.h: Likewise.
64099         * lib/xasprintf.c: Likewise.
64100         * lib/xgetcwd.c: Likewise.
64101         * lib/xgetcwd.h: Likewise.
64102         * lib/xgetdomainname.c: Likewise.
64103         * lib/xgetdomainname.h: Likewise.
64104         * lib/xgethostname.c: Likewise.
64105         * lib/xmalloc.c: Likewise.
64106         * lib/xmalloca.c: Likewise.
64107         * lib/xmalloca.h: Likewise.
64108         * lib/xmemcoll.c: Likewise.
64109         * lib/xnanosleep.c: Likewise.
64110         * lib/xreadlink.c: Likewise.
64111         * lib/xreadlink.h: Likewise.
64112         * lib/xsetenv.c: Likewise.
64113         * lib/xsetenv.h: Likewise.
64114         * lib/xstriconv.c: Likewise.
64115         * lib/xstriconv.h: Likewise.
64116         * lib/xstrndup.c: Likewise.
64117         * lib/xstrndup.h: Likewise.
64118         * lib/xstrtod.c: Likewise.
64119         * lib/xstrtod.h: Likewise.
64120         * lib/xstrtol-error.c: Likewise.
64121         * lib/xstrtol.c: Likewise.
64122         * lib/xstrtol.h: Likewise.
64123         * lib/xtime.h: Likewise.
64124         * lib/xvasprintf.c: Likewise.
64125         * lib/xvasprintf.h: Likewise.
64126         * lib/yesno.c: Likewise.
64127         * lib/yesno.h: Likewise.
64128         * posix-modules: Likewise.
64129         * tests/test-alloca-opt.c: Likewise.
64130         * tests/test-arcfour.c: Likewise.
64131         * tests/test-arctwo.c: Likewise.
64132         * tests/test-argmatch.c: Likewise.
64133         * tests/test-argp-2.sh: Likewise.
64134         * tests/test-argp.c: Likewise.
64135         * tests/test-arpa_inet.c: Likewise.
64136         * tests/test-array_list.c: Likewise.
64137         * tests/test-array_oset.c: Likewise.
64138         * tests/test-atexit.c: Likewise.
64139         * tests/test-avltree_list.c: Likewise.
64140         * tests/test-avltree_oset.c: Likewise.
64141         * tests/test-avltreehash_list.c: Likewise.
64142         * tests/test-base64.c: Likewise.
64143         * tests/test-binary-io.c: Likewise.
64144         * tests/test-byteswap.c: Likewise.
64145         * tests/test-c-ctype.c: Likewise.
64146         * tests/test-c-strcasecmp.c: Likewise.
64147         * tests/test-c-strcasestr.c: Likewise.
64148         * tests/test-c-strncasecmp.c: Likewise.
64149         * tests/test-c-strstr.c: Likewise.
64150         * tests/test-canonicalize-lgpl.c: Likewise.
64151         * tests/test-canonicalize.c: Likewise.
64152         * tests/test-carray_list.c: Likewise.
64153         * tests/test-ceilf.c: Likewise.
64154         * tests/test-ceill.c: Likewise.
64155         * tests/test-count-one-bits.c: Likewise.
64156         * tests/test-crc.c: Likewise.
64157         * tests/test-dirname.c: Likewise.
64158         * tests/test-fbufmode.c: Likewise.
64159         * tests/test-fcntl.c: Likewise.
64160         * tests/test-fflush.c: Likewise.
64161         * tests/test-floorf.c: Likewise.
64162         * tests/test-floorl.c: Likewise.
64163         * tests/test-fopen.c: Likewise.
64164         * tests/test-fprintf-posix.c: Likewise.
64165         * tests/test-fprintf-posix.h: Likewise.
64166         * tests/test-fpurge.c: Likewise.
64167         * tests/test-freadable.c: Likewise.
64168         * tests/test-freadahead.c: Likewise.
64169         * tests/test-freading.c: Likewise.
64170         * tests/test-freopen.c: Likewise.
64171         * tests/test-frexp.c: Likewise.
64172         * tests/test-frexpl.c: Likewise.
64173         * tests/test-fseek.c: Likewise.
64174         * tests/test-fseeko.c: Likewise.
64175         * tests/test-fseterr.c: Likewise.
64176         * tests/test-fstrcmp.c: Likewise.
64177         * tests/test-ftell.c: Likewise.
64178         * tests/test-ftello.c: Likewise.
64179         * tests/test-fwritable.c: Likewise.
64180         * tests/test-fwriting.c: Likewise.
64181         * tests/test-getaddrinfo.c: Likewise.
64182         * tests/test-getpass.c: Likewise.
64183         * tests/test-gettimeofday.c: Likewise.
64184         * tests/test-hmac-md5.c: Likewise.
64185         * tests/test-hmac-sha1.c: Likewise.
64186         * tests/test-iconv.c: Likewise.
64187         * tests/test-iconvme.c: Likewise.
64188         * tests/test-inttypes.c: Likewise.
64189         * tests/test-isnan.c: Likewise.
64190         * tests/test-isnanf.c: Likewise.
64191         * tests/test-isnanl-nolibm.c: Likewise.
64192         * tests/test-isnanl.c: Likewise.
64193         * tests/test-isnanl.h: Likewise.
64194         * tests/test-ldexpl.c: Likewise.
64195         * tests/test-linked_list.c: Likewise.
64196         * tests/test-linkedhash_list.c: Likewise.
64197         * tests/test-locale.c: Likewise.
64198         * tests/test-localename.c: Likewise.
64199         * tests/test-lock.c: Likewise.
64200         * tests/test-lseek.c: Likewise.
64201         * tests/test-malloca.c: Likewise.
64202         * tests/test-math.c: Likewise.
64203         * tests/test-mbscasecmp.c: Likewise.
64204         * tests/test-mbscasestr1.c: Likewise.
64205         * tests/test-mbscasestr2.c: Likewise.
64206         * tests/test-mbscasestr3.c: Likewise.
64207         * tests/test-mbscasestr4.c: Likewise.
64208         * tests/test-mbschr.c: Likewise.
64209         * tests/test-mbscspn.c: Likewise.
64210         * tests/test-mbsncasecmp.c: Likewise.
64211         * tests/test-mbspbrk.c: Likewise.
64212         * tests/test-mbspcasecmp.c: Likewise.
64213         * tests/test-mbsrchr.c: Likewise.
64214         * tests/test-mbsspn.c: Likewise.
64215         * tests/test-mbsstr1.c: Likewise.
64216         * tests/test-mbsstr2.c: Likewise.
64217         * tests/test-mbsstr3.c: Likewise.
64218         * tests/test-md5.c: Likewise.
64219         * tests/test-memmem.c: Likewise.
64220         * tests/test-netinet_in.c: Likewise.
64221         * tests/test-open.c: Likewise.
64222         * tests/test-printf-frexp.c: Likewise.
64223         * tests/test-printf-frexpl.c: Likewise.
64224         * tests/test-printf-posix.c: Likewise.
64225         * tests/test-printf-posix.h: Likewise.
64226         * tests/test-rbtree_list.c: Likewise.
64227         * tests/test-rbtree_oset.c: Likewise.
64228         * tests/test-rbtreehash_list.c: Likewise.
64229         * tests/test-read-file.c: Likewise.
64230         * tests/test-rijndael.c: Likewise.
64231         * tests/test-search.c: Likewise.
64232         * tests/test-signbit.c: Likewise.
64233         * tests/test-sleep.c: Likewise.
64234         * tests/test-snprintf-posix.c: Likewise.
64235         * tests/test-snprintf-posix.h: Likewise.
64236         * tests/test-snprintf.c: Likewise.
64237         * tests/test-sprintf-posix.c: Likewise.
64238         * tests/test-sprintf-posix.h: Likewise.
64239         * tests/test-stat-time.c: Likewise.
64240         * tests/test-stdbool.c: Likewise.
64241         * tests/test-stdint.c: Likewise.
64242         * tests/test-stdio.c: Likewise.
64243         * tests/test-stdlib.c: Likewise.
64244         * tests/test-stpncpy.c: Likewise.
64245         * tests/test-strcasestr.c: Likewise.
64246         * tests/test-striconv.c: Likewise.
64247         * tests/test-striconveh.c: Likewise.
64248         * tests/test-striconveha.c: Likewise.
64249         * tests/test-string.c: Likewise.
64250         * tests/test-sys_select.c: Likewise.
64251         * tests/test-sys_socket.c: Likewise.
64252         * tests/test-sys_stat.c: Likewise.
64253         * tests/test-sys_time.c: Likewise.
64254         * tests/test-sysexits.c: Likewise.
64255         * tests/test-time.c: Likewise.
64256         * tests/test-tls.c: Likewise.
64257         * tests/test-trunc.c: Likewise.
64258         * tests/test-truncf.c: Likewise.
64259         * tests/test-truncl.c: Likewise.
64260         * tests/test-unistd.c: Likewise.
64261         * tests/test-vasnprintf-posix.c: Likewise.
64262         * tests/test-vasnprintf-posix2.c: Likewise.
64263         * tests/test-vasnprintf.c: Likewise.
64264         * tests/test-vasprintf-posix.c: Likewise.
64265         * tests/test-vasprintf.c: Likewise.
64266         * tests/test-verify.c: Likewise.
64267         * tests/test-vfprintf-posix.c: Likewise.
64268         * tests/test-vprintf-posix.c: Likewise.
64269         * tests/test-vsnprintf-posix.c: Likewise.
64270         * tests/test-vsnprintf.c: Likewise.
64271         * tests/test-vsprintf-posix.c: Likewise.
64272         * tests/test-wchar.c: Likewise.
64273         * tests/test-wctype.c: Likewise.
64274         * tests/test-wcwidth.c: Likewise.
64275         * tests/test-xstrtol.c: Likewise.
64276         * tests/test-xvasprintf.c: Likewise.
64277         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64278         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64279         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64280         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64281         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64282         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64283         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64284         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64285         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64286         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64287         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64288         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64289         * tests/uniname/test-uninames.c: Likewise.
64290         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64291         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64292         * tests/unistdio/test-u16-printf1.h: Likewise.
64293         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64294         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64295         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64296         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64297         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64298         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64299         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64300         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64301         * tests/unistdio/test-u32-printf1.h: Likewise.
64302         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64303         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64304         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64305         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64306         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64307         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64308         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64309         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64310         * tests/unistdio/test-u8-printf1.h: Likewise.
64311         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64312         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64313         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64314         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64315         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64316         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64317         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64318         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64319         * tests/unistdio/test-ulc-printf1.h: Likewise.
64320         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64321         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64322         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64323         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64324         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64325         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64326         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64327         * tests/uniwidth/test-u16-width.c: Likewise.
64328         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64329         * tests/uniwidth/test-u32-width.c: Likewise.
64330         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64331         * tests/uniwidth/test-u8-width.c: Likewise.
64332         * tests/uniwidth/test-uc_width.c: Likewise.
64333         * config/srclist-update: Likewise.
64334         (fixlicense): Update to GPLv3+.
64335
64336         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64337         * tests/test-tsearch.c: Change copyright notice.
64338
64339         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64340         * lib/c-strcaseeq.h: Change copyright notice.
64341         * lib/streq.h: Likewise.
64342         * lib/uniconv.h: Likewise.
64343         * lib/uniconv/u-conv-from-enc.h: Likewise.
64344         * lib/uniconv/u-conv-to-enc.h: Likewise.
64345         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64346         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64347         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64348         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64349         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64350         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64351         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64352         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64353         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64354         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64355         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64356         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64357         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64358         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64359         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64360         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64361         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64362         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64363         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64364         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64365         * lib/uniname.h: Likewise.
64366         * lib/uniname/uniname.c: Likewise.
64367         * lib/unistdio.h: Likewise.
64368         * lib/unistdio/u-asnprintf.h: Likewise.
64369         * lib/unistdio/u-asprintf.h: Likewise.
64370         * lib/unistdio/u-printf-args.c: Likewise.
64371         * lib/unistdio/u-printf-args.h: Likewise.
64372         * lib/unistdio/u-printf-parse.h: Likewise.
64373         * lib/unistdio/u-snprintf.h: Likewise.
64374         * lib/unistdio/u-sprintf.h: Likewise.
64375         * lib/unistdio/u-vasprintf.h: Likewise.
64376         * lib/unistdio/u-vsnprintf.h: Likewise.
64377         * lib/unistdio/u-vsprintf.h: Likewise.
64378         * lib/unistdio/u16-asnprintf.c: Likewise.
64379         * lib/unistdio/u16-asprintf.c: Likewise.
64380         * lib/unistdio/u16-printf-parse.c: Likewise.
64381         * lib/unistdio/u16-snprintf.c: Likewise.
64382         * lib/unistdio/u16-sprintf.c: Likewise.
64383         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64384         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64385         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64386         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64387         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64388         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64389         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64390         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64391         * lib/unistdio/u16-vasnprintf.c: Likewise.
64392         * lib/unistdio/u16-vasprintf.c: Likewise.
64393         * lib/unistdio/u16-vsnprintf.c: Likewise.
64394         * lib/unistdio/u16-vsprintf.c: Likewise.
64395         * lib/unistdio/u32-asnprintf.c: Likewise.
64396         * lib/unistdio/u32-asprintf.c: Likewise.
64397         * lib/unistdio/u32-printf-parse.c: Likewise.
64398         * lib/unistdio/u32-snprintf.c: Likewise.
64399         * lib/unistdio/u32-sprintf.c: Likewise.
64400         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64401         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64402         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64403         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64404         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64405         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64406         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64407         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64408         * lib/unistdio/u32-vasnprintf.c: Likewise.
64409         * lib/unistdio/u32-vasprintf.c: Likewise.
64410         * lib/unistdio/u32-vsnprintf.c: Likewise.
64411         * lib/unistdio/u32-vsprintf.c: Likewise.
64412         * lib/unistdio/u8-asnprintf.c: Likewise.
64413         * lib/unistdio/u8-asprintf.c: Likewise.
64414         * lib/unistdio/u8-printf-parse.c: Likewise.
64415         * lib/unistdio/u8-snprintf.c: Likewise.
64416         * lib/unistdio/u8-sprintf.c: Likewise.
64417         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64418         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64419         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64420         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64421         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64422         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64423         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64424         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64425         * lib/unistdio/u8-vasnprintf.c: Likewise.
64426         * lib/unistdio/u8-vasprintf.c: Likewise.
64427         * lib/unistdio/u8-vsnprintf.c: Likewise.
64428         * lib/unistdio/u8-vsprintf.c: Likewise.
64429         * lib/unistdio/ulc-asnprintf.c: Likewise.
64430         * lib/unistdio/ulc-asprintf.c: Likewise.
64431         * lib/unistdio/ulc-printf-parse.c: Likewise.
64432         * lib/unistdio/ulc-snprintf.c: Likewise.
64433         * lib/unistdio/ulc-sprintf.c: Likewise.
64434         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64435         * lib/unistdio/ulc-vasprintf.c: Likewise.
64436         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64437         * lib/unistdio/ulc-vsprintf.c: Likewise.
64438         * lib/unistr.h: Likewise.
64439         * lib/unistr/u-cpy-alloc.h: Likewise.
64440         * lib/unistr/u-cpy.h: Likewise.
64441         * lib/unistr/u-endswith.h: Likewise.
64442         * lib/unistr/u-move.h: Likewise.
64443         * lib/unistr/u-set.h: Likewise.
64444         * lib/unistr/u-startswith.h: Likewise.
64445         * lib/unistr/u-stpcpy.h: Likewise.
64446         * lib/unistr/u-stpncpy.h: Likewise.
64447         * lib/unistr/u-strcat.h: Likewise.
64448         * lib/unistr/u-strcpy.h: Likewise.
64449         * lib/unistr/u-strcspn.h: Likewise.
64450         * lib/unistr/u-strdup.h: Likewise.
64451         * lib/unistr/u-strlen.h: Likewise.
64452         * lib/unistr/u-strncat.h: Likewise.
64453         * lib/unistr/u-strncpy.h: Likewise.
64454         * lib/unistr/u-strnlen.h: Likewise.
64455         * lib/unistr/u-strpbrk.h: Likewise.
64456         * lib/unistr/u-strspn.h: Likewise.
64457         * lib/unistr/u-strstr.h: Likewise.
64458         * lib/unistr/u-strtok.h: Likewise.
64459         * lib/unistr/u16-check.c: Likewise.
64460         * lib/unistr/u16-chr.c: Likewise.
64461         * lib/unistr/u16-cmp.c: Likewise.
64462         * lib/unistr/u16-cpy-alloc.c: Likewise.
64463         * lib/unistr/u16-cpy.c: Likewise.
64464         * lib/unistr/u16-endswith.c: Likewise.
64465         * lib/unistr/u16-mblen.c: Likewise.
64466         * lib/unistr/u16-mbsnlen.c: Likewise.
64467         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64468         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64469         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64470         * lib/unistr/u16-mbtouc.c: Likewise.
64471         * lib/unistr/u16-mbtoucr.c: Likewise.
64472         * lib/unistr/u16-move.c: Likewise.
64473         * lib/unistr/u16-next.c: Likewise.
64474         * lib/unistr/u16-prev.c: Likewise.
64475         * lib/unistr/u16-set.c: Likewise.
64476         * lib/unistr/u16-startswith.c: Likewise.
64477         * lib/unistr/u16-stpcpy.c: Likewise.
64478         * lib/unistr/u16-stpncpy.c: Likewise.
64479         * lib/unistr/u16-strcat.c: Likewise.
64480         * lib/unistr/u16-strchr.c: Likewise.
64481         * lib/unistr/u16-strcmp.c: Likewise.
64482         * lib/unistr/u16-strcpy.c: Likewise.
64483         * lib/unistr/u16-strcspn.c: Likewise.
64484         * lib/unistr/u16-strdup.c: Likewise.
64485         * lib/unistr/u16-strlen.c: Likewise.
64486         * lib/unistr/u16-strmblen.c: Likewise.
64487         * lib/unistr/u16-strmbtouc.c: Likewise.
64488         * lib/unistr/u16-strncat.c: Likewise.
64489         * lib/unistr/u16-strncmp.c: Likewise.
64490         * lib/unistr/u16-strncpy.c: Likewise.
64491         * lib/unistr/u16-strnlen.c: Likewise.
64492         * lib/unistr/u16-strpbrk.c: Likewise.
64493         * lib/unistr/u16-strrchr.c: Likewise.
64494         * lib/unistr/u16-strspn.c: Likewise.
64495         * lib/unistr/u16-strstr.c: Likewise.
64496         * lib/unistr/u16-strtok.c: Likewise.
64497         * lib/unistr/u16-to-u32.c: Likewise.
64498         * lib/unistr/u16-to-u8.c: Likewise.
64499         * lib/unistr/u16-uctomb-aux.c: Likewise.
64500         * lib/unistr/u16-uctomb.c: Likewise.
64501         * lib/unistr/u32-check.c: Likewise.
64502         * lib/unistr/u32-chr.c: Likewise.
64503         * lib/unistr/u32-cmp.c: Likewise.
64504         * lib/unistr/u32-cpy-alloc.c: Likewise.
64505         * lib/unistr/u32-cpy.c: Likewise.
64506         * lib/unistr/u32-endswith.c: Likewise.
64507         * lib/unistr/u32-mblen.c: Likewise.
64508         * lib/unistr/u32-mbsnlen.c: Likewise.
64509         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
64510         * lib/unistr/u32-mbtouc.c: Likewise.
64511         * lib/unistr/u32-mbtoucr.c: Likewise.
64512         * lib/unistr/u32-move.c: Likewise.
64513         * lib/unistr/u32-next.c: Likewise.
64514         * lib/unistr/u32-prev.c: Likewise.
64515         * lib/unistr/u32-set.c: Likewise.
64516         * lib/unistr/u32-startswith.c: Likewise.
64517         * lib/unistr/u32-stpcpy.c: Likewise.
64518         * lib/unistr/u32-stpncpy.c: Likewise.
64519         * lib/unistr/u32-strcat.c: Likewise.
64520         * lib/unistr/u32-strchr.c: Likewise.
64521         * lib/unistr/u32-strcmp.c: Likewise.
64522         * lib/unistr/u32-strcpy.c: Likewise.
64523         * lib/unistr/u32-strcspn.c: Likewise.
64524         * lib/unistr/u32-strdup.c: Likewise.
64525         * lib/unistr/u32-strlen.c: Likewise.
64526         * lib/unistr/u32-strmblen.c: Likewise.
64527         * lib/unistr/u32-strmbtouc.c: Likewise.
64528         * lib/unistr/u32-strncat.c: Likewise.
64529         * lib/unistr/u32-strncmp.c: Likewise.
64530         * lib/unistr/u32-strncpy.c: Likewise.
64531         * lib/unistr/u32-strnlen.c: Likewise.
64532         * lib/unistr/u32-strpbrk.c: Likewise.
64533         * lib/unistr/u32-strrchr.c: Likewise.
64534         * lib/unistr/u32-strspn.c: Likewise.
64535         * lib/unistr/u32-strstr.c: Likewise.
64536         * lib/unistr/u32-strtok.c: Likewise.
64537         * lib/unistr/u32-to-u16.c: Likewise.
64538         * lib/unistr/u32-to-u8.c: Likewise.
64539         * lib/unistr/u32-uctomb.c: Likewise.
64540         * lib/unistr/u8-check.c: Likewise.
64541         * lib/unistr/u8-chr.c: Likewise.
64542         * lib/unistr/u8-cmp.c: Likewise.
64543         * lib/unistr/u8-cpy-alloc.c: Likewise.
64544         * lib/unistr/u8-cpy.c: Likewise.
64545         * lib/unistr/u8-endswith.c: Likewise.
64546         * lib/unistr/u8-mblen.c: Likewise.
64547         * lib/unistr/u8-mbsnlen.c: Likewise.
64548         * lib/unistr/u8-mbtouc-aux.c: Likewise.
64549         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
64550         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
64551         * lib/unistr/u8-mbtouc.c: Likewise.
64552         * lib/unistr/u8-mbtoucr.c: Likewise.
64553         * lib/unistr/u8-move.c: Likewise.
64554         * lib/unistr/u8-next.c: Likewise.
64555         * lib/unistr/u8-prev.c: Likewise.
64556         * lib/unistr/u8-set.c: Likewise.
64557         * lib/unistr/u8-startswith.c: Likewise.
64558         * lib/unistr/u8-stpcpy.c: Likewise.
64559         * lib/unistr/u8-stpncpy.c: Likewise.
64560         * lib/unistr/u8-strcat.c: Likewise.
64561         * lib/unistr/u8-strchr.c: Likewise.
64562         * lib/unistr/u8-strcmp.c: Likewise.
64563         * lib/unistr/u8-strcpy.c: Likewise.
64564         * lib/unistr/u8-strcspn.c: Likewise.
64565         * lib/unistr/u8-strdup.c: Likewise.
64566         * lib/unistr/u8-strlen.c: Likewise.
64567         * lib/unistr/u8-strmblen.c: Likewise.
64568         * lib/unistr/u8-strmbtouc.c: Likewise.
64569         * lib/unistr/u8-strncat.c: Likewise.
64570         * lib/unistr/u8-strncmp.c: Likewise.
64571         * lib/unistr/u8-strncpy.c: Likewise.
64572         * lib/unistr/u8-strnlen.c: Likewise.
64573         * lib/unistr/u8-strpbrk.c: Likewise.
64574         * lib/unistr/u8-strrchr.c: Likewise.
64575         * lib/unistr/u8-strspn.c: Likewise.
64576         * lib/unistr/u8-strstr.c: Likewise.
64577         * lib/unistr/u8-strtok.c: Likewise.
64578         * lib/unistr/u8-to-u16.c: Likewise.
64579         * lib/unistr/u8-to-u32.c: Likewise.
64580         * lib/unistr/u8-uctomb-aux.c: Likewise.
64581         * lib/unistr/u8-uctomb.c: Likewise.
64582         * lib/unitypes.h: Likewise.
64583         * lib/uniwidth.h: Likewise.
64584         * lib/uniwidth/cjk.h: Likewise.
64585         * lib/uniwidth/u16-strwidth.c: Likewise.
64586         * lib/uniwidth/u16-width.c: Likewise.
64587         * lib/uniwidth/u32-strwidth.c: Likewise.
64588         * lib/uniwidth/u32-width.c: Likewise.
64589         * lib/uniwidth/u8-strwidth.c: Likewise.
64590         * lib/uniwidth/u8-width.c: Likewise.
64591         * lib/uniwidth/width.c: Likewise.
64592
64593 2007-10-07  Bruno Haible  <bruno@clisp.org>
64594
64595         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
64596         The file is still under LGPL (see modules/inttypes).
64597
64598 2007-10-06  Bruno Haible  <bruno@clisp.org>
64599
64600         * modules/trunc (Dependencies): Add 'extensions'.
64601         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
64602         Reported by Ben Pfaff <blp@gnu.org>.
64603
64604 2007-10-06  Bruno Haible  <bruno@clisp.org>
64605
64606         * modules/freopen-tests: New file.
64607         * tests/test-freopen.c: New file.
64608
64609         * modules/fopen-tests: New file.
64610         * tests/test-fopen.c: New file.
64611
64612         * modules/fopen: New file.
64613         * lib/fopen.c: New file.
64614         * m4/fopen.m4: New file.
64615         * modules/freopen: New file.
64616         * lib/freopen.c: New file.
64617         * m4/freopen.m4: New file.
64618         * lib/stdio.in.h (fopen, freopen): New declarations.
64619         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
64620         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64621         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
64622         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
64623         * doc/functions/fopen.texi: Mention the 'fopen' module.
64624         * doc/functions/freopen.texi: Mention the 'freopen' module.
64625
64626 2007-10-06  Bruno Haible  <bruno@clisp.org>
64627
64628         * modules/open-tests: New file.
64629         * tests/test-open.c: New file.
64630
64631         * modules/open: New file.
64632         * lib/open.c: New file.
64633         * m4/open.m4: New file.
64634         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
64635         lib/open.c does.
64636         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
64637         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
64638         macros.
64639         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
64640         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
64641         REPLACE_OPEN.
64642         * doc/functions/open.texi: Mention the 'open' module.
64643
64644 2007-10-04  Bruno Haible  <bruno@clisp.org>
64645
64646         * modules/ceill-tests: New file.
64647         * tests/test-ceill.c: New file.
64648
64649         * modules/ceill: New file.
64650         * lib/ceill.c: Replace entire file.
64651         * m4/ceill.m4: New file.
64652         * lib/math.in.h (ceill): Replace declaration.
64653         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
64654         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
64655         * doc/functions/ceill.texi: Mention the 'ceill' module.
64656         * modules/mathl (Files): Remove lib/ceill.c.
64657         (Depends-on): Add ceill.
64658
64659 2007-10-04  Bruno Haible  <bruno@clisp.org>
64660
64661         * modules/ceilf-tests: New file.
64662         * tests/test-ceilf.c: New file.
64663
64664         * modules/ceilf: New file.
64665         * lib/ceil.c: New file.
64666         * lib/ceilf.c: New file.
64667         * m4/ceilf.m4: New file.
64668         * lib/math.in.h (ceilf): New declaration.
64669         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
64670         HAVE_DECL_CEILF.
64671         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
64672         HAVE_DECL_CEILF.
64673         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
64674
64675 2007-10-04  Bruno Haible  <bruno@clisp.org>
64676
64677         * modules/floorl-tests: New file.
64678         * tests/test-floorl.c: New file.
64679
64680         * modules/floorl: New file.
64681         * lib/floorl.c: Replace entire file.
64682         * m4/floorl.m4: New file.
64683         * lib/math.in.h (floorl): Replace declaration.
64684         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
64685         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
64686         * doc/functions/floorl.texi: Mention the 'floorl' module.
64687         * modules/mathl (Files): Remove lib/floorl.c.
64688         (Depends-on): Add floorl.
64689
64690 2007-10-04  Bruno Haible  <bruno@clisp.org>
64691
64692         * modules/floorf-tests: New file.
64693         * tests/test-floorf.c: New file.
64694
64695         * modules/floorf: New file.
64696         * lib/floor.c: New file.
64697         * lib/floorf.c: New file.
64698         * m4/floorf.m4: New file.
64699         * lib/math.in.h (floorf): New declaration.
64700         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
64701         HAVE_DECL_FLOORF.
64702         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
64703         HAVE_DECL_FLOORF.
64704         * doc/functions/floorf.texi: Mention the 'floorf' module.
64705
64706 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
64707             Bruno Haible  <bruno@clisp.org>
64708
64709         Advertise for the Git server instead of the CVS server.
64710         * doc/gnulib-intro.texi (Steady Development): Mention the Git
64711         repository instead of the CVS one.
64712         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
64713         about all VCS systems generically.
64714         * doc/gnulib.texi (Introduction): Capitalize `Git'.
64715
64716 2007-10-04  Bruno Haible  <bruno@clisp.org>
64717
64718         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
64719         means.
64720         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
64721
64722 2007-10-04  Bruno Haible  <bruno@clisp.org>
64723
64724         * modules/truncl-tests: New file.
64725         * tests/test-truncl.c: New file.
64726
64727         * modules/truncl: New file.
64728         * lib/truncl.c: New file.
64729         * m4/truncl.m4: New file.
64730         * lib/math.in.h (truncl): New declaration.
64731         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
64732         HAVE_DECL_TRUNCL.
64733         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
64734         HAVE_DECL_TRUNCL.
64735         * doc/functions/truncl.texi: Mention the 'truncl' module.
64736
64737 2007-10-04  Bruno Haible  <bruno@clisp.org>
64738
64739         * modules/truncf-tests: New file.
64740         * tests/test-truncf.c: New file.
64741
64742         * modules/truncf: New file.
64743         * lib/trunc.c: Make paramerizable through USE_* macros.
64744         * lib/truncf.c: New file.
64745         * m4/truncf.m4: New file.
64746         * lib/math.in.h (truncf): New declaration.
64747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
64748         HAVE_DECL_TRUNCF.
64749         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
64750         HAVE_DECL_TRUNCF.
64751         * doc/functions/truncf.texi: Mention the 'truncf' module.
64752
64753 2007-10-03  Bruno Haible  <bruno@clisp.org>
64754
64755         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
64756         augmentation also for tests modules.
64757         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
64758         * modules/atexit-tests (Makefile.am): Likewise.
64759         * modules/binary-io-tests (Makefile.am): Likewise.
64760         * modules/c-strcase-tests (Makefile.am): Likewise.
64761         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
64762         * modules/canonicalize-tests (Makefile.am): Likewise.
64763         * modules/closein-tests (Makefile.am): Likewise.
64764         * modules/fprintf-posix-tests (Makefile.am): Likewise.
64765         * modules/freadahead-tests (Makefile.am): Likewise.
64766         * modules/fseek-tests (Makefile.am): Likewise.
64767         * modules/fseeko-tests (Makefile.am): Likewise.
64768         * modules/ftell-tests (Makefile.am): Likewise.
64769         * modules/ftello-tests (Makefile.am): Likewise.
64770         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
64771         * modules/isnanl-tests (Makefile.am): Likewise.
64772         * modules/lseek-tests (Makefile.am): Likewise.
64773         * modules/mbscasecmp-tests (Makefile.am): Likewise.
64774         * modules/mbscasestr-tests (Makefile.am): Likewise.
64775         * modules/mbschr-tests (Makefile.am): Likewise.
64776         * modules/mbscspn-tests (Makefile.am): Likewise.
64777         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
64778         * modules/mbspbrk-tests (Makefile.am): Likewise.
64779         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
64780         * modules/mbsrchr-tests (Makefile.am): Likewise.
64781         * modules/mbsspn-tests (Makefile.am): Likewise.
64782         * modules/mbsstr-tests (Makefile.am): Likewise.
64783         * modules/printf-posix-tests (Makefile.am): Likewise.
64784         * modules/snprintf-posix-tests (Makefile.am): Likewise.
64785         * modules/sprintf-posix-tests (Makefile.am): Likewise.
64786         * modules/tsearch-tests (Makefile.am): Likewise.
64787         * modules/uniname/uniname-tests (Makefile.am): Likewise.
64788         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
64789         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
64790         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
64791         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
64792         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
64793         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
64794         * modules/vprintf-posix-tests (Makefile.am): Likewise.
64795         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
64796         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
64797         * modules/xstrtoimax-tests (Makefile.am): Likewise.
64798         * modules/xstrtol-tests (Makefile.am): Likewise.
64799         * modules/xstrtoumax-tests (Makefile.am): Likewise.
64800         * modules/yesno-tests (Makefile.am): Likewise.
64801
64802 2007-10-03  Bruno Haible  <bruno@clisp.org>
64803
64804         * modules/trunc-tests: New file.
64805         * tests/test-trunc.c: New file.
64806
64807         * modules/trunc: New file.
64808         * lib/trunc.c: New file.
64809         * m4/trunc.m4: New file.
64810         * lib/math.in.h (trunc): New declaration.
64811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
64812         HAVE_DECL_TRUNC.
64813         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
64814         HAVE_DECL_TRUNC.
64815         * doc/functions/trunc.texi: Mention the 'trunc' module.
64816
64817 2007-10-03  Bruno Haible  <bruno@clisp.org>
64818
64819         * tests/test-fpending.c: New file, mostly copied
64820         from coreutils/lib/t-fpending.c.
64821         * modules/fpending-tests: New file.
64822
64823 2007-10-03  Bruno Haible  <bruno@clisp.org>
64824
64825         Port the stdio extensions to QNX (untested).
64826         * lib/fseterr.c (fseterr): Add support for QNX.
64827         * lib/fbufmode.c (fbufmode): Likewise.
64828         * lib/freadable.c (freadable): Likewise.
64829         * lib/fwritable.c (fwritable): Likewise.
64830         * lib/freading.c (freading): Likewise.
64831         * lib/fwriting.c (fwriting): Likewise.
64832         * lib/freadahead.c (freadahed): Likewise.
64833         * lib/fpurge.c (fpurge): Likewise.
64834         * lib/fseeko.c (rpl_fseeko): Likewise.
64835
64836 2007-10-03  Bruno Haible  <bruno@clisp.org>
64837             Jim Meyering  <jim@meyering.net>
64838             Eric Blake  <ebb9@byu.net>
64839
64840         * doc/relocatable.texi: Use @command instead of @program.
64841
64842 2007-10-02  Jim Meyering  <jim@meyering.net>
64843
64844         Perform one more "_.h" -> ".in.h" substitution.
64845         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
64846         instead of unistd_.h here, too.
64847
64848 2007-10-01  Bruno Haible  <bruno@clisp.org>
64849
64850         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
64851         Needed for the alloca-opt module.
64852
64853 2007-09-30  Bruno Haible  <bruno@clisp.org>
64854
64855         * lib/alloca.in.h: Renamed from lib/alloca_.h.
64856         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
64857         alloca_.h.
64858         * lib/argz.in.h: Renamed from lib/argz_.h.
64859         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
64860         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
64861         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
64862         byteswap_.h.
64863         * lib/dirent.in.h: Renamed from lib/dirent_.h.
64864         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
64865         dirent_.h.
64866         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
64867         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
64868         fcntl_.h.
64869         * lib/float.in.h: Renamed from lib/float_.h.
64870         * modules/float (Files, Makefile.am): Use float.in.h instead of
64871         float_.h.
64872         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
64873         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
64874         fnmatch_.h.
64875         * lib/getopt.in.h: Renamed from lib/getopt_.h.
64876         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
64877         getopt_.h.
64878         * lib/glob.in.h: Renamed from lib/glob_.h.
64879         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
64880         * lib/iconv.in.h: Renamed from lib/iconv_.h.
64881         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
64882         iconv_.h.
64883         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
64884         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64885         inttypes_.h.
64886         * lib/locale.in.h: Renamed from lib/locale_.h.
64887         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
64888         locale_.h.
64889         * lib/math.in.h: Renamed from lib/math_.h.
64890         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
64891         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
64892         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
64893         of netinet_in_.h. Add dependency.
64894         * lib/poll.in.h: Renamed from lib/poll_.h.
64895         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
64896         * lib/search.in.h: Renamed from lib/search_.h.
64897         * modules/search (Files, Makefile.am): Use search.in.h instead of
64898         search_.h.
64899         * lib/signal.in.h: Renamed from lib/signal_.h.
64900         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64901         _signal.h.
64902         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64903         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64904         stdbool_.h.
64905         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64906         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64907         stdint_.h.
64908         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64909         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64910         stdio_.h.
64911         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64912         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64913         stdlib_.h.
64914         * lib/string.in.h: Renamed from lib/string_.h.
64915         * modules/string (Files, Makefile.am): Use string.in.h instead of
64916         string_.h.
64917         * doc/gnulib-tool.texi (Initial import): Update.
64918         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64919         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64920         of sys_select_.h. Add dependency.
64921         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
64922         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
64923         of sys_socket_.h.
64924         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
64925         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
64926         sys_stat_.h.
64927         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
64928         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
64929         sys_time_.h.
64930         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
64931         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
64932         sysexits_.h.
64933         * lib/time.in.h: Renamed from lib/time_.h.
64934         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
64935         * lib/unistd.in.h: Renamed from lib/unistd_.h.
64936         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
64937         unistd_.h.
64938         * lib/wchar.in.h: Renamed from lib/wchar_.h.
64939         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
64940         wchar_.h.
64941         * lib/wctype.in.h: Renamed from lib/wctype_.h.
64942         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
64943         wctype_.h.
64944         * build-aux/bootstrap (slurp): Update.
64945         * lib/.cppi-disable: Update.
64946
64947 2007-09-30  Bruno Haible  <bruno@clisp.org>
64948
64949         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
64950         Needed on BeOS.
64951
64952 2007-09-30  Bruno Haible  <bruno@clisp.org>
64953
64954         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
64955
64956 2007-09-29  Bruno Haible  <bruno@clisp.org>
64957
64958         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
64959
64960 2007-09-29  Bruno Haible  <bruno@clisp.org>
64961
64962         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
64963         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
64964         * build-aux/install-reloc: Compile also areadlink.c.
64965         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
64966
64967 2007-09-29  Bruno Haible  <bruno@clisp.org>
64968
64969         * gnulib-tool (func_emit_initmacro_done): Indentation.
64970
64971 2007-09-29  Bruno Haible  <bruno@clisp.org>
64972
64973         * README: Add CVS checkout update instructions.
64974         Info from Bob Proulx <bob@proulx.com>.
64975
64976 2007-09-28  Eric Blake  <ebb9@byu.net>
64977
64978         Provide move-if-change.
64979         * build-aux/move-if-change: New file, based on best practice
64980         rather than any canonical upstream location.
64981
64982 2007-09-28  Jim Meyering  <jim@meyering.net>
64983
64984         Fix canonicalize loop-detection corner case.
64985         Do not attempt to stat the symlink values stored via seen_triple.
64986         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64987         on linux-2.6.18, (but not 2.6.22).
64988         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64989         triple_compare.  The former compares dev,ino,filename, while the latter
64990         would actually stat dirname(filename) when dev and ino were equal.
64991         * lib/hash-triple.c: Install <string.h>.
64992         (STREQ): Define.
64993         (triple_compare_ino_str): New function.
64994         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64995
64996 2007-09-28  Eric Blake  <ebb9@byu.net>
64997
64998         Enforce that AC_REPLACE_FUNCS files exist.
64999         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65000         override check for typos.
65001
65002         Fix test-closein on Solaris 10.
65003         * tests/test-closein.c (main): Don't assume stdin can be inherited
65004         closed on all systems.
65005         * tests/test-closein.sh: Likewise.
65006         Reported by Piotr Tarnowski.
65007
65008 2007-09-28  Jim Meyering  <jim@meyering.net>
65009
65010         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65011
65012 2007-09-27  Jim Meyering  <jim@meyering.net>
65013
65014         canonicalize: Avoid a false-positive cycle failure.
65015         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65016         Sort.  Remove cycle-check.
65017         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65018         not cycle-check.h.
65019         (seen_triple): New function.
65020         (canonicalize_filename_mode): Use it instead of cycle-check.
65021         * tests/test-canonicalize.c: Add a test for this bug.
65022         * tests/test-canonicalize.sh: Set up and run the test.
65023
65024         New module, file-set, from coreutils.
65025         * modules/file-set: Define it.
65026         * lib/file-set.c, lib/file-set.h: Implement.
65027
65028         New module, hash-triple, from coreutils.
65029         * modules/hash-triple: Define it.
65030         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65031
65032 2007-09-25  Eric Blake  <ebb9@byu.net>
65033
65034         Fix strerror on Interix.
65035         * lib/string_.h (strerror): Declare replacement.
65036         * doc/functions/strerror.texi (strerror): Document the Interix
65037         shortcoming.
65038         * modules/string (Makefile.am): Support new hooks.
65039         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65040         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65041         gl_FUNC_STRERROR_SEPARATE.
65042         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65043         * lib/strerror.c (rpl_strerror): Provide replacement.
65044         * modules/strerror (Depends-on): Add string.
65045         (configure.ac): Detect use of module.
65046         * tests/test-strerror.c: New file.
65047         * modules/strerror-tests: New test module.
65048         * modules/argp (Depends-on): Add strerror.
65049         * modules/error (Depends-on): Likewise.
65050         Reported by Martin Koeppe.
65051
65052 2007-09-24  Bruno Haible  <bruno@clisp.org>
65053
65054         * README: Update git instructions.
65055
65056 2007-09-24  Eric Blake  <ebb9@byu.net>
65057
65058         Revert fpending breakage from 2007-09-08.
65059         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65060         __fpending.c.
65061
65062 2007-09-24  Jim Meyering  <jim@meyering.net>
65063
65064         filenamecat.c: Add a test.
65065         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65066         showing how the function works when DIR is the empty string.
65067
65068 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65069
65070         * tests/test-canonicalize.sh: Turn on executable bit.
65071
65072 2007-09-19  Eric Blake  <ebb9@byu.net>
65073
65074         * README: Update CVS instructions.
65075
65076 2007-09-18  Bruno Haible  <bruno@clisp.org>
65077
65078         * modules/areadlink: New file.
65079         * lib/areadlink.h (areadlink): New declaration.
65080         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65081
65082 2007-09-17  Jim Meyering  <jim@meyering.net>
65083
65084         * lib/savewd.c (ESTALE) [!defined]: Define.
65085         Reported to be required on Interix by Martin Koeppe.
65086
65087 2007-09-17  Bruno Haible  <bruno@clisp.org>
65088
65089         * gnulib-tool (func_version): Use $version.
65090
65091 2007-09-16  Bruno Haible  <bruno@clisp.org>
65092
65093         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65094         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65095         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65096         Reported by Greg Schafer <gschafer@zip.com.au>.
65097
65098 2007-09-15  Bruno Haible  <bruno@clisp.org>
65099
65100         * gnulib-tool (sed): Try a little harder to make bash understand the
65101         alias.
65102         Reported by Bruce Korb <bruce.korb@gmail.com>.
65103
65104 2007-09-13  Eric Blake  <ebb9@byu.net>
65105
65106         * ChangeLog: Remove conflict markers.
65107
65108 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65109
65110         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65111         Reported by Bruno Haible <bruno@clisp.org>.
65112
65113 2007-09-12  Bruno Haible  <bruno@clisp.org>
65114
65115         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65116         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65117         is not defined.
65118
65119 2007-09-12  Eric Blake  <ebb9@byu.net>
65120
65121         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65122         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65123         Autoconf definition.
65124         * modules/euidaccess (Depends-on): Add extensions, for
65125         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65126         * modules/fnmatch (Depends-on): Likewise.
65127         * modules/getaddrinfo (Depends-on): Likewise.
65128         * modules/getdelim (Depends-on): Likewise.
65129         * modules/getline (Depends-on): Likewise.
65130         * modules/getsubopt (Depends-on): Likewise.
65131         * modules/gettext (Depends-on): Likewise.
65132         * modules/group-member (Depends-on): Likewise.
65133         * modules/mbchar (Depends-on): Likewise.
65134         * modules/memmem (Depends-on): Likewise.
65135         * modules/mempcpy (Depends-on): Likewise.
65136         * modules/memrchr (Depends-on): Likewise.
65137         * modules/pagealign_alloc (Depends-on): Likewise.
65138         * modules/readutmp (Depends-on): Likewise.
65139         * modules/stpcpy (Depends-on): Likewise.
65140         * modules/stpncpy (Depends-on): Likewise.
65141         * modules/strchrnul (Depends-on): Likewise.
65142         * modules/strndup (Depends-on): Likewise.
65143         * modules/strsep (Depends-on): Likewise.
65144         * modules/strverscmp (Depends-on): Likewise.
65145         * modules/vasprintf (Depends-on): Likewise.
65146         * modules/wcwidth (Depends-on): Likewise.
65147         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65148         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65149         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65150         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65151         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65152         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65153         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65154         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65155         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65156         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65157         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65158         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65159         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65160         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65161         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65162         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65163         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65164         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65165         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65166         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65167         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65168         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65169         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65170         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65171         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65173         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65174         so that lock.m4 can be used in gettext without extensions module.
65175
65176 2007-09-11  Bruno Haible  <bruno@clisp.org>
65177
65178         * m4/isc-posix.m4: Remove file.
65179         Suggested by Eric Blake.
65180
65181 2007-09-11  Eric Blake  <ebb9@byu.net>
65182
65183         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65184
65185 2007-09-10  Bruno Haible  <bruno@clisp.org>
65186
65187         * posix-modules: Fix typo in error message.
65188         Reported by Matt <mkraai@beckman.com>.
65189
65190 2007-09-09  Bruno Haible  <bruno@clisp.org>
65191
65192         * doc/functions/getdelim.texi: Update list of platforms lacking the
65193         function.
65194         * doc/functions/getline.texi: Likewise.
65195
65196 2007-09-09  Jim Meyering  <jim@meyering.net>
65197
65198         * lib/hash.c (hash_initialize): Detect calloc failure.
65199         Reported by Bruno Haible.
65200
65201 2007-09-09  Bruno Haible  <bruno@clisp.org>
65202
65203         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65204         malloc or realloc fails.
65205
65206 2007-09-09  Bruno Haible  <bruno@clisp.org>
65207
65208         * modules/getcwd (Depends-on): Add malloc-posix.
65209         * modules/glob (Depends-on): Likewise.
65210         * modules/putenv (Depends-on): Likewise.
65211         * modules/strdup (Depends-on): Likewise.
65212         * modules/getdelim (Depends-on): Add realloc-posix.
65213         * modules/read-file (Depends-on): Likewise.
65214
65215 2007-09-09  Bruno Haible  <bruno@clisp.org>
65216
65217         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65218         (gl_FUNC_MALLOC_POSIX): Require it.
65219         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65220         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65221         * modules/realloc (Files): Add m4/malloc.m4.
65222         * modules/calloc (Files): Likewise.
65223
65224 2007-09-09  Bruno Haible  <bruno@clisp.org>
65225
65226         * modules/malloc-posix: New file.
65227         * modules/malloc (Depends-on): Add malloc-posix.
65228         * lib/malloc.c: Include errno.h.
65229         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65230         and a POSIX-compatible malloc into a single function. Set ENOMEM
65231         when returning NULL.
65232         * m4/malloc.m4: New file.
65233         * doc/functions/malloc.texi: Mention the malloc-posix module.
65234         * lib/stdlib_.h (malloc): New declaration.
65235         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65236         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65237         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65238         and HAVE_MALLOC_POSIX.
65239
65240 2007-09-09  Bruno Haible  <bruno@clisp.org>
65241
65242         * modules/realloc-posix: New file.
65243         * modules/realloc (Depends-on): Add realloc-posix.
65244         * lib/realloc.c: Include errno.h.
65245         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65246         and a POSIX-compatible realloc into a single function. Set ENOMEM
65247         when returning NULL.
65248         * m4/realloc.m4: New file.
65249         * doc/functions/realloc.texi: Mention the realloc-posix module.
65250         * lib/stdlib_.h (realloc): New declaration.
65251         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65252         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65253         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65254         and HAVE_REALLOC_POSIX.
65255
65256 2007-09-09  Bruno Haible  <bruno@clisp.org>
65257
65258         * modules/calloc-posix: New file.
65259         * modules/calloc (Depends-on): Add calloc-posix.
65260         * lib/calloc.c: Include errno.h.
65261         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65262         and a POSIX-compatible calloc into a single function. Set ENOMEM
65263         when returning NULL.
65264         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65265         * doc/functions/calloc.texi: Mention the calloc-posix module.
65266         * lib/stdlib_.h (calloc): New declaration.
65267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65268         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65269         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65270         and HAVE_CALLOC_POSIX.
65271
65272 2007-09-09  Bruno Haible  <bruno@clisp.org>
65273
65274         Allow for modules to show an arbitrary notice.
65275         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65276         * gnulib-tool: New option --extract-notice.
65277         (func_usage): Document it.
65278         (sed_extract_prog): Update.
65279         (func_get_notice): New function.
65280         (func_modules_notice): New function.
65281         (func_import, func_create_testdir): Invoke it.
65282         Suggested by Jim Meyering.
65283
65284 2007-09-09  Bruno Haible  <bruno@clisp.org>
65285
65286         * gnulib-tool: New options --verbose, --quiet.
65287         (func_usage): Document them.
65288         (verbose): New variable.
65289         (func_execute_command): New function.
65290         (func_import): Don't show the module list and the file list if
65291         $verbose < 0.
65292         (func_create_testdir): Likewise. Use func_execute_command.
65293         (func_create_megatestdir): Use func_execute_command.
65294
65295 2007-09-08  Bruno Haible  <bruno@clisp.org>
65296
65297         * gnulib-tool (func_import): Prefer rsync over wget when available,
65298         for fetching the PO files.
65299
65300 2007-09-08  Bruno Haible  <bruno@clisp.org>
65301
65302         * posix-modules: New file. Portions copied from gnulib-tool.
65303         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65304
65305 2007-09-08  Jim Meyering  <jim@meyering.net>
65306
65307         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65308         * lib/fpending.h: Rename from __fpending.h.
65309         * lib/fpending.c: Rename from __fpending.c.
65310         Include "fpending.h", not "__fpending.h".
65311         * lib/__fpending.h, lib/__fpending.c: Remove files.
65312         * modules/fpending (Files): Reflect new file names.
65313         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65314
65315 2007-09-08  Bruno Haible  <bruno@clisp.org>
65316
65317         * m4/inttypes-h.m4: Remove stub file.
65318
65319 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65320
65321         * doc/headers/stdint.texi: Discuss #include_next issue.
65322
65323 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65324
65325         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65326
65327 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65328
65329         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65330         in variable name.
65331
65332 2007-09-03  Jim Meyering  <jim@meyering.net>
65333
65334         New module: git-version-gen.
65335         * modules/git-version-gen: New file.
65336
65337         Import changes from coreutils for bootstrap script.
65338
65339         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65340
65341         bootstrap: uses rsync to download the .po files
65342         * build-aux/bootstrap (po_download_command_format): New global.
65343         (download_po_files): Use rsync.
65344         (update_po_files): Don't remove .po files after download,
65345         so future rsync runs can take advantage of the copies.
65346
65347         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65348
65349         Solve the unnecessary-.po-file-regeneration problem once and for all.
65350         * build-aux/bootstrap (download_po_files): New function, renamed from
65351         get_translations.  Now, downloads, but doesn't update LINGUAS.
65352         (update_po_files): New function.
65353
65354         bootstrap: Ignore more.
65355         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65356         uniwidth to e.g., lib/.gitignore.
65357         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65358
65359         * build-aux/bootstrap: New setting: vc_ignore.
65360         (insert_sorted_if_absent): Create $file if absent.
65361         Adapt to new, possibly empty, list: $vc_ignore.
65362
65363         bootstrap: generate more ignorable names
65364         * build-aux/bootstrap (slurp): When generating ignorable names,
65365         also map .sin to .sed, .gperf to .c, and .y to .c.
65366
65367 2007-09-03  Jim Meyering  <jim@meyering.net>
65368
65369         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65370         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65371
65372 2007-09-02  Bruno Haible  <bruno@clisp.org>
65373
65374         Fix mis-recognition of 'mcs' on QNX 6.
65375         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65376         output contains the string "Mono".
65377         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65378         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65379
65380 2007-09-01  Bruno Haible  <bruno@clisp.org>
65381
65382         Fix collision between uniwidth/* and linebreak modules.
65383         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65384         u32_width): Remove declarations.
65385         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65386         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65387         streq3, streq2, streq1, streq0): Remove functions.
65388         (STREQ): Remove macro.
65389         (is_cjk_encoding): Remove function.
65390         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65391         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65392         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65393         * NEWS: Document the change.
65394
65395 2007-09-01  Bruno Haible  <bruno@clisp.org>
65396
65397         * lib/streq.h: Add double-inclusion guard.
65398
65399 2007-09-01  Karl Berry  <karl@gnu.org>
65400
65401         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65402
65403 2007-08-28  Jim Meyering  <jim@meyering.net>
65404
65405         Rename mreadlink_with_size to areadlink_with_size.
65406         * NEWS: Document the change.
65407         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65408         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65409         * lib/mreadlink.h: Rename this to...
65410         * lib/areadlink.h: ...this.
65411         * modules/mreadlink-with-size: Rename this to...
65412         * modules/areadlink-with-size: ...this.
65413         * lib/canonicalize.c: Reflect the renaming.
65414         * modules/canonicalize: Likewise.
65415
65416 2007-08-26  Bruno Haible  <bruno@clisp.org>
65417
65418         * gnulib-tool (func_import): When deciding which files to remove,
65419         consider also dangling symbolic links.
65420         Reported by Eric Blake.
65421
65422 2007-08-26  Bruno Haible  <bruno@clisp.org>
65423
65424         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65425
65426 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65427
65428         * lib/readline.c: Don't include getline.h, the prototype is now
65429         found in stdio.h.
65430
65431 2007-08-23  Jim Meyering  <jim@meyering.net>
65432
65433         Getdelim touchup.
65434         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65435         around the funlockfile call, since funlockfile never sets errno.
65436         Don't set errno upon failed realloc.
65437
65438 2007-08-22  Eric Blake  <ebb9@byu.net>
65439
65440         Getline touchups.
65441         * lib/getdelim.c (getdelim): Revert regression that required *n to
65442         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65443         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65444         getdelim, rather than whether implementation is missing.
65445         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65446         * lib/stdio_.h (getline): Also declare if replacement is
65447         required.
65448         * doc/functions/getdelim.texi: New file.
65449         * doc/functions/getline.texi: Likewise.
65450         * doc/gnulib.texi (Function Substitutes): Add new files.
65451         Reported by Bruno Haible.
65452
65453 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65454
65455         * users.txt: Add Guile.
65456
65457 2007-08-22  Eric Blake  <ebb9@byu.net>
65458
65459         * tests/test-getdelim.c (main): Use remove, not unlink.
65460         * tests/test-getline.c (main): Likewise.
65461
65462         Move getline and getdelim into stdio.h, per POSIX 200x.
65463         * modules/getline (Files): Remove getline.h.
65464         (Depends-on): Add stdio.
65465         (configure.ac): Add module indicator.
65466         * modules/getdelim (Files): Remove getdelim.h.
65467         (Depends-on): Add stdio.
65468         (configure.ac): Add module indicator.
65469         * modules/stdio (Makefile.am): Work with new indicators.
65470         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65471         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65472         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65473         * lib/getdelim.h: Delete.
65474         * lib/getline.h: Delete.
65475         * lib/stdio_.h (getdelim, getline): Declare.
65476         * modules/getdelim-tests: New module.
65477         * modules/getline-tests: Likewise.
65478         * tests/test-getdelim.c: New file.
65479         * tests/test-getline.c: Likewise.
65480         * NEWS: Document the change.
65481         * lib/getline.c: Update choice of header.
65482         * lib/csharpcomp.c: Likewise.
65483         * lib/getpass.c: Likewise.
65484         * lib/javacomp.c: Likewise.
65485         * lib/javaversion.c: Likewise.
65486         * lib/yesno.c: Likewise.
65487         * lib/getdelim.c: Likewise.
65488         (getdelim): Set errno on failure, and avoid memory leak.
65489
65490 2007-08-19  Bruno Haible  <bruno@clisp.org>
65491
65492         * modules/closein (Depends-on): Add freadahead.
65493         * lib/closein.c: Include freadahead.h.
65494         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65495         is zero.
65496
65497 2007-08-19  Bruno Haible  <bruno@clisp.org>
65498
65499         * modules/freadahead-tests: New file.
65500         * tests/test-freadahead.sh: New file.
65501         * tests/test-freadahead.c: New file.
65502
65503         * modules/freadahead: New file.
65504         * lib/freadahead.h: New file.
65505         * lib/freadahead.c: New file.
65506         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
65507         fbufmode, fpurge, freadable, fwritable.
65508
65509 2007-08-19  Eric Blake  <ebb9@byu.net>
65510
65511         Test yesno in combination with closein.
65512         * lib/yesno.c (yesno): Document use of stdin.
65513         * modules/yesno-tests (Files): New module.
65514         * tests/test-yesno.c (main): New file.
65515         * tests/test-yesno.sh: Likewise.
65516
65517 2007-08-19  Bruno Haible  <bruno@clisp.org>
65518
65519         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
65520         * lib/fseeko.c (rpl_fseeko): Likewise.
65521         * lib/fseterr.c (fseterr): Likewise.
65522
65523 2007-08-19  Bruno Haible  <bruno@clisp.org>
65524
65525         * tests/test-lseek.c (main): Disable a test for BeOS.
65526         * doc/functions/lseek.texi: Document the BeOS bug.
65527
65528 2007-08-19  Bruno Haible  <bruno@clisp.org>
65529             Eric Blake  <ebb9@byu.net>
65530
65531         * lib/lseek.c: Include <sys/stat.h>.
65532         (rpl_lseek): Add workaround code also for Unix platforms.
65533         Needed for BeOS.
65534         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
65535         * doc/functions/lseek.texi: Document BeOS definiency.
65536
65537 2007-08-18  Bruno Haible  <bruno@clisp.org>
65538
65539         * modules/fstrcmp-tests: New file.
65540         * tests/test-fstrcmp.c: New file.
65541
65542 2007-08-18  Bruno Haible  <bruno@clisp.org>
65543
65544         * modules/fstrcmp: New file, from GNU gettext with modifications.
65545         * lib/fstrcmp.h: New file, from GNU gettext.
65546         * lib/fstrcmp.c: New file, from GNU gettext.
65547         * MODULES.html.sh (String handling): Add fstrcmp.
65548
65549 2007-08-18  Bruno Haible  <bruno@clisp.org>
65550
65551         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
65552         'bool'.
65553         (diag, compareseq): Remove const from the ctxt argument.
65554         (USE_HEURISTIC): Undefine at the end.
65555
65556 2007-08-18  Jim Meyering  <jim@meyering.net>
65557
65558         New file: lib/idcache.h
65559         * NEWS: Mention the addition.
65560         * modules/idcache (Files): Add lib/idcache.h
65561         * lib/idcache.c: Include "idcache.h".
65562         Don't include <sys/types.h>.
65563         Add a FIXME comment.
65564         Move file-scoped "static" declarations to the top.
65565         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
65566
65567 2007-08-17  Bruno Haible  <bruno@clisp.org>
65568         and Paul Eggert  <eggert@cs.ucla.edu>
65569
65570         * MODULES.html.sh: Add diffseq.
65571         * modules/diffseq: New file.
65572         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
65573         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
65574
65575 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
65576
65577         Import changes from coreutils for bootstrap script.
65578
65579         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
65580
65581         * build-aux/bootstrap (slurp): Work even in environments where
65582         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
65583         current code does not slurp files whose names start with ".", and
65584         this looks like it might be a troublesome area.
65585
65586         2007-07-11  Jim Meyering  <jim@meyering.net>
65587
65588         If there's a GPL vN copyright comment, require that N == 3.
65589
65590         2007-07-08  Jim Meyering  <jim@meyering.net>
65591
65592         Run the coreutils-specific code only if tests/Makefile.am.in exists.
65593         * build-aux/bootstrap (mam_template): Move definition out of loop.
65594
65595         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
65596
65597         * build-aux/bootstrap (symlink_to_dir): Rename function from
65598         symlink_to_gnulib.  Add a directory parameter.  Update all
65599         callers.
65600         (cp_mark_as_generated): Also check for -- and link to -- files in
65601         gl/.
65602
65603         2007-07-08  Jim Meyering  <jim@meyering.net>
65604
65605         Adapt to deeper hierarchy in gnulib.
65606         * build-aux/bootstrap (symlink_to_dir): If the destination
65607         directory doesn't exist, create it. This is required at least for
65608         "lib/uniwidth/cjk.h".
65609
65610         2007-05-15  Jim Meyering  <jim@meyering.net>
65611
65612         * build-aux/bootstrap: Now that generated Makefile.am files
65613         are no longer under version control, they must be created at
65614         bootstrap time.
65615
65616 2007-08-14  Ben Pfaff  <blp@gnu.org>
65617
65618         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
65619
65620 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
65621
65622         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
65623         given the changes below.
65624         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
65625         even on hosts that have padding bits beyond the supported 64.
65626
65627 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
65628
65629         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
65630         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
65631         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
65632         depends on it.
65633         (xstrtol_error): Remove.
65634         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
65635         but with a different signature.
65636         (ATTRIBUTE_NORETURN, __attribute__): New macros.
65637         * lib/xstrtol-error.c: Include exitfail.h.
65638         (xstrtol_fatal): New function, with a different signature from the
65639         old xstrtol_error, so that the caller need not worry about passing
65640         in an exit status, or about storage management of the option argument.
65641         (xstrtol_error): Now a static function.  Redo signature to
65642         implement xstrtol_fatal.  Output the correct number of hyphens in
65643         front of the option so that the caller need not worry about
65644         storage management.
65645         (N_): New macro.
65646         (_): Remove; not used now.
65647         * modules/xstrtol: Depend on getopt.
65648         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
65649         of old STRTOL_FATAL_ERROR macro.
65650         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
65651         of test program.
65652         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
65653         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
65654
65655 2007-08-08  Eric Blake  <ebb9@byu.net>
65656
65657         * lib/xstrtol-error.c: Add missing include.
65658
65659         Move xstrtol messages into gnulib domain, when --pobase is used.
65660         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
65661         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
65662         * modules/xstrtol (Files): Distribute new file.
65663         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
65664         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
65665         * tests/test-xstrtol.c: ...into new file.
65666         * tests/test-xstrtoul.c: Also test xstrtoul.
65667         * tests/test-xstrtoimax.c: Also test xstrtoimax.
65668         * tests/test-xstrtoumax.c: Also test xstrtoumax.
65669         * tests/test-xstrtol.sh: Drive the tests.
65670         * tests/test-xstrtoimax.sh: Likewise.
65671         * tests/test-xstrtoumax.sh: Likewise.
65672         * modules/xstrtol-tests: New module.
65673         * modules/xstrtoimax-tests: Likewise.
65674         * modules/xstrtoumax-tests: Likewise.
65675
65676 2007-08-08  Jim Meyering  <jim@meyering.net>
65677
65678         New function: mfile_name_concat.
65679         * lib/filenamecat.c (mfile_name_concat): New function, just like
65680         file_name_concat, but return NULL upon failure rather than exiting
65681         with a diagnostic.
65682         * lib/filenamecat.h: Declare it.
65683
65684 2007-08-07  Bruno Haible  <bruno@clisp.org>
65685
65686         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
65687         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
65688         warning from gcc.
65689         Reported by Eric Blake.
65690
65691 2007-08-07  Simon Josefsson  <simon@josefsson.org>
65692
65693         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
65694         * modules/crypto/arcfour (License): Likewise.
65695         * modules/crypto/des-tests (License): Likewise.
65696         * modules/crypto/gc-arctwo-tests (License): Likewise.
65697         * modules/crypto/gc-des-tests (License): Likewise.
65698         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
65699         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
65700         * modules/crypto/gc-md2-tests (License): Likewise.
65701         * modules/crypto/gc-md4-tests (License): Likewise.
65702         * modules/crypto/gc-md5-tests (License): Likewise.
65703         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
65704         * modules/crypto/gc-rijndael-tests (License): Likewise.
65705         * modules/crypto/gc-sha1-tests (License): Likewise.
65706         * modules/crypto/gc-tests (License): Likewise.
65707         * modules/crypto/hmac-md5 (License): Likewise.
65708         * modules/crypto/hmac-sha1 (License): Likewise.
65709         * modules/crypto/md2-tests (License): Likewise.
65710         * modules/crypto/md4-tests (License): Likewise.
65711         * modules/crypto/md5 (License): Likewise.
65712         * modules/crypto/rijndael (License): Likewise.
65713         * modules/crypto/sha1 (License): Likewise.
65714         * modules/memxor (License): Likewise.
65715
65716 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
65717         and Bruno Haible  <bruno@clisp.org>
65718
65719         * NEWS: Describe interface changes to human, xstrtol.
65720         * lib/human.h: Include <xstrtol.h>.
65721         (human_options): Return enum strtol_error, not int.  Remove
65722         bool arg; take int * instead.
65723         * lib/human.c: Don't include "gettext.h".
65724         (_): Remove; no longer used.
65725         Don't include <xstrtol.h>, since human.h does it.
65726         (human_options): Adjust to abovementioned interface changes.
65727         Do not report error to stderr; that's now the caller's
65728         responsibility.
65729         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
65730         interface change.
65731         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
65732         Str, Argument_type_string.  All uses changed.  Put " argument"
65733         in diagnostics to make them clearer.  Change wording of suffix
65734         message for clarity.
65735         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
65736         Argument_type_string.
65737         (STRTOL_FATAL_WARN): Remove; no longer used.
65738         * modules/human (Depends-on): Remove gettext-h.
65739
65740 2007-08-06  Simon Josefsson  <simon@josefsson.org>
65741
65742         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
65743
65744 2007-07-31  Bruno Haible  <bruno@clisp.org>
65745
65746         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
65747         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
65748         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
65749
65750 2007-07-31  Bruno Haible  <bruno@clisp.org>
65751
65752         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
65753         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
65754
65755 2007-07-30  Bruno Haible  <bruno@clisp.org>
65756
65757         * modules/base64 (License): Use the synonymous term "LGPLv2+".
65758         * modules/c-ctype (License): Likewise.
65759         * modules/c-strcase (License): Likewise.
65760         * modules/check-version (License): Likewise.
65761         * modules/iconv (License): Likewise.
65762         * modules/iconv_open (License): Likewise.
65763         * modules/read-file (License): Likewise.
65764         * modules/striconv (License): Likewise.
65765         * modules/strverscmp (License): Likewise.
65766         * modules/vasprintf (License): Likewise.
65767         * modules/crypto/des (License): Likewise.
65768         * modules/crypto/gc (License): Likewise.
65769         * modules/crypto/gc-arcfour (License): Likewise.
65770         * modules/crypto/gc-arctwo (License): Likewise.
65771         * modules/crypto/gc-des (License): Likewise.
65772         * modules/crypto/gc-hmac-md5 (License): Likewise.
65773         * modules/crypto/gc-hmac-sha1 (License): Likewise.
65774         * modules/crypto/gc-md2 (License): Likewise.
65775         * modules/crypto/gc-md4 (License): Likewise.
65776         * modules/crypto/gc-md5 (License): Likewise.
65777         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
65778         * modules/crypto/gc-random (License): Likewise.
65779         * modules/crypto/gc-rijndael (License): Likewise.
65780         * modules/crypto/gc-sha1 (License): Likewise.
65781         * modules/crypto/md2 (License): Likewise.
65782         * modules/crypto/md4 (License): Likewise.
65783
65784 2007-07-30  Jim Meyering  <jim@meyering.net>
65785
65786         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
65787         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
65788         it has valid stat data.  This bug would cause du not to count the
65789         sizes of inaccessible directories.
65790         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
65791         in <http://bugzilla.redhat.com/250077>.
65792
65793 2007-07-25  Peter O'Gorman  <peter@pogma.com>
65794             Bruno Haible  <bruno@clisp.org>
65795
65796         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
65797         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
65798         #include_next, gives a diagnostic about it, but reports no error in
65799         the exit code.
65800         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
65801
65802 2007-07-24  Ben Pfaff  <blp@gnu.org>
65803
65804         Improve name: "count-one-bits" is better than "popcount".
65805         * MODULES.html.sh: Update name.
65806         * lib/popcount.h: Renamed lib/count-one-bits.h.
65807         (popcount): Renamed count_one_bits.
65808         (popcountl): Renamed count_one_bits_l.
65809         (popcountll): Renamed count_one_bits_ll.
65810         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
65811         * modules/popcount: Renamed module/count-one-bits.
65812         * modules/popcount-tests: Renamed module/count-one-bits-tests.
65813         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
65814
65815 2007-07-23  Ben Pfaff  <blp@gnu.org>
65816
65817         * lib/popcount.h (popcount32): Reduce size of constants, to allow
65818         better code generation, and add U to large constants to avoid
65819         warnings, in non-GCC case.
65820         Suggested by Bruno Haible.
65821
65822 2007-07-23  Ben Pfaff  <blp@gnu.org>
65823
65824         * lib/popcount.h: Use verify_true instead of if...abort.
65825         * modules/popcount: Depend on verify module.
65826         Suggested by Jim Meyering.
65827
65828 2007-07-23  Bruno Haible  <bruno@clisp.org>
65829
65830         * gnulib-tool (func_import): Create a .cvsignore file also when the
65831         directory is not yet in CVS but the toplevel directory is. When
65832         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
65833         Reported by Karl Berry.
65834
65835 2007-07-22  Ben Pfaff  <blp@gnu.org>
65836
65837         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
65838         case.
65839         Suggested by Eric Blake.
65840
65841 2007-07-22  Ben Pfaff  <blp@gnu.org>
65842
65843         New module: popcount.
65844         * MODULES.html.sh: Add popcount.
65845         * modules/popcount: New file.
65846         * modules/popcount-tests: New file.
65847         * tests/test-popcount.c: New file.
65848         * lib/popcount.h: New file.
65849         * m4/popcount.m4: New file.
65850
65851 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65852
65853         * build-aux/announce-gen: Update to GPLv3.
65854
65855         * build-aux/config.guess: Update from config.
65856
65857 2007-07-21  Bruno Haible  <bruno@clisp.org>
65858
65859         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
65860         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
65861
65862 2007-07-20  Jim Meyering  <jim@meyering.net>
65863
65864         * check-module: Diagnose a self-dependency.
65865
65866 2007-07-19  Bruno Haible  <bruno@clisp.org>
65867
65868         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
65869         empty.
65870         Reported by Eric Blake.
65871
65872 2007-07-18  Bruno Haible  <bruno@clisp.org>
65873
65874         * gnulib-tool: New options --po-base, --po-domain.
65875         (func_usage): Document them.
65876         (pobase, po_domain): New variables.
65877         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
65878         DEFAULT_TEXT_DOMAIN.
65879         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
65880         (func_import): Consider pobase and po_domain. Create a po/ directory.
65881         (func_create_testdir): Set pobase and po_domain to empty.
65882         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
65883         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
65884
65885 2007-07-18  Bruno Haible  <bruno@clisp.org>
65886
65887         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65888         EXTRA_DIST augmentation for files in build-aux/.
65889
65890 2007-07-16  Bruno Haible  <bruno@clisp.org>
65891
65892         * modules/lseek (License): Use the synonymous term "LGPLv2+".
65893         * modules/getdelim (License): Likewise.
65894
65895 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65896
65897         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65898         * modules/d-type (License): Likewise.
65899         * modules/extensions (License): Likewise.
65900         * modules/fnmatch (License): Likewise.
65901         * modules/fseeko (License): Likewise.
65902         * modules/getaddrinfo (License): Likewise.
65903         * modules/getline (License): Likewise.
65904         * modules/getlogin_r (License): Likewise.
65905         * modules/getpass (License): Likewise.
65906         * modules/gettimeofday (License): Likewise.
65907         * modules/glob (License): Likewise.
65908         * modules/inet_ntop (License): Likewise.
65909         * modules/malloc (License): Likewise.
65910         * modules/malloca (License): Likewise.
65911         * modules/memmem (License): Likewise.
65912         * modules/mempcpy (License): Likewise.
65913         * modules/memset (License): Likewise.
65914         * modules/minmax (License): Likewise.
65915         * modules/mktime (License): Likewise.
65916         * modules/netinet_in (License): Likewise.
65917         * modules/pathmax (License): Likewise.
65918         * modules/poll (License): Likewise.
65919         * modules/regex (License): Likewise.
65920         * modules/snprintf (License): Likewise.
65921         * modules/stdbool (License): Likewise.
65922         * modules/stdint (License): Likewise.
65923         * modules/stdio (License): Likewise.
65924         * modules/strcase (License): Likewise.
65925         * modules/strcasestr (License): Likewise.
65926         * modules/strdup (License): Likewise.
65927         * modules/string (License): Likewise.
65928         * modules/strndup (License): Likewise.
65929         * modules/strnlen (License): Likewise.
65930         * modules/strpbrk (License): Likewise.
65931         * modules/strptime (License): Likewise.
65932         * modules/strsep (License): Likewise.
65933         * modules/sys_select (License): Likewise.
65934         * modules/sys_socket (License): Likewise.
65935         * modules/sys_stat (License): Likewise.
65936         * modules/sys_time (License): Likewise.
65937         * modules/time (License): Likewise.
65938         * modules/time_r (License): Likewise.
65939         * modules/timegm (License): Likewise.
65940         * modules/unistd (License): Likewise.
65941         * modules/vsnprintf (License): Likewise.
65942         * modules/wctype (License): Likewise.
65943
65944 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65945
65946         * modules/argz (License): LGPLv2+.
65947
65948 2007-07-15  Karl Berry  <karl@gnu.org>
65949
65950         * doc/gnulib.texi: revise node structure per new fdl.texi.
65951
65952 2007-07-14  Bruno Haible  <bruno@clisp.org>
65953
65954         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
65955         the output file.
65956         * lib/uniname/uninames.h: Regenerated.
65957
65958 2007-07-14  Karl Berry  <karl@gnu.org>
65959
65960         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
65961         omitting sectioning and index commands.
65962
65963 2007-07-13  Bruno Haible  <bruno@clisp.org>
65964
65965         New gnulib-tool option --more-symlinks.
65966         * gnulib-tool (func_usage): Document --more-symlinks.
65967         (do_copyrights): New variable.
65968         Recognize option --more-symlinks.
65969         (func_import): Don't add a copyright notice transform to
65970         sed_transform_lib_file if do_copyrights is empty.
65971
65972 2007-07-13  Bruno Haible  <bruno@clisp.org>
65973
65974         * lib/vasnprintf.c (decimal_point_char): Define also if
65975         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65976         && !NEED_PRINTF_DIRECTIVE_A.
65977         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65978         Gary V. Vaughan <gary@gnu.org>.
65979
65980 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65981
65982         * lib/inttypes_.h: Undo previous change, since it was fixed
65983         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65984
65985 2007-07-13  Bruno Haible  <bruno@clisp.org>
65986
65987         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65988         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65989
65990 2007-07-13  Jim Meyering  <jim@meyering.net>
65991
65992         df: Don't fail for Tru64's "file-on-file mount".
65993         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65994         so we fall through and use statfs instead.  Details here:
65995         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65996         Reported by Albert Chin.
65997
65998 2007-07-13  Bruno Haible  <bruno@clisp.org>
65999
66000         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66001         * modules/configmake (License): Likewise.
66002         * modules/gettext (License): Likewise.
66003         * modules/gettext-h (License): Likewise.
66004         * modules/include_next (License): Likewise.
66005         * modules/link-warning (License): Likewise.
66006         * modules/localcharset (License): Likewise.
66007         * modules/localename (License): Likewise.
66008         * modules/lock (License): Likewise.
66009         * modules/relocatable-lib-lgpl (License): Likewise.
66010         * modules/size_max (License): Likewise.
66011         * modules/vasnprintf (License): Likewise.
66012         * modules/wchar (License): Likewise.
66013         * modules/xsize (License): Likewise.
66014
66015 2007-07-13  Bruno Haible  <bruno@clisp.org>
66016
66017         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66018         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66019
66020 2007-07-12  Bruno Haible  <bruno@clisp.org>
66021
66022         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66023         in the modules files.
66024
66025 2007-07-11  Karl Berry  <karl@gnu.org>
66026
66027         * MODULES.html.sh (func_module): use
66028          sed -e '\|^'"${includefile}"'$|d'
66029          instead of /.../d, to avoid errors on $includefile's containing /.
66030
66031 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66032
66033         * gnulib-tool (func_import): Avoid duplication of --avoid
66034         statements
66035         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66036         names to `_' in variable names.
66037
66038 2007-07-10  Eric Blake  <ebb9@byu.net>
66039
66040         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66041         * NEWS: Document this change.
66042
66043 2007-07-08  Bruno Haible  <bruno@clisp.org>
66044
66045         Update to Unicode 5.0.
66046         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66047         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66048         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66049         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66050         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66051         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66052         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66053         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66054         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66055         U+10A3F, U+1D242..U+1D244.
66056         (nonspacing_table_ind): Update.
66057         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66058         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66059
66060 2007-07-08  Bruno Haible  <bruno@clisp.org>
66061
66062         Update to Unicode 5.0.
66063         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66064         code transform. Extend the name index field of unicode_name_to_code and
66065         unicode_code_to_name from 16 to 24 bits.
66066         * lib/uniname/uniname.c (unicode_character_name,
66067         unicode_name_character): Add the range 0x12xxx to the code transform.
66068         * lib/uniname/uninames.h: Regenerated.
66069         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66070
66071 2007-07-07  Bruno Haible  <bruno@clisp.org>
66072
66073         * modules/wcwidth-tests: New file.
66074         * tests/test-wcwidth.c: New file.
66075
66076         Work around MacOS X wcwidth() bug.
66077         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66078         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66079         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66080         original wcwidth in non-UTF-8 locales.
66081         * modules/wcwidth (Depends-on): Add localcharset, streq,
66082         uniwidth/width.
66083         * doc/functions/wcwidth.texi: Update.
66084
66085 2007-07-07  Bruno Haible  <bruno@clisp.org>
66086
66087         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66088         (wcwidth): New declaration.
66089         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66090         macros.
66091         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66092         here. Prepare for creating <wchar.h> unconditionally.
66093         * modules/wchar (Depends-on): Add link-warning.
66094         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66095         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66096         * lib/wcwidth.h: Remove file.
66097         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66098         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66099         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66100         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66101         (Include): Replace wcwidth.h with <wchar.h>.
66102         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66103         * lib/mbchar.h: Don't include wcwidth.h.
66104         * lib/mbswidth.c: Likewise.
66105         * NEWS: Mention the change.
66106
66107 2007-07-07  Bruno Haible  <bruno@clisp.org>
66108
66109         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66110         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66111         definition with an external declaration.
66112         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66113         defined as a function. Remove AC_C_INLINE requirement.
66114         * modules/wcwidth (Files): Add lib/wcwidth.c.
66115         (Makefile.am): Remove redundant statement.
66116
66117 2007-07-07  Bruno Haible  <bruno@clisp.org>
66118
66119         * MODULES.html.sh (Unicode string functions): Add the new modules.
66120
66121         * tests/uniwidth/test-u32-strwidth.c: New file.
66122         * modules/uniwidth/u32-strwidth-tests: New file.
66123
66124         * lib/uniwidth/u32-strwidth.c: New file.
66125         * modules/uniwidth/u32-strwidth: New file.
66126
66127         * tests/uniwidth/test-u16-strwidth.c: New file.
66128         * modules/uniwidth/u16-strwidth-tests: New file.
66129
66130         * lib/uniwidth/u16-strwidth.c: New file.
66131         * modules/uniwidth/u16-strwidth: New file.
66132
66133         * tests/uniwidth/test-u8-strwidth.c: New file.
66134         * modules/uniwidth/u8-strwidth-tests: New file.
66135
66136         * lib/uniwidth/u8-strwidth.c: New file.
66137         * modules/uniwidth/u8-strwidth: New file.
66138
66139         * tests/uniwidth/test-u32-width.c: New file.
66140         * modules/uniwidth/u32-width-tests: New file.
66141
66142         * lib/uniwidth/u32-width.c: New file.
66143         * modules/uniwidth/u32-width: New file.
66144
66145         * tests/uniwidth/test-u16-width.c: New file.
66146         * modules/uniwidth/u16-width-tests: New file.
66147
66148         * lib/uniwidth/u16-width.c: New file.
66149         * modules/uniwidth/u16-width: New file.
66150
66151         * tests/uniwidth/test-u8-width.c: New file.
66152         * modules/uniwidth/u8-width-tests: New file.
66153
66154         * lib/uniwidth/u8-width.c: New file.
66155         * modules/uniwidth/u8-width: New file.
66156
66157         * tests/uniwidth/test-uc_width.c: New file.
66158         * modules/uniwidth/width-tests: New file.
66159
66160         * lib/uniwidth/width.c: New file, from GNU libiconv.
66161         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66162         * modules/uniwidth/width: New file.
66163
66164         * lib/uniwidth.h: New file, from GNU libiconv.
66165         * modules/uniwidth/base: New file.
66166
66167 2007-07-07  Bruno Haible  <bruno@clisp.org>
66168
66169         * lib/uniname.h: New file, from GNU gettext.
66170         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66171         * lib/uniname/uninames.h: New file, from GNU gettext.
66172         * lib/uniname/uniname.c: New file, from GNU gettext.
66173         * tests/uniname/test-uninames.sh: New file.
66174         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66175         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66176         * modules/uniname/base: New file.
66177         * modules/uniname/uniname: New file.
66178         * modules/uniname/uniname-tests: New file.
66179         * MODULES.html.sh (Unicode string functions): Add the new modules.
66180
66181 2007-07-06  Bruno Haible  <bruno@clisp.org>
66182
66183         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66184
66185 2007-07-06  Bruno Haible  <bruno@clisp.org>
66186
66187         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66188         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66189         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66190         include <sys/time.h>.
66191         Reported by Eric Blake.
66192
66193 2007-07-06  Eric Blake  <ebb9@byu.net>
66194
66195         Fix testing canonicalize on cygwin.
66196         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66197         Revert patch from 2007-06-19.
66198         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66199         canonicalize module is also in use.
66200         * tests/test-canonicalize.c: New file.
66201         * tests/test-canonicalize.sh: Likewise.
66202         * modules/canonicalize-tests: Likewise.
66203
66204 2007-07-06  Jim Meyering  <jim@meyering.net>
66205
66206         * lib/getugroups.c (getugroups): Detect getgrent failure.
66207         Adjust comment to reflect reality: this function may return -1.
66208
66209 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66210
66211         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66212         the new TP address.
66213         (usage): Fix typo
66214         (gnulib_mk): New variable.
66215
66216 2007-07-05  Jim Meyering  <jim@meyering.net>
66217
66218         Don't let endgrent clobber errno, no matter how improbable.
66219         * lib/getugroups.c (getugroups): Save and restore errno around
66220         endgrent call.
66221
66222         Close the group DB even when failing with 2^31 or more members.
66223         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66224
66225 2007-07-04  Jim Meyering  <jim@meyering.net>
66226
66227         * lib/getugroups.h: New file.
66228         * lib/getugroups.c: Include "getugroups.h".
66229         Remove uses of "register" keyword.
66230         Move local variable, "cp", down into scope where used.
66231         Give "username" parameter the "const" attribute.
66232         * modules/getugroups (Files): Add lib/getugroups.h
66233
66234 2007-07-04  Karl Berry  <karl@gnu.org>
66235
66236         * MODULES.html.sh (func_all_modules): Complete rename of
66237         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66238
66239 2007-07-02  Bruno Haible  <bruno@clisp.org>
66240
66241         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66242         mode, when inttypes.h comes from gnulib.
66243         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66244
66245 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66246
66247         * NEWS: Mention lgpl module name change.
66248
66249         * modules/lgpl-2.1: Renamed from lgpl.
66250
66251         * NEWS: Mention gpl module name change.
66252
66253         * modules/gpl-3.0: New file, based on gpl-2.0.
66254
66255         * modules/gpl-2.0: Renamed from gpl.
66256
66257         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66258         doc/gpl-2.0.texi.
66259
66260 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66261
66262         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66263         #define __STDC_LIMIT_MACROS temporarily while including
66264         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66265         Problem reported by Joel E. Denny in
66266         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66267
66268 2007-07-01  Bruno Haible  <bruno@clisp.org>
66269
66270         * lib/unistdio.h: New file.
66271         * lib/unistdio/u-asnprintf.h: New file.
66272         * lib/unistdio/u-asprintf.h: New file.
66273         * lib/unistdio/u-printf-args.c: New file.
66274         * lib/unistdio/u-printf-args.h: New file.
66275         * lib/unistdio/u-printf-parse.h: New file.
66276         * lib/unistdio/u-snprintf.h: New file.
66277         * lib/unistdio/u-sprintf.h: New file.
66278         * lib/unistdio/u-vasprintf.h: New file.
66279         * lib/unistdio/u-vsnprintf.h: New file.
66280         * lib/unistdio/u-vsprintf.h: New file.
66281         * lib/unistdio/ulc-asnprintf.c: New file.
66282         * lib/unistdio/ulc-asprintf.c: New file.
66283         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66284         * lib/unistdio/ulc-printf-parse.c: New file.
66285         * lib/unistdio/ulc-snprintf.c: New file.
66286         * lib/unistdio/ulc-sprintf.c: New file.
66287         * lib/unistdio/ulc-vasnprintf.c: New file.
66288         * lib/unistdio/ulc-vasprintf.c: New file.
66289         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66290         * lib/unistdio/ulc-vsnprintf.c: New file.
66291         * lib/unistdio/ulc-vsprintf.c: New file.
66292         * lib/unistdio/u8-asnprintf.c: New file.
66293         * lib/unistdio/u8-asprintf.c: New file.
66294         * lib/unistdio/u8-printf-parse.c: New file.
66295         * lib/unistdio/u8-snprintf.c: New file.
66296         * lib/unistdio/u8-sprintf.c: New file.
66297         * lib/unistdio/u8-vasnprintf.c: New file.
66298         * lib/unistdio/u8-vasprintf.c: New file.
66299         * lib/unistdio/u8-vsnprintf.c: New file.
66300         * lib/unistdio/u8-vsprintf.c: New file.
66301         * lib/unistdio/u8-u8-asnprintf.c: New file.
66302         * lib/unistdio/u8-u8-asprintf.c: New file.
66303         * lib/unistdio/u8-u8-snprintf.c: New file.
66304         * lib/unistdio/u8-u8-sprintf.c: New file.
66305         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66306         * lib/unistdio/u8-u8-vasprintf.c: New file.
66307         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66308         * lib/unistdio/u8-u8-vsprintf.c: New file.
66309         * lib/unistdio/u16-asnprintf.c: New file.
66310         * lib/unistdio/u16-asprintf.c: New file.
66311         * lib/unistdio/u16-printf-parse.c: New file.
66312         * lib/unistdio/u16-snprintf.c: New file.
66313         * lib/unistdio/u16-sprintf.c: New file.
66314         * lib/unistdio/u16-vasnprintf.c: New file.
66315         * lib/unistdio/u16-vasprintf.c: New file.
66316         * lib/unistdio/u16-vsnprintf.c: New file.
66317         * lib/unistdio/u16-vsprintf.c: New file.
66318         * lib/unistdio/u16-u16-asnprintf.c: New file.
66319         * lib/unistdio/u16-u16-asprintf.c: New file.
66320         * lib/unistdio/u16-u16-snprintf.c: New file.
66321         * lib/unistdio/u16-u16-sprintf.c: New file.
66322         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66323         * lib/unistdio/u16-u16-vasprintf.c: New file.
66324         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66325         * lib/unistdio/u16-u16-vsprintf.c: New file.
66326         * lib/unistdio/u32-asnprintf.c: New file.
66327         * lib/unistdio/u32-asprintf.c: New file.
66328         * lib/unistdio/u32-printf-parse.c: New file.
66329         * lib/unistdio/u32-snprintf.c: New file.
66330         * lib/unistdio/u32-sprintf.c: New file.
66331         * lib/unistdio/u32-vasnprintf.c: New file.
66332         * lib/unistdio/u32-vasprintf.c: New file.
66333         * lib/unistdio/u32-vsnprintf.c: New file.
66334         * lib/unistdio/u32-vsprintf.c: New file.
66335         * lib/unistdio/u32-u32-asnprintf.c: New file.
66336         * lib/unistdio/u32-u32-asprintf.c: New file.
66337         * lib/unistdio/u32-u32-snprintf.c: New file.
66338         * lib/unistdio/u32-u32-sprintf.c: New file.
66339         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66340         * lib/unistdio/u32-u32-vasprintf.c: New file.
66341         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66342         * lib/unistdio/u32-u32-vsprintf.c: New file.
66343         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66344         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66345         * tests/unistdio/test-ulc-printf1.h: New file.
66346         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66347         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66348         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66349         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66350         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66351         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66352         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66353         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66354         * tests/unistdio/test-u8-asnprintf1.c: New file.
66355         * tests/unistdio/test-u8-asnprintf1.h: New file.
66356         * tests/unistdio/test-u8-printf1.h: New file.
66357         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66358         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66359         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66360         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66361         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66362         * tests/unistdio/test-u8-vasprintf1.c: New file.
66363         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66364         * tests/unistdio/test-u8-vsprintf1.c: New file.
66365         * tests/unistdio/test-u16-asnprintf1.c: New file.
66366         * tests/unistdio/test-u16-asnprintf1.h: New file.
66367         * tests/unistdio/test-u16-printf1.h: New file.
66368         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66369         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66370         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66371         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66372         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66373         * tests/unistdio/test-u16-vasprintf1.c: New file.
66374         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66375         * tests/unistdio/test-u16-vsprintf1.c: New file.
66376         * tests/unistdio/test-u32-asnprintf1.c: New file.
66377         * tests/unistdio/test-u32-asnprintf1.h: New file.
66378         * tests/unistdio/test-u32-printf1.h: New file.
66379         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66380         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66381         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66382         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66383         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66384         * tests/unistdio/test-u32-vasprintf1.c: New file.
66385         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66386         * tests/unistdio/test-u32-vsprintf1.c: New file.
66387         * modules/unistdio/base: New file.
66388         * modules/unistdio/u-printf-args: New file.
66389         * modules/unistdio/ulc-asnprintf: New file.
66390         * modules/unistdio/ulc-asprintf: New file.
66391         * modules/unistdio/ulc-fprintf: New file.
66392         * modules/unistdio/ulc-printf-parse: New file.
66393         * modules/unistdio/ulc-snprintf: New file.
66394         * modules/unistdio/ulc-sprintf: New file.
66395         * modules/unistdio/ulc-vasnprintf: New file.
66396         * modules/unistdio/ulc-vasprintf: New file.
66397         * modules/unistdio/ulc-vfprintf: New file.
66398         * modules/unistdio/ulc-vsnprintf: New file.
66399         * modules/unistdio/ulc-vsprintf: New file.
66400         * modules/unistdio/u8-asnprintf: New file.
66401         * modules/unistdio/u8-asprintf: New file.
66402         * modules/unistdio/u8-printf-parse: New file.
66403         * modules/unistdio/u8-snprintf: New file.
66404         * modules/unistdio/u8-sprintf: New file.
66405         * modules/unistdio/u8-vasnprintf: New file.
66406         * modules/unistdio/u8-vasprintf: New file.
66407         * modules/unistdio/u8-vsnprintf: New file.
66408         * modules/unistdio/u8-vsprintf: New file.
66409         * modules/unistdio/u8-u8-asnprintf: New file.
66410         * modules/unistdio/u8-u8-asprintf: New file.
66411         * modules/unistdio/u8-u8-snprintf: New file.
66412         * modules/unistdio/u8-u8-sprintf: New file.
66413         * modules/unistdio/u8-u8-vasnprintf: New file.
66414         * modules/unistdio/u8-u8-vasprintf: New file.
66415         * modules/unistdio/u8-u8-vsnprintf: New file.
66416         * modules/unistdio/u8-u8-vsprintf: New file.
66417         * modules/unistdio/u16-asnprintf: New file.
66418         * modules/unistdio/u16-asprintf: New file.
66419         * modules/unistdio/u16-printf-parse: New file.
66420         * modules/unistdio/u16-snprintf: New file.
66421         * modules/unistdio/u16-sprintf: New file.
66422         * modules/unistdio/u16-vasnprintf: New file.
66423         * modules/unistdio/u16-vasprintf: New file.
66424         * modules/unistdio/u16-vsnprintf: New file.
66425         * modules/unistdio/u16-vsprintf: New file.
66426         * modules/unistdio/u16-u16-asnprintf: New file.
66427         * modules/unistdio/u16-u16-asprintf: New file.
66428         * modules/unistdio/u16-u16-snprintf: New file.
66429         * modules/unistdio/u16-u16-sprintf: New file.
66430         * modules/unistdio/u16-u16-vasnprintf: New file.
66431         * modules/unistdio/u16-u16-vasprintf: New file.
66432         * modules/unistdio/u16-u16-vsnprintf: New file.
66433         * modules/unistdio/u16-u16-vsprintf: New file.
66434         * modules/unistdio/u32-asnprintf: New file.
66435         * modules/unistdio/u32-asprintf: New file.
66436         * modules/unistdio/u32-printf-parse: New file.
66437         * modules/unistdio/u32-snprintf: New file.
66438         * modules/unistdio/u32-sprintf: New file.
66439         * modules/unistdio/u32-vasnprintf: New file.
66440         * modules/unistdio/u32-vasprintf: New file.
66441         * modules/unistdio/u32-vsnprintf: New file.
66442         * modules/unistdio/u32-vsprintf: New file.
66443         * modules/unistdio/u32-u32-asnprintf: New file.
66444         * modules/unistdio/u32-u32-asprintf: New file.
66445         * modules/unistdio/u32-u32-snprintf: New file.
66446         * modules/unistdio/u32-u32-sprintf: New file.
66447         * modules/unistdio/u32-u32-vasnprintf: New file.
66448         * modules/unistdio/u32-u32-vasprintf: New file.
66449         * modules/unistdio/u32-u32-vsnprintf: New file.
66450         * modules/unistdio/u32-u32-vsprintf: New file.
66451         * modules/unistdio/ulc-asnprintf-tests: New file.
66452         * modules/unistdio/ulc-vasnprintf-tests: New file.
66453         * modules/unistdio/ulc-vasprintf-tests: New file.
66454         * modules/unistdio/ulc-vsnprintf-tests: New file.
66455         * modules/unistdio/ulc-vsprintf-tests: New file.
66456         * modules/unistdio/u8-asnprintf-tests: New file.
66457         * modules/unistdio/u8-vasnprintf-tests: New file.
66458         * modules/unistdio/u8-vasprintf-tests: New file.
66459         * modules/unistdio/u8-vsnprintf-tests: New file.
66460         * modules/unistdio/u8-vsprintf-tests: New file.
66461         * modules/unistdio/u16-asnprintf-tests: New file.
66462         * modules/unistdio/u16-vasnprintf-tests: New file.
66463         * modules/unistdio/u16-vasprintf-tests: New file.
66464         * modules/unistdio/u16-vsnprintf-tests: New file.
66465         * modules/unistdio/u16-vsprintf-tests: New file.
66466         * modules/unistdio/u32-asnprintf-tests: New file.
66467         * modules/unistdio/u32-vasnprintf-tests: New file.
66468         * modules/unistdio/u32-vasprintf-tests: New file.
66469         * modules/unistdio/u32-vsnprintf-tests: New file.
66470         * modules/unistdio/u32-vsprintf-tests: New file.
66471         * MODULES.html.sh (Unicode string functions): Add the new modules.
66472
66473 2007-07-01  Bruno Haible  <bruno@clisp.org>
66474
66475         * lib/sprintf.c (sprintf): Limit the available length estimation,
66476         to avoid address wraparound.
66477         * lib/vsprintf.c (vsprintf): Likewise.
66478         * modules/sprintf-posix (Dependencies): Add stdint.
66479         * modules/vsprintf-posix (Dependencies): Likewise.
66480
66481 2007-07-01  Bruno Haible  <bruno@clisp.org>
66482
66483         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66484         Windows PATH as well. Conservative double-quoting. Comments.
66485
66486 2007-07-01  Bruno Haible  <bruno@clisp.org>
66487             Eric Blake  <ebb9@byu.net>
66488             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66489
66490         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66491         empty components in $PATH, denoting '.'.
66492
66493 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66494
66495         * gnulib-tool: Fix indentation.
66496         (func_create_megatestdir): Likewise.
66497         Report by Bruno Haible.
66498
66499 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66500
66501         Sync from Automake.
66502         * build-aux/gnupload: Fix shell portability issues with for loops.
66503         Report by Karl Berry.
66504
66505 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66506
66507         * build-aux/maint.mk (POURL): Use translationproject.org.
66508
66509 2007-06-27  Simon Josefsson  <simon@josefsson.org>
66510             Bruno Haible  <bruno@clisp.org>
66511
66512         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
66513         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
66514         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
66515         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
66516         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
66517
66518 2007-06-27  Bruno Haible  <bruno@clisp.org>
66519
66520         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
66521         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
66522
66523 2007-06-26  Karl Berry  <karl@gnu.org>
66524
66525         * MODULES.html.sh: remove xreadlink-with-size.
66526
66527 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66528
66529         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
66530         method that I hope also handles the double-include problem noted
66531         by Bruno Haible in
66532         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
66533
66534 2007-06-23  Bruno Haible  <bruno@clisp.org>
66535
66536         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
66537         Don't let the 'mostlyclean' target fail if the last subdirectory could
66538         not be removed.
66539         Reported by Karl Berry.
66540
66541 2007-06-23  Bruno Haible  <bruno@clisp.org>
66542
66543         * gnulib-tool (echo): Add a speedier workaround for ksh.
66544         * tests/test-echo.sh: Likewise.
66545
66546 2007-06-23  Bruno Haible  <bruno@clisp.org>
66547
66548         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
66549         * tests/test-echo.sh: Likewise.
66550
66551 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66552
66553         * gnulib-tool (IFS): Initialize early, so we don't set it to
66554         empty later.
66555         (self_abspathname): Rewrite algorithm to set it, reindent.
66556         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
66557         (func_create_megatestdir): Merge some sed scripts.
66558
66559 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
66560
66561         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
66562         exposed by Sun Studio 11 cc on Solaris 8.
66563
66564 2007-06-22  Bruno Haible  <bruno@clisp.org>
66565
66566         * gnulib-tool (echo): Ensure the echo primitive does not interpret
66567         backslashes.
66568         * tests/test-echo.sh: New file.
66569
66570 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66571
66572         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
66573         simplify `sed_replace_build_aux' scripts, they are portable but
66574         echoing them with `echo' is not.
66575         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
66576
66577 2007-06-21  Karl Berry  <karl@gnu.org>
66578
66579         * config/srclist.txt: guess we can't handle the licenses via
66580         srclist at the moment.
66581
66582 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
66583
66584         * MODULES.html.sh: Add include_next.
66585         * modules/include_next: New file.
66586
66587 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
66588
66589         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
66590         INCLUDE_NEXT.
66591         (gl_CHECK_NEXT_HEADERS): New macro.
66592         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
66593         the obsolescent gl_ABSOLUTE_HEADER.
66594         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
66595         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
66596         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
66597         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
66598         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66599         * m4/math_h.m4 (gl_MATH_H): Likewise.
66600         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
66601         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
66602         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
66603         * m4/stdint.m4 (gl_STDINT_H): Likewise.
66604         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
66605         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
66606         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
66607         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
66608         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
66609         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
66610         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
66611         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
66612         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
66613         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
66614         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
66615         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
66616         * m4/inttypes.m4 (gl_INTTYPES_H): Define
66617         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
66618         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
66619         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
66620         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
66621         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
66622         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
66623         * lib/float_.h: Likewise.
66624         * lib/inttypes_.h: Likewise.
66625         * lib/math_.h: Likewise.
66626         * lib/search_.h: Likewise.
66627         * lib/signal_.h: Likewise.
66628         * lib/stdint_.h: Likewise.
66629         * lib/stdio_.h: Likewise.
66630         * lib/stdlib_.h: Likewise.
66631         * lib/string_.h: Likewise.
66632         * lib/sys_stat_.h: Likewise.
66633         * lib/sys_time_.h: Likewise.
66634         * lib/time_.h: Likewise.
66635         * lib/unistd_.h: Likewise.
66636         * lib/wchar_.h: Likewise.
66637         * lib/wctype_.h: Likewise.
66638         * lib/dirent_.h: Likewise.
66639         * lib/iconv_.h: Likewise.
66640         * lib/locale_.h: Likewise.
66641         * lib/netinet_in_.h: Likewise.
66642         * lib/sys_select_.h: Likewise.
66643         * lib/sys_socket_.h: Likewise.
66644         * lib/sysexits_.h: Likewise.
66645         * modules/fcntl (Depends-on): Depend on include_next, not
66646         absolute_header.
66647         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
66648         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
66649         * modules/fchdir: Likewise.
66650         * modules/float: Likewise.
66651         * modules/iconv_open: Likewise.
66652         * modules/inttypes: Likewise.
66653         * modules/locale: Likewise.
66654         * modules/math: Likewise.
66655         * modules/netinet_in: Likewise.
66656         * modules/search: Likewise.
66657         * modules/signal: Likewise.
66658         * modules/stdint: Likewise.
66659         * modules/stdio: Likewise.
66660         * modules/stdlib: Likewise.
66661         * modules/string: Likewise.
66662         * modules/sys_select: Likewise.
66663         * modules/sys_socket: Likewise.
66664         * modules/sys_stat: Likewise.
66665         * modules/sys_time: Likewise.
66666         * modules/sysexits: Likewise.
66667         * modules/time: Likewise.
66668         * modules/unistd: Likewise.
66669         * modules/wchar: Likewise.
66670         * modules/wctype: Likewise.
66671         * modules/sys_stat: Change maintainer to "all".
66672         * modules/unistd: Likewise.
66673
66674 2007-06-20  Karl Berry  <karl@gnu.org>
66675
66676         * config/srclist.txt: track www changes in license files.
66677
66678 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
66679
66680         * build-aux/bootstrap: Remove stray dot.
66681         Make sure build_aux settings are honored when linking
66682         gnulib_extra_files.
66683
66684 2007-06-19  Eric Blake  <ebb9@byu.net>
66685
66686         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66687         Allow compilation on cygwin.
66688
66689 2007-06-19  Jim Meyering  <jim@meyering.net>
66690
66691         xreadlink-with-size: Remove module.  No longer used.
66692         Ex-callers now use xreadlink or mreadlink-with-size.
66693         * modules/xreadlink-with-size: Remove module.
66694         * lib/xreadlink-with-size.c: Remove file.
66695         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
66696         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
66697         just before the function definition *is* accurate.
66698
66699         Eliminate one way canonicalize_filename_mode could exit.
66700         * lib/canonicalize.c (canonicalize_filename_mode):
66701         Use mreadlink_with_size, not xreadlink_with_size.
66702
66703 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
66704
66705         Detect porting problems to FreeBSD/arm, which has time_t wider than
66706         long int.  Original problem reported for GNU diff by Xin Li in
66707         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
66708         * modules/getdate (Depends-on): Add intprops, verify.
66709         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
66710         is an integer type no wider than long int.
66711
66712 2007-06-18  Jim Meyering  <jim@meyering.net>
66713
66714         New module: mreadlink-with-size.
66715         * MODULES.html.sh: Add mreadlink-with-size.
66716         * modules/mreadlink-with-size: New module
66717         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
66718         not xreadlink-with-size.
66719         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
66720
66721 2007-06-16  Bruno Haible  <bruno@clisp.org>
66722
66723         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
66724         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
66725         Reported by Gary V. Vaughan <gary@gnu.org>.
66726
66727 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
66728
66729         Revamp lchown so that it lives in unistd.h where it belongs.
66730         * lib/lchown.h: Remove.
66731         * lib/dirchownmod.c: Don't include lib/lchown.h.
66732         * lib/fchownat.c: Likewise.
66733         * lib/openat.c: Likewise.
66734         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
66735         does not follow symlinks.
66736         (EOPNOTSUPP): Define if not defined.
66737         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
66738         is defined to 0.
66739         (lchown): New decl.
66740         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
66741         Do not check for lchown decl.
66742         Set REPLACE_LCHOWN.
66743         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
66744         REPLACE_LCHOWN.
66745         * modules/chown: Make it clear it follows symlinks.
66746         * modules/lchown: Make it clear it doesn't follow symlinks.
66747         (Files): Remove lib/lchown.h
66748         (Depends-on): Add unistd.
66749         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
66750         (Include): Include <unistd.h>, not "lchown.h".
66751         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
66752         REPLACE_LCHOWN.
66753
66754 2007-06-15  Jim Meyering  <jim@meyering.net>
66755
66756         Change license (GPL to LGPL) of fsusage and dependents.
66757         * modules/fsusage (License): Change to LGPL.
66758         * modules/full-read (License): Likewise.
66759         * modules/full-write (License): Likewise.
66760         * modules/safe-read (License): Likewise.
66761         * modules/safe-write (License): Likewise.
66762
66763 2007-06-14  Ben Pfaff  <blp@gnu.org>
66764
66765         Missing part of allocsa -> malloca transition.
66766         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
66767         gl_MALLOCA.
66768
66769 2007-06-12  Bruno Haible  <bruno@clisp.org>
66770
66771         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
66772         to ia64, x86_64, i386.
66773         Reported by Eric Blake.
66774
66775 2007-06-12  Bruno Haible  <bruno@clisp.org>
66776
66777         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
66778         cross-compiling to x86_64.
66779
66780 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
66781
66782         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
66783         glitch reported by Ralf Wildenhues in
66784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
66785
66786         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
66787         Vin Shelton.
66788
66789 2007-06-11  Bruno Haible  <bruno@clisp.org>
66790
66791         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
66792         replacement string.
66793         Reported by Eric Blake.
66794
66795 2007-06-10  Bruno Haible  <bruno@clisp.org>
66796
66797         Prepare vasnprintf code for use with Unicode strings.
66798         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
66799         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
66800         TYPE_U32_STRING.
66801         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
66802         a_u32_string variants.
66803         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66804         * lib/printf-args.c: Don't include config.h and the specification
66805         header if PRINTF_FETCHARGS is already defined.
66806         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
66807         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
66808         TYPE_U16_STRING, TYPE_U32_STRING.
66809         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
66810         u16_directive, u16_directives, u32_directive, u32_directives): New
66811         types.
66812         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
66813         New declarations.
66814         * lib/printf-parse.c: Don't include config.h and the specification
66815         header if PRINTF_PARSE is already defined. Eliminate the set of
66816         parameters for WIDE_CHAR_VERSION; the user of this file must provide
66817         them now. Include c-ctype.h.
66818         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
66819         directive and CHAR_T_ONLY_ASCII.
66820         * lib/vasnprintf.c: Don't include config.h and the specification header
66821         if VASNPRINTF is already defined.
66822         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
66823         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
66824         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
66825         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
66826         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
66827         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
66828         code accordingly.
66829         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
66830         pad_ourselves also in this case, with the 'c' and 's' directives, and
66831         with a different notion of "width".
66832         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
66833
66834 2007-06-10  Bruno Haible  <bruno@clisp.org>
66835
66836         * modules/unistr/u32-mbsnlen: New file.
66837         * lib/unistr/u32-mbsnlen.c: New file.
66838
66839         * modules/unistr/u16-mbsnlen: New file.
66840         * lib/unistr/u16-mbsnlen.c: New file.
66841
66842         * modules/unistr/u8-mbsnlen: New file.
66843         * lib/unistr/u8-mbsnlen.c: New file.
66844
66845         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
66846         declarations.
66847
66848 2007-06-10  Bruno Haible  <bruno@clisp.org>
66849
66850         * lib/string_.h (mbsnlen): New declaration.
66851         * lib/mbsnlen.c: New file.
66852         * m4/mbsnlen.m4: New file.
66853         * modules/mbsnlen: New file.
66854         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
66855         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
66856         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
66857
66858 2007-06-10  Bruno Haible  <bruno@clisp.org>
66859
66860         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
66861
66862 2007-06-10  Bruno Haible  <bruno@clisp.org>
66863
66864         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
66865         * lib/mbuiter.h: Likewise.
66866
66867 2007-06-10  Bruno Haible  <bruno@clisp.org>
66868
66869         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
66870         declaration.
66871
66872 2007-06-10  Karl Berry  <karl@gnu.org>
66873
66874         * config/srclist.txt: remove gettext entries, Bruno prefers
66875         to update individually.
66876
66877 2007-06-10  Bruno Haible  <bruno@clisp.org>
66878
66879         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
66880         'maxlen'. Ensure only length + width bytes are allocated, not
66881         length + 1 + width.
66882
66883 2007-06-09  Bruno Haible  <bruno@clisp.org>
66884
66885         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
66886         (CHAR_T): Remove macro.
66887         (VASNPRINTF): Update.
66888
66889 2007-06-09  Bruno Haible  <bruno@clisp.org>
66890
66891         * MODULES.html.sh (Unicode string functions): Add the new modules.
66892
66893         * modules/uniconv/u32-conv-to-enc: New file.
66894         * lib/uniconv/u32-conv-to-enc.c: New file.
66895         * modules/uniconv/u32-conv-to-enc-tests: New file.
66896         * tests/uniconv/test-u32-conv-to-enc.c: New file.
66897
66898         * modules/uniconv/u16-conv-to-enc: New file.
66899         * lib/uniconv/u16-conv-to-enc.c: New file.
66900         * lib/uniconv/u-conv-to-enc.h: New file.
66901         * modules/uniconv/u16-conv-to-enc-tests: New file.
66902         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66903
66904         * modules/uniconv/u8-conv-to-enc: New file.
66905         * lib/uniconv/u8-conv-to-enc.c: New file.
66906         * modules/uniconv/u8-conv-to-enc-tests: New file.
66907         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66908
66909         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66910         u32_conv_to_encoding): New declarations.
66911
66912 2007-06-09  Bruno Haible  <bruno@clisp.org>
66913
66914         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66915
66916 2007-06-09  Bruno Haible  <bruno@clisp.org>
66917
66918         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66919         * modules/malloca: Renamed from modules/allocsa, updated.
66920         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
66921         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
66922         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
66923         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
66924         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
66925         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
66926         * modules/xmalloca: Renamed from modules/xallocsa, updated.
66927         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
66928         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
66929         * modules/c-strcasestr (Depends-on): Update.
66930         * lib/c-strcasestr.c: Update.
66931         * modules/c-strstr (Depends-on): Update.
66932         * lib/c-strstr.c: Update.
66933         * modules/canonicalize-lgpl (Depends-on): Update.
66934         * lib/canonicalize-lgpl.c: Update.
66935         * modules/clean-temp (Depends-on): Update.
66936         * lib/clean-temp.c: Update.
66937         * modules/csharpcomp (Depends-on): Update.
66938         * lib/csharpcomp.c: Update.
66939         * modules/csharpexec (Depends-on): Update.
66940         * lib/csharpexec.c: Update.
66941         * modules/javacomp (Depends-on): Update.
66942         * lib/javacomp.c: Update.
66943         * modules/javaexec (Depends-on): Update.
66944         * lib/javaexec.c: Update.
66945         * modules/mbscasestr (Depends-on): Update.
66946         * lib/mbscasestr.c: Update.
66947         * modules/mbsstr (Depends-on): Update.
66948         * lib/mbsstr.c: Update.
66949         * modules/setenv (Depends-on): Update.
66950         * lib/setenv.c: Update.
66951         * modules/strcasestr (Depends-on): Update.
66952         * lib/strcasestr.c: Update.
66953         * modules/striconveha (Depends-on): Update.
66954         * lib/striconveha.c: Update.
66955         * modules/relocatable-prog-wrapper (Files): Update.
66956         * lib/relocwrapper.c: Update.
66957         * build-aux/install-reloc: Update.
66958         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
66959
66960 2007-06-08  Bruno Haible  <bruno@clisp.org>
66961
66962         Port to uClibc.
66963         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
66964         * lib/fpurge.c (fpurge): Likewise.
66965         * lib/freading.c (freading): Likewise.
66966         * lib/fseeko.c (rpl_fseeko): Likewise.
66967         * lib/fseterr.c (fseterr): Likewise.
66968         * lib/fwriting.c (fwriting): Likewise.
66969         * tests/test-fflush.c (main): Avoid a failure on uClibc.
66970
66971 2007-06-08  Bruno Haible  <bruno@clisp.org>
66972
66973         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
66974         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66975         * modules/gettext (Files): Add m4/intlmacosx.m4.
66976
66977 2007-06-07  Bruno Haible  <bruno@clisp.org>
66978
66979         * modules/localename-tests: New file.
66980         * tests/test-localename.c: New file.
66981
66982         New module 'localename'.
66983         * lib/localename.h: New file.
66984         * lib/localename.c: New file, from GNU gettext.
66985         * m4/localename.m4: New file.
66986         * modules/localename: New file.
66987
66988 2007-06-07  Bruno Haible  <bruno@clisp.org>
66989
66990         Work around the lack of <wchar.h> on some builds of uClibc.
66991         * doc/headers/wchar.texi: Update.
66992         * lib/wchar_.h: Include <wchar.h> only if it exists.
66993         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66994         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66995         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66996         doesn't exist.
66997         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66998         * modules/mbfile (Depends-on): Add wchar.
66999         * modules/mbiter (Depends-on): Likewise.
67000         * modules/mbuiter (Depends-on): Likewise.
67001         Reported by Simon Josefsson.
67002
67003 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67004
67005         Work around problem reported by Steven M. Schweda in
67006         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67007         Tru64 5.1B with the Compaq compiler environment installed declares
67008         an 'isblank' function but does not define it in the C library.
67009         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67010         * lib/regex_internal.h (isblank): Likewise.
67011         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67012         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67013
67014 2007-06-05  Bruno Haible  <bruno@clisp.org>
67015
67016         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67017         ia64.
67018         * modules/printf-safe: New file.
67019         * modules/fprintf-posix (Depends-on): Add printf-safe.
67020         * modules/printf-posix (Depends-on): Likewise.
67021         * modules/snprintf-posix (Depends-on): Likewise.
67022         * modules/sprintf-posix (Depends-on): Likewise.
67023         * modules/vasnprintf-posix (Depends-on): Likewise.
67024         * modules/vasprintf-posix (Depends-on): Likewise.
67025         * modules/vfprintf-posix (Depends-on): Likewise.
67026         * modules/vprintf-posix (Depends-on): Likewise.
67027         * modules/vsnprintf-posix (Depends-on): Likewise.
67028         * modules/vsprintf-posix (Depends-on): Likewise.
67029         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67030         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67031         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67032         "no" on i386, x86_64, ia64.
67033         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67034         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67035         on i386, x86_64, ia64.
67036         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67037         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67038         on i386, x86_64, ia64.
67039         * tests/test-vasnprintf-posix.c: Include float.h.
67040         (LDBL80_WORDS): New macro.
67041         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67042         on i386, x86_64, ia64.
67043         * tests/test-vasprintf-posix.c: Include float.h.
67044         (LDBL80_WORDS): New macro.
67045         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67046         on i386, x86_64, ia64.
67047         * tests/test-snprintf-posix.c: Include float.h.
67048         * tests/test-sprintf-posix.c: Likewise.
67049         * tests/test-vsnprintf-posix.c: Likewise.
67050         * tests/test-vsprintf-posix.c: Likewise.
67051
67052 2007-06-05  Bruno Haible  <bruno@clisp.org>
67053
67054         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67055         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67056         non-IEEE numbers on i386, x86_64, ia64.
67057         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67058         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67059         * tests/test-isnanl.h: Include float.h.
67060         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67061
67062 2007-06-05  Bruno Haible  <bruno@clisp.org>
67063
67064         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67065         also the %a / %A. Handle the %a / %A code before this extra handling.
67066
67067 2007-06-05  Bruno Haible  <bruno@clisp.org>
67068
67069         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67070         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67071
67072 2007-06-05  Bruno Haible  <bruno@clisp.org>
67073
67074         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67075         typo in variable name.
67076
67077 2007-06-05  Eric Blake  <ebb9@byu.net>
67078
67079         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67080         Reported by Simon Josefsson.
67081
67082 2007-06-04  Bruno Haible  <bruno@clisp.org>
67083
67084         Avoid test failures on some PowerPC platforms.
67085         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67086         Define differently for PowerPC.
67087         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67088         Reported by Gary V. Vaughan <gary@gnu.org>.
67089
67090 2007-06-02  Bruno Haible  <bruno@clisp.org>
67091
67092         Fix test-stdint failure on FreeBSD/ia64.
67093         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67094         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67095         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67096         * doc/headers/stdint.texi: Update.
67097
67098 2007-06-01  Bruno Haible  <bruno@clisp.org>
67099
67100         * tests/test-binary-io.c (main): Pass a third argument to open().
67101         Reported by Gary V. Vaughan <gary@gnu.org>.
67102
67103 2007-06-01  Bruno Haible  <bruno@clisp.org>
67104
67105         * doc/functions/frexpl.texi: Update for mingw.
67106
67107 2007-06-01  Bruno Haible  <bruno@clisp.org>
67108
67109         * tests/test-lseek.c (main): Disable test of errno for invalid third
67110         argument.
67111         * doc/functions/lseek.texi: Update.
67112         Reported by Gary V. Vaughan <gary@gnu.org>.
67113
67114 2007-05-28  Bruno Haible  <bruno@clisp.org>
67115
67116         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67117
67118 2007-05-31  Eric Blake  <ebb9@byu.net>
67119
67120         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67121         cross compiling.
67122
67123 2007-05-30  Eric Blake  <ebb9@byu.net>
67124         and Bruno Haible  <bruno@clisp.org>
67125
67126         Work around mingw test failures exposed by m4-1.4.9b.
67127         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67128         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67129         moment.
67130
67131 2007-05-30  Bruno Haible  <bruno@clisp.org>
67132
67133         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67134         assuming that they are closed. Needed on HP-UX 11.
67135
67136 2007-05-29  Bruno Haible  <bruno@clisp.org>
67137
67138         Fix a problem with #include_next.
67139         * lib/dirent_.h: Split the double-inclusion guard.
67140         * lib/fcntl_.h: Likewise.
67141         * lib/float_.h: Likewise.
67142         * lib/iconv_.h: Likewise.
67143         * lib/inttypes_.h: Likewise.
67144         * lib/locale_.h: Likewise.
67145         * lib/math_.h: Likewise.
67146         * lib/netinet_in_.h: Likewise.
67147         * lib/search_.h: Likewise.
67148         * lib/signal_.h: Likewise.
67149         * lib/stdint_.h: Likewise.
67150         * lib/stdio_.h: Likewise.
67151         * lib/stdlib_.h: Likewise.
67152         * lib/string_.h: Likewise.
67153         * lib/sys_select_.h: Likewise.
67154         * lib/sys_socket_.h: Likewise.
67155         * lib/sys_stat_.h: Likewise.
67156         * lib/sys_time_.h: Likewise.
67157         * lib/sysexits_.h: Likewise.
67158         * lib/time_.h: Likewise.
67159         * lib/unistd_.h: Likewise.
67160         * lib/wchar_.h: Likewise.
67161         * lib/wctype_.h: Likewise.
67162
67163 2007-05-29  Bruno Haible  <bruno@clisp.org>
67164
67165         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67166         for the moment.
67167
67168 2007-05-29  Bruno Haible  <bruno@clisp.org>
67169
67170         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67171         invocation.
67172         Reported by Eric Blake.
67173
67174 2007-05-29  Bruno Haible  <bruno@clisp.org>
67175
67176         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67177         compiling case.
67178
67179 2007-05-29  Eric Blake  <ebb9@byu.net>
67180             Bruno Haible  <bruno@clisp.org>
67181
67182         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67183         cross compiles.
67184
67185 2007-05-28  Eric Blake  <ebb9@byu.net>
67186
67187         * modules/closein-tests (test_closein_LDADD): Support test on
67188         cygwin with libtool.
67189
67190 2007-05-28  Bruno Haible  <bruno@clisp.org>
67191
67192         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67193         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67194         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67195         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67196         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67197         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67198         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67199         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67200         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67201
67202 2007-05-28  Eric Blake  <ebb9@byu.net>
67203
67204         Unconditionally include <config.h> in unit tests.
67205         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67206         * tests/test-allocsa.c, tests/test-arcfour.c,
67207         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67208         tests/test-array_list.c, tests/test-array_oset.c,
67209         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67210         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67211         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67212         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67213         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67214         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67215         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67216         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67217         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67218         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67219         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67220         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67221         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67222         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67223         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67224         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67225         test-md5.c, test-memmem.c, test-printf-posix.c,
67226         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67227         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67228         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67229         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67230         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67231         test-vasnprintf-posix2.c, test-vasnprintf.c,
67232         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67233         test-vfprintf-posix.c, test-vprintf-posix.c,
67234         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67235         test-xvasprintf.c: Likewise.
67236
67237 2007-05-28  Bruno Haible  <bruno@clisp.org>
67238
67239         * gnulib-tool (func_import): Remember the --with-tests command-line
67240         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67241         Reported by Eric Blake.
67242
67243 2007-05-28  Bruno Haible  <bruno@clisp.org>
67244
67245         * modules/ftell-tests: New file.
67246         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67247         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67248
67249         * lib/ftell.c: New file.
67250         * modules/ftell: New file.
67251         * m4/ftell.m4: New file.
67252         * doc/functions/ftell.texi: Update.
67253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67254         REPLACE_FTELL.
67255         * lib/stdio_.h (rpl_ftell): New declaration.
67256         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67257         REPLACE_FTELL.
67258
67259 2007-05-28  Eric Blake  <ebb9@byu.net>
67260
67261         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67262
67263 2007-05-28  Bruno Haible  <bruno@clisp.org>
67264
67265         * modules/fseek-tests: New file.
67266         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67267         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67268
67269         * lib/fseek.c: New file.
67270         * modules/fseek: New file.
67271         * m4/fseek.m4: New file.
67272         * doc/functions/fseek.texi: Update.
67273         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67274         REPLACE_FSEEK.
67275         * lib/stdio_.h (rpl_fseek): New declaration.
67276         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67277         REPLACE_FSEEK.
67278
67279 2007-05-28  Bruno Haible  <bruno@clisp.org>
67280
67281         * lib/stdio_.h (fflush): More comments.
67282
67283 2007-05-28  Bruno Haible  <bruno@clisp.org>
67284
67285         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67286         runtime test.
67287
67288 2007-05-28  Eric Blake  <ebb9@byu.net>
67289
67290         Improve lseek module.
67291         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67292         * lib/unistd_.h (lseek): Scale back link warning message.
67293         * tests/test-lseek.c: Beef up test.
67294         * tests/test-lseek.sh: Exercise more facets of lseek.
67295         Reported by Bruno Haible.
67296
67297 2007-05-28  Bruno Haible  <bruno@clisp.org>
67298
67299         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67300         to define.
67301
67302 2007-05-27  Bruno Haible  <bruno@clisp.org>
67303
67304         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67305
67306 2007-05-27  Bruno Haible  <bruno@clisp.org>
67307
67308         * modules/openmp: New file.
67309         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67310         Noah Misch.
67311
67312 2007-05-26  Bruno Haible  <bruno@clisp.org>
67313
67314         * modules/chdir-long (Depends-on): Add fchdir.
67315         * modules/chdir-safer (Depends-on): Likewise.
67316         * modules/fts (Depends-on): Likewise.
67317         * modules/fts-lgpl (Depends-on): Likewise.
67318         * modules/openat (Depends-on): Likewise.
67319         * modules/savewd (Depends-on): Likewise.
67320
67321 2007-05-24  Eric Blake  <ebb9@byu.net>
67322
67323         Fix lseek on mingw.
67324         * modules/lseek: New module.
67325         * m4/lseek.m4: New file.
67326         * lib/lseek.c: New file.
67327         * modules/lseek-tests: New file.
67328         * tests/test-lseek.c: New file.
67329         * tests/test-lseek.sh: New file.
67330         * MODULES.html.sh: Document lseek module.
67331         * modules/fflush (Depends-on): Add lseek, fseeko.
67332         * modules/fseeko (Depends-on): Likewise.
67333         * modules/ftello (Depends-on): Likewise.
67334         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67335         broken.
67336         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67337         broken.
67338         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67339         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67340         * lib/ftello.c (rpl_ftello): Likewise.
67341         * tests/test-fseeko.c (main): Test this.
67342         * tests/test-fseeko.sh: Likewise.
67343         * tests/test-ftello.c (main): Likewise.
67344         * tests/test-ftello.sh: Likewise.
67345         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67346         implies replacing fseek.
67347         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67348         HAVE_FTELLO.
67349         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67350         * modules/unistd (Makefile.am): Likewise.
67351         * lib/unistd_.h (lseek): Declare a replacement.
67352         * doc/functions/lseek.texi (lseek): Document this fix.
67353         * doc/functions/fseek.texi (fseek): Likewise.
67354         * doc/functions/ftell.texi (ftell): Likewise.
67355
67356 2007-05-24  Bruno Haible  <bruno@clisp.org>
67357
67358         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67359         in the printed representation of a NaN.
67360         * tests/test-vasprintf-posix.c (test_function): Likewise.
67361         * tests/test-snprintf-posix.h (test_function): Likewise.
67362         * tests/test-sprintf-posix.h (test_function): Likewise.
67363         Reported by Eric Blake.
67364
67365 2007-05-23  Eric Blake  <ebb9@byu.net>
67366
67367         Fix fseeko/ftello on cygwin 1.5.24.
67368         * doc/functions/fseeko.texi (fseeko): Document the fix.
67369         * doc/functions/ftello.texi (ftello): Document the fix.
67370         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67371         * doc/functions/stdout.text (stdout): New file.
67372         * doc/functions/stderr.text (stderr): New file.
67373         * doc/gnulib.texi (Function Substitutes): Use new files.
67374         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67375         prior to 1.7.0.
67376         * tests/test-ftello.c (main): Likewise for ftello.
67377         * tests/test-fseeko.sh: New file.
67378         * tests/test-ftello.sh: New file.
67379         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67380         with seekable stdin.
67381         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67382         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67383         (gl_REPLACE_FSEEKO): New macro.
67384         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67385         * modules/fseeko (Files): Distribute fseeko.c.
67386         * modules/ftello (Files): Distribute ftello.c.
67387         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67388         mode.
67389         * lib/ftello.c (rpl_ftello): New file.
67390         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67391         fseeko, ftello.
67392         (gl_STDIN_LARGE_OFFSET): New macro.
67393         * modules/stdio (Makefile.am): Perform the replacement.
67394         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67395
67396 2007-05-23  Bruno Haible  <bruno@clisp.org>
67397
67398         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67399         GNULIB_POSIXCHECK is defined.
67400
67401 2007-05-21  Bruno Haible  <bruno@clisp.org>
67402
67403         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67404         Check also the output for NaN arguments. When cross-compiling, guess
67405         no on IRIX.
67406         * lib/vasnprintf.c: Update comments.
67407         * tests/test-vasnprintf-posix.c (strisnan): New function.
67408         (test_function): Use it.
67409         * tests/test-vasprintf-posix.c (strisnan): New function.
67410         (test_function): Use it.
67411         * tests/test-snprintf-posix.h (strisnan): New function.
67412         (test_function): Use it.
67413         * tests/test-sprintf-posix.h (strisnan): New function.
67414         (test_function): Use it.
67415         Reported by Eric Blake.
67416
67417 2007-05-20  Bruno Haible  <bruno@clisp.org>
67418
67419         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67420         numbers that fails on BeOS.
67421         * doc/functions/frexpl.texi: Update.
67422
67423 2007-05-20  Jim Meyering  <jim@meyering.net>
67424
67425         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67426         forced upon us by glibc-2.6.
67427
67428 2007-05-20  Bruno Haible  <bruno@clisp.org>
67429
67430         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67431         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67432         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67433         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67434         NEED_PRINTF_INFINITE.
67435         (is_infinitel): New function.
67436         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67437         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67438         gl_PREREQ_VASNPRINTF_INFINITE.
67439         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67440         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67441         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67442         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67443         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67444         gl_PREREQ_VASNPRINTF_INFINITE.
67445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67446         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67447         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67448         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67449         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67450         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67451         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67452         * doc/functions/fprintf.texi: Update.
67453         * doc/functions/printf.texi: Update.
67454         * doc/functions/snprintf.texi: Update.
67455         * doc/functions/sprintf.texi: Update.
67456         * doc/functions/vfprintf.texi: Update.
67457         * doc/functions/vprintf.texi: Update.
67458         * doc/functions/vsnprintf.texi: Update.
67459         * doc/functions/vsprintf.texi: Update.
67460
67461 2007-05-20  Bruno Haible  <bruno@clisp.org>
67462
67463         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67464         was not found in libc.
67465         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67466
67467 2007-05-20  Bruno Haible  <bruno@clisp.org>
67468
67469         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67470         printed as "-nan" instead of "nan".
67471         * tests/test-vasprintf-posix.c (test_function): Likewise.
67472         * tests/test-snprintf-posix.h (test_function): Likewise.
67473         * tests/test-sprintf-posix.h (test_function): Likewise.
67474         Needed for HP-UX 11.
67475
67476 2007-05-20  Jim Meyering  <jim@meyering.net>
67477
67478         Fix buggy test for the fchownat-deref bug.
67479         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67480         symlink required for the run-test.  Without it, this test would
67481         always declare that fchownat doesn't work, and client code would
67482         unnecessarily use the replacement function with fixed libc.
67483         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67484         Reported by Greg Schafer.
67485
67486 2007-05-19  Bruno Haible  <bruno@clisp.org>
67487
67488         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67489         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67490         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67491         Needed for IRIX 6.5 and Solaris 2.5.1.
67492
67493 2007-05-19  Bruno Haible  <bruno@clisp.org>
67494
67495         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67496         (test_function): Skip tests involving -0.0 on platforms where
67497         -0.0 = 0.0.
67498         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67499         (test_function): Skip tests involving -0.0 on platforms where
67500         -0.0 = 0.0.
67501         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67502         (test_function): Skip tests involving -0.0 on platforms where
67503         -0.0 = 0.0.
67504         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67505         (test_function): Skip tests involving -0.0 on platforms where
67506         -0.0 = 0.0.
67507         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
67508         tests.
67509         * tests/test-printf-posix.h (test_function): Likewise.
67510         * tests/test-printf-posix.output: Remove all -0.0 related results.
67511         Needed for IRIX 6.5.
67512
67513 2007-05-19  Bruno Haible  <bruno@clisp.org>
67514
67515         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67516         printed as "nan0x7fffffff" instead of "nan".
67517         * tests/test-vasprintf-posix.c (test_function): Likewise.
67518         * tests/test-snprintf-posix.h (test_function): Likewise.
67519         * tests/test-sprintf-posix.h (test_function): Likewise.
67520         * tests/test-fprintf-posix.h (NaN): Remove macro.
67521         (test_function): Remove all NaN related tests.
67522         * tests/test-printf-posix.h (NaN): Remove macro.
67523         (test_function): Remove all NaN related tests.
67524         * tests/test-printf-posix.output: Remove all NaN related results.
67525         Needed for IRIX 6.5.
67526
67527 2007-05-19  Bruno Haible  <bruno@clisp.org>
67528
67529         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
67530         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
67531
67532 2007-05-19  Bruno Haible  <bruno@clisp.org>
67533
67534         * lib/float_.h: New file.
67535         * m4/float_h.m4: New file.
67536         * modules/float: New file.
67537         * modules/isnanl (Dependencies): Add float.
67538         * modules/isnanl-nolibm (Dependencies): Likewise.
67539         * modules/mathl (Dependencies): Likewise.
67540         * modules/printf-frexpl (Dependencies): Likewise.
67541         * modules/signbit (Dependencies): Likewise.
67542         * modules/vasnprintf (Dependencies): Likewise.
67543         * doc/headers/float.texi: Update.
67544
67545 2007-05-19  Jim Meyering  <jim@meyering.net>
67546
67547         * lib/utimens.c (gl_futimens): Rename from futimens,
67548         now that glibc-2.6 declares futimens.
67549         * lib/utimens.h: Likewise.
67550
67551 2007-05-19  Bruno Haible  <bruno@clisp.org>
67552
67553         Avoid test failures on mingw.
67554         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
67555         * tests/test-printf-posix.sh: Likewise.
67556         * tests/test-vfprintf-posix.sh: Likewise.
67557         * tests/test-vprintf-posix.sh: Likewise.
67558
67559 2007-05-19  Bruno Haible  <bruno@clisp.org>
67560
67561         Fix *printf result for NaN, Inf, -0.0 on mingw.
67562         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
67563         * lib/vasnprintf.c: Include math.h and isnan.h.
67564         (is_infinite_or_zero): New function.
67565         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
67566         values in the %f, %F, %e, %E, %g, %G directives.
67567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
67568         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67569         gl_PRINTF_INFINITE and test its result. Invoke
67570         gl_PREREQ_VASNPRINTF_INFINITE.
67571         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67572         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67573         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67574         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67575         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67576         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67577         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67578         * doc/functions/fprintf.texi: Update.
67579         * doc/functions/printf.texi: Update.
67580         * doc/functions/snprintf.texi: Update.
67581         * doc/functions/sprintf.texi: Update.
67582         * doc/functions/vfprintf.texi: Update.
67583         * doc/functions/vprintf.texi: Update.
67584         * doc/functions/vsnprintf.texi: Update.
67585         * doc/functions/vsprintf.texi: Update.
67586
67587 2007-05-19  Bruno Haible  <bruno@clisp.org>
67588
67589         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
67590         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
67591         Instead of multiplying with 10^k, set extra_zeroes to k.
67592         (scale10_round_long_double): Remove function.
67593
67594 2007-05-18  Bruno Haible  <bruno@clisp.org>
67595
67596         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
67597         introduced on 2007-05-06.
67598
67599 2007-05-18  Bruno Haible  <bruno@clisp.org>
67600
67601         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
67602         %g directives.
67603         * tests/test-vasprintf-posix.c (test_function): Likewise.
67604         * tests/test-snprintf-posix.h (test_function): Likewise.
67605         * tests/test-sprintf-posix.h (test_function): Likewise.
67606
67607 2007-05-18  Bruno Haible  <bruno@clisp.org>
67608
67609         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
67610         (strmatch): New function.
67611         (test_function): Test the %f directive on numbers of various exponents.
67612         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
67613         (strmatch): New function.
67614         (test_function): Test the %f directive on numbers of various exponents.
67615         * tests/test-snprintf-posix.h (strmatch): New function.
67616         (test_function): Test the %f directive on numbers of various exponents.
67617         * tests/test-sprintf-posix.h (strmatch): New function.
67618         (test_function): Test the %f directive on numbers of various exponents.
67619         * tests/test-snprintf-posix.c (SIZEOF): New macro.
67620         * tests/test-sprintf-posix.c (SIZEOF): New macro.
67621         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
67622         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
67623
67624 2007-05-18  Bruno Haible  <bruno@clisp.org>
67625
67626         Add support for 'long double' number output.
67627         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
67628         * lib/vasnprintf.c: Include math.h and float+.h.
67629         (mp_limb_t): New type.
67630         (GMP_LIMB_BITS): New macro.
67631         (mp_twolimb_t): New type.
67632         (GMP_TWOLIMB_BITS): New macro.
67633         (mpn_t): New type.
67634         (multiply, divide, convert_to_decimal, decode_long_double,
67635         scale10_round_long_double, scale10_round_decimal_long_double,
67636         floorlog10l): New functions.
67637         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
67638         for the %f, %F, %e, %E, %g, %G directives.
67639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
67640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67641         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
67642         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
67643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67644         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67645         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67646         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67647         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67648         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67649         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67650         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
67651         * modules/snprintf-posix (Depends-on): Likewise.
67652         * modules/sprintf-posix (Depends-on): Likewise.
67653         * modules/vasnprintf-posix (Depends-on): Likewise.
67654         * modules/vasprintf-posix (Depends-on): Likewise.
67655         * modules/vfprintf-posix (Depends-on): Likewise.
67656         * modules/vsnprintf-posix (Depends-on): Likewise.
67657         * modules/vsprintf-posix (Depends-on): Likewise.
67658         * modules/vasnprintf (Files): Add lib/float+.h.
67659         * doc/functions/fprintf.texi: Update.
67660         * doc/functions/printf.texi: Update.
67661         * doc/functions/snprintf.texi: Update.
67662         * doc/functions/sprintf.texi: Update.
67663         * doc/functions/vfprintf.texi: Update.
67664         * doc/functions/vprintf.texi: Update.
67665         * doc/functions/vsnprintf.texi: Update.
67666         * doc/functions/vsprintf.texi: Update.
67667
67668 2007-05-18  Bruno Haible  <bruno@clisp.org>
67669
67670         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
67671
67672 2007-05-18  Bruno Haible  <bruno@clisp.org>
67673
67674         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
67675         for printing 64-bit integers. Needed for mingw.
67676
67677 2007-05-18  Bruno Haible  <bruno@clisp.org>
67678
67679         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
67680         gl_FUNC_FREXPL_WORKS.
67681         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
67682
67683 2007-05-18  Bruno Haible  <bruno@clisp.org>
67684
67685         * modules/frexpl-nolibm-tests: New file.
67686
67687         * modules/frexpl-nolibm: New file.
67688         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
67689
67690 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
67691
67692         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
67693         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67694         GCC 4.2, which otherwise issues a lot of warnings.
67695         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
67696         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
67697         Likewise.
67698         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
67699         * modules/iconv_open (iconv.h): Likewise.
67700         * modules/locale (locale.h): Likewise.
67701         * modules/netinet_in (netinet/in.h): Likewise.
67702         * modules/sys_select (sys_select.h): Likewise.
67703         * modules/sys_socket (sys/socket.h): Likewise.
67704         * modules/sys_stat (sys/stat.h): Likewise.
67705         * modules/sysexits (sysexits.h): Likewise.
67706         * modules/unistd (unistd.h): Likewise.
67707
67708 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67709
67710         * modules/closein-tests (Makefile.am): Distribute
67711         `test-closein.sh'.
67712
67713 2007-05-17  Bruno Haible  <bruno@clisp.org>
67714
67715         * tests/test-printf-posix.output: Renamed from
67716         tests/test-fprintf-posix.out.
67717         * modules/fprintf-posix-tests: Update.
67718         * modules/printf-posix-tests: Update.
67719         * modules/vfprintf-posix-tests: Update.
67720         * modules/vprintf-posix-tests: Update.
67721         * tests/test-fprintf-posix.sh: Update.
67722         * tests/test-printf-posix.sh: Update.
67723         * tests/test-vfprintf-posix.sh: Update.
67724         * tests/test-vprintf-posix.sh: Update.
67725         Reported by Ralf Wildenhues.
67726
67727 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
67728
67729         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
67730         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
67731         GCC 4.2, which otherwise issues a lot of warnings.
67732         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
67733         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
67734         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
67735         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
67736         it should no longer be needed.
67737         * lib/string_.h: Likewise.
67738         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
67739         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
67740         * modules/inttypes (inttypes.h): Likewise.
67741         * modules/math (math.h): Likewise.
67742         * modules/search (search.h): Likewise.
67743         * modules/signal (signal.h): Likewise.
67744         * modules/stdint (stdint.h): Likewise.
67745         * modules/stdio (stdio.h): Likewise.
67746         * modules/stdlib (stdlib.h): Likewise.
67747         * modules/string (string.h): Likewise.
67748         * modules/sys_time (sys/time.h): Likewise.
67749         * modules/time (time.h): Likewise.
67750         * modules/wchar (wchar.h): Likewise.
67751         * modules/wctype (wtype.h): Likewise.
67752
67753 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67754
67755         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
67756
67757 2007-05-13  Bruno Haible  <bruno@clisp.org>
67758
67759         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
67760         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
67761         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
67762         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
67763         (gl_PREREQ_STRTOK_R): Don't require it here.
67764
67765 2007-05-13  Bruno Haible  <bruno@clisp.org>
67766
67767         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
67768         when used in C++ mode.
67769
67770 2007-05-12  Bruno Haible  <bruno@clisp.org>
67771
67772         * lib/linebuffer.h: Tweak doc.
67773         * lib/linebuffer.c: Likewise.
67774
67775 2007-05-12  James Youngman  <jay@gnu.org>
67776
67777         * lib/linebuffer.c (readlinebuffer_delim): New function,
67778         like readlinebuffer, but use a caller-specified delimiter.
67779         (readlinebuffer): Just call readlinebuffer_delim with '\n'
67780         as the delimiter.
67781         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
67782
67783 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
67784
67785         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
67786         * modules/openat (Files): Remove openat-die.c.
67787         (Depends-on): Add openat-die.
67788         * modules/openat-die: New module.
67789
67790 2007-05-06  Bruno Haible  <bruno@clisp.org>
67791
67792         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
67793         Update with info about Cygwin.
67794         * doc/functions/fprintf.texi: Update.
67795         * doc/functions/printf.texi: Update.
67796         * doc/functions/snprintf.texi: Update.
67797         * doc/functions/sprintf.texi: Update.
67798         * doc/functions/vfprintf.texi: Update.
67799         * doc/functions/vprintf.texi: Update.
67800         * doc/functions/vsnprintf.texi: Update.
67801         * doc/functions/vsprintf.texi: Update.
67802         Reported by Eric Blake.
67803
67804 2007-05-06  Bruno Haible  <bruno@clisp.org>
67805
67806         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
67807         padding ourselves for the floating-point directives.
67808         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
67809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
67810         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67811         gl_PRINTF_FLAG_ZERO and test its result. Invoke
67812         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
67813         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67814         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67815         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67816         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67817         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67818         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67819         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67820         * tests/test-snprintf-posix.h (test_function): Also check the width
67821         and some flags in the %f directive.
67822         * tests/test-sprintf-posix.h (test_function): Likewise.
67823         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67824         * tests/test-vasprintf-posix.c (test_function): Likewise.
67825         * doc/functions/fprintf.texi: Update.
67826         * doc/functions/printf.texi: Update.
67827         * doc/functions/snprintf.texi: Update.
67828         * doc/functions/sprintf.texi: Update.
67829         * doc/functions/vfprintf.texi: Update.
67830         * doc/functions/vprintf.texi: Update.
67831         * doc/functions/vsnprintf.texi: Update.
67832         * doc/functions/vsprintf.texi: Update.
67833
67834 2007-05-06  Bruno Haible  <bruno@clisp.org>
67835
67836         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
67837         pass the ' flag character to sprintf or snprintf.
67838         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
67839         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
67840         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67841         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
67842         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
67843         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67844         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67845         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67846         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67847         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67848         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67849         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67850         * tests/test-snprintf-posix.h (test_function): Also check the grouping
67851         flag.
67852         * tests/test-sprintf-posix.h (test_function): Likewise.
67853         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67854         * tests/test-vasprintf-posix.c (test_function): Likewise.
67855         * doc/functions/fprintf.texi: Update.
67856         * doc/functions/printf.texi: Update.
67857         * doc/functions/snprintf.texi: Update.
67858         * doc/functions/sprintf.texi: Update.
67859         * doc/functions/vfprintf.texi: Update.
67860         * doc/functions/vprintf.texi: Update.
67861         * doc/functions/vsnprintf.texi: Update.
67862         * doc/functions/vsprintf.texi: Update.
67863
67864 2007-05-01  Bruno Haible  <bruno@clisp.org>
67865
67866         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
67867
67868 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
67869
67870         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
67871         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
67872
67873 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67874
67875         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
67876         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
67877         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
67878
67879 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
67880
67881         * lib/argp-help.c (struct hol_entry): New member `ord'.
67882         (HOL_ENTRY_PTRCMP): Use ord for comparison
67883         (hol_sort): Initialize ord.
67884
67885 2007-05-01  Bruno Haible  <bruno@clisp.org>
67886
67887         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
67888         Reported by Eric Blake.
67889         * doc/gnulib.texi (Function Substitutes): Update.
67890
67891 2007-05-01  Bruno Haible  <bruno@clisp.org>
67892
67893         * doc/functions.texi: Remove file, now redundant through
67894         doc/functions/*.texi.
67895
67896 2007-05-01  Bruno Haible  <bruno@clisp.org>
67897
67898         * modules/argp (Depends-on): Add sleep.
67899
67900 2007-05-01  Bruno Haible  <bruno@clisp.org>
67901
67902         * modules/sleep-tests: New file.
67903         * tests/test-sleep.c: New file.
67904
67905         * modules/sleep: New file.
67906         * lib/sleep.c: New file.
67907         * m4/sleep.m4: New file.
67908         * lib/unistd_.h (sleep): New declaration.
67909         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67910         HAVE_SLEEP.
67911         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67912         * doc/functions/sleep.texi: Document the sleep module.
67913
67914 2007-05-01  Bruno Haible  <bruno@clisp.org>
67915
67916         * lib/sigprocmask.h: Remove file.
67917         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67918         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67919         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67920         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
67921         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
67922         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
67923         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
67924         HAVE_SIGSET_T as a shell variable.
67925         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
67926         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
67927         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
67928         (Depends-on): Add signal. Remove verify.
67929         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
67930         (Include): Mention <signal.h> instead of sigprocmask.h.
67931         * NEWS: Mention the change.
67932         * lib/fatal-signal.c: Don't include sigprocmask.h.
67933
67934 2007-05-01  Bruno Haible  <bruno@clisp.org>
67935
67936         * modules/signal: New file.
67937         * lib/signal_.h: New file.
67938         * m4/signal_h.m4: New file.
67939
67940 2007-05-01  Bruno Haible  <bruno@clisp.org>
67941
67942         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
67943         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
67944         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
67945         HAVE_WCTYPE_CTMP_BUG into wctype.h.
67946
67947 2007-05-01  Bruno Haible  <bruno@clisp.org>
67948
67949         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
67950         configure time.
67951         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
67952         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
67953         * modules/sys_stat (Makefile.am): Substitute their values into
67954         sys/stat.h.
67955
67956 2007-05-01  Bruno Haible  <bruno@clisp.org>
67957
67958         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
67959         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
67960         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
67961
67962 2007-05-01  Bruno Haible  <bruno@clisp.org>
67963
67964         * doc/header/assert.texi: Undo last change: don't mention the gnulib
67965         'assert' module here.
67966
67967 2007-05-01  Bruno Haible  <bruno@clisp.org>
67968
67969         * doc/functions/*.texi: New files.
67970         * doc/functions/google-ranking.txt: New file.
67971         * doc/gnulib.texi (Function Substitutes): New chapter.
67972         (ctime, inet_ntoa): Remove sections.
67973         * doc/ctime.texi: Remove file.
67974         * doc/inet_ntoa.texi: Remove file.
67975         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67976         dependencies.
67977         (%.info): New rule, specifying a --reference-limit.
67978
67979 2007-05-01  Bruno Haible  <bruno@clisp.org>
67980
67981         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67982
67983 2007-05-01  Bruno Haible  <bruno@clisp.org>
67984
67985         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67986         the portability of 'mkdir' to mingw systems.
67987
67988 2007-05-01  Bruno Haible  <bruno@clisp.org>
67989
67990         * doc/headers/google-ranking.txt: New file.
67991
67992 2007-04-30  Eric Blake  <ebb9@byu.net>
67993
67994         Prefer fseeko to fseek.
67995         * modules/getpass (Depends-on): Add fseeko.
67996         * lib/getpass.c (getpass): Use fseeko, not fseek.
67997
67998 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67999
68000         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68001         assumes the sorting is stable, while most qsort implementations
68002         are not.  Use argument addresses to ensure they never compare as
68003         equal.
68004
68005         * tests/test-argp-2.sh (usage-indent test): Fix output
68006         (func_compare): Restore diff options
68007         * tests/test-argp.c: Restore #include "progname.h"
68008
68009 2007-04-29  Bruno Haible  <bruno@clisp.org>
68010
68011         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68012         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68013         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68014         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68015         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68016         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68017         (TESTS, check_PROGRAMS): Add test-snprintf.
68018         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68019         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68020         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68021         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68022         assertions that fail on HP-UX, OSF/1, or IRIX.
68023         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68024
68025 2007-04-29  Bruno Haible  <bruno@clisp.org>
68026
68027         * MODULES.html.sh (posix_functions): Remove 'contents'.
68028
68029 2007-04-29  Karl Berry  <karl@gnu.org>
68030
68031         * config/srclist.txt (gendocs_template_min): new entry.
68032
68033 2007-04-29  Bruno Haible  <bruno@clisp.org>
68034
68035         Work around fpurge bug on BSD systems.
68036         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68037         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68038         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68039         fpurge to rpl_fpurge if the system already has this function.
68040         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68041         the case where the system already has this function. Correct invariants
68042         on BSD systems.
68043         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68044         BSD systems.
68045
68046 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68047
68048         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68049         proposed by Sven Verdoolaege.
68050
68051         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68052         options.
68053         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68054         (usage and help tests): Update
68055
68056 2007-04-29  Bruno Haible  <bruno@clisp.org>
68057
68058         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68059         Print more information in case of failure. Disable a test on BeOS.
68060
68061 2007-04-29  Bruno Haible  <bruno@clisp.org>
68062
68063         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68064         This helps debugging on systems on which no gdb is available.
68065
68066 2007-04-29  Bruno Haible  <bruno@clisp.org>
68067
68068         * lib/freading.h: Improve comments.
68069         * lib/fwriting.h: Likewise.
68070         * tests/test-freading.c (main): Don't check freading immediately after
68071         repositioning. Needed for glibc.
68072
68073 2007-04-29  Bruno Haible  <bruno@clisp.org>
68074
68075         * lib/freading.c (freading): Trivial simplification.
68076
68077 2007-04-28  Bruno Haible  <bruno@clisp.org>
68078
68079         * tests/test-fwriting.c (main): Also test the interaction between
68080         fflush and fwriting.
68081         * modules/fwriting-tests (Depends-on): Add fflush.
68082
68083         * tests/test-freading.c (main): Also test the interaction between
68084         fflush and freading.
68085         * modules/freading-tests (Depends-on): Add fflush.
68086
68087 2007-04-28  Bruno Haible  <bruno@clisp.org>
68088
68089         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68090         fseeko and ftello.
68091         Suggested by Eric Blake.
68092
68093 2007-04-28  Jim Meyering  <jim@meyering.net>
68094
68095         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68096         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68097         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68098
68099 2007-04-27  Eric Blake  <ebb9@byu.net>
68100
68101         * doc/headers/assert.texi (assert.h): Document assert module use.
68102
68103 2007-04-27  Bruno Haible  <bruno@clisp.org>
68104
68105         * doc/headers/*.texi: New files.
68106         * doc/gnulib.texi (Header File Substitutes): New chapter.
68107         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68108         dependencies.
68109         (standards.info ,standards.html, standards.dvi): Update dependencies.
68110         (mostlyclean, clean): New targets.
68111
68112 2007-04-27  Bruno Haible  <bruno@clisp.org>
68113
68114         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68115         * modules/sysexits (Files, Makefile.am): Update.
68116
68117         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68118         * modules/sys_socket (Files, Makefile.am): Update.
68119
68120         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68121         * modules/sys_stat (Files, Makefile.am): Update.
68122
68123 2007-04-27  Eric Blake  <ebb9@byu.net>
68124
68125         * lib/freading.h: Improve comments.
68126         * lib/fwriting.h: Likewise.
68127         * lib/fflush.c: Likewise.
68128
68129         Fix closein for mingw.
68130         * modules/closein-tests: Add tests for closein.
68131         * tests/test-closein.c: New file.
68132         * tests/test-closein.sh: Likewise.
68133         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68134         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68135
68136 2007-04-27  Bruno Haible  <bruno@clisp.org>
68137
68138         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68139         version is < 6.
68140         * lib/math_.h [__DECC]: Likewise.
68141         * lib/stdio_.h [__DECC]: Likewise.
68142         * lib/stdlib_.h [__DECC]: Likewise.
68143         * lib/string_.h [__DECC]: Likewise.
68144         * lib/time_.h [__DECC]: Likewise.
68145         * lib/wchar_.h [__DECC]: Likewise.
68146         * lib/wctype_.h [__DECC]: Likewise.
68147
68148 2007-04-27  Bruno Haible  <bruno@clisp.org>
68149
68150         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68151
68152 2007-04-27  Bruno Haible  <bruno@clisp.org>
68153
68154         * lib/fflush.c: Add comments.
68155         * modules/fpurge-tests (Depends-on): Add fflush.
68156         * modules/freadable-tests (Depends-on): Likewise.
68157         * modules/fwritable-tests (Depends-on): Likewise.
68158
68159 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68160
68161         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68162         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68163         Report by Bruno Haible <bruno@clisp.org>.
68164
68165 2007-04-26  Eric Blake  <ebb9@byu.net>
68166
68167         Fix fflush on mingw.
68168         * modules/fflush (Depends-on): Add freading.
68169         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68170         but unread data.
68171
68172 2007-04-26  Eric Blake  <ebb9@byu.net>
68173         and Bruno Haible  <bruno@clisp.org>
68174
68175         Implement freading and fwriting.
68176         * lib/freading.c: New file.
68177         * lib/freading.h: Likewise.
68178         * m4/freading.m4: Likewise.
68179         * modules/freading: Likewise.
68180         * modules/freading-tests: Likewise.
68181         * tests/test-freading.c: Likewise.
68182         * lib/fwriting.c: New file.
68183         * lib/fwriting.h: Likewise.
68184         * m4/fwriting.m4: Likewise.
68185         * modules/fwriting: Likewise.
68186         * modules/fwriting-tests: Likewise.
68187         * tests/test-fwriting.c: Likewise.
68188         * MODULES.html.sh (File stream based Input/Output): Mention them.
68189
68190 2007-04-26  Bruno Haible  <bruno@clisp.org>
68191
68192         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68193         'long' when we assume it.
68194         Suggested by Eric Blake.
68195
68196 2007-04-26  Bruno Haible  <bruno@clisp.org>
68197
68198         Ensure fseeko, ftello are declared on glibc systems.
68199         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68200         * modules/fseeko (configure.ac-early): Likewise.
68201         * modules/ftello (configure.ac-early): Likewise.
68202         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68203         AC_FUNC_FSEEKO for this.
68204         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68205         (gl_CHECK_FSEEKO): Remove macro.
68206
68207 2007-04-26  Bruno Haible  <bruno@clisp.org>
68208
68209         * tests/test-fflush.c (main): Also check the ftell result after
68210         fflush and fseek/fseeko.
68211         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68212         file descriptor position cache in the stream.
68213         * lib/fseeko.c (rpl_fseeko): Likewise.
68214
68215 2007-04-26  Bruno Haible  <bruno@clisp.org>
68216
68217         * modules/fflush-tests (Depends-on): Add fseeko.
68218
68219 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68220             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68221
68222         * lib/argz_.h: ensure error_t definition is obtained in same
68223         mechanism system argz.h would have.
68224         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68225         argz facilities are known bad.  Err on the side of caution if
68226         cross-compiling.
68227
68228 2007-04-25  Eric Blake  <ebb9@byu.net>
68229
68230         * lib/fpurge.c (includes): Use stdlib.h for free.
68231         * tests/test-fflush.c (main): Also test fflush-fseeko.
68232
68233 2007-04-25  Bruno Haible  <bruno@clisp.org>
68234
68235         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68236         * lib/fseeko.c: New file.
68237         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68238         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68239         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68240         gl_FUNC_FSEEKO.
68241         (gl_FUNC_FSEEKO): Invoke it.
68242         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68243         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68244         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68245
68246 2007-04-25  Bruno Haible  <bruno@clisp.org>
68247
68248         * modules/fflush (Depends-on): Add ftello.
68249
68250 2007-04-25  Bruno Haible  <bruno@clisp.org>
68251
68252         * modules/ftello-tests: New file.
68253         * tests/test-ftello.c: New file.
68254
68255         * modules/ftello: New file.
68256         * m4/ftello.m4: New file.
68257         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68258         HAVE_FTELLO.
68259         * lib/stdio_.h (ftello): New declaration.
68260         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68261         HAVE_FTELLO.
68262
68263 2007-04-25  Bruno Haible  <bruno@clisp.org>
68264
68265         * modules/fseeko-tests: New file.
68266         * tests/test-fseeko.c: New file.
68267
68268         * modules/fseeko: New file.
68269         * m4/fseeko.m4: New file.
68270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68271         HAVE_FSEEKO.
68272         * lib/stdio_.h (fseeko): New declaration.
68273         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68274         HAVE_FSEEKO.
68275
68276 2007-04-25  Bruno Haible  <bruno@clisp.org>
68277
68278         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68279
68280 2007-04-25  Bruno Haible  <bruno@clisp.org>
68281
68282         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68283         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68284         * tests/test-unistd.c: Likewise.
68285         * tests/test-fcntl.c: Likewise.
68286
68287 2007-04-23  Eric Blake  <ebb9@byu.net>
68288
68289         * lib/fflush.c: Fix missing include.
68290         Reported by Bruno Haible.
68291
68292 2007-04-23  Bruno Haible  <bruno@clisp.org>
68293
68294         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68295         Reported by Eric Blake.
68296
68297 2007-04-23  Bruno Haible  <bruno@clisp.org>
68298
68299         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68300
68301 2007-04-23  Bruno Haible  <bruno@clisp.org>
68302
68303         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68304
68305 2007-04-23  Bruno Haible  <bruno@clisp.org>
68306
68307         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68308         Needed on HP-UX 11.
68309
68310 2007-04-16  Eric Blake  <ebb9@byu.net>
68311
68312         Make fflush rely on fpurge.
68313         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68314         open coding all variants.
68315         * modules/fflush (Depends-on): Add fpurge and unistd.
68316         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68317         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68318
68319         Fix --with-tests compilation on cygwin.
68320         * modules/argmatch-tests (Makefile.am): List gnulib library first
68321         in LDADD.
68322         * modules/argp-tests (Makefile.am): Likewise.
68323         * modules/array-list-tests (Makefile.am): Likewise.
68324         * modules/array-oset-tests (Makefile.am): Likewise.
68325         * modules/avltree-list-tests (Makefile.am): Likewise.
68326         * modules/avltree-oset-tests (Makefile.am): Likewise.
68327         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68328         * modules/carray-list-tests (Makefile.am): Likewise.
68329         * modules/dirname-tests (Makefile.am): Likewise.
68330         * modules/frexp-tests (Makefile.am): Likewise.
68331         * modules/isnanl-tests (Makefile.am): Likewise.
68332         * modules/linked-list-tests (Makefile.am): Likewise.
68333         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68334         * modules/lock-tests (Makefile.am): Likewise.
68335         * modules/rbtree-list-tests (Makefile.am): Likewise.
68336         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68337         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68338         * modules/tls-tests (Makefile.am): Likewise.
68339         * modules/tsearch-tests (Makefile.am): Likewise.
68340         * modules/xvasprintf-tests (Makefile.am): Likewise.
68341
68342         Fix fpurge for cygwin.
68343         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68344         value.
68345         * modules/fpurge-tests (Depends-on): Clean up trash.
68346
68347 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68348
68349         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68350
68351         * m4/autobuild.m4: Re-indent.
68352
68353 2007-04-13  Bruno Haible  <bruno@clisp.org>
68354
68355         * modules/fpurge-tests: New file.
68356         * tests/test-fpurge.c: New file.
68357
68358         * modules/fpurge: New file.
68359         * lib/fpurge.h: New file.
68360         * lib/fpurge.c: New file.
68361         * m4/fpurge.m4: New file.
68362
68363 2007-04-13  Bruno Haible  <bruno@clisp.org>
68364
68365         * modules/fbufmode-tests: New file.
68366         * tests/test-fbufmode.c: New file.
68367
68368         * modules/fbufmode: New file.
68369         * lib/fbufmode.h: New file.
68370         * lib/fbufmode.c: New file.
68371         * m4/fbufmode.m4: New file.
68372
68373 2007-04-13  Bruno Haible  <bruno@clisp.org>
68374
68375         * modules/fwritable-tests: New file.
68376         * tests/test-fwritable.c: New file.
68377
68378         * modules/fwritable: New file.
68379         * lib/fwritable.h: New file.
68380         * lib/fwritable.c: New file.
68381         * m4/fwritable.m4: New file.
68382
68383 2007-04-13  Bruno Haible  <bruno@clisp.org>
68384
68385         * modules/freadable-tests: New file.
68386         * tests/test-freadable.c: New file.
68387
68388         * modules/freadable: New file.
68389         * lib/freadable.h: New file.
68390         * lib/freadable.c: New file.
68391         * m4/freadable.m4: New file.
68392
68393 2007-04-13  Bruno Haible  <bruno@clisp.org>
68394
68395         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68396         MOSTLYCLEANFILES.
68397
68398 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68399
68400         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68401         gzip bootstrap.conf to avoid dragging in i18n machinery.
68402         (gnulib_tool_option): Use it.
68403
68404 2007-04-13  Bruno Haible  <bruno@clisp.org>
68405
68406         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68407         %F directives.
68408         * tests/test-vasprintf-posix.c (test_function): Likewise.
68409         * tests/test-snprintf-posix.h (test_function): Likewise.
68410         * tests/test-sprintf-posix.h (test_function): Likewise.
68411         * tests/test-fprintf-posix.h (test_function): Likewise.
68412         * tests/test-printf-posix.h (test_function): Likewise.
68413         * tests/test-fprintf-posix.out: Likewise.
68414
68415 2007-04-13  Bruno Haible  <bruno@clisp.org>
68416
68417         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68418         * modules/tls-tests (configure.ac): Likewise.
68419         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68420
68421 2007-04-13  Bruno Haible  <bruno@clisp.org>
68422
68423         * lib/tls.c (glthread_tls_get): Fix return type.
68424         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68425
68426 2007-04-12  Eric Blake  <ebb9@byu.net>
68427
68428         * modules/gettime (Depends-on): Remove gettime.
68429         Reported by Dmitry V. Levin.
68430
68431 2007-04-12  Bruno Haible  <bruno@clisp.org>
68432
68433         * modules/fflush (Include): Mention <stdio.h>.
68434         * modules/strtoimax (Include): Mention <inttypes.h>.
68435         * modules/strtoumax (Include): Likewise.
68436
68437 2007-04-12  Eric Blake  <ebb9@byu.net>
68438
68439         * .cvsignore: New file.
68440         * .gitignore: Likewise.
68441
68442 2007-04-12  Bruno Haible  <bruno@clisp.org>
68443
68444         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68445         not before, since $(LDADD) often contains libgnu.a.
68446         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68447         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68448         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68449         Needed on Cygwin.
68450
68451 2007-04-12  Eric Blake  <ebb9@byu.net>
68452
68453         Work around glibc's failure to flush stdin on fclose.
68454         * lib/closein.c (close_stdin): Flush stdin before closing.
68455
68456         Work around glibc's failure to reset seekable stdin on exit.
68457         * modules/closein: New module.
68458         * lib/closein.c: New file.
68459         * lib/closein.h: Likewise.
68460         * m4/closein.m4: Likewise.
68461         * MODULES.html.sh (File stream based Input/Output): Document it.
68462
68463 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68464
68465         * gnulib-tool: Rename generated 'autobuild' script to
68466         'do-autobuild' in --create-megatestdir output.
68467
68468         * doc/gnulib.texi (Build robot for gnulib): Fix.
68469
68470 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68471
68472         * modules/sysexits (Depends-on): Add absolute-header.
68473
68474 2007-04-12  Eric Blake  <ebb9@byu.net>
68475
68476         No need to preserve errno on success.
68477         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68478         Reported by Bruno Haible.
68479
68480 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68481
68482         * MODULES.html.sh (Support for maintaining and releasing
68483         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68484
68485 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68486
68487         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68488
68489 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68490
68491         * modules/autobuild: New module.
68492
68493         * m4/autobuild.m4: New file.
68494
68495 2007-04-11  Bruno Haible  <bruno@clisp.org>
68496
68497         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68498         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68499         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68500         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68501         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68502         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68503         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68505         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68506         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68507         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
68508         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68509         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68510         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
68511         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68512         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68513         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
68514         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68515         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
68517         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68518         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68519         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
68520         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68521         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68522         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
68523         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68524         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68525         Reported by Eric Blake.
68526
68527 2007-04-11  Bruno Haible  <bruno@clisp.org>
68528
68529         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
68530
68531 2007-04-10  Bruno Haible  <bruno@clisp.org>
68532
68533         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
68534         for NaN and Infinity. Needed on FreeBSD 6.1.
68535         * tests/test-vasnprintf-posix.c (test_function): Undo last change
68536         regarding results for "%010a" of Infinity and NaN.
68537         * tests/test-vasprintf-posix.c (test_function): Likewise.
68538         * tests/test-snprintf-posix.h (test_function): Likewise.
68539         * tests/test-sprintf-posix.h (test_function): Likewise.
68540         * tests/test-fprintf-posix.h (test_function): Likewise.
68541         * tests/test-printf-posix.h (test_function): Likewise.
68542         * tests/test-fprintf-posix.out: Likewise.
68543
68544 2007-04-10  Bruno Haible  <bruno@clisp.org>
68545
68546         * modules/locale-tests: New file.
68547         * tests/test-locale.c: New file.
68548
68549         * modules/locale: New file.
68550         * lib/locale_.h: New file.
68551         * m4/locale_h.m4: New file.
68552
68553 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
68554             Bruno Haible  <bruno@clisp.org>
68555
68556         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
68557         be determined, test for availability of the copysignf, copysign,
68558         copysignl functions.
68559         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
68560         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
68561         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
68562
68563 2007-04-09  Eric Blake  <ebb9@byu.net>
68564
68565         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
68566         * modules/stdio (Makefile.am): Support fflush.
68567         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
68568         * modules/fflush: New file.
68569         * lib/fflush.c: Likewise.
68570         * m4/fflush.m4: Likewise.
68571         * modules/fflush-tests: New test.
68572         * tests/test-fflush.c: Likewise.
68573         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
68574
68575 2007-04-06  Bruno Haible  <bruno@clisp.org>
68576
68577         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
68578         (VASNPRINTF): Use signbit for faster determination whether to print a
68579         minus sign.
68580         * modules/vasnprintf (Files): Remove lib/float+.h.
68581         * modules/fprintf-posix (Depends-on): Add signbit.
68582         * modules/snprintf-posix (Depends-on): Likewise.
68583         * modules/sprintf-posix (Depends-on): Likewise.
68584         * modules/vasnprintf-posix (Depends-on): Likewise.
68585         * modules/vasprintf-posix (Depends-on): Likewise.
68586         * modules/vfprintf-posix (Depends-on): Likewise.
68587         * modules/vsnprintf-posix (Depends-on): Likewise.
68588         * modules/vsprintf-posix (Depends-on): Likewise.
68589
68590 2007-04-06  Bruno Haible  <bruno@clisp.org>
68591
68592         * tests/test-frexp.c (main): Test also the sign bit of zero results.
68593         * tests/test-frexpl.c (main): Likewise.
68594         * tests/test-ldexpl.c (main): Likewise.
68595         * modules/frexp-tests (Depends-on): Add signbit.
68596         * modules/frexpl-tests (Depdends-on): Likewise.
68597         * modules/ldexpl-tests (Depdends-on): Likewise.
68598
68599 2007-04-06  Bruno Haible  <bruno@clisp.org>
68600
68601         * modules/signbit-tests: New file.
68602         * tests/test-signbit.c: New file.
68603
68604         * modules/signbit: New file.
68605         * lib/signbitf.c: New file.
68606         * lib/signbitd.c: New file.
68607         * lib/signbitl.c: New file.
68608         * m4/signbit.m4: New file.
68609         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
68610         (signbit): New macro.
68611         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
68612         REPLACE_SIGNBIT.
68613         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
68614         REPLACE_FREXPL into math.h.
68615
68616 2007-04-06  Bruno Haible  <bruno@clisp.org>
68617
68618         * modules/isnanf-nolibm-tests: New file.
68619         * tests/test-isnanf.c: New file.
68620
68621         * modules/isnanf-nolibm: New file.
68622         * lib/isnanf.h: New file.
68623         * lib/isnanf.c: New file.
68624         * lib/isnan.c: Consider the USE_FLOAT macro.
68625         * m4/isnanf.m4: New file.
68626
68627 2007-04-06  Bruno Haible  <bruno@clisp.org>
68628
68629         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
68630         (Link): New section.
68631
68632         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
68633
68634 2007-04-06  Bruno Haible  <bruno@clisp.org>
68635
68636         Assume the 'long double' type.
68637         * m4/longdouble.m4: Remove file.
68638         * config/srclist.txt: Don't mention longdouble.m4.
68639         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
68640         * lib/float+.h: Likewise.
68641         * lib/frexp.c: Likewise.
68642         * lib/printf-args.h: Likewise.
68643         * lib/printf-args.c: Likewise.
68644         * lib/printf-frexp.c: Likewise.
68645         * lib/printf-parse.c: Likewise.
68646         * lib/vasnprintf.c: Likewise.
68647         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
68648         * m4/intl.m4: Likewise.
68649         * m4/isnanl.m4: Likewise.
68650         * m4/printf.m4: Likewise.
68651         * m4/printf-frexpl.m4: Likewise.
68652         * m4/vasnprintf.m4: Likewise.
68653         * modules/allocsa (Files): Remove m4/longdouble.m4.
68654         * modules/gettext (Files): Likewise.
68655         * modules/relocatable-prog-wrapper (Files): Likewise.
68656         * modules/vasnprintf (Files): Likewise.
68657         * modules/isnanl (Files): Likewise.
68658         (Include): Simplify.
68659         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
68660         (Include): Simplify.
68661         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
68662         (Include): Simplify.
68663         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
68664         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68665         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
68666         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68667         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68668         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68669         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
68670         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68671         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
68672         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68673         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
68674         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
68675         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
68676         * tests/test-isnanl.c: Likewise.
68677         * tests/test-snprintf-posix.h: Likewise.
68678         * tests/test-sprintf-posix.h: Likewise.
68679         * tests/test-vasnprintf-posix.c: Likewise.
68680         * tests/test-vasnprintf-posix2.c: Likewise.
68681         * tests/test-vasprintf-posix.c: Likewise.
68682
68683 2007-04-06  Bruno Haible  <bruno@clisp.org>
68684
68685         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
68686         * lib/math_.h [__DECC]: Include the overridden include file through
68687         #include_next, outside the double-inclusion guard.
68688         * lib/stdio_.h [__DECC]: Likewise.
68689         * lib/stdlib_.h [__DECC]: Likewise.
68690         * lib/string_.h [__DECC]: Likewise.
68691         * lib/time_.h [__DECC]: Likewise.
68692         * lib/wchar_.h [__DECC]: Likewise.
68693         * lib/wctype_.h [__DECC]: Likewise.
68694         * lib/inttypes_.h [__DECC]: Likewise.
68695         Reported by Albert Chin <china@thewrittenword.com> in
68696         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
68697
68698 2007-04-04  Eric Blake  <ebb9@byu.net>
68699
68700         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
68701         1.5.x.
68702
68703 2007-04-04  Bruno Haible  <bruno@clisp.org>
68704
68705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
68706         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
68707
68708 2007-04-04  Bruno Haible  <bruno@clisp.org>
68709
68710         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
68711         results for "%010a" of Infinity and NaN.
68712         * tests/test-vasprintf-posix.c (test_function): Likewise.
68713         * tests/test-snprintf-posix.h (test_function): Likewise.
68714         * tests/test-sprintf-posix.h (test_function): Likewise.
68715         * tests/test-fprintf-posix.h (test_function): Remove these tests.
68716         * tests/test-printf-posix.h (test_function): Likewise.
68717         * tests/test-fprintf-posix.out: Update.
68718         Needed for FreeBSD 6.1.
68719
68720 2007-04-04  Bruno Haible  <bruno@clisp.org>
68721
68722         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
68723         directly used by the gnulib modules nor by gnulib-tool.
68724
68725 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
68726
68727         * DEPENDENCIES: Give overall description of version dependency
68728         desirability.  Use more-typical names for apps.
68729         Add shell, coreutils, diffutils, grep, tar, gzip.
68730
68731 2007-04-04  Simon Josefsson  <simon@josefsson.org>
68732
68733         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
68734
68735 2007-04-04  Karl Berry  <karl@gnu.org>
68736
68737         * MODULES.html.sh (func_module): missing '.
68738
68739 2007-04-03  Bruno Haible  <bruno@clisp.org>
68740
68741         * modules/argmatch-tests (Makefile.am): New variable
68742         test_argmatch_LDADD.
68743         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
68744         * modules/array-list-tests (Makefile.am): New variable
68745         test_array_list_LDADD.
68746         * modules/array-oset-tests (Makefile.am): New variable
68747         test_array_oset_LDADD.
68748         * modules/avltree-list-tests (Makefile.am): New variable
68749         test_avltree_list_LDADD.
68750         * modules/avltree-oset-tests (Makefile.am): New variable
68751         test_avltree_oset_LDADD.
68752         * modules/avltreehash-list-tests (Makefile.am): New variable
68753         test_avltreehash_list_LDADD.
68754         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
68755         test_canonicalize_lgpl_LDADD.
68756         * modules/carray-list-tests (Makefile.am): New variable
68757         test_carray_list_LDADD.
68758         * modules/dirname-tests (Makefile.am): New variable
68759         test_dirname_LDADD.
68760         * modules/linked-list-tests (Makefile.am): New variable
68761         test_linked_list_LDADD.
68762         * modules/linkedhash-list-tests (Makefile.am): New variable
68763         test_linkedhash_list_LDADD.
68764         * modules/rbtree-list-tests (Makefile.am): New variable
68765         test_rbtree_list_LDADD.
68766         * modules/rbtree-oset-tests (Makefile.am): New variable
68767         test_rbtree_oset_LDADD.
68768         * modules/rbtreehash-list-tests (Makefile.am): New variable
68769         test_rbtreehash_list_LDADD.
68770         * modules/xvasprintf-tests (Makefile.am): New variable
68771         test_xvasprintf_LDADD.
68772         Reported by Eric Blake.
68773
68774 2007-04-03  Eric Blake  <ebb9@byu.net>
68775
68776         * DEPENDENCIES: Weaken m4 requirements.
68777
68778 2007-04-03  Bruno Haible  <bruno@clisp.org>
68779
68780         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
68781         * modules/isnanl-tests (configure.ac): Likewise.
68782
68783 2007-04-03  Ben Pfaff  <blp@gnu.org>
68784
68785         * modules/iconv_open: Add $(srcdir)/ to source directory
68786         references in Makefile fragments that call gperf, to fix VPATH
68787         builds.
68788
68789 2007-04-03  Bruno Haible  <bruno@clisp.org>
68790
68791         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
68792         * lib/ldexpl.c: Undo last change.
68793
68794 2007-04-03  Bruno Haible  <bruno@clisp.org>
68795
68796         * modules/printf-frexpl (Depends-on): Undo last change.
68797         (Files): Add m4/ldexpl.m4.
68798
68799 2007-04-03  Bruno Haible  <bruno@clisp.org>
68800
68801         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
68802         * modules/isnanl (Link): New section.
68803
68804         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
68805         * modules/frexp (Link): New section.
68806
68807         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
68808         * modules/frexpl (Link): New section.
68809
68810         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
68811         * modules/ldexpl (Link): New section.
68812
68813 2007-04-03  Bruno Haible  <bruno@clisp.org>
68814
68815         * modules/TEMPLATE-EXTENDED: New file.
68816         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
68817
68818 2007-04-03  Bruno Haible  <bruno@clisp.org>
68819
68820         * DEPENDENCIES: New file.
68821         Suggested by Simon Josefsson.
68822
68823 2007-04-03  Bruno Haible  <bruno@clisp.org>
68824
68825         * doc/gnulib.texi: Escape @.
68826
68827 2007-04-03  James Youngman  <jay@gnu.org>
68828         and Paul Eggert  <eggert@cs.ucla.edu>
68829
68830         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
68831         birthtime on all systems that have birthtime, not just those which
68832         use st_birthtimensec rather than st_birthtim.  Putting zero in
68833         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
68834         that the birth time is not available for files on an NFS mount.
68835
68836 2007-04-03  Simon Josefsson  <simon@josefsson.org>
68837
68838         * modules/memxor: Move back from crypto/, suggested by Bruno.
68839         * modules/crypto/hmac-sha1: Fix memxor dependency.
68840
68841         * modules/crypto/gc: Moved from ../.
68842
68843 2007-04-02  Eric Blake  <ebb9@byu.net>
68844
68845         * lib/ldexpl.c (includes): Avoid libm.
68846
68847         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
68848
68849 2007-04-02  Bruno Haible  <bruno@clisp.org>
68850
68851         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
68852         on IRIX.
68853
68854 2007-04-02  Bruno Haible  <bruno@clisp.org>
68855
68856         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
68857         x86 or x86_64 platforms running MacOS X.
68858         Reported by Ryan Schmidt <@ryandesign.com>.
68859
68860 2007-04-02  Bruno Haible  <bruno@clisp.org>
68861
68862         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
68863         i386.
68864
68865 2007-04-01  Simon Josefsson  <simon@josefsson.org>
68866
68867         * modules/crypto/arcfour: Moved from ../.
68868         * modules/crypto/arcfour-tests: Moved from ../.
68869         * modules/crypto/arctwo: Moved from ../.
68870         * modules/crypto/arctwo-tests: Moved from ../.
68871         * modules/crypto/des: Moved from ../.
68872         * modules/crypto/des-tests: Moved from ../.
68873         * modules/crypto/gc-arcfour: Moved from ../.
68874         * modules/crypto/gc-arcfour-tests: Moved from ../.
68875         * modules/crypto/gc-arctwo: Moved from ../.
68876         * modules/crypto/gc-arctwo-tests: Moved from ../.
68877         * modules/crypto/gc-des: Moved from ../.
68878         * modules/crypto/gc-des-tests: Moved from ../.
68879         * modules/crypto/gc-hmac-md5: Moved from ../.
68880         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
68881         * modules/crypto/gc-hmac-sha1: Moved from ../.
68882         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
68883         * modules/crypto/gc-md2: Moved from ../.
68884         * modules/crypto/gc-md2-tests: Moved from ../.
68885         * modules/crypto/gc-md4: Moved from ../.
68886         * modules/crypto/gc-md4-tests: Moved from ../.
68887         * modules/crypto/gc-md5: Moved from ../.
68888         * modules/crypto/gc-md5-tests: Moved from ../.
68889         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
68890         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
68891         * modules/crypto/gc-random: Moved from ../.
68892         * modules/crypto/gc-rijndael: Moved from ../.
68893         * modules/crypto/gc-rijndael-tests: Moved from ../.
68894         * modules/crypto/gc-sha1: Moved from ../.
68895         * modules/crypto/gc-sha1-tests: Moved from ../.
68896         * modules/crypto/gc-tests: Moved from ../.
68897         * modules/crypto/hmac-md5: Moved from ../.
68898         * modules/crypto/hmac-md5-tests: Moved from ../.
68899         * modules/crypto/hmac-sha1: Moved from ../.
68900         * modules/crypto/hmac-sha1-tests: Moved from ../.
68901         * modules/crypto/md2: Moved from ../.
68902         * modules/crypto/md2-tests: Moved from ../.
68903         * modules/crypto/md4: Moved from ../.
68904         * modules/crypto/md4-tests: Moved from ../.
68905         * modules/crypto/md5: Moved from ../.
68906         * modules/crypto/md5-tests: Moved from ../.
68907         * modules/crypto/memxor: Moved from ../.
68908         * modules/crypto/rijndael: Moved from ../.
68909         * modules/crypto/rijndael-tests: Moved from ../.
68910         * modules/crypto/sha1: Moved from ../.
68911
68912 2007-03-30  James Youngman  <jay@gnu.org>
68913
68914         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68915         rename() to change the ctime of a file (because ctime is unaffected
68916         by rename on jfs2 on AIX 5.1).
68917         (main): Start by doing cleanup, in case a previous run failed leaving
68918         test files behind.
68919
68920 2007-03-31  Bruno Haible  <bruno@clisp.org>
68921
68922         Support old proprietary implementations of iconv.
68923         * modules/iconv_open: New file.
68924         * lib/iconv_.h: New file.
68925         * m4/iconv_h.m4: New file.
68926         * lib/iconv_open.c: New file.
68927         * lib/iconv_open-aix.gperf: New file.
68928         * lib/iconv_open-hpux.gperf: New file.
68929         * lib/iconv_open-irix.gperf: New file.
68930         * lib/iconv_open-osf.gperf: New file.
68931         * m4/iconv_open.m4: New file.
68932         * modules/linebreak (Depends-on): Add iconv_open.
68933         * modules/striconv (Depends-on): Likewise.
68934         * modules/striconveh (Depends-on): Likewise.
68935         * modules/unicodeio (Depends-on): Likewise.
68936         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
68937         (iconv_t)(-1).
68938         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
68939         conversion if cd is (iconv_t)(-1).
68940         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
68941         is not possible.
68942
68943 2007-03-31  Bruno Haible  <bruno@clisp.org>
68944
68945         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68946         work on Solaris either. Protect also second use of "autodetect_jp".
68947
68948 2007-03-31  Bruno Haible  <bruno@clisp.org>
68949
68950         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
68951         the function is not present.
68952
68953 2007-03-31  Bruno Haible  <bruno@clisp.org>
68954
68955         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
68956         the function is not present.
68957
68958 2007-03-31  Bruno Haible  <bruno@clisp.org>
68959
68960         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
68961         a bug in HP-UX iconv_open().
68962
68963 2007-03-31  Bruno Haible  <bruno@clisp.org>
68964
68965         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
68966         (Mathematics <math.h>): New section, add fpieee.
68967         (Input/output <stdio.h>): Add fseterr.
68968         (Mathematics <math.h>): New section, add printf-frexp.
68969         (Container data structures): Add sublist.
68970         (Core language properties): Add fpucw, inline.
68971         (Functions for greatest-width integer types <inttypes.h>): Add
68972         imaxabs, imaxdiv, inttypes.
68973         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
68974         isnanl-nolibm, ldexp.
68975         (Mathematics <math.h>): New section, add printf-frexpl.
68976         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68977         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68978         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68979         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68980         (Unicode string functions): Add unistr/u*-mbtoucr.
68981         (Java): Add javacomp-script, javaexec-script.
68982         (C#): Add csharpcomp-script, csharpexec-script.
68983         (Support for building libraries and executables): Add havelib,
68984         relocatable-*.
68985         (Support for maintaining and releasing projects): Renamed from
68986         'Support for maintaining and release projects'. Add announce-gen.
68987
68988 2007-03-31  Bruno Haible  <bruno@clisp.org>
68989
68990         * README: Talk primarily about git.
68991         (git and CVS): Renamed from CVS.
68992         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68993         gnulib is available through git.
68994         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68995
68996 2007-03-30  Bruno Haible  <bruno@clisp.org>
68997
68998         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68999         * lib/poll_.h: Likewise.
69000         * lib/stat_.h: Likewise.
69001         * lib/sys_time_.h: Likewise.
69002         * lib/sysexit_.h: Likewise.
69003         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69004         * lib/stdbool_.h: Likewise.
69005         * lib/byteswap_.h: Add double-inclusion guard.
69006
69007 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69008
69009         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69010
69011 2007-03-30  Karl Berry  <karl@gnu.org>
69012
69013         * config/srclist-update: double space after USA in the license
69014         substitution, since that's how it's usually (?) written.
69015
69016 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69017
69018         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69019         reported by Bruno Haible.
69020
69021 2007-03-29  Bruno Haible  <bruno@clisp.org>
69022
69023         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69024         a bug in AIX iconv().
69025
69026 2007-03-29  Bruno Haible  <bruno@clisp.org>
69027
69028         * modules/ldexpl-tests: New file.
69029         * tests/test-ldexpl.c: New file.
69030
69031 2007-03-29  Bruno Haible  <bruno@clisp.org>
69032
69033         * lib/ldexpl.c: Include fpucw.h.
69034         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69035         multiplication.
69036         * modules/ldexpl (Depends-on): Add fpucw.
69037
69038 2007-03-29  Bruno Haible  <bruno@clisp.org>
69039
69040         * modules/ldexpl: New file.
69041         * m4/ldexpl.m4: New file.
69042         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69043         set.
69044         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69045         REPLACE_LDEXPL.
69046         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69047         REPLACE_LDEXPL.
69048         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69049         gl_FUNC_LDEXPL_WORKS.
69050         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69051         * modules/mathl (Files): Remove lib/ldexpl.c.
69052         (Depends-on): Add ldexpl.
69053
69054 2007-03-29  Bruno Haible  <bruno@clisp.org>
69055
69056         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69057
69058 2007-03-29  Bruno Haible  <bruno@clisp.org>
69059
69060         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69061         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69062         and possibly also HP-UX.
69063         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69064         work on AIX, IRIX, HP-UX, OSF/1.
69065         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69066         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69067         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69068         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69069         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69070         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69071
69072 2007-03-29  Bruno Haible  <bruno@clisp.org>
69073
69074         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69075
69076 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69077
69078         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69079         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69080
69081 2007-03-29  Eric Blake  <ebb9@byu.net>
69082
69083         * lib/acl-internal.h: Remove redundant include.
69084         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69085         Cygwin when a file is locked.
69086
69087 2007-03-29  Bruno Haible  <bruno@clisp.org>
69088
69089         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69090         file.
69091         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69092
69093 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69094
69095         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69096         try to remove a parent directory if the child couldn't be removed
69097         (except for the first rmdir, which could fail because the child
69098         doesn't exist).  Problem reported by Jeff Blaine in
69099         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69100
69101 2007-03-28  Bruno Haible  <bruno@clisp.org>
69102
69103         * lib/striconveh.c (utf8conv_carefully): New function.
69104         (mem_cd_iconveh_internal): Invoke it.
69105
69106 2007-03-28  Bruno Haible  <bruno@clisp.org>
69107
69108         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69109         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69110         input.
69111         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69112         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69113         unistr/u8-uctomb.
69114
69115 2007-03-28  Bruno Haible  <bruno@clisp.org>
69116
69117         * modules/unistr/u8-mbtoucr: New file.
69118         * lib/unistr/u8-mbtoucr.c: New file.
69119         * modules/unistr/u16-mbtoucr: New file.
69120         * lib/unistr/u16-mbtoucr.c: New file.
69121         * modules/unistr/u16-mbtoucr: New file.
69122         * lib/unistr/u16-mbtoucr.c: New file.
69123         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69124
69125 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69126             Bruno Haible  <bruno@clisp.org>
69127
69128         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69129         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69130         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69131
69132         * m4/stdio_h.m4: Add stubs for vasprintf too.
69133
69134         * modules/stdio: Support vasprintf in sed command.
69135
69136         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69137         vasprintf.h.  Add stdio module indicator.
69138
69139         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69140         vasprintf.h.
69141
69142         * lib/vasprintf.h: File removed.
69143
69144         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69145         * lib/vasprintf.c: Ditto.
69146         * lib/xvasprintf.c: Ditto.
69147         * tests/test-vasprintf-posix.c: Ditto.
69148         * tests/test-vasprintf.c: Ditto.
69149
69150 2007-03-27  Bruno Haible  <bruno@clisp.org>
69151
69152         Make vasnprintf multithread-safe.
69153         * lib/vasnprintf.c (decimal_point_char): New function.
69154         (VASNPRINTF): Use it.
69155         Suggested by Simon Josefsson.
69156
69157 2007-03-27  Eric Blake  <ebb9@byu.net>
69158
69159         Support sub-second birthtime on cygwin.
69160         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69161         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69162         (get_stat_birthtime): Also work with st_birthtim.
69163
69164 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69165
69166         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69167         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69168         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69169         (get_stat_birthtime_ns): Simplify compile-time tests.
69170         (get_stat_birthtime): Change the API to look like
69171         get_stat_mtime etc., except return a negative tv_nsec on error.
69172         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69173         Don't check for "spare" fields.
69174         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69175         or for struct stat.st_birthtime, as these tests aren't used.
69176         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69177
69178 2007-03-27  Bruno Haible  <bruno@clisp.org>
69179
69180         * lib/stat-time.h: Include <sys/stat.h>.
69181
69182 2007-03-27  James Youngman  <jay@gnu.org>
69183
69184         * lib/stat-time.h (get_stat_birthtime): New function for
69185           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69186         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69187           and its variants.
69188         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69189         * modules/stat-time-test: New file.
69190         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69191
69192 2007-03-26  Bruno Haible  <bruno@clisp.org>
69193
69194         Better support of signalling NaNs.
69195         * lib/atanl.c: Include isnanl.h.
69196         (atanl): Perform test for NaN at the beginning of the function and
69197         through a call to isnanl.
69198         * lib/cosl.c: Include isnanl.h.
69199         (cosl): Perform test for NaN at the beginning of the function and
69200         through a call to isnanl.
69201         * lib/ldexpl.c: Include isnanl.h.
69202         (ldexpl): Perform test for NaN through a call to isnanl.
69203         * lib/logl.c: Include isnanl.h.
69204         (logl): Perform test for NaN at the beginning of the function and
69205         through a call to isnanl.
69206         * lib/sinl.c: Include isnanl.h.
69207         (sinl): Perform test for NaN at the beginning of the function and
69208         through a call to isnanl.
69209         * lib/sqrtl.c: Include isnanl.h.
69210         (sqrtl): Perform test for NaN at the beginning of the function and
69211         through a call to isnanl.
69212         * lib/tanl.c: Include isnanl.h.
69213         (tanl): Perform test for NaN at the beginning of the function and
69214         through a call to isnanl.
69215         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69216         * modules/mathl (Depends-on): Add isnanl.
69217
69218 2007-03-26  Eric Blake  <ebb9@byu.net>
69219
69220         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69221         regression in logic sense of previous patch.
69222
69223 2007-03-26  Bruno Haible  <bruno@clisp.org>
69224
69225         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69226         unportable shell command "if ! ...".
69227         Reported by Ralf Wildenhues.
69228
69229 2007-03-25  Bruno Haible  <bruno@clisp.org>
69230
69231         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69232         <sysexits.h> file, and only add EX_CONFIG.
69233         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69234         absolute file name and whether it is sufficient. Substitute also
69235         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69236         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69237         ABSOLUTE_SYSEXITS_H into sysexits.h.
69238
69239 2007-03-25  Bruno Haible  <bruno@clisp.org>
69240
69241         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69242         hints is NULL.
69243
69244 2007-03-25  Bruno Haible  <bruno@clisp.org>
69245
69246         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69247         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69248
69249 2007-03-25  Bruno Haible  <bruno@clisp.org>
69250
69251         * lib/vasnprintf.c: Include langinfo.h.
69252         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69253         multithread-safe.
69254         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69255         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69256         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69257         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69258         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69259         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69260         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69261         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69262         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69263         Reported by Simon Josefsson.
69264
69265 2007-03-25  Bruno Haible  <bruno@clisp.org>
69266
69267         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69268         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69269         * modules/vasnprintf (Depends-on): Add stdint.
69270
69271 2007-03-25  Bruno Haible  <bruno@clisp.org>
69272
69273         * modules/fpieee: New file.
69274         * m4/fpieee.m4: New file.
69275         * modules/isnan-nolibm (Depends-on): Add fpieee.
69276         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69277         * modules/isnanl (Depends-on): Add fpieee.
69278
69279 2007-03-25  Bruno Haible  <bruno@clisp.org>
69280
69281         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69282
69283 2007-03-25  Bruno Haible  <bruno@clisp.org>
69284
69285         Avoid test failures on IRIX 6.5.
69286         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69287         (main): Use it.
69288         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69289         macros.
69290         (main): Use them.
69291
69292 2007-03-25  Bruno Haible  <bruno@clisp.org>
69293
69294         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69295         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69296         exists but doesn't work.
69297         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69298         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69299         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69300         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69301         math.h.
69302
69303 2007-03-25  Bruno Haible  <bruno@clisp.org>
69304
69305         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69306         returns inf. Needed on IRIX 6.5.
69307
69308 2007-03-25  Bruno Haible  <bruno@clisp.org>
69309
69310         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69311         (main): Use isnanl instead of x != x idiom.
69312         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69313
69314         * tests/test-frexp.c: Include isnan.h.
69315         (main): Use isnan instead of x != x idiom.
69316         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69317
69318 2007-03-25  Bruno Haible  <bruno@clisp.org>
69319
69320         * tests/test-frexp.c (NaN): New function/macro.
69321         (main): Use it instead of 0.0 / 0.0.
69322         * tests/test-isnan.c (NaN): New function/macro.
69323         (main): Use it instead of 0.0 / 0.0.
69324         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69325         (test_function): Use it instead of 0.0 / 0.0.
69326         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69327         (test_function): Use it instead of 0.0 / 0.0.
69328         * tests/test-snprintf-posix.h (NaN): New function/macro.
69329         (test_function): Use it instead of 0.0 / 0.0.
69330         * tests/test-sprintf-posix.h (NaN): New function/macro.
69331         (test_function): Use it instead of 0.0 / 0.0.
69332         * tests/test-fprintf-posix.h (NaN): New function/macro.
69333         (test_function): Use it instead of 0.0 / 0.0.
69334         * tests/test-printf-posix.h (NaN): New function/macro.
69335         (test_function): Use it instead of 0.0 / 0.0.
69336
69337         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69338
69339 2007-03-25  Bruno Haible  <bruno@clisp.org>
69340
69341         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69342
69343 2007-03-25  Bruno Haible  <bruno@clisp.org>
69344
69345         * lib/regexec.c (merge_state_with_log): Make static.
69346
69347 2007-03-25  Bruno Haible  <bruno@clisp.org>
69348
69349         * lib/trigl.c (kernel_rem_pio2): Make static.
69350
69351 2007-03-25  Bruno Haible  <bruno@clisp.org>
69352
69353         * lib/sincosl.c (sincosl_table): Make static.
69354
69355 2007-03-25  Bruno Haible  <bruno@clisp.org>
69356
69357         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69358         if the compiler does not support C99.
69359
69360 2007-03-25  Bruno Haible  <bruno@clisp.org>
69361
69362         * modules/time (Makefile.am): Ensure all rule action lines start with a
69363         tab.
69364
69365 2007-03-24  Bruno Haible  <bruno@clisp.org>
69366
69367         * modules/tsearch-tests: New file.
69368         * tests/test-tsearch.sh: New file.
69369         * tests/test-tsearch.c: New file, mostly copied from glibc.
69370
69371         * modules/search-tests: New file.
69372         * tests/test-search.c: New file.
69373
69374         * modules/search: New file.
69375         * lib/search_.h: New file, incorporating lib/tsearch.h.
69376         * m4/search_h.m4: New file.
69377         * lib/tsearch.h: Remove file.
69378         * lib/tsearch.c: Include search.h instead of tsearch.h.
69379         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69380         HAVE_TSEARCH.
69381         * modules/tsearch (Files): Remove lib/tsearch.h.
69382         (Depends-on): Add search.
69383         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69384         (Include): Change tsearch.h into search.h.
69385
69386 2007-03-24  Bruno Haible  <bruno@clisp.org>
69387
69388         * modules/fpucw: New file.
69389         * lib/fpucw.h: New file.
69390         * lib/frexp.c: Include fpucw.h.
69391         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69392         (FUNC): Use them.
69393         * lib/printf-frexp.c: Include fpucw.h.
69394         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69395         (FUNC): Use them.
69396         * lib/vasnprintf.c: Include fpucw.h.
69397         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69398         'long double' calculations.
69399         * tests/test-frexpl.c: Include fpucw.h.
69400         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69401         * tests/test-printf-frexpl.c: Include fpucw.h.
69402         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69403         * modules/frexpl (Depends-on): Add fpucw.
69404         * modules/printf-frexpl (Depends-on): Likewise.
69405         * modules/fprintf-posix (Depends-on): Likewise.
69406         * modules/snprintf-posix (Depends-on): Likewise.
69407         * modules/sprintf-posix (Depends-on): Likewise.
69408         * modules/vasnprintf-posix (Depends-on): Likewise.
69409         * modules/vasprintf-posix (Depends-on): Likewise.
69410         * modules/vfprintf-posix (Depends-on): Likewise.
69411         * modules/vsnprintf-posix (Depends-on): Likewise.
69412         * modules/vsprintf-posix (Depends-on): Likewise.
69413         * modules/frexpl-tests (Depends-on): Likewise.
69414         * modules/printf-frexpl-tests (Depends-on): Likewise.
69415
69416 2007-03-24  Bruno Haible  <bruno@clisp.org>
69417
69418         * lib/float+.h: New file.
69419         * lib/isnan.c: Include float+.h.
69420         (SIZE): New macro.
69421         (FUNC): Compare only SIZE bytes of the value.
69422         * lib/vasnprintf.c: Include float+.h.
69423         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69424         SIZEOF_LDBL or SIZEOF_DBL bytes.
69425         * modules/isnan-nolibm (Files): Add lib/float+.h.
69426         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69427         * modules/isnanl (Files): Add lib/float+.h.
69428         * modules/vasnprintf (Files): Add lib/float+.h.
69429
69430 2007-03-24  Bruno Haible  <bruno@clisp.org>
69431
69432         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69433         include isnanl-nolibm.h.
69434
69435 2007-03-24  Bruno Haible  <bruno@clisp.org>
69436
69437         * tests/test-read-file.c (main): Don't produce spurious output for
69438         expected situations. Make the test fail if it encountered unexpected
69439         results.
69440
69441 2007-03-24  Bruno Haible  <bruno@clisp.org>
69442
69443         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69444         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69445
69446 2007-03-24  Bruno Haible  <bruno@clisp.org>
69447
69448         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69449
69450 2007-03-24  Bruno Haible  <bruno@clisp.org>
69451
69452         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69453         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69454
69455         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69456         * modules/utf8-ucs4: Turn into a symbolic link to module
69457         unistr/u8-mbtouc.
69458
69459         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69460         utf8-ucs4-unsafe.
69461         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69462         unistr/u8-mbtouc-unsafe.
69463
69464         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69465         * modules/utf16-ucs4: Turn into a symbolic link to module
69466         unistr/u16-mbtouc.
69467
69468         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69469         utf16-ucs4-unsafe.
69470         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69471         unistr/u16-mbtouc-unsafe.
69472
69473         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69474         * modules/ucs4-utf8: Turn into a symbolic link to module
69475         unistr/u8-ubtomb.
69476
69477         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69478         * modules/ucs4-utf16: Turn into a symbolic link to module
69479         unistr/u16-ubtomb.
69480
69481 2007-03-24  Bruno Haible  <bruno@clisp.org>
69482
69483         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69484         Enable the function only if HAVE_INLINE.
69485         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69486         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69487         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69488         Enable the function only if HAVE_INLINE.
69489         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69490         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69491         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69492         Enable the function only if HAVE_INLINE.
69493         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69494         Enable the function only if HAVE_INLINE.
69495         * modules/utf8-ucs4: Update.
69496         * modules/utf8-ucs4-unsafe: Update.
69497         * modules/utf16-ucs4: Update.
69498         * modules/utf16-ucs4-unsafe: Update.
69499         * modules/ucs4-utf8: Update.
69500         * modules/ucs4-utf16: Update.
69501
69502 2007-03-24  Bruno Haible  <bruno@clisp.org>
69503
69504         * lib/utf8-ucs4.h: Remove file.
69505         * lib/utf8-ucs4-unsafe.h: Remove file.
69506         * lib/utf16-ucs4.h: Remove file.
69507         * lib/utf16-ucs4-unsafe.h: Remove file.
69508         * lib/ucs4-utf8.h: Remove file.
69509         * lib/ucs4-utf16.h: Remove file.
69510         * lib/unistr.h: Include their previous contents.
69511         * m4/utf-ucs4.m4: Remove file.
69512         * m4/ucs4-utf.m4: Remove file.
69513         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
69514         (Depends-on): Add unistr/base.
69515         (configure.ac): Remove gl_UTF_UCS4.
69516         (Makefile.am): Update.
69517         (Include): Change to unistr.h.
69518         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
69519         (Depends-on): Add unistr/base.
69520         (configure.ac): Remove gl_UTF_UCS4.
69521         (Makefile.am): Update.
69522         (Include): Change to unistr.h.
69523         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
69524         (Depends-on): Add unistr/base.
69525         (configure.ac): Remove gl_UTF_UCS4.
69526         (Makefile.am): Update.
69527         (Include): Change to unistr.h.
69528         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
69529         (Depends-on): Add unistr/base.
69530         (configure.ac): Remove gl_UTF_UCS4.
69531         (Makefile.am): Update.
69532         (Include): Change to unistr.h.
69533         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
69534         (Depends-on): Add unistr/base.
69535         (configure.ac): Remove gl_UCS4_UTF.
69536         (Makefile.am): Update.
69537         (Include): Change to unistr.h.
69538         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
69539         (Depends-on): Add unistr/base.
69540         (configure.ac): Remove gl_UCS4_UTF.
69541         (Makefile.am): Update.
69542         (Include): Change to unistr.h.
69543         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
69544         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
69545         utf8-ucs4-unsafe.h.
69546         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
69547         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
69548         utf16-ucs4-unsafe.h.
69549         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
69550         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
69551         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
69552         * lib/unistr/u8-strchr.c: Likewise.
69553         * lib/unistr/u8-strrchr.c: Likewise.
69554         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
69555         * lib/unistr/u16-strchr.c: Likewise.
69556         * lib/unistr/u16-strrchr.c: Likewise.
69557         * lib/striconveh.c: Update.
69558         * lib/linebreak.c: Update.
69559
69560 2007-03-24  Bruno Haible  <bruno@clisp.org>
69561
69562         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
69563         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
69564
69565 2007-03-22  Bruno Haible  <bruno@clisp.org>
69566
69567         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
69568
69569 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * MODULES.html.sh (File system functions): New module write-any-file.
69572         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
69573         * m4/write-any-file.m4: New files.
69574
69575 2007-03-23  Eric Blake  <ebb9@byu.net>
69576
69577         * gnulib-tool: Rearrange space-tab sequences, since some editors
69578         like to eat them.
69579
69580 2007-03-23  Eric Blake  <ebb9@byu.net>
69581
69582         * lib/version-etc.c (version_etc_va): Update license wording to
69583         be more concise.  Recommended by Richard Stallman.
69584
69585 2007-03-22  Bruno Haible  <bruno@clisp.org>
69586
69587         * lib/poll.c (MSG_PEEK): New fallback definition.
69588
69589 2007-03-22  Bruno Haible  <bruno@clisp.org>
69590
69591         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
69592         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
69593         (main): Update.
69594         Fixes a compilation error on BeOS.
69595
69596 2007-03-22  Bruno Haible  <bruno@clisp.org>
69597
69598         * modules/frexpl-tests: New file.
69599         * tests/test-frexpl.c: New file.
69600
69601         * modules/frexpl: New file.
69602         * m4/frexpl.m4: New file.
69603         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
69604         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
69605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
69606         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
69607         (Depends-on): Add frexpl. Remove isnanl-nolibm.
69608         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
69609
69610 2007-03-22  Bruno Haible  <bruno@clisp.org>
69611
69612         * lib/frexpl.c: Share code with lib/frexp.c.
69613         * modules/mathl (Files): Add lib/frexp.c.
69614         (Depends-on): Add isnanl-nolibm.
69615
69616 2007-03-22  Bruno Haible  <bruno@clisp.org>
69617
69618         * modules/printf-frexp (Files): Add m4/frexp.m4.
69619         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
69620         only if the found frexp function actually works.
69621
69622 2007-03-22  Bruno Haible  <bruno@clisp.org>
69623
69624         * lib/frexp.c: Remove older implementation that uses divisions.
69625
69626 2007-03-21  Bruno Haible  <bruno@clisp.org>
69627
69628         * modules/frexp-tests: New file.
69629         * tests/test-frexp.c: New file.
69630
69631         * modules/frexp: New file.
69632         * lib/frexp.c: New file.
69633         * m4/frexp.m4: New file.
69634         * lib/math_.h (frexp): New declaration.
69635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
69636         REPLACE_FREXP.
69637         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
69638
69639 2007-03-21  Bruno Haible  <bruno@clisp.org>
69640
69641         * modules/isnanl-tests: New file.
69642         * tests/test-isnanl.c: New file.
69643
69644         * modules/isnanl: New file.
69645         * lib/isnanl.h: New file.
69646         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
69647         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
69648         gl_FUNC_ISNANL_WORKS.
69649         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
69650         New macros.
69651
69652 2007-03-21  Bruno Haible  <bruno@clisp.org>
69653
69654         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
69655         lib/isnanl.h.
69656         (Include): Update.
69657         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
69658         * lib/vasnprintf.c: Update.
69659         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
69660         tests/test-isnanl.h, remove tests/test-isnanl.c.
69661         (Makefile.am): Update.
69662         * tests/test-isnanl-nolibm.c: New file.
69663         * tests/test-isnanl.h: New file.
69664         * tests/test-isnanl.c: Remove file.
69665
69666 2007-03-21  Jim Meyering  <jim@meyering.net>
69667
69668         When trying to open ".", treat ESTALE like EACCES.
69669         * lib/savewd.c (savewd_save): Resort to forking not just upon
69670         failure with EACCES, but also when errno is ESTALE.
69671
69672 2007-03-20  Bruno Haible  <bruno@clisp.org>
69673
69674         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
69675         Needed on AIX 5.1. Reported by Matthew Woehlke.
69676
69677 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         Suggestions by Bruno Haible:
69680         * lib/acl-internal.h: Include "gettext.h" rather than rolling
69681         our own.
69682         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
69683         * modules/acl (Depends-on): Add gettext.
69684
69685 2007-03-19  Bruno Haible  <bruno@clisp.org>
69686
69687         * modules/iconvme: Remove file.
69688         * lib/iconvme.h: Remove file.
69689         * lib/iconvme.c: Remove file.
69690         * m4/iconvme.m4: Remove file.
69691
69692 2007-03-19  Bruno Haible  <bruno@clisp.org>
69693
69694         * doc/relocatable-maint.texi: Break long shell script line.
69695         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69696
69697 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69698
69699         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
69700         handle file_has_acl.
69701         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
69702         * lib/acl.c: Move header inclusions and related macro defns into
69703         lib/acl-internal.h.
69704         (S_ISLNK): Remove defn, since that's now done for us.
69705         (file_has_acl): Move to lib/file-has-acl.c.
69706         Call acl_trivial if available.  This is the crucial part of the fix.
69707         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
69708         shared within the library.  Rewrite a bit, partly to make it compatible
69709         with the GNU coding style.
69710         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
69711         Remove unnecessary double-quotes.
69712         Don't test for acl_to_text; the build will catch that.
69713         Replace acl_entries if it doesn't exist and it is needed.
69714         Check for -lsec and acl_trivial (as used on Solaris 10).
69715         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
69716         lib/file-has-acl.c.
69717         (Depends-on): Add sys_stat, for S_ISLNK.
69718
69719 2007-03-19  Ben Pfaff  <blp@gnu.org>
69720
69721         * doc/gnulib.texi: Fix typos.
69722         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
69723
69724 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
69725
69726         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
69727         If size is zero here, buf must be zero.
69728
69729 2007-03-19  Simon Josefsson  <simon@josefsson.org>
69730
69731         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
69732         <bruno@clisp.org>.
69733
69734 2007-03-18  Bruno Haible  <bruno@clisp.org>
69735
69736         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
69737         Suggested by Eric Blake.
69738
69739 2007-03-18  Ben Pfaff  <blp@gnu.org>
69740
69741         * doc/relocatable.texi: Recommend using as prefix a directory
69742         that does not exist and will never be created.  Based on
69743         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
69744         and others.
69745
69746 2007-03-17  Bruno Haible  <bruno@clisp.org>
69747
69748         * lib/fchownat.c: Include lchown.h.
69749
69750 2007-03-17  Bruno Haible  <bruno@clisp.org>
69751
69752         Fix endless loop when the given allocated size was > INT_MAX.
69753         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
69754         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
69755         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
69756         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
69757         * lib/sprintf.c (sprintf): Likewise.
69758
69759 2007-03-17  Bruno Haible  <bruno@clisp.org>
69760
69761         * tests/test-argp-2.sh (func_compare): Output a context diff.
69762
69763 2007-03-17  Bruno Haible  <bruno@clisp.org>
69764
69765         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
69766         locale's decimal-point character.
69767
69768 2007-03-17  Bruno Haible  <bruno@clisp.org>
69769
69770         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
69771         before comparing it. Needed because on some platforms (e.g. x86) a
69772         'long double' occupies less bytes than sizeof (long double).
69773
69774 2007-03-17  Bruno Haible  <bruno@clisp.org>
69775
69776         * tests/test-crc.c (main): Make printf statements 64-bit clean.
69777         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
69778         * tests/test-getaddrinfo.c (simple): Likewise.
69779         * tests/test-read-file.c (main): Likewise.
69780
69781 2007-03-17  Bruno Haible  <bruno@clisp.org>
69782
69783         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
69784
69785 2007-03-17  Bruno Haible  <bruno@clisp.org>
69786
69787         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
69788         unused variable.
69789
69790 2007-03-17  Bruno Haible  <bruno@clisp.org>
69791
69792         * tests/test-c-strcasecmp.c: Include c-strcase.h.
69793         * tests/test-c-strncasecmp.c: Likewise.
69794
69795 2007-03-17  Bruno Haible  <bruno@clisp.org>
69796
69797         * modules/stdlib (Depends-on): Add unistd.
69798         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
69799         Needed for MacOS X 10.3.
69800
69801 2007-03-17  Bruno Haible  <bruno@clisp.org>
69802
69803         * lib/unistr/u-strdup.h: Include <stdlib.h>.
69804
69805 2007-03-17  Bruno Haible  <bruno@clisp.org>
69806
69807         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
69808
69809 2007-03-17  Bruno Haible  <bruno@clisp.org>
69810
69811         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
69812         to reflect files copied from gnulib (with or without modifications).
69813         Suggested by Jim Meyering.
69814
69815 2007-03-17  Eric Blake  <ebb9@byu.net>
69816
69817         * NEWS: Document stdlib change from 2007-02-18.
69818
69819 2007-03-17  Jim Meyering  <jim@meyering.net>
69820
69821         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
69822         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
69823         someone uses a name containing shell meta-characters.
69824         Reported by Alfred M. Szmidt.
69825
69826         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
69827
69828 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69829
69830         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
69831         and copy gettext configuration files only if configure.ac contains
69832         a use of AM_GNU_GETTEXT_VERSION.
69833
69834 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69835
69836         * build-aux/bootstrap (gnulib_name): New variable.
69837         (gnulib_tool_options): Use it.
69838
69839 2007-03-13  Simon Josefsson  <simon@josefsson.org>
69840
69841         * tests/test-des.c: Use new namespace.
69842
69843 2007-03-15  Bruno Haible  <bruno@clisp.org>
69844
69845         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
69846         Reported by James Youngman <jay@gnu.org>.
69847
69848 2007-03-15  Bruno Haible  <bruno@clisp.org>
69849
69850         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
69851         declared prototype. Needed with cc on OSF/1 5.1.
69852
69853 2007-03-15  Bruno Haible  <bruno@clisp.org>
69854
69855         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
69856         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
69857         (struct gl_list_implementation): Add dispose_fn argument to the
69858         'create_empty', 'create' methods.
69859         (struct gl_list_impl_base): Add field 'dispose_fn'.
69860         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
69861         argument.
69862         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
69863         dispose_fn argument.
69864         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
69865         dispose_fn on the dropped values.
69866         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
69867         dispose_fn argument.
69868         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
69869         dropped values.
69870         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
69871         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69872         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
69873         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69874         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
69875         argument.
69876         (gl_tree_list_free): Call dispose_fn on the dropped values.
69877         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
69878         the dropped values.
69879         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69880         Add dispose_fn argument.
69881         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
69882         Call dispose_fn on the dropped values.
69883         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
69884         Add dispose_fn argument.
69885         (gl_sublist_create): Initialize the 'dispose_fn' field.
69886         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
69887         * tests/test-array_list.c (main): Update.
69888         * tests/test-carray_list.c (main): Update.
69889         * tests/test-avltree_list.c (main): Update.
69890         * tests/test-rbtree_list.c (main): Update.
69891         * tests/test-avltreehash_list.c (main): Update.
69892         * tests/test-rbtreehash_list.c (main): Update.
69893         * tests/test-linked_list.c (main): Update.
69894         * tests/test-linkedhash_list.c (main): Update.
69895         * tests/test-array_oset.c (main): Update.
69896
69897 2007-03-15  Bruno Haible  <bruno@clisp.org>
69898
69899         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69900         (gl_oset_create_empty): Add dispose_fn argument.
69901         (struct gl_oset_implementation): Add dispose_fn argument to
69902         'create_empty' method.
69903         (struct gl_oset_impl_base): Add dispose_fn field.
69904         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69905         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69906         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69907         values.
69908         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69909         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69910         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69911         dropped value.
69912         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69913         dropped value.
69914         * tests/test-array_oset.c (main): Update.
69915         * tests/test-avltree_oset.c (main): Update.
69916         * tests/test-rbtree_oset.c (main): Update.
69917         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69918
69919 2007-03-13  Bruno Haible  <bruno@clisp.org>
69920
69921         * tests/test-stdbool.c (i): Update after last patch.
69922
69923 2007-03-12  Bruno Haible  <bruno@clisp.org>
69924
69925         * lib/quotearg.c: Include <wctype.h> early, before the definition of
69926         the iswprint macro. Needed on Solaris 2.5.1.
69927
69928 2007-03-12  Bruno Haible  <bruno@clisp.org>
69929
69930         * tests/test-printf-frexp.c (main): Declare x as volatile.
69931
69932 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69933
69934         * doc/gnulib.texi (Build robot for gnulib): New section.
69935
69936 2007-03-12  Jim Meyering  <jim@meyering.net>
69937
69938         * build-aux/bootstrap: New file.
69939         * build-aux/bootstrap.conf: New file, from coreutils.
69940
69941 2007-03-11  Bruno Haible  <bruno@clisp.org>
69942
69943         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
69944
69945 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69946
69947         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
69948         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
69949         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
69950
69951 2007-03-11  Bruno Haible  <bruno@clisp.org>
69952
69953         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
69954         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
69955
69956 2007-03-11  Bruno Haible  <bruno@clisp.org>
69957
69958         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
69959         formula. Needed for SunPRO C 5.0.
69960
69961 2007-03-11  Bruno Haible  <bruno@clisp.org>
69962
69963         * modules/long-options (Depends-on): Add getopt.
69964
69965 2007-03-11  Bruno Haible  <bruno@clisp.org>
69966
69967         * modules/modechange (Depends-on): Add stdbool.
69968
69969 2007-03-11  Bruno Haible  <bruno@clisp.org>
69970
69971         * modules/i-ring (Depends-on): Add stdbool.
69972
69973 2007-03-11  Bruno Haible  <bruno@clisp.org>
69974
69975         * modules/gc-des (Depends-on): Add stdbool.
69976
69977 2007-03-11  Bruno Haible  <bruno@clisp.org>
69978
69979         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69980
69981 2007-03-11  Bruno Haible  <bruno@clisp.org>
69982
69983         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69984
69985 2007-03-11  Bruno Haible  <bruno@clisp.org>
69986
69987         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69988
69989 2007-03-11  Bruno Haible  <bruno@clisp.org>
69990
69991         * lib/vasnprintf.c (sprintf): Undefine.
69992
69993 2007-03-11  Bruno Haible  <bruno@clisp.org>
69994
69995         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69996         initializers in SunPRO C and Compaq C compilers.
69997
69998 2007-03-11  Bruno Haible  <bruno@clisp.org>
69999
70000         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70001         decrementing code ANSI C compliant.
70002
70003 2007-03-11  Bruno Haible  <bruno@clisp.org>
70004
70005         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70006         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70007
70008 2007-03-11  Bruno Haible  <bruno@clisp.org>
70009
70010         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70011         <stdbool.h> substitute doesn't pass.
70012
70013 2007-03-11  Bruno Haible  <bruno@clisp.org>
70014
70015         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70016
70017 2007-03-11  Bruno Haible  <bruno@clisp.org>
70018
70019         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70020         script, for submission to autobuild.josefsson.org.
70021
70022 2007-03-10  Bruno Haible  <bruno@clisp.org>
70023
70024         * modules/canonicalize-lgpl-tests: New file.
70025         * tests/test-canonicalize-lgpl.sh: New file.
70026         * tests/test-canonicalize-lgpl.c: New file.
70027
70028         * modules/c-strcase-tests: New file.
70029         * tests/test-c-strcase.sh: New file.
70030         * tests/test-c-strcasecmp.c: New file.
70031         * tests/test-c-strncasecmp.c: New file.
70032
70033         * modules/atexit-tests: New file.
70034         * tests/test-atexit.sh: New file.
70035         * tests/test-atexit.c: New file.
70036
70037 2007-03-10  Bruno Haible  <bruno@clisp.org>
70038
70039         * tests/test-binary-io.sh: Use temporary filenames that are not so
70040         likely to clash with those of other tests (in a parallel make).
70041         * tests/test-binary-io.c: Likewise.
70042
70043 2007-03-10  Bruno Haible  <bruno@clisp.org>
70044
70045         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70046         fallback; use #error instead.
70047         Suggested by Simon Josefsson.
70048
70049 2007-03-10  Bruno Haible  <bruno@clisp.org>
70050
70051         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70052         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70053         first and the last.
70054
70055 2007-03-10  Bruno Haible  <bruno@clisp.org>
70056
70057         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70058
70059 2007-03-10  Bruno Haible  <bruno@clisp.org>
70060
70061         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70062         "make distcheck".
70063         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70064         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70065         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70066
70067 2007-03-10  Bruno Haible  <bruno@clisp.org>
70068
70069         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70070         variable.
70071         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70072         variable.
70073
70074 2007-03-09  Eric Blake  <ebb9@byu.net>
70075         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70076
70077         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70078         types are not being provided by gnulib.
70079         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70080         types are supported.
70081
70082 2007-03-10  Bruno Haible  <bruno@clisp.org>
70083
70084         * lib/stdio_.h (__attribute__): New macro.
70085         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70086         vsprintf): Specify __attribute__ __format__ for GCC.
70087         Suggested by Eric Blake.
70088
70089 2007-03-09  Bruno Haible  <bruno@clisp.org>
70090
70091         * modules/printf-posix-tests: New file.
70092         * tests/test-printf-posix.sh: New file.
70093         * tests/test-printf-posix.c: New file.
70094
70095         * modules/printf-posix: New file.
70096         * lib/printf.c: New file.
70097         * m4/printf-posix-rpl.m4: New file.
70098         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70099         REPLACE_PRINTF.
70100         * lib/stdio_.h (printf): New declaration.
70101         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70102         ____strfmon____): New macros.
70103         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70104         REPLACE_PRINTF.
70105
70106 2007-03-09  Bruno Haible  <bruno@clisp.org>
70107
70108         * tests/test-vasnprintf-posix2.sh: New file.
70109         * tests/test-vasnprintf-posix2.c: New file.
70110         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70111         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70112         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70113
70114         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70115         a locale dependent decimal point, rather than always '.'.
70116
70117 2007-03-09  Eric Blake  <ebb9@byu.net>
70118
70119         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70120         spite of platforms like Tandem/NSK that define it to -1.
70121
70122 2007-03-08  Bruno Haible  <bruno@clisp.org>
70123
70124         * modules/vprintf-posix-tests: New file.
70125         * tests/test-vprintf-posix.sh: New file.
70126         * tests/test-vprintf-posix.c: New file.
70127         * tests/test-printf-posix.h: New file.
70128
70129         * modules/vprintf-posix: New file.
70130         * lib/vprintf.c: New file.
70131         * m4/vprintf-posix.m4: New file.
70132         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70133         REPLACE_VPRINTF.
70134         * lib/stdio_.h (vprintf): New declaration.
70135         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70136         REPLACE_VPRINTF.
70137
70138 2007-03-08  Bruno Haible  <bruno@clisp.org>
70139
70140         * modules/fprintf-posix-tests: New file.
70141         * tests/test-fprintf-posix.sh: New file.
70142         * tests/test-fprintf-posix.c: New file.
70143
70144         * modules/fprintf-posix: New file.
70145         * lib/fprintf.c: New file.
70146         * m4/fprintf-posix.m4: New file.
70147         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70148         REPLACE_FPRINTF.
70149         * lib/stdio_.h (fprintf): New declaration.
70150         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70151         REPLACE_FPRINTF.
70152
70153 2007-03-08  Bruno Haible  <bruno@clisp.org>
70154
70155         * modules/vfprintf-posix-tests: New file.
70156         * tests/test-vfprintf-posix.sh: New file.
70157         * tests/test-vfprintf-posix.c: New file.
70158         * tests/test-fprintf-posix.h: New file.
70159         * tests/test-fprintf-posix.out: New file.
70160
70161         * modules/vfprintf-posix: New file.
70162         * lib/vfprintf.c: New file.
70163         * m4/vfprintf-posix.m4: New file.
70164         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70165         REPLACE_VFPRINTF.
70166         * lib/stdio_.h (vfprintf): New declaration.
70167         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70168         REPLACE_VFPRINTF.
70169
70170 2007-03-08  Bruno Haible  <bruno@clisp.org>
70171
70172         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70173
70174 2007-03-08  Bruno Haible  <bruno@clisp.org>
70175
70176         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70177         instead of 'expr' invocations.
70178         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70179         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70180         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70181         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70182         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70183         Suggested by Paul Eggert.
70184
70185 2007-03-08  Bruno Haible  <bruno@clisp.org>
70186
70187         * modules/fseterr-tests: New file.
70188         * tests/test-fseterr.c: New file.
70189
70190         * modules/fseterr: New file.
70191         * lib/fseterr.h: New file.
70192         * lib/fseterr.c: New file.
70193
70194 2007-03-08  Bruno Haible  <bruno@clisp.org>
70195
70196         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70197         * lib/getopt_.h: Likewise.
70198         * lib/mbswidth.h: Likewise.
70199         * lib/setenv.h: Likewise.
70200         * lib/vasnprintf.h: Likewise.
70201         * lib/vasprintf.h: Likewise.
70202         * lib/verror.h: Likewise.
70203         * lib/xsetenv.h: Likewise.
70204         * lib/xvasprintf.h: Likewise.
70205
70206 2007-03-08  Jim Meyering  <jim@meyering.net>
70207
70208         * users.txt: Add parted.
70209
70210         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70211
70212 2007-03-07  Bruno Haible  <bruno@clisp.org>
70213
70214         * m4/printf.m4: Make the shell script snippets copy&pastable.
70215
70216 2007-03-02  Bruno Haible  <bruno@clisp.org>
70217
70218         * lib/netinet_in_.h: New file.
70219         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70220         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70221         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70222         (Depends-on): Add absolute-header.
70223         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70224         into netinet/in.h.
70225
70226 2007-03-03  Bruno Haible  <bruno@clisp.org>
70227
70228         * lib/sys_select_.h: New file.
70229         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70230         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70231         * modules/sys_select (Files): Add lib/sys_select_.h.
70232         (Depends-on): Add absolute-header.
70233         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70234         into sys/select.h.
70235
70236 2007-03-02  Bruno Haible  <bruno@clisp.org>
70237
70238         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70239         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70240         values.
70241         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70242         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70243         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70244         * modules/sys_socket (Depends-on): Add absolute-header.
70245         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70246         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70247         (Include): Remove requirement of inclusion of <sys/types.h>.
70248
70249 2007-03-02  Bruno Haible  <bruno@clisp.org>
70250
70251         * lib/byteswap_.h (bswap_32): Fix formula.
70252
70253 2007-03-06  Bruno Haible  <bruno@clisp.org>
70254
70255         * modules/sprintf-posix-tests: New file.
70256         * tests/test-sprintf-posix.c: New file.
70257
70258         * modules/sprintf-posix: New file.
70259         * lib/sprintf.c: New file.
70260         * m4/sprintf-posix.m4: New file.
70261         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70262         REPLACE_SPRINTF.
70263         * lib/stdio_.h (sprintf): New declaration.
70264         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70265         REPLACE_SPRINTF.
70266
70267 2007-03-06  Bruno Haible  <bruno@clisp.org>
70268
70269         * modules/vsprintf-posix-tests: New file.
70270         * tests/test-vsprintf-posix.c: New file.
70271         * tests/test-sprintf-posix.h: New file.
70272
70273         * modules/vsprintf-posix: New file.
70274         * lib/vsprintf.c: New file.
70275         * m4/vsprintf-posix.m4: New file.
70276         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70277         REPLACE_VSPRINTF.
70278         * lib/stdio_.h (vsprintf): New declaration.
70279         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70280         REPLACE_VSPRINTF.
70281
70282 2007-03-06  Bruno Haible  <bruno@clisp.org>
70283
70284         * modules/vsnprintf (Depend-on): Remove minmax.
70285
70286 2007-03-06  Bruno Haible  <bruno@clisp.org>
70287
70288         * modules/snprintf-posix-tests: New file.
70289         * tests/test-snprintf-posix.c: New file.
70290
70291         * modules/snprintf-posix: New file.
70292         * m4/snprintf-posix.m4: New file.
70293         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70294         gl_FUNC_SNPRINTF.
70295         (gl_FUNC_SNPRINTF): Invoke it.
70296         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70297         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70298         is set.
70299         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70300
70301 2007-03-06  Bruno Haible  <bruno@clisp.org>
70302
70303         * modules/vsnprintf-posix-tests: New file.
70304         * tests/test-vsnprintf-posix.c: New file.
70305         * tests/test-snprintf-posix.h: New file.
70306
70307         * modules/vsnprintf-posix: New file.
70308         * m4/vsnprintf-posix.m4: New file.
70309         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70310         gl_FUNC_VSNPRINTF.
70311         (gl_FUNC_VSNPRINTF): Invoke it.
70312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70313         * lib/stdio_.h (vsnprintf): Define as a replacement if
70314         REPLACE_VSNPRINTF is set.
70315         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70316
70317 2007-03-06  Bruno Haible  <bruno@clisp.org>
70318
70319         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70320         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70321
70322 2007-03-06  Bruno Haible  <bruno@clisp.org>
70323
70324         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70325         (asinl): Declare also if HAVE_DECL_ASINL is set.
70326         (atanl): Declare also if HAVE_DECL_ATANL is set.
70327         (ceill): Declare also if HAVE_DECL_CEILL is set.
70328         (cosl): Declare also if HAVE_DECL_COSL is set.
70329         (expl): Declare also if HAVE_DECL_EXPL is set.
70330         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70331         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70332         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70333         (logl): Declare also if HAVE_DECL_LOGL is set.
70334         (sinl): Declare also if HAVE_DECL_SINL is set.
70335         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70336         (tanl): Declare also if HAVE_DECL_TANL is set.
70337         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70338         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70339         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70340         declaration of frexpl, ldexpl.
70341         * modules/printf-frexpl (Depends-on): Add math.
70342         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70343
70344 2007-03-05  Bruno Haible  <bruno@clisp.org>
70345
70346         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70347         frexpl and ldexpl are declared.
70348         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70349
70350 2007-03-05  Bruno Haible  <bruno@clisp.org>
70351
70352         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70353         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70354
70355 2007-03-05  Bruno Haible  <bruno@clisp.org>
70356
70357         * lib/stdio_.h: Include <stddef.h>.
70358
70359 2007-03-05  Bruno Haible  <bruno@clisp.org>
70360
70361         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70362
70363 2007-03-05  Bruno Haible  <bruno@clisp.org>
70364
70365         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70366         NetBSD 4, from Ralf Wildenhues.
70367
70368 2007-03-04  Bruno Haible  <bruno@clisp.org>
70369
70370         * lib/vasprintf.h: Update #if logic for the case when the functions
70371         exist but are overridden.
70372
70373 2007-03-04  Bruno Haible  <bruno@clisp.org>
70374
70375         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70376         implementations: glibc-2.4 and MacOS X 10.3.
70377         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70378         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70379         * tests/test-vasprintf-posix.c (test_function): Likewise.
70380
70381 2007-03-04  Bruno Haible  <bruno@clisp.org>
70382
70383         * modules/vasprintf-posix-tests: New file.
70384         * tests/test-vasprintf-posix.c: New file.
70385
70386         * modules/vasprintf-posix: New file.
70387         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70388         defined.
70389         * m4/vasprintf-posix.m4: New file.
70390         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70391         gl_FUNC_VASPRINTF.
70392         (gl_FUNC_VASPRINTF): Invoke it.
70393         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70394         here.
70395         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70396
70397 2007-03-04  Bruno Haible  <bruno@clisp.org>
70398
70399         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70400         REPLACE_GETTIMEOFDAY.
70401         * modules/sys_time (Makefile.am): Likewise.
70402         * m4/sys_time_h.m4: Likewise.
70403         * m4/gettimeofday.m4: Likewise.
70404
70405 2007-03-04  Bruno Haible  <bruno@clisp.org>
70406
70407         * modules/vasnprintf-posix-tests: New file.
70408         * tests/test-vasnprintf-posix.c: New file.
70409
70410         * modules/vasnprintf-posix: New file.
70411         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70412         printf-frexpl.h.
70413         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70414         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70415         REPLACE_VASNPRINTF is defined.
70416         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70417         gl_FUNC_VASNPRINTF.
70418         (gl_FUNC_VASNPRINTF): Invoke it.
70419         * m4/vasnprintf-posix.m4: New file.
70420         * m4/printf.m4: New file.
70421
70422 2007-03-04  Bruno Haible  <bruno@clisp.org>
70423
70424         Compile progreloc.c only if --enable-relocatable is specified.
70425         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70426         if --enable-relocatable was specified.
70427         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70428         lib_SOURCES.
70429
70430 2007-03-04  Jim Meyering  <jim@meyering.net>
70431
70432         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70433         Use it consistently, rather than enumerating errno constants.
70434
70435 2007-03-04  Bruno Haible  <bruno@clisp.org>
70436
70437         * modules/xvasprintf-tests: New file.
70438         * tests/test-xvasprintf.c: New file.
70439
70440         * modules/vasprintf-tests: New file.
70441         * tests/test-vasprintf.c: New file.
70442
70443         * modules/vasnprintf-tests: New file.
70444         * tests/test-vasnprintf.c: New file.
70445
70446         * modules/vsnprintf-tests: New file.
70447         * tests/test-vsnprintf.c: New file.
70448
70449         * modules/snprintf-tests: New file.
70450         * tests/test-snprintf.c: New file.
70451
70452 2007-03-04  Bruno Haible  <bruno@clisp.org>
70453
70454         Compile relocatable.c only if --enable-relocatable is specified.
70455         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70456         gl_RELOCATABLE_LIBRARY.
70457         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70458         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70459         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70460         gl_RELOCATABLE_LIBRARY.
70461         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70462         (Makefile.am): Remove lib_SOURCES.
70463         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70464         gl_RELOCATABLE_LIBRARY.
70465         (Makefile.am): Remove lib_SOURCES.
70466         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70467         always.
70468         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70469         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70470
70471 2007-03-04  Bruno Haible  <bruno@clisp.org>
70472
70473         * modules/argmatch-tests: New file.
70474         * tests/test-argmatch.c: New file.
70475
70476         * tests/test-allocsa.c (main): Halve the number of loop runs.
70477
70478         * modules/alloca-opt-tests: New file.
70479         * tests/test-alloca-opt.c: New file.
70480
70481 2007-03-04  Jim Meyering  <jim@meyering.net>
70482
70483         Work around difference between Linux ACLs and Solaris 10 ZFS.
70484         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70485         for EINVAL.
70486
70487 2007-03-03  Bruno Haible  <bruno@clisp.org>
70488
70489         * modules/relocatable-prog (Depends-on): Add back progreloc's
70490         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70491
70492 2007-03-03  Bruno Haible  <bruno@clisp.org>
70493
70494         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70495         * modules/relocatable-lib: New file.
70496
70497 2007-03-03  Bruno Haible  <bruno@clisp.org>
70498
70499         * modules/relocatable-prog: Renamed from modules/relocatable.
70500         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70501
70502 2007-03-03  Bruno Haible  <bruno@clisp.org>
70503
70504         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70505         m4/relocatable-lib.m4.
70506         (Depends-on): Remove 'relocatable'.
70507         (configure.ac): Add gl_RELOCATABLE_NOP.
70508
70509 2007-03-03  Bruno Haible  <bruno@clisp.org>
70510
70511         * modules/relocatable-prog-wrapper: New file.
70512         * modules/relocatable (Depends-on): Add it. Remove all other
70513         dependencies except progname.
70514         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
70515
70516         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
70517         (gl_FUNC_STRERROR): Nop.
70518         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
70519
70520         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
70521         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
70522
70523         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
70524         (gl_FUNC_READLINK): Update.
70525
70526         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
70527
70528 2007-03-03  Bruno Haible  <bruno@clisp.org>
70529
70530         * lib/xreadlink.c: Include <unistd.h> unconditionally.
70531         * modules/xreadlink (Depends-on): Add unistd.
70532         * modules/xreadlink-with-size (Depends-on): Likewise.
70533
70534 2007-03-03  Bruno Haible  <bruno@clisp.org>
70535
70536         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
70537         extracted from gt_FUNC_SETENV.
70538         (gt_FUNC_SETENV): Remove macro.
70539         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
70540         remove gt_FUNC_SETENV.
70541
70542 2007-03-03  Bruno Haible  <bruno@clisp.org>
70543
70544         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
70545         ENABLE_RELOCATABLE here.
70546         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
70547
70548 2007-03-03  Bruno Haible  <bruno@clisp.org>
70549
70550         * modules/rbtreehash-list-tests (Depends-on): Add progname.
70551         * tests/test-rbtreehash_list.c: Include progname.h.
70552         (main): Call set_program_name.
70553
70554         * modules/rbtree-oset-tests (Depends-on): Add progname.
70555         * tests/test-rbtree_oset.c: Include progname.h.
70556         (main): Call set_program_name.
70557
70558         * modules/rbtree-list-tests (Depends-on): Add progname.
70559         * tests/test-rbtree_list.c: Include progname.h.
70560         (main): Call set_program_name.
70561
70562         * modules/linked-list-tests (Depends-on): Add progname.
70563         * tests/test-linked_list.c: Include progname.h.
70564         (main): Call set_program_name.
70565
70566 2007-03-03  Bruno Haible  <bruno@clisp.org>
70567
70568         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
70569         All uses of __restrict changed to _Restrict_.
70570         * lib/glob_.h (__restrict): Remove macro.
70571
70572 2007-03-02  Bruno Haible  <bruno@clisp.org>
70573
70574         * modules/gettext (configure.ac): Require gettext infrastructure
70575         from version 0.16.1.
70576
70577 2007-03-02  Bruno Haible  <bruno@clisp.org>
70578
70579         * modules/linkedhash-list-tests (Depends-on): Add progname.
70580         * tests/test-linkedhash_list.c: Include progname.h.
70581         (main): Call set_program_name.
70582
70583         * modules/carray-list-tests (Depends-on): Add progname.
70584         * tests/test-carray_list.c: Include progname.h.
70585         (main): Call set_program_name.
70586
70587         * modules/avltreehash-list-tests (Depends-on): Add progname.
70588         * tests/test-avltreehash_list.c: Include progname.h.
70589         (main): Call set_program_name.
70590
70591         * modules/avltree-oset-tests (Depends-on): Add progname.
70592         * tests/test-avltree_oset.c: Include progname.h.
70593         (main): Call set_program_name.
70594
70595         * modules/avltree-list-tests (Depends-on): Add progname.
70596         * tests/test-avltree_list.c: Include progname.h.
70597         (main): Call set_program_name.
70598
70599         * modules/array-oset-tests (Depends-on): Add progname.
70600         * tests/test-array_oset.c: Include progname.h.
70601         (main): Call set_program_name.
70602
70603         * modules/array-list-tests (Depends-on): Add progname.
70604         * tests/test-array_list.c: Include progname.h.
70605         (main): Call set_program_name.
70606
70607         * modules/argp-tests (Depends-on): Add progname.
70608         * tests/test-argp.c: Include argp.h first. Include progname.h.
70609         (main): Call set_program_name.
70610
70611 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
70612
70613         * doc/gnulib-tool.texi (Initial import): Reword description of
70614         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
70615         limited effect even if defined after the first system include.
70616
70617 2007-03-01  Bruno Haible  <bruno@clisp.org>
70618
70619         * build-aux/config.libpath: Update to libtool-1.5.22.
70620         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70621
70622 2007-03-01  Bruno Haible  <bruno@clisp.org>
70623
70624         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
70625         foo_CFLAGS.
70626         Reported by Ralf Wildenhues.
70627
70628 2007-03-01  Bruno Haible  <bruno@clisp.org>
70629
70630         * build-aux/install-reloc: Remove object files left over by some
70631         compilers.
70632         Reported by Ralf Wildenhues.
70633
70634 2007-03-01  Bruno Haible  <bruno@clisp.org>
70635
70636         * build-aux/install-reloc: Break long lines.
70637
70638 2007-03-01  Bruno Haible  <bruno@clisp.org>
70639
70640         * doc/relocatable.texi: Document that it may not work on OpenBSD.
70641         Reported by Ralf Wildenhues.
70642
70643 2007-03-01  Bruno Haible  <bruno@clisp.org>
70644
70645         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
70646         include ordering constraints.
70647
70648 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
70649
70650         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
70651         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
70652         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
70653         as another example.
70654         * lib/time_.h: Fix misspelling.
70655         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
70656         Require gl_HEADER_TIME_H_DEFAULTS.
70657         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
70658         * m4/time_r.m4 (gl_TIME_R): Likewise.
70659         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
70660
70661 2007-03-01  Bruno Haible  <bruno@clisp.org>
70662
70663         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
70664         * m4/utimens.m4 (gl_UTIMENS): Likewise.
70665
70666 2007-03-01  Jim Meyering  <jim@meyering.net>
70667
70668         * modules/xreadlink (Maintainer): Add my name.
70669         * modules/xreadlink-with-size (Depends-on): Alphabetize.
70670
70671 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
70672             Bruno Haible  <bruno@clisp.org>
70673
70674         * build-aux/install-reloc: Compile also c-ctype.c.
70675         * build-aux/relocatable.sh.in: New file.
70676         * doc/relocatable.texi: New file.
70677         * doc/relocatable-maint.texi: New file.
70678         * doc/gnulib.texi: Include relocatable-maint.texi.
70679         * lib/progreloc.c: Include unistd.h unconditionally.
70680         * lib/relocwrapper.c: Include unistd.h unconditionally.
70681         Include c-ctype.h.
70682         (add_dotbin): Use c_tolower.
70683         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
70684         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
70685         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
70686         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
70687         to m4/relocatable-lib.m4.
70688         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
70689         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
70690         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
70691         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
70692         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
70693         * modules/relocatable: New file.
70694         * modules/relocatable-lib: New file.
70695         * modules/relocatable-script: New file.
70696
70697 2007-02-28  Bruno Haible  <bruno@clisp.org>
70698
70699         Import --enable-relocatable infrastructure.
70700         * build-aux/config.libpath: New file, from GNU gettext.
70701         * build-aux/install-reloc: New file, from GNU gettext.
70702         * build-aux/reloc-ldflags: New file, from GNU gettext.
70703         * lib/relocatable.h: New file, from GNU gettext.
70704         * lib/relocatable.c: New file, from GNU gettext.
70705         * lib/relocwrapper.c: New file, from GNU gettext.
70706         * m4/relocatable.m4: New file, from GNU gettext.
70707
70708 2007-02-28  Bruno Haible  <bruno@clisp.org>
70709
70710         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
70711
70712         * modules/xreadlink: New file, from GNU gettext with modifications.
70713         * lib/xreadlink.c: New file, from GNU gettext.
70714         * lib/xreadlink.h: Add comments.
70715         (xreadlink): New declaration.
70716
70717         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
70718         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
70719         lib/xreadlink-with-size.c.
70720         (configure.ac): Remove gl_XREADLINK invocation.
70721         (Makefile.am): Augment lib_SOURCES.
70722         * m4/xreadlink.m4: Remove file.
70723         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
70724         (xreadlink_with_size): Renamed from xreadink.
70725         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
70726         * modules/canonicalize (Depends-on): Replace xreadlink with
70727         xreadlink-with-size.
70728         * lib/canonicalize.c (canonicalize_filename_mode): Update.
70729
70730 2007-02-25  Jim Meyering  <jim@meyering.net>
70731
70732         * build-aux/announce-gen: When complaining about excess arguments,
70733         list them.
70734
70735 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
70736
70737         * README: Document signed integer overflow situation more
70738         accurately.
70739
70740 2007-02-25  Bruno Haible  <bruno@clisp.org>
70741
70742         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
70743         'a' or 'A' conversion.
70744
70745 2007-02-25  Bruno Haible  <bruno@clisp.org>
70746
70747         * modules/filename: Renamed from modules/pathname.
70748         (Files): Replace lib/pathname.h with lib/filename.h. Replace
70749         lib/concatpath.c with lib/concat-filename.c.
70750         (Makefile.am): Update.
70751         (Include): Replace pathname.h with filename.h.
70752         * lib/filename.h: Renamed from lib/pathname.h.
70753         (concatenated_filename): Renamed from concatenated_pathname.
70754         * lib/concat-filename.c: Renamed from lib/concatpath.c.
70755         (concatenated_filename): Renamed from concatenated_pathname.
70756         * lib/findprog.c: Include filename.h instead of pathname.h.
70757         (find_in_path): Update.
70758         * lib/javacomp.c: Include filename.h instead of pathname.h.
70759         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
70760         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
70761         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
70762         is_oldgcj_14_13_usable, is_javac_usable): Update.
70763         * lib/javaexec.c: Include filename.h instead of pathname.h.
70764         (execute_java_class): Update.
70765         * modules/findprog: Update.
70766         * modules/javacomp: Update.
70767         * modules/javaexec: Update.
70768         * MODULES.html.sh (File system functions): Add 'filename', remove
70769         'pathname'.
70770
70771 2007-02-25  Bruno Haible  <bruno@clisp.org>
70772
70773         * modules/printf-frexpl-tests: New file.
70774         * tests/test-printf-frexpl.c: New file.
70775
70776         * modules/printf-frexpl: New file.
70777         * lib/printf-frexpl.h: New file.
70778         * lib/printf-frexpl.c: New file.
70779         * m4/printf-frexpl.m4: New file.
70780
70781 2007-02-25  Bruno Haible  <bruno@clisp.org>
70782
70783         * modules/printf-frexp-tests: New file.
70784         * tests/test-printf-frexp.c: New file.
70785
70786         * modules/printf-frexp: New file.
70787         * lib/printf-frexp.h: New file.
70788         * lib/printf-frexp.c: New file.
70789         * m4/printf-frexp.m4: New file.
70790
70791 2007-02-25  Bruno Haible  <bruno@clisp.org>
70792
70793         Assume automake >= 1.10 for the tests.
70794         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
70795         * modules/arctwo-tests: Likewise.
70796         * modules/argp-tests: Likewise.
70797         * modules/avltree-list-tests: Likewise.
70798         * modules/avltree-oset-tests: Likewise.
70799         * modules/avltreehash-list-tests: Likewise.
70800         * modules/carray-list-tests: Likewise.
70801         * modules/crc-tests: Likewise.
70802         * modules/des-tests: Likewise.
70803         * modules/gc-arcfour-tests: Likewise.
70804         * modules/gc-arctwo-tests: Likewise.
70805         * modules/gc-des-tests: Likewise.
70806         * modules/gc-hmac-md5-tests: Likewise.
70807         * modules/gc-hmac-sha1-tests: Likewise.
70808         * modules/gc-md2-tests: Likewise.
70809         * modules/gc-md4-tests: Likewise.
70810         * modules/gc-md5-tests: Likewise.
70811         * modules/gc-pbkdf2-sha1-tests: Likewise.
70812         * modules/gc-rijndael-tests: Likewise.
70813         * modules/gc-sha1-tests: Likewise.
70814         * modules/gc-tests: Likewise.
70815         * modules/getaddrinfo-tests: Likewise.
70816         * modules/hmac-md5-tests: Likewise.
70817         * modules/hmac-sha1-tests: Likewise.
70818         * modules/linked-list-tests: Likewise.
70819         * modules/linkedhash-list-tests: Likewise.
70820         * modules/lock-tests: Likewise.
70821         * modules/md2-tests: Likewise.
70822         * modules/md4-tests: Likewise.
70823         * modules/md5-tests: Likewise.
70824         * modules/rbtree-list-tests: Likewise.
70825         * modules/rbtree-oset-tests: Likewise.
70826         * modules/rbtreehash-list-tests: Likewise.
70827         * modules/read-file-tests: Likewise.
70828         * modules/rijndael-tests: Likewise.
70829         * modules/stdint-tests: Likewise.
70830         * modules/tls-tests: Likewise.
70831
70832 2007-02-24  Bruno Haible  <bruno@clisp.org>
70833
70834         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
70835         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
70836         function; instead check whether isnan with a double argument links.
70837         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
70838         function; instead check whether isnan with a 'long double' argument
70839         links.
70840         Reported by Eric Blake <ebb9@byu.net>.
70841
70842 2007-02-24  Bruno Haible  <bruno@clisp.org>
70843
70844         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
70845         defined.
70846         * lib/isnanl.c: Remove all code. Just include isnan.c.
70847         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
70848
70849 2007-02-25  Jim Meyering  <jim@meyering.net>
70850
70851         Avoid conflicting types for 'unsetenv' on FreeBSD.
70852         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
70853         conflicting with FreeBSD's (5.0 and 6.1) function declaration
70854         in stdlib.h.
70855
70856 2007-02-24  Bruno Haible  <bruno@clisp.org>
70857
70858         * modules/isnanl-nolibm-tests: New file.
70859         * tests/test-isnanl.c: New file.
70860
70861         * modules/isnanl-nolibm: New file.
70862         * lib/isnanl.h: New file.
70863         * lib/isnanl.c: New file.
70864         * m4/isnanl.m4: New file.
70865
70866 2007-02-24  Bruno Haible  <bruno@clisp.org>
70867
70868         * modules/isnan-nolibm-tests: New file.
70869         * tests/test-isnan.c: New file.
70870
70871         * modules/isnan-nolibm: New file.
70872         * lib/isnan.h: New file.
70873         * lib/isnan.c: New file.
70874         * m4/isnan.m4: New file.
70875
70876 2007-02-24  Bruno Haible  <bruno@clisp.org>
70877
70878         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
70879         assume that an exponent fits in 20 bits.
70880
70881 2007-02-24  Jim Meyering  <jim@meyering.net>
70882
70883         * m4/regex.m4: Update the description of the configure-time option,
70884         --without-included-regex, to state accurately what the defaults are,
70885         and perhaps to give people an idea why using this option is risky.
70886
70887 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70888
70889         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
70890         loops on small arguments.  This attempts to avoid the problem
70891         Bruno Haible reported for AIX 4.3.2 in
70892         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
70893
70894 2007-02-23  Bruno Haible  <bruno@clisp.org>
70895
70896         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
70897         Needed for help2man.
70898
70899 2007-02-23  Karl Berry  <karl@gnu.org>
70900
70901         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70902         exists, foo.h should be cvs-ignored, not committed.
70903
70904 2007-02-23  Eric Blake  <ebb9@byu.net>
70905
70906         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70907         * lib/stat-time.h (includes): Likewise.
70908         * lib/utimecmp.c (includes): Likewise.
70909         * lib/utimens.h (includes): Likewise.
70910         * lib/getdate.y (includes): Also include "timespec.h" for use
70911         internal to the module.
70912         * modules/utimens (Depends-on): Revert yesterday's patch.
70913         * modules/nanosleep (Depends-on): Add missing dependency.
70914
70915 2007-02-22  Bruno Haible  <bruno@clisp.org>
70916
70917         * lib/glob.c: Don't include getlogin_r.h.
70918
70919 2007-02-22  Jim Meyering  <jim@meyering.net>
70920
70921         * modules/utimens (Depends-on): Add timespec, required for
70922         utimens.h's inclusion of timespec.h.
70923
70924 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
70925
70926         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
70927         long unreadable paths in GNU/Linux.  Problem reported by Andreas
70928         Schwab in
70929         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
70930         I'll try to think of a better way to fix the Solaris problem.
70931
70932         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
70933         like glibc; on Solaris 10, it fails with errno == EINVAL.
70934         POSIX says the behavior is unspecified if the first argument is NULL,
70935         so play it safe and never pass NULL to the system getcwd.
70936
70937 2007-02-21  Jim Meyering  <jim@meyering.net>
70938
70939         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
70940         of gettimeofday.  It would conflict with the one now always
70941         provided via sys_time_.h.  Reported by Matthew Woehlke, as
70942         an IRIX 6.5 build failure.
70943
70944 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70945
70946         Minor fixups to port to Solaris 10 with Sun C 5.8.
70947         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
70948         * modules/getcwd (Depends-on): Add dirfd.
70949         * lib/putenv.c (putenv): #undef it.
70950         (rpl_putenv): New decl.
70951         (malloc, free): Include <stdlib.h> rather than prototyping separately.
70952
70953 2007-02-20  Bruno Haible  <bruno@clisp.org>
70954
70955         * modules/stdio-tests: New file.
70956         * tests/test-stdio.c: New file.
70957
70958         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
70959         (Depends-on): Add stdio.
70960         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70961         (Include): Use <stdio.h> instead of vsnprintf.h.
70962         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70963         HAVE_DECL_VSNPRINTF.
70964         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
70965
70966         * modules/snprintf (Files): Remove lib/snprintf.h.
70967         (Depends-on): Add stdio.
70968         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70969         (Include): Use <stdio.h> instead of snprintf.h.
70970         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70971         HAVE_DECL_SNPRINTF.
70972         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
70973         * lib/getaddrinfo.c: Likewise.
70974
70975         * modules/stdio: New file.
70976         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70977         * lib/snprintf.h: Remove file.
70978         * lib/vsnprintf.h: Remove file.
70979         * lib/.cppi-disable: Remove snprintf.h.
70980         * m4/stdio_h.m4: New file.
70981         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70982
70983 2007-02-20  Jim Meyering  <jim@meyering.net>
70984
70985         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70986         used by e.g., mingw.  From Bruno Haible.
70987
70988 2007-02-19  Bruno Haible  <bruno@clisp.org>
70989
70990         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70991         warnings.
70992         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70993
70994 2007-02-19  Bruno Haible  <bruno@clisp.org>
70995
70996         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70997         from mingw users.
70998
70999 2007-02-19  Bruno Haible  <bruno@clisp.org>
71000
71001         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71002         warnings.
71003         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71004
71005 2007-02-19  Jim Meyering  <jim@meyering.net>
71006
71007         Don't use FD after a successful "fdopendir (fd)".
71008         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71009         Reset it by calling dirfd on the just-obtained DIR*.
71010
71011         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71012         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71013
71014 2007-02-18  Bruno Haible  <bruno@clisp.org>
71015
71016         * lib/readlink.c: Include <unistd.h>.
71017         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71018         HAVE_READLINK.
71019         * modules/readlink (Depends-on): Add unistd.
71020         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71021         (Include): Add <unistd.h>.
71022
71023         * lib/getlogin_r.h: Remove file.
71024         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71025         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71026         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71027         HAVE_DECL_GETLOGIN_R.
71028         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71029         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71030         (Include): Use <unistd.h> instead of getlogin_r.h.
71031
71032         * lib/getcwd.h: Remove file.
71033         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71034         * lib/xgetcwd.c: Likewise.
71035         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71036         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71037         * modules/getcwd (Files): Remove lib/getcwd.h.
71038         (Depends-on): Add unistd.
71039         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71040         (Include): Use <unistd.h> instad of getcwd.h.
71041
71042         * lib/ftruncate.c: Include <unistd.h> first.
71043         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71044         Set HAVE_FTRUNCATE.
71045         * modules/ftruncate (Depends-on): Add unistd.
71046         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71047
71048         * lib/fchdir.c: Include <unistd.h> first.
71049         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71050         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71051         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71052         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71053         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71054
71055         * lib/dup2.c: Include <unistd.h> first.
71056         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71057         HAVE_DUP2.
71058         * modules/dup2 (Depends-on): Add unistd.
71059         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71060
71061         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71062         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71063         REPLACE_CHOWN. Don't define chown as a macro here.
71064         * modules/chown (Depends-on): Add unistd.
71065         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71066
71067         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71068         Add definition for GL_LINK_WARNING.
71069         (chown, dup2): New declarations.
71070         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71071         link warning.
71072         (ftruncate): New declaration.
71073         (getcwd): New declaration, taken from old getcwd.h.
71074         (getlogin_r): New declaration, taken from old getlogin_r.h.
71075         (readlink): New declaration.
71076         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71077         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71078         (gl_PREREQ_UNISTD): Remove macro.
71079         (gl_UNISTD_MODULE_INDICATOR): New macro.
71080         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71081         many new variables. Don't set UNISTD_H.
71082         * modules/unistd (Description): Change.
71083         (Depends-on): Add link-warning.
71084         (configure.ac): Update.
71085         (Makefile.am): Create unistd.h always. Substitute many new variables
71086         into it.
71087
71088 2007-02-18  Bruno Haible  <bruno@clisp.org>
71089
71090         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71091         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71092         HAVE_GETSUBOPT.
71093         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71094         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71095         * lib/getsubopt.h: Remove file.
71096         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71097         (Depends-on): Add stdlib.
71098         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71099         (Includes): Use <stdlib.h> instead of getsubopt.h.
71100         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71101         Set HAVE_GETSUBOPT.
71102         * lib/getsubopt.c: Don't include getsubopt.h.
71103
71104 2007-02-18  Bruno Haible  <bruno@clisp.org>
71105
71106         * modules/fchdir (Depends-on): Add dup2.
71107
71108 2007-02-18  Bruno Haible  <bruno@clisp.org>
71109
71110         * lib/stdlib_.h: Handle glibc's special invocation convention
71111         specially.
71112
71113 2007-02-18  Bruno Haible  <bruno@clisp.org>
71114
71115         * modules/stdlib-tests: New file.
71116         * tests/test-stdlib.c: New file.
71117
71118         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71119         (Depends-on): Add stdlib.
71120         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71121         (Includes): Use <stdlib.h> instead of mkstemp.h.
71122         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71123         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71124         * lib/mkstemp.c: Don't include mkstemp.h.
71125         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71126         * lib/stdlib--.h: Don't include mkstemp.h.
71127
71128         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71129         (Depends-on): Add stdlib.
71130         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71131         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71132         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71133         HAVE_MKDTEMP.
71134         * lib/mkdtemp.c: Don't include mkdtemp.h.
71135         * lib/clean-temp.c: Don't include mkdtemp.h.
71136
71137         * modules/exit (Files): Remove lib/exit.h.
71138         (Depends-on): Add stdlib.
71139         (Makefile.am): Remove lib_SOURCES.
71140         (Include): Use <stdlib.h> instead of exit.h.
71141         * lib/argmatch.c: Don't include exit.h.
71142         * lib/execute.c: Likewise.
71143         * lib/pagealign_alloc.c: Likewise.
71144         * lib/pipe.c: Likewise.
71145         * lib/wait-process.c: Likewise.
71146         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71147         * lib/exitfail.c: Likewise.
71148         * lib/savewd.c: Likewise.
71149         * lib/xsetenv.c: Likewise.
71150
71151         * modules/stdlib: New file.
71152         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71153         and extra comments about mkstemp().
71154         * lib/exit.h: Remove file.
71155         * lib/mkdtemp.h: Remove file.
71156         * lib/mkstemp.h: Remove file.
71157         * m4/stdlib_h.m4: New file.
71158         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71159
71160 2007-02-18  Bruno Haible  <bruno@clisp.org>
71161
71162         * modules/math-tests: New file.
71163         * tests/test-math.c: New file.
71164
71165         * modules/math: New file.
71166         * modules/mathl (Files): Remove lib/mathl.h.
71167         (Depends-on): Add math.
71168         (Makefile.am): Don't mention mathl.h.
71169         (Include): Use <math.h> instead of mathl.h.
71170         * lib/math_.h: New file.
71171         * lib/mathl.h: Remove file.
71172         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71173         mathl.h.
71174         * lib/asinl.c: Likewise.
71175         * lib/atanl.c: Likewise.
71176         * lib/ceill.c: Likewise.
71177         * lib/cosl.c: Likewise.
71178         * lib/expl.c: Likewise.
71179         * lib/floorl.c: Likewise.
71180         * lib/frexpl.c: Likewise.
71181         * lib/ldexpl.c: Likewise.
71182         * lib/logl.c: Likewise.
71183         * lib/sincosl.c: Likewise.
71184         * lib/sinl.c: Likewise.
71185         * lib/sqrtl.c: Likewise.
71186         * lib/tanl.c: Likewise.
71187         * lib/trigl.c: Likewise.
71188         * m4/math_h.m4: New file.
71189         * MODULES.html.sh (Mathematics): Add math.
71190
71191 2007-02-17  Bruno Haible  <bruno@clisp.org>
71192
71193         * modules/wctype-tests: New file.
71194         * tests/test-wctype.c: New file.
71195
71196         * modules/wchar-tests: New file.
71197         * tests/test-wchar.c: New file.
71198
71199         * modules/unistd-tests: New file.
71200         * tests/test-unistd.c: New file.
71201
71202         * modules/time-tests: New file.
71203         * tests/test-time.c: New file.
71204
71205         * modules/sysexits-tests: New file.
71206         * tests/test-sysexits.c: New file.
71207
71208         * modules/sys_time-tests: New file.
71209         * tests/test-sys_time.c: New file.
71210
71211         * modules/sys_stat-tests: New file.
71212         * tests/test-sys_stat.c: New file.
71213
71214         * modules/sys_socket-tests: New file.
71215         * tests/test-sys_socket.c: New file.
71216
71217         * modules/sys_select-tests: New file.
71218         * tests/test-sys_select.c: New file.
71219
71220         * modules/string-tests: New file.
71221         * tests/test-string.c: New file.
71222
71223         * modules/stdbool-tests: New file.
71224         * tests/test-stdbool.c: New file.
71225
71226         * modules/netinet_in-tests: New file.
71227         * tests/test-netinet_in.c: New file.
71228
71229         * modules/inttypes-tests: New file.
71230         * tests/test-inttypes.c: New file.
71231
71232         * modules/fcntl-tests: New file.
71233         * tests/test-fcntl.c: New file.
71234
71235         * modules/byteswap-tests: New file.
71236         * tests/test-byteswap.c: New file.
71237
71238         * modules/arpa_inet-tests: New file.
71239         * tests/test-arpa_inet.c: New file.
71240
71241 2007-02-17  Bruno Haible  <bruno@clisp.org>
71242
71243         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71244         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71245         if the corresponding module is not enabled. Emit link warnings if
71246         the function is used nevertheless.
71247         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71248         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71249         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71250         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71251         * modules/inttypes (Depends-on): Add link-warning.
71252         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71253         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71254         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71255         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71256         * modules/imaxdiv (configure.ac): Likewise.
71257         * modules/strtoimax (configure.ac): Likewise.
71258         * modules/strtoumax (configure.ac): Likewise.
71259
71260 2007-02-17  Bruno Haible  <bruno@clisp.org>
71261
71262         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71263         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71264         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71265         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71266
71267 2007-02-17  Bruno Haible  <bruno@clisp.org>
71268
71269         * modules/link-warning: New file.
71270         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71271         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71272         * modules/string (Depends-on): Add link-warning.
71273         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71274         string.h.
71275         * MODULES.html.sh (Support for building libraries and executables): Add
71276         link-warning.
71277
71278 2007-02-17  Bruno Haible  <bruno@clisp.org>
71279
71280         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71281         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71282         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71283         long lines.
71284
71285 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71286             Bruno Haible  <bruno@clisp.org>
71287
71288         * modules/tmpfile: New file.
71289         * lib/tmpfile.c: New file.
71290         * m4/tmpfile.m4: New file.
71291         * MODULES.html.sh (func_all_modules): New section "Input/output".
71292
71293 2007-02-15  Bruno Haible  <bruno@clisp.org>
71294
71295         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71296         (supports_delete_on_close): New function.
71297         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71298
71299 2007-02-14  Bruno Haible  <bruno@clisp.org>
71300
71301         * modules/mbspcasecmp-tests: New file.
71302         * tests/test-mbspcasecmp.sh: New file.
71303         * tests/test-mbspcasecmp.c: New file.
71304
71305         New module mbspcasecmp.
71306         * modules/mbspcasecmp: New file.
71307         * lib/mbspcasecmp.c: New file.
71308         * lib/string_.h (strncasecmp): Change warning message.
71309         (mbspcasecmp): New declaration.
71310         * m4/mbspcasecmp.m4: New file.
71311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71312         GNULIB_MBSPCASECMP.
71313         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71314         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71315
71316 2007-02-14  Bruno Haible  <bruno@clisp.org>
71317
71318         * modules/mbsncasecmp-tests: New file.
71319         * tests/test-mbsncasecmp.sh: New file.
71320         * tests/test-mbsncasecmp.c: New file.
71321
71322         New module mbsncasecmp.
71323         * modules/mbsncasecmp: New file.
71324         * lib/mbsncasecmp.c: New file.
71325         * lib/string_.h (mbsncasecmp): New declaration.
71326         * m4/mbsncasecmp.m4: New file.
71327         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71328         GNULIB_MBSNCASECMP.
71329         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71330         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71331
71332 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71333
71334         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71335         Verify that it doesn't overlap with our flags.
71336         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71337         do not have the desired effect in multibyte locales; instead, use
71338         mbscasecmp.
71339         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71340         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71341         we don't require GNU fnmatch ourselves (if our users require it, they
71342         should do so explicitly).
71343
71344         Fix regex code so it doesn't rely on strcasecmp.
71345         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71346         Otherwise, include gnulib's langinfo.h.
71347         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71348         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71349         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71350         * modules/regex (FILES): Remove m4/codeset.m4.
71351         (Depends-on): Add localcharset.  Remove strcase.
71352
71353 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71354
71355         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71356         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71357
71358 2007-02-13  Bruno Haible  <bruno@clisp.org>
71359
71360         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71361         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71362
71363 2007-02-12  Bruno Haible  <bruno@clisp.org>
71364
71365         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71366         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71367         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71368         time warning rather than a link error.
71369
71370 2007-02-12  Bruno Haible  <bruno@clisp.org>
71371
71372         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71373         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71374         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71375
71376 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71377
71378         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71379         args, not 2.
71380
71381 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71382
71383         New module 'time', so that apps can include <time.h> as per
71384         POSIX and GNU instead of separate include files like time_r.h
71385         and timegm.h.  This implementation tries out a simpler approach
71386         for replacing decls in standard include files (as compared to
71387         the string module), somewhat as an experiment.
71388
71389         * config/srclist.txt: Comment out mktime.c for now.
71390         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71391         since it doesn't apply any more.  Use generic wording instead.
71392         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71393         'time'.
71394         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71395         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71396         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71397         Don't include <sys/types.h>; no longer needed since we assume C89.
71398         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71399         * lib/strftime.c: Likewise.
71400         * lib/time_r.c: Likewise.
71401         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71402         * lib/nanosleep.c: Include <time.h> first, to check interface.
71403         * lib/strptime.c: Likewise.
71404         * lib/time_r.c: Likewise.
71405         * lib/timegm.c: Likewise.
71406         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71407         needed.
71408         * lib/timegm.c: Don't include timegm.h; no longer needed.
71409         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71410         time.h now handles any problems in that area.
71411         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71412         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71413         that time.h defines struct timespec.
71414         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71415         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71416         handles that.
71417         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71418         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71419         needed.  Set REPLACE_LOCALTIME.
71420         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71421         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71422         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71423         nanosleep; time_h.m4 now does that.  Don't require
71424         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71425         module handles this now.
71426         * modules/getdate (Depends-on): Remove timespec.  Add time.
71427         * modules/nanosleep (Depends-on): Likewise.
71428         * modules/stat-time (Depends-on): Likewise.
71429         * modules/nanosleep (Include): Include time.h, not timespec.h.
71430         * modules/strptime (Files): Remove lib/strptime.h.
71431         (Depends-on): Add extensions, time.
71432         (Include): Include time.h, not strptime.h.
71433         * modules/time_r (Files): Remove lib/time_r.h.
71434         (Depends-on): Add time.
71435         (Include): Include time.h, not time_r.h.
71436         * modules/timegm: Likewise.
71437         * modules/timespec (Description): Now does timespec-related decls
71438         of our own, instead of struct timespec itself.
71439         (Depends-on): Add time; remove extensions.
71440         (Maintainer): Add self.
71441         * modules/utimecmp (Depends-on): Add time; remove timespec.
71442         * modules/utimens (Depends-on): Likewise.
71443         * modules/xnanosleep (Depends-on): Likewise.
71444
71445 2007-02-11  Bruno Haible  <bruno@clisp.org>
71446
71447         * lib/c-strstr.c: Include allocsa.h.
71448         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71449         * lib/c-strcasestr.c: Include allocsa.h.
71450         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71451         * lib/strcasestr.c: Include allocsa.h.
71452         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71453         * lib/mbsstr.c: Include allocsa.h.
71454         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71455         allocsa/freesa instead of malloc/free.
71456         * lib/mbscasestr.c: Include allocsa.h.
71457         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71458         allocsa/freesa instead of malloc/free.
71459         * modules/c-strstr (Depends-on): Add allocsa.
71460         * modules/c-strcasestr (Depends-on): Likewise.
71461         * modules/strcasestr (Depends-on): Likewise.
71462         * modules/mbsstr (Depends-on): Likewise.
71463         * modules/mbscasestr (Depends-on): Likewise.
71464
71465 2007-02-11  Bruno Haible  <bruno@clisp.org>
71466
71467         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71468
71469         * modules/mbsspn-tests: New file.
71470         * tests/test-mbsspn.sh: New file.
71471         * tests/test-mbsspn.c: New file.
71472
71473 2007-02-11  Bruno Haible  <bruno@clisp.org>
71474
71475         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71476
71477         * modules/mbspbrk-tests: New file.
71478         * tests/test-mbspbrk.sh: New file.
71479         * tests/test-mbspbrk.c: New file.
71480
71481 2007-02-11  Bruno Haible  <bruno@clisp.org>
71482
71483         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71484         unneeded cast.
71485
71486         * modules/mbscspn-tests: New file.
71487         * tests/test-mbscspn.sh: New file.
71488         * tests/test-mbscspn.c: New file.
71489
71490 2007-02-11  Bruno Haible  <bruno@clisp.org>
71491
71492         * modules/mbscasecmp-tests: New file.
71493         * tests/test-mbscasecmp.sh: New file.
71494         * tests/test-mbscasecmp.c: New file.
71495
71496 2007-02-11  Bruno Haible  <bruno@clisp.org>
71497
71498         Ensure O(n) worst-case complexity of mbscasestr.
71499         * lib/mbscasestr.c: Include stdbool.h.
71500         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71501         functions.
71502         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71503         the bookkeeping indicates that it's worth it.
71504         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71505
71506         * modules/mbscasestr-tests: New file.
71507         * tests/test-mbscasestr1.c: New file.
71508         * tests/test-mbscasestr2.sh: New file.
71509         * tests/test-mbscasestr2.c: New file.
71510         * tests/test-mbscasestr3.sh: New file.
71511         * tests/test-mbscasestr3.c: New file.
71512         * tests/test-mbscasestr4.sh: New file.
71513         * tests/test-mbscasestr4.c: New file.
71514         * m4/locale-tr.m4: New file.
71515
71516 2007-02-11  Bruno Haible  <bruno@clisp.org>
71517
71518         Ensure O(n) worst-case complexity of mbsstr.
71519         * lib/mbsstr.c: Include stdbool.h.
71520         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71521         functions.
71522         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
71523         bookkeeping indicates that it's worth it.
71524         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
71525
71526         * modules/mbsstr-tests: New file.
71527         * tests/test-mbsstr1.c: New file.
71528         * tests/test-mbsstr2.sh: New file.
71529         * tests/test-mbsstr2.c: New file.
71530         * tests/test-mbsstr3.sh: New file.
71531         * tests/test-mbsstr3.c: New file.
71532         * m4/locale-fr.m4: New file.
71533
71534 2007-02-11  Bruno Haible  <bruno@clisp.org>
71535
71536         * lib/mbsrchr.c (mbsrchr): Fix bug.
71537
71538         * modules/mbsrchr-tests: New file.
71539         * tests/test-mbsrchr.sh: New file.
71540         * tests/test-mbsrchr.c: New file.
71541
71542 2007-02-11  Bruno Haible  <bruno@clisp.org>
71543
71544         * lib/mbschr.c (mbschr): Fix bug.
71545
71546         * modules/mbschr-tests: New file.
71547         * tests/test-mbschr.sh: New file.
71548         * tests/test-mbschr.c: New file.
71549         * m4/locale-zh.m4: New file.
71550
71551 2007-02-11  Bruno Haible  <bruno@clisp.org>
71552
71553         Support for copying multibyte string iterators.
71554         * lib/mbiter.h: Include <string.h>.
71555         (mbiter_multi_copy): New function.
71556         (mbi_copy): New macro.
71557         * lib/mbuiter.h: Include <string.h>.
71558         (mbuiter_multi_copy): New function.
71559         (mbui_copy): New macro.
71560
71561 2007-02-11  Bruno Haible  <bruno@clisp.org>
71562
71563         New module mbslen.
71564         * modules/mbslen: New file.
71565         * lib/mbslen.c: New file.
71566         * lib/string_.h (mbslen): New declaration.
71567         * m4/mbslen.m4: New file.
71568         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71569         GNULIB_MBSLEN.
71570         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
71571         * MODULES.html.sh (Internationalization functions): Add mbslen.
71572
71573 2007-02-11  Bruno Haible  <bruno@clisp.org>
71574
71575         Ensure O(n) worst-case complexity of strcasestr substitute.
71576         * lib/strcasestr.c: Include stdbool.h.
71577         (knuth_morris_pratt): New function.
71578         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71579         bookkeeping indicates that it's worth it.
71580         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
71581
71582         * modules/strcasestr-tests: New file.
71583         * tests/test-strcasestr.c: New file.
71584
71585 2007-02-11  Bruno Haible  <bruno@clisp.org>
71586
71587         Ensure O(n) worst-case complexity of c_strcasestr.
71588         * lib/c-strcasestr.c: Include stdbool.h, string.h.
71589         (knuth_morris_pratt): New function.
71590         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
71591         the bookkeeping indicates that it's worth it.
71592         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
71593
71594         * modules/c-strcasestr-tests: New file.
71595         * tests/test-c-strcasestr.c: New file.
71596
71597 2007-02-11  Bruno Haible  <bruno@clisp.org>
71598
71599         Ensure O(n) worst-case complexity of c_strstr.
71600         * lib/c-strstr.c: Include stdbool.h, string.h.
71601         (knuth_morris_pratt): New function.
71602         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
71603         bookkeeping indicates that it's worth it.
71604         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
71605
71606         * lib/c-strstr.c: Complete rewrite for maintainability.
71607
71608         * modules/c-strstr-tests: New file.
71609         * tests/test-c-strstr.c: New file.
71610
71611 2007-02-11  Bruno Haible  <bruno@clisp.org>
71612
71613         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
71614         5.2.1 and earlier, whereby \055 was treated just like the range
71615         delimiter '-'.
71616         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
71617
71618 2007-02-08  Bruno Haible  <bruno@clisp.org>
71619
71620         * modules/regex (Depends-on): Add stdbool.
71621         Reported by Dalibor Topic <robilad@kaffe.org>.
71622
71623 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
71624
71625         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
71626         Prefer returning from main to exiting from it.
71627         Remove unnecessary parens after sizeof.
71628
71629 2007-02-05  Bruno Haible  <bruno@clisp.org>
71630
71631         New module mbssep.
71632         * modules/mbssep: New file.
71633         * lib/mbssep.c: New file.
71634         * lib/string_.h (strsep): Add a conditional link warning.
71635         (mbssep): New declaration.
71636         * m4/mbssep.m4: New file.
71637         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71638         GNULIB_MBSSEP.
71639         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
71640         * MODULES.html.sh (Internationalization functions): Add mbssep.
71641
71642 2007-02-05  Bruno Haible  <bruno@clisp.org>
71643
71644         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
71645         Optimize search in case of 1 delimiter.
71646
71647 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71648
71649         * lib/acl.h: Include sys/types.h before sys/acl.h.
71650
71651 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
71652
71653         Merge upstream fix for glibc bugzilla #3957:
71654
71655         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
71656
71657         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
71658         bit for RE_HAT_LISTS_NOT_NEWLINE.
71659         (build_charclass_op): Remove bogus comment.
71660
71661 2007-02-05  Simon Josefsson  <simon@josefsson.org>
71662
71663         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
71664
71665 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71666
71667         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
71668         * lib/memmem.c [!defined _LIBC]: Include config.h.
71669
71670 2007-02-04  Bruno Haible  <bruno@clisp.org>
71671
71672         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
71673         warning message.
71674
71675 2007-02-04  Bruno Haible  <bruno@clisp.org>
71676
71677         New module mbstok_r.
71678         * modules/mbstok_r: New file.
71679         * lib/mbstok_r.c: New file.
71680         * lib/string_.h (strtok_r): Change argument names to match the
71681         comments. Add a conditional link warning.
71682         (mbstok_r): New declaration.
71683         * m4/mbstok_r.m4: New file.
71684         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71685         GNULIB_MBSTOK_R.
71686         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
71687         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
71688
71689 2007-02-04  Bruno Haible  <bruno@clisp.org>
71690
71691         New module mbsspn.
71692         * modules/mbsspn: New file.
71693         * lib/mbsspn.c: New file.
71694         * lib/string_.h (strspn): Add a conditional link warning.
71695         (mbsspn): New declaration.
71696         * m4/mbsspn.m4: New file.
71697         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71698         GNULIB_MBSSPN.
71699         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
71700         * MODULES.html.sh (Internationalization functions): Add mbsspn.
71701
71702 2007-02-04  Bruno Haible  <bruno@clisp.org>
71703
71704         New module mbspbrk.
71705         * modules/mbspbrk: New file.
71706         * lib/mbspbrk.c: New file.
71707         * lib/string_.h (strpbrk): Add a conditional link warning.
71708         (mbspbrk): New declaration.
71709         * m4/mbspbrk.m4: New file.
71710         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71711         GNULIB_MBSPBRK.
71712         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
71713         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
71714
71715 2007-02-04  Bruno Haible  <bruno@clisp.org>
71716
71717         New module mbscspn.
71718         * modules/mbscspn: New file.
71719         * lib/mbscspn.c: New file.
71720         * lib/string_.h (strcspn): Add a conditional link warning.
71721         (mbscspn): New declaration.
71722         * m4/mbscspn.m4: New file.
71723         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71724         GNULIB_MBSCSPN.
71725         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
71726         * MODULES.html.sh (Internationalization functions): Add mbscspn.
71727
71728 2007-02-04  Bruno Haible  <bruno@clisp.org>
71729
71730         New module mbscasestr, reduced goal of strcasestr.
71731         * modules/mbscasestr: New file.
71732         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
71733         (mbscasestr): Renamed from strcasestr.
71734         * lib/strcasestr.c: Don't include mbuiter.h.
71735         (strcasestr): Remove support for multibyte locales.
71736         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
71737         Change the conditional link warning.
71738         (mbscasestr): New declaration.
71739         * m4/mbscasestr.m4: New file.
71740         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
71741         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
71742         REPLACE_STRCASESTR.
71743         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
71744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71745         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71746         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
71747         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
71748         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
71749         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
71750         (Depends-on): Remove mbuiter.
71751         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
71752
71753 2007-02-04  Bruno Haible  <bruno@clisp.org>
71754
71755         Simplify handling of strncasecmp.
71756         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
71757         the conditional link warning.
71758         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
71759         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
71760         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
71761         * modules/strcase (configure.ac): Don't invoke
71762         gl_STRING_MODULE_INDICATOR.
71763         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
71764
71765 2007-02-04  Bruno Haible  <bruno@clisp.org>
71766
71767         New module mbscasecmp, reduced goal of strcasecmp.
71768         * modules/mbscasecmp: New file.
71769         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
71770         (mbscasecmp): Renamed from strcasecmp.
71771         * lib/strcasecmp.c: Don't include mbuiter.h.
71772         (strcasecmp): Remove support for multibyte locales.
71773         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
71774         Change the conditional link warning.
71775         (mbscasecmp): New declaration.
71776         * m4/mbscasecmp.m4: New file.
71777         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
71778         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
71779         REPLACE_STRCASECMP.
71780         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
71781         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71782         GNULIB_MBSCASECMP.
71783         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
71784         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
71785         * modules/strcase (Files): Remove m4/mbrtowc.m4.
71786         (Depends-on): Remove mbuiter.
71787         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
71788
71789 2007-02-04  Bruno Haible  <bruno@clisp.org>
71790
71791         New module mbsstr. Remove module strstr.
71792         * modules/mbsstr: New file.
71793         * modules/strstr: Remove file.
71794         * lib/mbsstr.c: Renamed from lib/strstr.c.
71795         (mbsstr): Renamed from strstr.
71796         * lib/string_.h (strstr): Remove declaration. Change the conditional
71797         link warning.
71798         (mbsstr): New declaration.
71799         * m4/mbsstr.m4: New file.
71800         * m4/strstr.m4: Remove file.
71801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
71802         REPLACE_STRSTR.
71803         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
71804         Don't initialize GNULIB_STRSTR.
71805         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
71806         substitute GNULIB_STRSTR and REPLACE_STRSTR.
71807         * MODULES.html.sh (Internationalization functions): Add mbsstr.
71808         (Support for systems lacking ANSI C 89): Remove strstr.
71809
71810 2007-02-04  Bruno Haible  <bruno@clisp.org>
71811
71812         New module mbsrchr.
71813         * modules/mbsrchr: New file.
71814         * lib/mbsrchr.c: New file.
71815         * lib/string_.h (strrchr): Add a conditional link warning.
71816         (mbsrchr): New declaration.
71817         * m4/mbsrchr.m4: New file.
71818         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71819         GNULIB_MBSRCHR.
71820         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
71821         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
71822
71823 2007-02-04  Bruno Haible  <bruno@clisp.org>
71824
71825         New module mbschr.
71826         * modules/mbschr: New file.
71827         * lib/mbschr.c: New file.
71828         * lib/string_.h (strchr): Add a conditional link warning.
71829         (mbschr): New declaration.
71830         * m4/mbschr.m4: New file.
71831         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71832         GNULIB_MBSCHR.
71833         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
71834         * MODULES.html.sh (Internationalization functions): Add mbschr.
71835
71836 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71837
71838         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
71839
71840         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
71841
71842 2007-02-04  Bruno Haible  <bruno@clisp.org>
71843
71844         New module description section 'configure.ac-early'.
71845         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
71846         (func_get_autoconf_early_snippet): New function.
71847         (func_import, func_create_testdir): Use it. Remove special cases for
71848         modules 'extensions' and 'lock'.
71849         * modules/extensions (configure.ac-early): Require
71850         gl_USE_SYSTEM_EXTENSIONS.
71851         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
71852
71853 2007-02-04  Bruno Haible  <bruno@clisp.org>
71854
71855         Make use of gcj-4.3's -fsource and -ftarget option.
71856         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
71857         and if so try the options -fsource and -ftarget.
71858         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
71859         source_version, ftarget_option, target_version arguments.
71860         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
71861         (is_envjavac_oldgcj_14_14_usable): Renamed from
71862         is_envjavac_gcj_14_14_usable.
71863         (is_envjavac_oldgcj_14_13_usable): Renamed from
71864         is_envjavac_gcj_14_13_usable.
71865         (is_gcj_present): Update.
71866         (is_gcj_43, is_gcj43_usable): New functions.
71867         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
71868         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
71869         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
71870         try the options -fsource and -ftarget.
71871
71872 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71873
71874         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
71875         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
71876         larger value.
71877
71878 2007-02-03  Jim Meyering  <jim@meyering.net>
71879
71880         Give tools a better chance to allocate space for very large buffers.
71881         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
71882
71883         Make pwd and readlink work also when run with an unreadable parent dir
71884         on systems with openat support.
71885         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
71886         provided getcwd function, even when we have openat support.
71887         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
71888
71889 2007-02-02  Bruno Haible  <bruno@clisp.org>
71890
71891         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71892         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
71893         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
71894         portability problems if one of these functions is only used on specific
71895         platforms.
71896         Reported by Paul Eggert.
71897
71898 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71899
71900         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71901         is causing more trouble than it's curing.
71902         * lib/regex_internal.h (__mempcpy): Remove.
71903         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71904         (and make the code a tad smaller to boot).
71905         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71906
71907 2007-02-02  Jim Meyering  <jim@meyering.net>
71908
71909         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71910         section, not in the Makefile.am: one.
71911
71912 2007-02-02  Eric Blake  <ebb9@byu.net>
71913
71914         * lib/strchrnul.c: Always include config.h first.
71915
71916         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71917         gnulib strstr is not necessary here.
71918
71919 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71920
71921         * m4/socklen.m4: Fix typo.
71922
71923 2007-02-02  Eric Blake  <ebb9@byu.net>
71924
71925         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
71926         * modules/netinet_in (Makefile.am): Likewise.
71927
71928 2007-02-01  Bruno Haible  <bruno@clisp.org>
71929
71930         * lib/string_.h (GL_LINK_WARNING): New macro.
71931         (strcasecmp, strstr, strcasestr): If provided by the system,
71932         conditionally define as a macro that leads to a warning instead of to
71933         an error.
71934         (strncasecmp): Conditionally define as a macro that leads to a warning.
71935
71936 2007-02-01  Karl Berry  <karl@gnu.org>
71937
71938         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
71939
71940 2007-02-01  Bruno Haible  <bruno@clisp.org>
71941
71942         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
71943         renamings.
71944
71945 2007-02-01  Eric Blake  <ebb9@byu.net>
71946
71947         * modules/regex (Depends-on): Revert dependence on mempcpy.
71948         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
71949         module's definition of mempcpy.
71950         Reported by Paul Eggert.
71951
71952 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71953
71954         * lib/string_.h: If the gnulib module XYZ is not present, undefine
71955         the symbol XYZ before redefining it.  This fixes a problem with
71956         programs that don't use XYZ, when compiled on systems that define
71957         XYZ to something else.
71958
71959 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
71960
71961         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
71962         occurs when "mkdir -m foo" creates a setgid directory that is (1)
71963         writeable to group or other and (2) is intended to have a special
71964         mode bit that is set or cleared.  In such a case, the directory
71965         should be neither group- nor other-writeable until the special
71966         mode bits are right.
71967
71968 2007-01-31  Eric Blake  <ebb9@byu.net>
71969
71970         * modules/mountlist (Depends-on): Add strstr.
71971
71972         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
71973         bug.
71974         * modules/string (Makefile.am): Remove redundant replacement.
71975         * modules/regex (Depends-on): Add mempcpy.
71976
71977 2007-01-31  Bruno Haible  <bruno@clisp.org>
71978
71979         New module description field 'Link'.
71980         * gnulib-tool (func_usage): Document --extract-link-directive.
71981         (sed_extract_prog): Recognize 'Link' directive.
71982         (func_get_link_directive): New function.
71983         (func_import): Show summary of link directives.
71984         Handle --extract-link-directive option.
71985         * modules/acl (Link): New section.
71986         * modules/clock-time (Link): New section.
71987         * modules/euidaccess (Link): New section.
71988         * modules/gettext (Link): New section.
71989         * modules/iconv (Link): New section.
71990         * modules/lock (Link): New section.
71991         * modules/nanosleep (Link): New section.
71992         * modules/readline (Link): New section.
71993
71994 2007-01-27  Bruno Haible  <bruno@clisp.org>
71995
71996         Enforce the use of gnulib modules for unportable <string.h> functions.
71997         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71998         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71999         (gl_HEADER_STRING_H_BODY): Require it.
72000         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72001         the symbol XYZ to one that gives a link error.
72002         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72003         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72004         * modules/mempcpy (configure.ac): Likewise.
72005         * modules/memrchr (configure.ac): Likewise.
72006         * modules/stpcpy (configure.ac): Likewise.
72007         * modules/stpncpy (configure.ac): Likewise.
72008         * modules/strcase (configure.ac): Likewise.
72009         * modules/strcasestr (configure.ac): Likewise.
72010         * modules/strchrnul (configure.ac): Likewise.
72011         * modules/strdup (configure.ac): Likewise.
72012         * modules/strndup (configure.ac): Likewise.
72013         * modules/strnlen (configure.ac): Likewise.
72014         * modules/strpbrk (configure.ac): Likewise.
72015         * modules/strsep (configure.ac): Likewise.
72016         * modules/strstr (configure.ac): Likewise.
72017         * modules/strtok_r (configure.ac): Likewise.
72018
72019 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72020
72021         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72022
72023 2007-01-30  Jim Meyering  <jim@meyering.net>
72024
72025         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72026
72027 2007-01-29  Bruno Haible  <bruno@clisp.org>
72028
72029         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72030         * lib/execute.c: Likewise.
72031         * lib/pipe.c: Likewise.
72032         * lib/printf-args.h: Likewise.
72033         * lib/printf-args.c: Likewise.
72034         * lib/printf-parse.c: Likewise.
72035         * lib/vasnprintf.c: Likewise.
72036
72037 2007-01-29  Eric Blake  <ebb9@byu.net>
72038
72039         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72040         declaration.
72041
72042 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72043
72044         * lib/strptime.h (strptime): Use 'restrict' for args where
72045         POSIX requires this.
72046         * lib/strptime.c (strptime): Likewise.
72047         Change license notice from LGPL to GPL, since gnulib-tool will
72048         change this as needed.
72049         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72050         defined.
72051         Include "strptime.h" first, to check interface.
72052         Do not #undef _LIBC and _NL_CURRENT.
72053         Do not include <stdlib.h>; no longer needed.
72054         Include "time_r.h" and declare ptime_locale_status
72055         only if _LIBC is not defined.
72056         (__P): Remove unused macro.
72057         (match_string): Bring back glibc version, but use it only if _LIBC
72058         is defined.
72059         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72060         Remove unnecessary assertion and abort() call.
72061         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72062         * m4/strptime.m4: Fix serial number comment.
72063         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72064         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72065         (Depends-on): Add time_r.
72066
72067 2007-01-29  Bruno Haible  <bruno@clisp.org>
72068
72069         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72070         strptime.
72071         * modules/strptime (Depends-on): Add stdbool.
72072         * lib/strptime.h: Include <time.h> always. Add comments.
72073
72074 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72075
72076         * modules/strptime: New file.
72077         * lib/strptime.h: New file.
72078         * lib/strptime.c: New file.
72079         * m4/strptime.m4: New file.
72080
72081 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72082
72083         * MODULES.html.sh: New module mpsort.
72084         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72085
72086         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72087         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72089         All uses changed.
72090         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72091         All uses changed.
72092         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72093         to _Restrict_.
72094         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72095         the parameter matches the prototype.
72096
72097 2007-01-28  Jim Meyering  <jim@meyering.net>
72098
72099         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72100         sys/time.h here, reverting that part of the previous patch:
72101         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72102
72103 2007-01-28  Bruno Haible  <bruno@clisp.org>
72104
72105         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72106         value of $(SYS_TIME_H).
72107         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72108         remove it conditionally, too. [added by Jim Meyering]
72109         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72110         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72111         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72112         GETTIMEOFDAY_REPLACEMENT to 1.
72113
72114 2007-01-28  Bruno Haible  <bruno@clisp.org>
72115
72116         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72117         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72118         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72119         Set UNISTD_H instead of UNISTD_H2.
72120         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72121
72122 2007-01-28  Bruno Haible  <bruno@clisp.org>
72123
72124         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72125         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72126
72127 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72128
72129         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72130         (func_create_testdir): Ensure C locale for `grep' and `tr'
72131         character ranges.
72132         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72133         ACLOCAL_AMFLAGS parsing state machine.
72134
72135 2007-01-27  Bruno Haible  <bruno@clisp.org>
72136
72137         * modules/unistr/base: Update.
72138
72139 2007-01-27  Bruno Haible  <bruno@clisp.org>
72140
72141         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72142         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72143         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72144         modules/unistr/u32-mbtouc.
72145         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72146         * lib/unistr.h: Update.
72147         * lib/linebreak.c: Update.
72148         * modules/unistr/u32-mbtouc: Renamed from
72149         modules/unistr/u32-mbtouc-safe.
72150         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72151         * lib/unistr.h: Update.
72152         * lib/unistr/u32-to-u8.c: Update.
72153         * lib/unistr/u32-to-u16.c: Update.
72154
72155 2007-01-27  Bruno Haible  <bruno@clisp.org>
72156
72157         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72158         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72159         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72160         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72161         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72162         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72163         modules/unistr/u16-mbtouc.
72164         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72165         * lib/unistr.h: Update.
72166         * lib/linebreak.c: Update.
72167         * modules/linebreak: Update.
72168         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72169         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72170         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72171         * modules/unistr/u16-mbtouc: Renamed from
72172         modules/unistr/u16-mbtouc-safe.
72173         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72174         * lib/unistr.h: Update.
72175         * lib/unistr/u16-to-u8.c: Update.
72176         * modules/unistr/u16-to-u8: Update.
72177         * lib/unistr/u16-to-u32.c: Update.
72178         * modules/unistr/u16-to-u32: Update.
72179
72180 2007-01-27  Bruno Haible  <bruno@clisp.org>
72181
72182         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72183         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72184         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72185         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72186         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72187         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72188         modules/unistr/u8-mbtouc.
72189         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72190         * lib/unistr.h: Update.
72191         * lib/striconveh.c: Update.
72192         * modules/striconveh: Update.
72193         * lib/linebreak.c: Update.
72194         * modules/linebreak: Update.
72195         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72196         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72197         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72198         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72199         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72200         * lib/unistr.h: Update.
72201         * lib/striconveh.c: Update.
72202         * modules/striconveh: Update.
72203         * lib/unistr/u8-to-u16.c: Update.
72204         * modules/unistr/u8-to-u16: Update.
72205         * lib/unistr/u8-to-u32.c: Update.
72206         * modules/unistr/u8-to-u32: Update.
72207
72208 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72209
72210         Sync from Libtool.
72211         * lib/argz.c: Do not include strings.h nor memory.h, include
72212         string.h unconditionally.  Patch by Simon Josefsson.
72213
72214 2007-01-27  Bruno Haible  <bruno@clisp.org>
72215
72216         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72217         from gl_HEADER_STRING_H_BODY.
72218         (gl_HEADER_STRING_H_BODY): Require it.
72219         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72220         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72221         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72222         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72223         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72224         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72225         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72226         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72227         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72228         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72229         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72230         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72231         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72232         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72233         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72234
72235 2007-01-27  Bruno Haible  <bruno@clisp.org>
72236
72237         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72238         check_PROGRAMS into noinst_PROGRAMS.
72239         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72240         check_PROGRAMS in this case.
72241         (func_import): Set for_test to false.
72242         (func_create_testdir): Set for_test to true.
72243
72244 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72245             Bruno Haible  <bruno@clisp.org>
72246
72247         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72248         (Depends-on): Add string.
72249         (Includes): Use <string.h> instead of strcasestr.h.
72250         * modules/string (Makefile.am): Also substitute the value of
72251         REPLACE_STRCASESTR.
72252         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72253         assume strcasestr is declared in <string.h> not <strings.h>. Also
72254         set REPLACE_STRCASESTR.
72255         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72256         REPLACE_STRCASESTR.
72257         * lib/strcasestr.h: Remove file.
72258         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72259         * lib/string_.h (strcasestr): New declaration.
72260
72261 2007-01-27  Bruno Haible  <bruno@clisp.org>
72262
72263         * lib/string_.h: Use 'extern'.
72264
72265 2007-01-27  Jim Meyering  <jim@meyering.net>
72266
72267         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72268         of set-but-not-used local, "q".
72269
72270         * lib/mempcpy.c: Include <config.h> before <string.h>.
72271         This fixes a compilation error on HP-UX, due to the system's
72272         "restrict"-using mempcpy prototype.
72273
72274 2007-01-26  Bruno Haible  <bruno@clisp.org>
72275
72276         Small optimization.
72277         * lib/javacomp.c: Include c-strstr.h.
72278          (is_envjavac_gcj): Use c_strstr instead of strstr.
72279         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72280
72281 2007-01-26  Bruno Haible  <bruno@clisp.org>
72282
72283         * MODULES.html.sh (Unicode string functions): Add the new modules.
72284
72285         * modules/uniconv/u32-strconv-to-locale: New file.
72286         * lib/uniconv/u32-strconv-to-locale.c: New file.
72287
72288         * modules/uniconv/u16-strconv-to-locale: New file.
72289         * lib/uniconv/u16-strconv-to-locale.c: New file.
72290
72291         * modules/uniconv/u8-strconv-to-locale: New file.
72292         * lib/uniconv/u8-strconv-to-locale.c: New file.
72293
72294         * modules/uniconv/u32-strconv-from-locale: New file.
72295         * lib/uniconv/u32-strconv-from-locale.c: New file.
72296
72297         * modules/uniconv/u16-strconv-from-locale: New file.
72298         * lib/uniconv/u16-strconv-from-locale.c: New file.
72299
72300         * modules/uniconv/u8-strconv-from-locale: New file.
72301         * lib/uniconv/u8-strconv-from-locale.c: New file.
72302
72303         * modules/uniconv/u32-strconv-to-enc: New file.
72304         * lib/uniconv/u32-strconv-to-enc.c: New file.
72305         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72306         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72307
72308         * modules/uniconv/u16-strconv-to-enc: New file.
72309         * lib/uniconv/u16-strconv-to-enc.c: New file.
72310         * lib/uniconv/u-strconv-to-enc.h: New file.
72311         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72312         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72313
72314         * modules/uniconv/u8-strconv-to-enc: New file.
72315         * lib/uniconv/u8-strconv-to-enc.c: New file.
72316         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72317         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72318
72319         * modules/uniconv/u32-strconv-from-enc: New file.
72320         * lib/uniconv/u32-strconv-from-enc.c: New file.
72321         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72322         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72323
72324         * modules/uniconv/u16-strconv-from-enc: New file.
72325         * lib/uniconv/u16-strconv-from-enc.c: New file.
72326         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72327         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72328
72329         * modules/uniconv/u8-strconv-from-enc: New file.
72330         * lib/uniconv/u8-strconv-from-enc.c: New file.
72331         * lib/uniconv/u-strconv-from-enc.h: New file.
72332         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72333         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72334
72335         * modules/uniconv/u32-conv-from-enc: New file.
72336         * lib/uniconv/u32-conv-from-enc.c: New file.
72337         * modules/uniconv/u32-conv-from-enc-tests: New file.
72338         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72339
72340         * modules/uniconv/u16-conv-from-enc: New file.
72341         * lib/uniconv/u16-conv-from-enc.c: New file.
72342         * lib/uniconv/u-conv-from-enc.h: New file.
72343         * modules/uniconv/u16-conv-from-enc-tests: New file.
72344         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72345
72346         * modules/uniconv/u8-conv-from-enc: New file.
72347         * lib/uniconv/u8-conv-from-enc.c: New file.
72348         * modules/uniconv/u8-conv-from-enc-tests: New file.
72349         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72350
72351         * modules/uniconv/base: New file.
72352         * lib/uniconv.h: New file.
72353
72354 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72355
72356         * doc/gnulib-tool.texi (Initial import): Update to match current
72357         behavior with strdup module.
72358         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72359         * lib/memmem.h: Remove; all uses removed.  This is now done
72360         by <string.h>.
72361         * lib/mempcpy.h: Likewise.
72362         * lib/memrchr.h: Likewise.
72363         * lib/stpcpy.h: Likewise.
72364         * lib/stpncpy.h: Likewise.
72365         * lib/strcase.h: Likewise.
72366         * lib/strchrnul.h: Likewise.
72367         * lib/strdup.h: Likewise.
72368         * lib/strndup.h: Likewise.
72369         * lib/strnlen.h: Likewise.
72370         * lib/strpbrk.h: Likewise.
72371         * lib/strsep.h: Likewise.
72372         * lib/strstr.h: Likewise.
72373         * lib/strtok_r.h: Likewise.
72374         * lib/string_.h: New file.
72375         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72376         Rely on <string.h> instead.
72377         * lib/canon-host.c: Likewise.
72378         * lib/chdir-long.c: Likewise.
72379         * lib/concatpath.c: Likewise.
72380         * lib/exclude.c: Likewise.
72381         * lib/fchdir.c: Likewise.
72382         * lib/getaddrinfo.c: Likewise.
72383         * lib/getcwd.c: Likewise.
72384         * lib/getsubopt.c: Likewise.
72385         * lib/glob.c: Likewise.
72386         * lib/hard-locale.c: Likewise.
72387         * lib/iconvme.c: Likewise.
72388         * lib/javacomp.c: Likewise.
72389         * lib/mempcpy.c: Likewise.
72390         * lib/memrchr.c: Likewise.
72391         * lib/regex_internal.h: Likewise.
72392         * lib/stpncpy.c: Likewise.
72393         * lib/strcasecmp.c: Likewise.
72394         * lib/strchrnul.c: Likewise.
72395         * lib/strdup.c: Likewise.
72396         * lib/striconv.c: Likewise.
72397         * lib/striconveh.c: Likewise.
72398         * lib/striconveha.c: Likewise.
72399         * lib/strncasecmp.c: Likewise.
72400         * lib/strndup.c: Likewise.
72401         * lib/strnlen.c: Likewise.
72402         * lib/strsep.c: Likewise.
72403         * lib/strstr.c: Likewise.
72404         * lib/strtok_r.c: Likewise.
72405         * lib/userspec.c: Likewise.
72406         * lib/w32spawn.h: Likewise.
72407         * lib/xstrndup.c: Likewise.
72408         * lib/mountlist.c (strstr): Remove decl.
72409         * m4/string_h.m4: New file.
72410         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72411         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72412         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72413         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72414         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72415         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72416         Set REPLACE_STRCASECMP if necessary.
72417         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72418         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72419         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72420         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72421         HAVE_DECL_STRDUP if necessary.
72422         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72423         since gl_FUNC_STRNDUP does that now.
72424         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72425         Check for decl here...
72426         (gl_PREREQ_STRNLEN): ... not here.
72427         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72428         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72429         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72430         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72431         necessary.
72432         * modules/string: New file.
72433         * modules/memmem (Files): Remove special-purpose include file.
72434         (Depends-on): Add string.
72435         (Include): Include <string.h>, not the removed file.
72436         * modules/mempcpy: Likewise.
72437         * modules/memrchr: Likewise.
72438         * modules/stpcpy: Likewise.
72439         * modules/stpncpy: Likewise.
72440         * modules/strcase: Likewise.
72441         * modules/strchrnul: Likewise.
72442         * modules/strdup: Likewise.
72443         * modules/strndup: Likewise.
72444         * modules/strnlen: Likewise.
72445         * modules/strpbrk: Likewise.
72446         * modules/strsep: Likewise.
72447         * modules/strstr: Likewise.
72448         * modules/strtok_r: Likewise.
72449         * tests/test-dirname.c: Don't include "strdup.h", since
72450         <string.h> now suffices.
72451         * tests/test-memmem.c: Don't include "memmem.h", since
72452         <string.h> now suffices.
72453
72454 2007-01-25  Bruno Haible  <bruno@clisp.org>
72455
72456         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72457         *resultp is 0.
72458
72459         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72460         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72461         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72462         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72463
72464         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72465         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72466         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72467         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72468         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72469         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72470
72471 2007-01-24  Bruno Haible  <bruno@clisp.org>
72472
72473         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72474         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72475         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72476         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72477         gl_FUNC_FTS_CORE.
72478         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72479         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72480         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72481         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72482         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72483         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72484         gl_FUNC_FCHOWNAT.
72485         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72486         gl_FUNC_STRFTIME.
72487         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72488         Reported by Ralf Wildenhues.
72489
72490 2007-01-24  Bruno Haible  <bruno@clisp.org>
72491
72492         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72493         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72494         gl_GETADDRINFO.
72495         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72496         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72497         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72498
72499 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72500
72501         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72502         Don't use 'exit'; just return from 'main'.
72503         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72504
72505         * lib/fnmatch_.h: Readjust white space and comments to match
72506         glibc, to avoid spurious diffs.
72507
72508 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72509
72510         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
72511         2004-12-01 change by Jakub Jelinek, since this code won't compile
72512         if !LIBC.  Problem reported by Bob Proulx.
72513
72514 2007-01-23  Bruno Haible  <bruno@clisp.org>
72515
72516         * lib/striconveh.c: Include c-strcaseeq.h.
72517         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
72518         * modules/striconveh (Depends-on): Add c-strcaseeq.
72519
72520 2007-01-23  Bruno Haible  <bruno@clisp.org>
72521
72522         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
72523
72524         * modules/c-strcaseeq: New file.
72525         * lib/c-strcaseeq.h: New file.
72526
72527         * modules/streq: New file.
72528         * lib/streq.h: New file.
72529
72530 2007-01-23  Bruno Haible  <bruno@clisp.org>
72531
72532         * modules/striconveha-tests: New file.
72533         * tests/test-striconveha.c: New file.
72534
72535         * lib/striconveha.h: Include <stdbool.h>.
72536         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
72537         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
72538         (mem_iconveha_notranslit): Renamed from mem_iconveha.
72539         (mem_iconveha): New function.
72540         (str_iconveha_notranslit): Renamed from str_iconveha.
72541         (str_iconveha): New function.
72542         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
72543         c-strcase.
72544
72545 2007-01-23  Bruno Haible  <bruno@clisp.org>
72546
72547         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
72548         encodings without forgiving before trying any encoding with handler.
72549         (str_iconveha): Try all encodings without forgiving before trying any
72550         encoding with handler.
72551
72552 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
72553
72554         Import the following changes from libc.
72555
72556         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
72557
72558         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
72559
72560         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
72561
72562         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
72563         normal_bracket label.
72564
72565         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
72566
72567         [BZ #361]
72568         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
72569         to normal_bracket after fetching the next character.
72570
72571 2007-01-22  Bruno Haible  <bruno@clisp.org>
72572
72573         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
72574         argument.
72575         * lib/striconveh.c (iconv_carefully_1): New function.
72576         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
72577         argument.
72578         (str_cd_iconveh): Update.
72579         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
72580         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
72581         * tests/test-striconveh.c (MAGIC): New macro.
72582         (new_offsets): New function.
72583         (main): Test call with and without offsets.
72584
72585 2007-01-22  Bruno Haible  <bruno@clisp.org>
72586
72587         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
72588         * modules/sys_select (Makefile.am): Likewise.
72589         * modules/sys_socket (Makefile.am): Likewise.
72590         * modules/sys_time (Makefile.am): Likewise.
72591
72592 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
72593
72594         * modules/gettimeofday (License): Change from GPL to LGPL, since
72595         gettimeofday is a library function.
72596
72597 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72598
72599         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
72600
72601 2007-01-21  Bruno Haible  <bruno@clisp.org>
72602
72603         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
72604
72605 2007-01-21  Bruno Haible  <bruno@clisp.org>
72606
72607         * modules/striconveha: New file.
72608         * lib/striconveha.h: New file.
72609         * lib/striconveha.c: New file.
72610         * MODULES.html.sh (Internationalization functions): Add striconveha.
72611         * lib/striconv.c (str_iconv): Optimize the case of an empty input
72612         string.
72613         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
72614
72615 2007-01-21  Bruno Haible  <bruno@clisp.org>
72616
72617         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
72618         * lib/striconveh.c (str_iconveh): Likewise.
72619
72620 2007-01-21  Bruno Haible  <bruno@clisp.org>
72621
72622         * lib/striconveh.h (mem_iconveh): New declaration.
72623         * lib/striconveh.c (mem_iconveh): New function.
72624         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
72625
72626 2007-01-21  Bruno Haible  <bruno@clisp.org>
72627
72628         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
72629
72630         * lib/striconveh.h (mem_cd_iconveh): Change specification.
72631         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
72632         original result buffer.
72633         (str_cd_iconveh): Update.
72634         * tests/test-striconveh.c (main): Update.
72635
72636         * lib/striconv.h (mem_cd_iconv): Change specification.
72637         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
72638         result buffer.
72639         (str_cd_iconv): Update.
72640         * tests/test-striconv.c (main): Update.
72641
72642 2007-01-21  Bruno Haible  <bruno@clisp.org>
72643
72644         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
72645
72646 2007-01-20  Jim Meyering  <jim@meyering.net>
72647
72648         * lib/userspec.c (parse_with_separator): If a user or group string
72649         starts with "+", skip the corresponding name-to-ID look-up, since
72650         such a look-up must fail: user and group names may not include "+".
72651
72652 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
72653
72654         * lib/poll.c: Include sys/time.h and time.h unconditionally,
72655         since we now assume the sys_time module.
72656         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
72657         check for sys/time.h; no longer needed.
72658         * modules/poll (Depends-on): Depend on sys_time.
72659
72660 2007-01-18  Bruno Haible  <bruno@clisp.org>
72661
72662         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
72663         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72664
72665         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
72666         gettimeofday.
72667
72668         * tests/test-gettimeofday.c: Include <time.h>.
72669         (dummy): Remove variable.
72670
72671         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
72672         gl_HEADER_SYS_TIME_H.
72673         (gl_HEADER_SYS_TIME_H): New macro.
72674
72675         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
72676         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72677         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
72678         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
72679         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72680         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
72681         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
72682         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72683         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
72684         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
72685         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72686
72687         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
72688         last change; it caused a compilation error when cross-compiling to
72689         Cygwin.
72690
72691 2007-01-18  Jim Meyering  <jim@meyering.net>
72692
72693         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
72694         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
72695         than the race-prone "test -d sys || mkdir sys".
72696         (configure.ac): Use AC_PROG_MKDIR_P.
72697         * modules/sys_select: Likewise.
72698         * modules/sys_socket: Likewise.
72699         * modules/sys_time: Likewise.
72700
72701 2007-01-18  Eric Blake  <ebb9@byu.net>
72702
72703         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
72704         replace gettimeofday.
72705         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
72706         name, to avoid infinite recursion.
72707
72708 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
72709
72710         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
72711         module sys_time.
72712         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
72713         assume timespec.h defines struct timeval.
72714         * lib/settime.c: Likewise.
72715         * lib/utimens.c: Likewise.
72716         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
72717         since we now assume the gettimeofday module.
72718         * lib/tempname.c (__gen_tempname): Likewise.
72719         * lib/gettimeofday.h: Remove.
72720         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
72721         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
72722         Include <time.h>, for 'time()'.
72723         (localtime_buffer_addr): Also use this workaround if
72724         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
72725         to simplify the uses.  All uses changed.
72726         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
72727         that #undef is inside {}, and 'const' follows type name consistently.
72728         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
72729         (gettimeofday): Do not use the maximum possible value for
72730         tv->tv_usec, since that might break usages other than ls.c.
72731         Instead, we'll leave ls.c alone.  This undoes today's patch
72732         by Bruno.  Add a compile-time warning for 1s-clock resolution;
72733         we've never observed the problem but might as well keep the
72734         canary.
72735         * lib/nanosleep.c: Include timespec.h first, for interface check.
72736         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
72737         now assume the sys_time module.
72738         * lib/tempname.c: Likewise.
72739         * lib/timespec.h: Likewise.
72740         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
72741         needed.
72742         * lib/strftime.c: Likewise.
72743         * lib/timespec.h: Likewise.
72744         * lib/posixtm.c: Include posixtm.h first, for interface check.
72745         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
72746         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
72747         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
72748         * lib/sys_time_.h: New file.
72749         * lib/timespec.h (struct timespec): Use long int, not long.
72750         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72751         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
72752         Remove obsolescent call to AC_HEADER_TIME.
72753         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
72754         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
72755         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
72756         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
72757         Likewise.
72758         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
72759         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
72760         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
72761         into the sys_time module.  Check for gettimeofday just once.
72762         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
72763         for gettimeofday signature to just check the signature.  Merely
72764         compile it, since linking doesn't test signature.  Improve test for
72765         whether gettimeofday.o is actually needed.
72766         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
72767         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
72768         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
72769         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72770         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
72771         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
72772         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
72773         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
72774         than worrying about sys/time.h.
72775         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
72776         Don't bother worrying about TIME_WITH_SYS_TIME.
72777         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
72778         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
72779         * m4/sys_time_h.m4: New file.
72780         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
72781         Don't include sys/time.h.  Return from main rather than exiting.
72782         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
72783         all uses changed.
72784         * modules/gethrxtime (Depends-on): Add sys_time.
72785         * modules/gettime (Depends-on): Likewise.
72786         * modules/gettimeofday (Depends-on): Likewise.
72787         * modules/nanosleep (Depends-on): Likewise.
72788         * modules/settime (Depends-on): Likewise.
72789         * modules/tempname (Depends-on): Likewise.
72790         * modules/utimens (Depends-on): Likewise.
72791         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
72792         (Include): Change back to <sys/time.h>.
72793         (Maintainer): Add self.
72794         * modules/sys_time: New file.
72795         * modules/tempname (Depends-on): Add gettimeofday.
72796         * tests/test-gettimeofday.c: Include <sys/time.h>
72797         rather than gettimeofday.h.
72798
72799 2007-01-17  Bruno Haible  <bruno@clisp.org>
72800
72801         * gnulib-tool (func_get_license): Revert last patch. Instead, let
72802         the license default to GPL.
72803         (func_create_testdir): Don't complain if a module is LGPL and its
72804         tests module depends on GPLed modules.
72805
72806 2007-01-17  Bruno Haible  <bruno@clisp.org>
72807
72808         * lib/gettimeofday.c (gettimeofday): Add code for the case
72809         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
72810         maximum possible value for tv->tv_usec, rather than the minimum one.
72811
72812 2005-10-08  Martin Lambers  <marlam@marlam.de>
72813 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
72814 2007-01-16  Bruno Haible  <bruno@clisp.org>
72815
72816         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
72817         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
72818         gl_FUNC_GETTIMEOFDAY.
72819         (Include): Add gettimeofday.h.
72820         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
72821         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
72822         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
72823         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
72824         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
72825         * lib/gettimeofday.h: New file.
72826         * lib/gettimeofday.c: Include <sys/timeb.h>.
72827         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
72828         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72829         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
72830         fall back on time().
72831
72832         * tests/test-gettimeofday.c: New file.
72833         * modules/gettimeofday-tests: New file.
72834
72835 2007-01-16  Eric Blake  <ebb9@byu.net>
72836
72837         * modules/fnmatch (Depends-on): Depend on wchar.
72838         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
72839         * m4/fnmatch.m4: Likewise.
72840         * modules/mbchar (Makefile.am): Assume <wchar.h>.
72841         * m4/mbchar.m4: Likewise.
72842         * modules/mbswidth (Depends-on): Depend on wchar.
72843         * lib/mbswidth.c: Assume <wchar.h>.
72844         * m4/mbswidth.m4: Likewise.
72845         * modules/quotearg (Depends-on): Depend on wchar.
72846         * lib/quotearg.c: Assume <wchar.h>.
72847         * m4/quotearg.m4: Likewise.
72848         * modules/regex (Depends-on): Depend on wchar.
72849         * lib/regex_internal.h: Assume <wchar.h>.
72850         * m4/regex.m4: Likewise.
72851         * modules/stdint (Depends-on): Depend on wchar.
72852         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
72853         * m4/stdint.m4: Likewise.
72854         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
72855         * modules/strftime (Depends-on): Depend on wchar.
72856         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
72857         * modules/strtol (Depends-on): Depend on wchar.
72858         * lib/strtol.c: Assume <wchar.h>.
72859         * modules/wcwidth (Depends-on): Depend on wchar.
72860         * lib/wcwidth.h: Assume <wchar.h>.
72861         * m4/wcwidth.m4: Likewise.
72862
72863 2007-01-16  Bruno Haible  <bruno@clisp.org>
72864
72865         * modules/csharpexec-script: New, created from...
72866         * modules/csharpexec: ... this.
72867
72868 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
72869
72870         * modules/javaexec-script: New, created from...
72871         * modules/javaexec: ... this.
72872
72873 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72874
72875         * modules/poll (Dependencies): Add sys_select.
72876
72877 2007-01-15  Jim Meyering  <jim@meyering.net>
72878
72879         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
72880         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
72881         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
72882         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
72883
72884 2007-01-15  Bruno Haible  <bruno@clisp.org>
72885
72886         * modules/striconveh: New file.
72887         * lib/striconveh.h: New file.
72888         * lib/striconveh.c: New file.
72889         * MODULES.html.sh (Internationalization functions): Add striconveh.
72890
72891         * modules/striconveh-tests: New file.
72892         * tests/test-striconveh.c: New file.
72893
72894 2007-01-15  Bruno Haible  <bruno@clisp.org>
72895
72896         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
72897         not from GNU libiconv or GNU libc.
72898
72899 2007-01-15  Bruno Haible  <bruno@clisp.org>
72900
72901         * doc/gnulib-intro.texi (Copyright): Explain the different license
72902         terms for module descriptions, autoconf macros, tests, documentation.
72903
72904 2007-01-14  Bruno Haible  <bruno@clisp.org>
72905
72906         * modules/striconv-tests: New file.
72907         * tests/test-striconv.c: New file.
72908
72909 2007-01-14  Bruno Haible  <bruno@clisp.org>
72910
72911         * modules/iconv-tests: New file.
72912         * tests/test-iconv.c: New file.
72913
72914 2007-01-14  Bruno Haible  <bruno@clisp.org>
72915
72916         * gnulib-tool (func_get_license): For test modules, use the license of
72917         the main module.
72918
72919 2007-01-14  Bruno Haible  <bruno@clisp.org>
72920
72921         * modules/iconv (Include): Clarify that <iconv.h> can only be included
72922         if iconv is found to exist.
72923
72924 2007-01-14  Bruno Haible  <bruno@clisp.org>
72925
72926         * modules/c-ctype-tests: New file.
72927         * tests/test-c-ctype.c: New file.
72928
72929 2007-01-14  Bruno Haible  <bruno@clisp.org>
72930
72931         * modules/binary-io-tests: New file.
72932         * tests/test-binary-io.sh: New file.
72933         * tests/test-binary-io.c: New file.
72934
72935 2007-01-14  Bruno Haible  <bruno@clisp.org>
72936
72937         * modules/array-oset-tests: New file.
72938         * tests/test-array_oset.c: New file.
72939
72940 2007-01-14  Bruno Haible  <bruno@clisp.org>
72941
72942         * modules/array-list-tests: New file.
72943         * tests/test-array_list.c: New file.
72944
72945 2007-01-14  Bruno Haible  <bruno@clisp.org>
72946
72947         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
72948         and make.
72949         Reported by Simon Josefsson in
72950         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
72951
72952 2007-01-14  Bruno Haible  <bruno@clisp.org>
72953
72954         * modules/allocsa-tests: New file.
72955         * tests/test-allocsa.c: New file.
72956
72957 2007-01-14  Bruno Haible  <bruno@clisp.org>
72958
72959         * modules/fchdir (Depends-on): Add absolute-header.
72960         * modules/unistd (Depends-on): Likewise.
72961
72962 2006-12-30  Bruno Haible  <bruno@clisp.org>
72963
72964         * modules/fchdir: New file.
72965         * modules/unistd (Files): Add lib/unistd_.h.
72966         (Makefile.am): Generate unistd.h from unistd_.h.
72967         * lib/fchdir.c: New file.
72968         * lib/dirent_.h: New file.
72969         * lib/unistd_.h: New file.
72970         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
72971         * m4/fchdir.m4: New file.
72972         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
72973         (gl_HEADER_UNISTD): Invoke it.
72974         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72975         function.
72976         * lib/backupfile.c (opendir, closedir): Undefine.
72977         * lib/chown.c (open, close): Undefine.
72978         * lib/clean-temp.c (open, close): Undefine.
72979         * lib/copy-file.c (open, close): Undefine.
72980         * lib/execute.c (open, close): Undefine.
72981         * lib/fsusage.c (open, close): Undefine.
72982         * lib/gc-gnulib.c (open, close): Undefine.
72983         * lib/getcwd.c (opendir, closedir): Undefine.
72984         * lib/glob.c (opendir, closedir): Undefine.
72985         * lib/javacomp.c (open, close): Undefine.
72986         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72987         * lib/openat-proc.c (open, close): Undefine.
72988         * lib/pagealign_alloc.c (open, close): Undefine.
72989         * lib/pipe.c (open, close): Undefine.
72990         * lib/progreloc.c (open, close): Undefine.
72991         * lib/savedir.c (opendir, closedir): Undefine.
72992         * lib/utime.c (open, close): Undefine.
72993         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72994
72995 2007-01-10  Bruno Haible  <bruno@clisp.org>
72996
72997         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72998
72999 2007-01-12  Eric Blake  <ebb9@byu.net>
73000
73001         Provide a robust <wchar.h>.  Further simplifications are now
73002         possible in other modules, but not included here.
73003         * modules/wchar: New module.
73004         * m4/wchar.m4: New file.
73005         * lib/wchar_.h: Likewise.
73006         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73007         of the new module.
73008         * MODULES.html.sh (Extended multibyte and wide character utilities):
73009         New section.
73010
73011 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73012
73013         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73014         to a reasonable default for memory allocation.
73015         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73016         file system that reports garbage st_size values for symlinks.
73017         Problem reported by Liyang Hu.
73018
73019 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73020
73021         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73022         Emacs .#* auto-save files).
73023
73024 2007-01-11  Bruno Haible  <bruno@clisp.org>
73025
73026         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73027         directory.
73028
73029 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73030
73031         Use @...@ consistently in lib/wctype_.h.
73032         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73033         on it being set to 1 or 0.
73034         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73035         go back to AC_SUBSTing it.
73036         * modules/wctype (Makefile.am): Undo previous change.
73037
73038 2007-01-10  Eric Blake  <ebb9@byu.net>
73039
73040         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73041         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73042         * modules/wctype (Makefile.am): Likewise.
73043         Reported by Chris McGuire.
73044
73045 2007-01-10  Jim Meyering  <jim@meyering.net>
73046
73047         fts.c: a small readability/maintainability improvement
73048         * lib/fts.c (fts_read): Make this code slightly more readable and
73049         maintainable by hoisting the "sp->fts_cur = p" assignments to
73050         immediately follow the statements that set P.  Derived from
73051         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73052
73053 2007-01-10  Eric Blake  <ebb9@byu.net>
73054
73055         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73056         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73057         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73058         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73059         Reported by Chris McGuire.
73060
73061 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73062
73063         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73064         in sed script.
73065
73066 2007-01-09  Bruno Haible  <bruno@clisp.org>
73067
73068         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73069         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73070         variables.
73071         (func_module): Use them.
73072
73073 2007-01-09  Bruno Haible  <bruno@clisp.org>
73074
73075         * modules/unistr/base: New file.
73076         * lib/unistr.h: New file.
73077
73078         * modules/unistr/u8-to-u16: New file.
73079         * lib/unistr/u8-to-u16.c: New file.
73080
73081         * modules/unistr/u8-to-u32: New file.
73082         * lib/unistr/u8-to-u32.c: New file.
73083
73084         * modules/unistr/u16-to-u8: New file.
73085         * lib/unistr/u16-to-u8.c: New file.
73086
73087         * modules/unistr/u16-to-u32: New file.
73088         * lib/unistr/u16-to-u32.c: New file.
73089
73090         * modules/unistr/u32-to-u8: New file.
73091         * lib/unistr/u32-to-u8.c: New file.
73092
73093         * modules/unistr/u32-to-u16: New file.
73094         * lib/unistr/u32-to-u16.c: New file.
73095
73096         * modules/unistr/u8-check: New file.
73097         * modules/unistr/u16-check: New file.
73098         * modules/unistr/u32-check: New file.
73099         * lib/unistr/u8-check.c: New file.
73100         * lib/unistr/u16-check.c: New file.
73101         * lib/unistr/u32-check.c: New file.
73102
73103         * modules/unistr/u8-chr: New file.
73104         * modules/unistr/u16-chr: New file.
73105         * modules/unistr/u32-chr: New file.
73106         * lib/unistr/u8-chr.c: New file.
73107         * lib/unistr/u16-chr.c: New file.
73108         * lib/unistr/u32-chr.c: New file.
73109
73110         * modules/unistr/u8-cmp: New file.
73111         * modules/unistr/u16-cmp: New file.
73112         * modules/unistr/u32-cmp: New file.
73113         * lib/unistr/u8-cmp.c: New file.
73114         * lib/unistr/u16-cmp.c: New file.
73115         * lib/unistr/u32-cmp.c: New file.
73116
73117         * modules/unistr/u8-cpy: New file.
73118         * modules/unistr/u16-cpy: New file.
73119         * modules/unistr/u32-cpy: New file.
73120         * lib/unistr/u8-cpy.c: New file.
73121         * lib/unistr/u16-cpy.c: New file.
73122         * lib/unistr/u32-cpy.c: New file.
73123         * lib/unistr/u-cpy.h: New file.
73124
73125         * modules/unistr/u8-cpy-alloc: New file.
73126         * modules/unistr/u16-cpy-alloc: New file.
73127         * modules/unistr/u32-cpy-alloc: New file.
73128         * lib/unistr/u8-cpy-alloc.c: New file.
73129         * lib/unistr/u16-cpy-alloc.c: New file.
73130         * lib/unistr/u32-cpy-alloc.c: New file.
73131         * lib/unistr/u-cpy-alloc.h: New file.
73132
73133         * modules/unistr/u8-endswith: New file.
73134         * modules/unistr/u16-endswith: New file.
73135         * modules/unistr/u32-endswith: New file.
73136         * lib/unistr/u8-endswith.c: New file.
73137         * lib/unistr/u16-endswith.c: New file.
73138         * lib/unistr/u32-endswith.c: New file.
73139         * lib/unistr/u-endswith.h: New file.
73140
73141         * modules/unistr/u8-mblen: New file.
73142         * modules/unistr/u16-mblen: New file.
73143         * modules/unistr/u32-mblen: New file.
73144         * lib/unistr/u8-mblen.c: New file.
73145         * lib/unistr/u16-mblen.c: New file.
73146         * lib/unistr/u32-mblen.c: New file.
73147
73148         * modules/unistr/u8-mbtouc: New file.
73149         * modules/unistr/u16-mbtouc: New file.
73150         * modules/unistr/u32-mbtouc: New file.
73151         * lib/unistr/u8-mbtouc.c: New file.
73152         * lib/unistr/u16-mbtouc.c: New file.
73153         * lib/unistr/u32-mbtouc.c: New file.
73154
73155         * modules/unistr/u8-mbtouc-safe: New file.
73156         * modules/unistr/u16-mbtouc-safe: New file.
73157         * modules/unistr/u32-mbtouc-safe: New file.
73158         * lib/unistr/u8-mbtouc-safe.c: New file.
73159         * lib/unistr/u16-mbtouc-safe.c: New file.
73160         * lib/unistr/u32-mbtouc-safe.c: New file.
73161
73162         * modules/unistr/u8-move: New file.
73163         * modules/unistr/u16-move: New file.
73164         * modules/unistr/u32-move: New file.
73165         * lib/unistr/u8-move.c: New file.
73166         * lib/unistr/u16-move.c: New file.
73167         * lib/unistr/u32-move.c: New file.
73168         * lib/unistr/u-move.h: New file.
73169
73170         * modules/unistr/u8-next: New file.
73171         * modules/unistr/u16-next: New file.
73172         * modules/unistr/u32-next: New file.
73173         * lib/unistr/u8-next.c: New file.
73174         * lib/unistr/u16-next.c: New file.
73175         * lib/unistr/u32-next.c: New file.
73176
73177         * modules/unistr/u8-prev: New file.
73178         * modules/unistr/u16-prev: New file.
73179         * modules/unistr/u32-prev: New file.
73180         * lib/unistr/u8-prev.c: New file.
73181         * lib/unistr/u16-prev.c: New file.
73182         * lib/unistr/u32-prev.c: New file.
73183
73184         * modules/unistr/u8-set: New file.
73185         * modules/unistr/u16-set: New file.
73186         * modules/unistr/u32-set: New file.
73187         * lib/unistr/u8-set.c: New file.
73188         * lib/unistr/u16-set.c: New file.
73189         * lib/unistr/u32-set.c: New file.
73190         * lib/unistr/u-set.h: New file.
73191
73192         * modules/unistr/u8-startswith: New file.
73193         * modules/unistr/u16-startswith: New file.
73194         * modules/unistr/u32-startswith: New file.
73195         * lib/unistr/u8-startswith.c: New file.
73196         * lib/unistr/u16-startswith.c: New file.
73197         * lib/unistr/u32-startswith.c: New file.
73198         * lib/unistr/u-startswith.h: New file.
73199
73200         * modules/unistr/u8-stpcpy: New file.
73201         * modules/unistr/u16-stpcpy: New file.
73202         * modules/unistr/u32-stpcpy: New file.
73203         * lib/unistr/u8-stpcpy.c: New file.
73204         * lib/unistr/u16-stpcpy.c: New file.
73205         * lib/unistr/u32-stpcpy.c: New file.
73206         * lib/unistr/u-stpcpy.h: New file.
73207
73208         * modules/unistr/u8-stpncpy: New file.
73209         * modules/unistr/u16-stpncpy: New file.
73210         * modules/unistr/u32-stpncpy: New file.
73211         * lib/unistr/u8-stpncpy.c: New file.
73212         * lib/unistr/u16-stpncpy.c: New file.
73213         * lib/unistr/u32-stpncpy.c: New file.
73214         * lib/unistr/u-stpncpy.h: New file.
73215
73216         * modules/unistr/u8-strcat: New file.
73217         * modules/unistr/u16-strcat: New file.
73218         * modules/unistr/u32-strcat: New file.
73219         * lib/unistr/u8-strcat.c: New file.
73220         * lib/unistr/u16-strcat.c: New file.
73221         * lib/unistr/u32-strcat.c: New file.
73222         * lib/unistr/u-strcat.h: New file.
73223
73224         * modules/unistr/u8-strchr: New file.
73225         * modules/unistr/u16-strchr: New file.
73226         * modules/unistr/u32-strchr: New file.
73227         * lib/unistr/u8-strchr.c: New file.
73228         * lib/unistr/u16-strchr.c: New file.
73229         * lib/unistr/u32-strchr.c: New file.
73230
73231         * modules/unistr/u8-strcmp: New file.
73232         * modules/unistr/u16-strcmp: New file.
73233         * modules/unistr/u32-strcmp: New file.
73234         * lib/unistr/u8-strcmp.c: New file.
73235         * lib/unistr/u16-strcmp.c: New file.
73236         * lib/unistr/u32-strcmp.c: New file.
73237
73238         * modules/unistr/u8-strcpy: New file.
73239         * modules/unistr/u16-strcpy: New file.
73240         * modules/unistr/u32-strcpy: New file.
73241         * lib/unistr/u8-strcpy.c: New file.
73242         * lib/unistr/u16-strcpy.c: New file.
73243         * lib/unistr/u32-strcpy.c: New file.
73244         * lib/unistr/u-strcpy.h: New file.
73245
73246         * modules/unistr/u8-strcspn: New file.
73247         * modules/unistr/u16-strcspn: New file.
73248         * modules/unistr/u32-strcspn: New file.
73249         * lib/unistr/u8-strcspn.c: New file.
73250         * lib/unistr/u16-strcspn.c: New file.
73251         * lib/unistr/u32-strcspn.c: New file.
73252         * lib/unistr/u-strcspn.h: New file.
73253
73254         * modules/unistr/u8-strdup: New file.
73255         * modules/unistr/u16-strdup: New file.
73256         * modules/unistr/u32-strdup: New file.
73257         * lib/unistr/u8-strdup.c: New file.
73258         * lib/unistr/u16-strdup.c: New file.
73259         * lib/unistr/u32-strdup.c: New file.
73260         * lib/unistr/u-strdup.h: New file.
73261
73262         * modules/unistr/u8-strlen: New file.
73263         * modules/unistr/u16-strlen: New file.
73264         * modules/unistr/u32-strlen: New file.
73265         * lib/unistr/u8-strlen.c: New file.
73266         * lib/unistr/u16-strlen.c: New file.
73267         * lib/unistr/u32-strlen.c: New file.
73268         * lib/unistr/u-strlen.h: New file.
73269
73270         * modules/unistr/u8-strmblen: New file.
73271         * modules/unistr/u16-strmblen: New file.
73272         * modules/unistr/u32-strmblen: New file.
73273         * lib/unistr/u8-strmblen.c: New file.
73274         * lib/unistr/u16-strmblen.c: New file.
73275         * lib/unistr/u32-strmblen.c: New file.
73276
73277         * modules/unistr/u8-strmbtouc: New file.
73278         * modules/unistr/u16-strmbtouc: New file.
73279         * modules/unistr/u32-strmbtouc: New file.
73280         * lib/unistr/u8-strmbtouc.c: New file.
73281         * lib/unistr/u16-strmbtouc.c: New file.
73282         * lib/unistr/u32-strmbtouc.c: New file.
73283
73284         * modules/unistr/u8-strncat: New file.
73285         * modules/unistr/u16-strncat: New file.
73286         * modules/unistr/u32-strncat: New file.
73287         * lib/unistr/u8-strncat.c: New file.
73288         * lib/unistr/u16-strncat.c: New file.
73289         * lib/unistr/u32-strncat.c: New file.
73290         * lib/unistr/u-strncat.h: New file.
73291
73292         * modules/unistr/u8-strncmp: New file.
73293         * modules/unistr/u16-strncmp: New file.
73294         * modules/unistr/u32-strncmp: New file.
73295         * lib/unistr/u8-strncmp.c: New file.
73296         * lib/unistr/u16-strncmp.c: New file.
73297         * lib/unistr/u32-strncmp.c: New file.
73298
73299         * modules/unistr/u8-strncpy: New file.
73300         * modules/unistr/u16-strncpy: New file.
73301         * modules/unistr/u32-strncpy: New file.
73302         * lib/unistr/u8-strncpy.c: New file.
73303         * lib/unistr/u16-strncpy.c: New file.
73304         * lib/unistr/u32-strncpy.c: New file.
73305         * lib/unistr/u-strncpy.h: New file.
73306
73307         * modules/unistr/u8-strnlen: New file.
73308         * modules/unistr/u16-strnlen: New file.
73309         * modules/unistr/u32-strnlen: New file.
73310         * lib/unistr/u8-strnlen.c: New file.
73311         * lib/unistr/u16-strnlen.c: New file.
73312         * lib/unistr/u32-strnlen.c: New file.
73313         * lib/unistr/u-strnlen.h: New file.
73314
73315         * modules/unistr/u8-strpbrk: New file.
73316         * modules/unistr/u16-strpbrk: New file.
73317         * modules/unistr/u32-strpbrk: New file.
73318         * lib/unistr/u8-strpbrk.c: New file.
73319         * lib/unistr/u16-strpbrk.c: New file.
73320         * lib/unistr/u32-strpbrk.c: New file.
73321         * lib/unistr/u-strpbrk.h: New file.
73322
73323         * modules/unistr/u8-strrchr: New file.
73324         * modules/unistr/u16-strrchr: New file.
73325         * modules/unistr/u32-strrchr: New file.
73326         * lib/unistr/u8-strrchr.c: New file.
73327         * lib/unistr/u16-strrchr.c: New file.
73328         * lib/unistr/u32-strrchr.c: New file.
73329
73330         * modules/unistr/u8-strspn: New file.
73331         * modules/unistr/u16-strspn: New file.
73332         * modules/unistr/u32-strspn: New file.
73333         * lib/unistr/u8-strspn.c: New file.
73334         * lib/unistr/u16-strspn.c: New file.
73335         * lib/unistr/u32-strspn.c: New file.
73336         * lib/unistr/u-strspn.h: New file.
73337
73338         * modules/unistr/u8-strstr: New file.
73339         * modules/unistr/u16-strstr: New file.
73340         * modules/unistr/u32-strstr: New file.
73341         * lib/unistr/u8-strstr.c: New file.
73342         * lib/unistr/u16-strstr.c: New file.
73343         * lib/unistr/u32-strstr.c: New file.
73344         * lib/unistr/u-strstr.h: New file.
73345
73346         * modules/unistr/u8-strtok: New file.
73347         * modules/unistr/u16-strtok: New file.
73348         * modules/unistr/u32-strtok: New file.
73349         * lib/unistr/u8-strtok.c: New file.
73350         * lib/unistr/u16-strtok.c: New file.
73351         * lib/unistr/u32-strtok.c: New file.
73352         * lib/unistr/u-strtok.h: New file.
73353
73354         * modules/unistr/u8-uctomb: New file.
73355         * modules/unistr/u16-uctomb: New file.
73356         * modules/unistr/u32-uctomb: New file.
73357         * lib/unistr/u8-uctomb.c: New file.
73358         * lib/unistr/u16-uctomb.c: New file.
73359         * lib/unistr/u32-uctomb.c: New file.
73360
73361         * MODULES.html.sh (Unicode string functions): Add the new modules.
73362
73363 2007-01-08  Bruno Haible  <bruno@clisp.org>
73364
73365         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73366         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73367         subdirectories.
73368
73369 2007-01-08  Karl Berry  <karl@gnu.org>
73370
73371         * doc/error.texi: mention that main() fns must set program_name
73372         when progname is used.
73373
73374 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73375
73376         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73377         WCTYPE_H is empty, for the benefit of builds from non-distclean
73378         directories.  Problem reported by Eric Blake in
73379         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73380
73381 2007-01-08  Bruno Haible  <bruno@clisp.org>
73382
73383         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73384         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73385         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73386         PROVIDE_CANONICALIZE_FILENAME_MODE.
73387         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73388
73389 2007-01-08  Bruno Haible  <bruno@clisp.org>
73390
73391         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73392         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73393         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73394         * lib/fts.c: Likewise.
73395         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73396
73397 2006-12-25  Bruno Haible  <bruno@clisp.org>
73398
73399         * modules/utf8-ucs4-safe: New file.
73400         * lib/utf8-ucs4-safe.h: New file.
73401         * lib/unistr/utf8-ucs4-safe.c: New file.
73402
73403         * modules/utf16-ucs4-safe: New file.
73404         * lib/utf16-ucs4-safe.h: New file.
73405         * lib/unistr/utf16-ucs4-safe.c: New file.
73406
73407         * MODULES.html.sh (Unicode string functions): Add the new modules.
73408
73409 2007-01-08  Bruno Haible  <bruno@clisp.org>
73410
73411         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73412         (Depends-on): Add unitypes.
73413         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73414         (u8_mbtouc_aux): Move out to separate file.
73415         (u8_mbtouc): Use ucs4_t, uint8_t types.
73416         * lib/unistr/utf8-ucs4.c: New file.
73417
73418         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73419         (Depends-on): Add unitypes.
73420         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73421         (u16_mbtouc_aux): Move out to separate file.
73422         (u16_mbtouc): Use ucs4_t, uint16_t types.
73423         * lib/unistr/utf16-ucs4.c: New file.
73424
73425         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73426         (Depends-on): Add unitypes.
73427         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73428         (u8_uctomb_aux): Move out to separate file.
73429         (u8_uctomb): Use ucs4_t, uint8_t types.
73430         * lib/unistr/ucs4-utf8.c: New file.
73431
73432         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73433         (Depends-on): Add unitypes.
73434         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73435         (u16_uctomb_aux): Move out to separate file.
73436         (u16_uctomb): Use ucs4_t, uint16_t types.
73437         * lib/unistr/ucs4-utf16.c: New file.
73438
73439 2006-12-25  Bruno Haible  <bruno@clisp.org>
73440
73441         * modules/unitypes: New file.
73442         * lib/unitypes.h: New file.
73443         * MODULES.html.sh (func_all_modules): New section "Unicode string
73444         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73445         this section. Add unitypes.
73446
73447 2007-01-08  Bruno Haible  <bruno@clisp.org>
73448
73449         Avoid variable names that conflict with those from libtool.
73450         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73451         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73452         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73453         library_names_spec to acl_library_names_spec, hardcode_* to
73454         acl_hardcode_*.
73455         Reported by Ralf Wildenhues.
73456
73457 2007-01-08  Bruno Haible  <bruno@clisp.org>
73458
73459         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73460         definition.
73461         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73462         definition.
73463         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73464         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73465         definition.
73466         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73467         definition.
73468         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73469         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73470         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73471         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73472         definition.
73473         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73474         definition.
73475         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73476         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73477         GC_USE_<algorithm>.
73478         * lib/gc-libgcrypt.c: Likewise.
73479         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73480         * modules/gc-arctwo (configure.ac): Likewise.
73481         * modules/gc-des (configure.ac): Likewise.
73482         * modules/gc-hmac-md5 (configure.ac): Likewise.
73483         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73484         * modules/gc-md2 (configure.ac): Likewise.
73485         * modules/gc-md4 (configure.ac): Likewise.
73486         * modules/gc-md5 (configure.ac): Likewise.
73487         * modules/gc-random (configure.ac): Likewise.
73488         * modules/gc-rijndael (configure.ac): Likewise.
73489         * modules/gc-sha1 (configure.ac): Likewise.
73490
73491 2007-01-08  Bruno Haible  <bruno@clisp.org>
73492
73493         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73494         macro definition.
73495         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73496         definition.
73497         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73498         definition.
73499         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73500         * modules/fcntl-safer (configure.ac): Likewise.
73501         * modules/fopen-safer (configure.ac): Likewise.
73502         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73503         GNULIB_FWRITEERROR macro definition.
73504
73505 2007-01-08  Bruno Haible  <bruno@clisp.org>
73506
73507         * m4/gnulib-common.m4: New file.
73508         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
73509         (func_get_filelist): Add m4/gnulib-common.m4.
73510
73511 2007-01-08  Bruno Haible  <bruno@clisp.org>
73512
73513         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
73514         command.
73515
73516 2007-01-08  Jim Meyering  <jim@meyering.net>
73517
73518         Use a more robust test for a "can't happen" condition.
73519         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
73520         narrowed the st_size value.  Presuming the "can't happen" condition
73521         is true, that narrowing could conceivably convert an invalid st_size
73522         value into a valid one.  Instead, use a change based on Matthew
73523         Woehlke's original patch.
73524
73525         Slight readability improvement: use an assert-like macro
73526         in place of literal "abort ()" uses.
73527         * lib/fts.c (fts_assert): Define.
73528         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
73529         Use this macro instead of a bare 'abort'.
73530
73531 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
73532
73533         Don't worry about using IRIX 5.3's wctype.h broken definitions;
73534         simply work around them.
73535         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
73536         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
73537         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
73538         declaring.
73539         Don't bother to define as macros, since the standard doesn't require it.
73540         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
73541         longer worry about IRIX 5.3.
73542         (HAVE_WCTYPE_CTMP_BUG): Remove.
73543
73544 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
73545
73546         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
73547         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
73548         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
73549         Problems reported by Georg Schwarz for IRIX 5.3.
73550
73551         * gnulib-tool (autoconf_minversion): Take the maximum version number
73552         found, not the minimum.  Problem reported by James Youngman.
73553
73554 2007-01-03  Karl Berry  <karl@gnu.org>
73555
73556         * doc/error.texi: new file, explaining interaction with progname.
73557         * doc/gnulib.texi: include it.  Update copyright.
73558
73559 2007-01-03  Simon Josefsson  <simon@josefsson.org>
73560
73561         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
73562         AC_CANONICAL_HOST, to improve autobuild outputs.
73563
73564 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
73565             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
73566
73567         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
73568         sockets, server sockets, and other file descriptors.  Count errors
73569         to compute the return value.  Reorder the code a bit to be easier
73570         to follow.  Don't set event bits that were not requested (except
73571         POLLERR and POLLHUP).
73572
73573 2007-01-01  Bruno Haible  <bruno@clisp.org>
73574
73575         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
73576
73577 2007-01-03  Jim Meyering  <jim@meyering.net>
73578
73579         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
73580
73581 2007-01-02  Bruno Haible  <bruno@clisp.org>
73582
73583         * modules/settime (Include): Require timespec.h.
73584         * modules/nanosleep (Include): Likewise.
73585
73586 2007-01-01  Bruno Haible  <bruno@clisp.org>
73587
73588         * gnulib-tool (func_emit_copyright_notice): Bump year.
73589         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
73590
73591 2007-01-01  Bruno Haible  <bruno@clisp.org>
73592
73593         Improve support for OpenBSD.
73594         * build-aux/config.rpath (libname_spec): Export.
73595         (library_names_spec): New variable. Export.
73596         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
73597         library_names_spec from the config.rpath output. Locate shared library
73598         through the name pattern in library_names_spec.
73599
73600 2007-01-01  Eric Blake  <ebb9@byu.net>
73601
73602         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
73603
73604 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
73605
73606         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
73607         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
73608         assume the C locale, and avoid an "eval" that could cause trouble.
73609         Problem with SORT reported by Bob Proulx.
73610
73611         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
73612         Define.  Trivial patch from Henning Nielsen Lund, originally
73613         sent to bug-grep@gnu.org today.
73614
73615 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
73616
73617         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
73618         struct stat.  Problem reported by Henning Nielsen Lund.
73619         * lib/acl.c: Include acl.h first, to check interface.  Don't
73620         bother to include sys/types.h and sys/stat.h again.
73621
73622 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
73623
73624         Import the following change from libc; problem reported by
73625         Sven Verdoolaege.
73626
73627         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
73628
73629         [BZ #1373]
73630         * lib/argp.h: Remove __NTH for __argp_usage inline function.
73631
73632 2006-12-28  Jim Meyering  <jim@meyering.net>
73633
73634         * build-aux/announce-gen: Do not assume that the package
73635         builds any of tar.gz, tar.bz2, and .xdelta files.
73636         Suggestion from Simon Josefsson.
73637
73638 2006-12-28  Simon Josefsson  <simon@josefsson.org>
73639
73640         * modules/announce-gen: New file.
73641
73642 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
73643
73644         * lib/mbchar.h: Just include <wctype.h>; the wctype module
73645         handles its gotchas now.
73646         * lib/mbswidth.c: Likewise.
73647         * lib/wcwidth.h: Likewise.
73648         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
73649         and iswcntrl; the wctype module does this stuff now.
73650         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
73651         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73652         * modules/mbchar (Depends-on): Add wctype.
73653         * modules/mbswidth (Depends-on): Likewise.
73654         * modules/wcwidth (Depends-on): Likewise.
73655
73656 2006-12-27  Eric Blake  <ebb9@byu.net>
73657
73658         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
73659         module uses more than what <wctype.h> is required to provide.
73660
73661 2006-12-26  Eric Blake  <ebb9@byu.net>
73662
73663         * gnulib-tool (sed_extract_prog): Avoid space-tab.
73664
73665 2006-12-26  Eric Blake  <ebb9@byu.net>
73666
73667         * modules/absolute-header: New module.
73668         * modules/fcntl (Depends-on): Depend on it.
73669         * modules/inttypes (Depends-on): Likewise.
73670         * modules/stdint (Depends-on): Likewise.
73671         * modules/sys_stat (Depends-on): Likewise.
73672         * modules/wctype (Depends-on): Likewise.
73673         * MODULES.html.sh (Support for building libraries and
73674         executables): Document it.
73675
73676 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
73677
73678         * gnulib-tool (SED): Remove, undoing previous change.
73679         The problem was that it broke coreutils on Solaris, because
73680         "sed --posix" leaked into a makefile.
73681         (sed): New alias, if 'alias' and GNU sed.
73682
73683 2006-12-24  Jim Meyering  <jim@meyering.net>
73684
73685         Work around an fchownat bug in glibc-2.4:
73686         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
73687         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
73688         in spite of the -P option.
73689         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
73690         New macros.
73691         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
73692         * modules/openat (Files): Add lib/fchownat.c.
73693         * lib/openat.c (fchownat): Don't define here.  Move to...
73694         * lib/fchownat.c: ...this new file.
73695
73696 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
73697
73698         Fix bug reported by Bruno Haible in
73699         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
73700         where quotearg.c didn't compile on Mac OS X 10.2 because it
73701         lacks <wchar.h> and wint_t.
73702         * lib/wctype_.h (__wctype_wint_t): New type.
73703         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
73704         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
73705         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
73706         Arg is now of type __wctype_wint_t, not wint_t.
73707         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
73708         substitute HAVE_WINT_T.
73709         * modules/wctype (Files): Add m4/wint_t.m4.
73710         (wctype.h): Substitute HAVE_WINT_T.
73711
73712 2006-12-23  Bruno Haible  <bruno@clisp.org>
73713
73714         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
73715
73716 2006-12-23  Bruno Haible  <bruno@clisp.org>
73717
73718         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
73719         S_ISLNK.
73720         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
73721         mingw.
73722
73723 2006-12-22  Bruno Haible  <bruno@clisp.org>
73724
73725         * lib/copy-file.c: Include acl.h.
73726         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
73727         Close the file descriptors only after being done with copy_acl.
73728         * modules/copy-file (Depends-on): Add acl.
73729
73730 2006-12-22  Bruno Haible  <bruno@clisp.org>
73731
73732         * gnulib-tool (SED): New variable.
73733         Use $SED instead of sed everywhere.
73734
73735 2006-12-22  Bruno Haible  <bruno@clisp.org>
73736
73737         * modules/no-c++: New file.
73738         * m4/no-c++.m4: New file.
73739         * MODULES.html.sh (Support for building libraries and executables):
73740         Add no-c++.
73741
73742 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
73743
73744         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
73745         Include <limits.h>, and use its INT_MAX to rewrite the
73746         j loop so that it does not overflow 'int'.  Problem reported by
73747         Ralf Wildenhues in
73748         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
73749         Play it safe by shifting left by 1 rather than multiplying by 2,
73750         as GCC is less likely to optimize this away when the value
73751         is signed (when it assumes overflow leads to undefined behavior).
73752         Also, don't assume time_t uses two's complement.
73753
73754 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
73755
73756         * MODULES.html.sh: New module wctype.
73757         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
73758         * lib/fnmatch.c: Don't bother to include <wchar.h> before
73759         <wctype.h>, since the new wctype module should fix this.
73760         * lib/quotearg.c: Include <wctype.h> unconditionally, since
73761         the wctype module should arrange for it.
73762         * lib/regex_internal.h: Likewise.
73763         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
73764         since the wctype module should handle this now.
73765         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
73766         * modules/fnmatch (Depends-on): Add wctype.
73767         * modules/quotearg (Depends-on): Likewise.
73768         * modules/regex (Depends-on): Likewise.
73769
73770 2006-12-19  Bruno Haible  <bruno@clisp.org>
73771
73772         * lib/strdup.h [C++]: Wrap definitions in extern "C".
73773         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
73774
73775 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73776
73777         * modules/savewd (Depends-on): Fix dependency on fcntl.
73778
73779 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73780
73781         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
73782         conforms to C99, rather than relying on the user's environment
73783         setting of STDINT_H.
73784
73785 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
73786         and Eric Blake  <ebb9@byu.net>
73787
73788         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
73789         This is more consistent with the other defines here.
73790         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
73791         Port to z/OS.  Problem reported by Paul Gilmartin.
73792         Change local vars to use gl_ prefix rather than ac_.
73793         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
73794         with other defines.
73795         * modules/double-slash-root: New module.
73796         * modules/dirname (Files): Remove m4/double-slash-root.m4.
73797         (Depends-on): Add double-slash-root.
73798         * MODULES.html.sh (File system functions): Mention new module.
73799
73800 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
73801
73802         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
73803         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
73804         This is for the benefit of gzip, which doesn't do i18n.
73805
73806 2006-12-12  Jim Meyering  <jim@meyering.net>
73807
73808         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
73809         Reported by Andreas Schwab <schwab@suse.de>.
73810
73811 2006-12-12  Bruno Haible  <bruno@clisp.org>
73812
73813         Merge these changes.
73814         2006-09-05  Bruno Haible  <bruno@clisp.org>
73815         * lib/iconvme.c (iconv_string): No need to save and restore errno when
73816         iconv_alloc succeeded.
73817         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
73818         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
73819         test for " && dest " at the end - dest is always != NULL there. Call
73820         iconv with 4xNULL arguments initially, to reset the state. Call iconv
73821         with 2xNULL arguments, also to flush the state storage. Handle the
73822         IRIX iconv behaviour. Realloc the final result, to throw away unused
73823         memory.
73824
73825 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
73826
73827         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
73828         and fchmodat unconditionally, since glibc 2.4 has them.
73829         Problem reported by Arkadiusz Miskiewicz.
73830
73831 2006-12-10  Bruno Haible  <bruno@clisp.org>
73832
73833         * gnulib-tool (func_import): Show the include files only for those
73834         modules that are copied and specified.
73835         Reported by Karl Berry.
73836
73837 2006-12-08  Jim Meyering  <jim@meyering.net>
73838
73839         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
73840         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
73841
73842         * build-aux/announce-gen: Add two new options, both optional:
73843         --bootstrap-tools=TOOL_LIST
73844               a comma-separated list of tools, e.g.,
73845               autoconf,automake,bison,gnulib
73846         --gnulib-snapshot-date=DATE
73847               if gnulib is in the bootstrap tool list,
73848               then report this as the snapshot date.
73849               If not specified, use the current date/time.
73850               If you specify a date here, be sure it's UTC.
73851
73852 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73853
73854         * tests/test-argp-2.sh: Fix test to match actual output.
73855         (func_compare): Fix sed script to be portable.
73856
73857 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
73858
73859         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
73860         workaround for this case.  It is not autoconfigured now; offhand
73861         it's hard to see how to autoconfigure it.
73862
73863 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
73866         a directory that is about to be chowned.  Such a directory's
73867         initial file permissions should permit the owner only and this
73868         should not be changed until after the chown, since the group and
73869         other bits would be incorrect if they granted permission before
73870         the chown.
73871
73872         Fix porting problem for iswctype reported by Georg Schwarz in:
73873         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
73874         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
73875         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
73876         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
73877         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73878
73879 2006-12-03  Jim Meyering  <jim@meyering.net>
73880
73881         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
73882         p->fts_statp may not yet be defined.
73883         (fts_read): Instead, set it in the caller, once p->fts_statp is
73884         sure to be defined, and corresponds to a top-level directory.
73885         This bug made du -x fail.  Here's the coreutils test case:
73886         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
73887         Reported by Mike Frysinger.
73888
73889 2006-12-01  Jim Meyering  <jim@meyering.net>
73890
73891         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
73892         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
73893         Reported by Simon Josefsson.
73894
73895 2006-11-30  Jim Meyering  <jim@meyering.net>
73896
73897         * m4/warning.m4: Use the all-permissive copyright notice
73898         recommended by RMS (rather than LGPL).
73899         * m4/vararrays.m4: Likewise.
73900         * m4/flexmember.m4: Likewise.
73901
73902 2006-11-29  Bruno Haible  <bruno@clisp.org>
73903
73904         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73905         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73906         using +=.
73907         Reported by Simon Josefsson <simon@josefsson.org>.
73908
73909 2006-11-28  James Youngman <jay@gnu.org>
73910
73911         * README: Advise users that they might find the bug-gnulib@gnu.org
73912         and autotools-announce@gnu.org mailing lists useful.
73913
73914 2006-11-28  Bruno Haible  <bruno@clisp.org>
73915
73916         * m4/ptrdiff_max.m4: Remove file.
73917
73918 2006-11-21  Bruno Haible  <bruno@clisp.org>
73919
73920         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
73921         _AC_COMPUTE_INT.
73922         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73923         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
73924         _AC_COMPUTE_INT.
73925         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73926         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
73927         _AC_COMPUTE_INT.
73928         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73929
73930 2006-11-28  Jim Meyering  <jim@meyering.net>
73931
73932         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
73933         warning from "gcc -Wshadow" about shadowing the builtin.
73934
73935 2006-11-27  Bruno Haible  <bruno@clisp.org>
73936
73937         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
73938         _AC_COMPUTE_INT.
73939         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73940
73941 2006-11-27  Bruno Haible  <bruno@clisp.org>
73942             Paul Eggert  <eggert@cs.ucla.edu>
73943
73944         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
73945
73946 2006-11-26  Bruno Haible  <bruno@clisp.org>
73947
73948         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73949         noinst_LTLIBRARIES.
73950
73951 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73952             Bruno Haible  <bruno@clisp.org>
73953
73954         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
73955         if compiling with "gcc -ansi".
73956
73957 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73958
73959         Fix some incompatibilities with gcc -ansi -pedantic.
73960         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
73961         if compiling pedantically with GCC, unless it's C99 or later.
73962         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
73963         it mishandles gcc -ansi -pedantic as well.
73964         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
73965         if gcc -pedantic.
73966         * lib/regexec.c (check_node_accept_bytes): Don't use auto
73967         initializers for struct if -pedantic, unless it's C99 or later.
73968
73969 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
73970
73971         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
73972         Don't close an fd more than once. Identical atimes indicate
73973         success, not failure.
73974
73975 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73976
73977         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73978
73979 2006-11-23  Jim Meyering  <jim@meyering.net>
73980
73981         * build-aux/announce-gen: New file.  From coreutils.
73982
73983 2006-11-22  Jim Meyering  <jim@meyering.net>
73984
73985         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73986         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73987         (fts_read): Use a temporary to narrow the overused st_size member
73988         before using it in a switch statement.  Reported by Matthew Woehlke.
73989
73990         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73991         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73992
73993 2006-11-20  Bruno Haible  <bruno@clisp.org>
73994
73995         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73996         changequote instead of pairs of brackets.
73997         Reported by Andreas Schwab <schwab@suse.de>.
73998
73999 2006-11-21  Jim Meyering  <jim@meyering.net>
74000
74001         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74002         so as to remain compatible with older compilers.
74003         Patch from Michael Deutschmann.
74004
74005 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74006
74007         * MODULES.html.sh (File system functions): Add openat.
74008
74009         * lib/openat.h (rpl_fstatat): New macro, if
74010         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74011         (fstatat): Define to rpl_fstatat under the same conditions,
74012         unless COMPILING_FSTATAT.
74013         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74014         seems to have the bug.
74015         * lib/fstatat.c: New file.
74016         * modules/openat (Files): Add it.
74017
74018 2006-11-20  Bruno Haible  <bruno@clisp.org>
74019
74020         * Makefile: New file.
74021
74022 2006-11-20  Jim Meyering  <jim@meyering.net>
74023
74024         The beginnings of syntax-related checks for gnulib.
74025         * lib/Makefile: New file.
74026         * lib/t-idcache: New script.  Ensure that the two halves of
74027         idcache.c stay in sync.
74028
74029         * lib/idcache.c: Adjust comments in user- and group- portions to
74030         be more accurate, and to be consistent with one another.
74031
74032 2006-11-20  Jim Meyering  <jim@meyering.net>
74033
74034         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74035         continue using the flexible array member (thus, this module performs
74036         half as many malloc calls), with the addition that...
74037         (getgroup, getuser): Consistently record a non-match via an empty
74038         "name" string, and map an empty string match to a NULL return value.
74039         * modules/idcache (Depends-on): Re-add flexmember.
74040
74041         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74042         (getuidbyname, getgroup, getgidbyname): Likewise.
74043
74044         Use cleaner syntax: NULL rather than 0.
74045         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74046
74047 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74048
74049         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74050         It mishandled the case where the group was missing.
74051         Problem reported by Greg Schafer.
74052         * modules/idcache: Likewise.
74053
74054 2006-11-18  Jim Meyering  <jim@meyering.net>
74055
74056         * check-module (%exempt_header): Add exception for some
74057         conditionally-included headers.
74058
74059         * modules/i-ring (Depends-on): Add verify.
74060         (License): Change to LGPL.
74061
74062 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74063
74064         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74065         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74066         and inttostr.h.  Use snprintf rather than uinttostr, so that
74067         LGPLed code doesn't depend on GPLed.
74068
74069 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74070
74071         * modules/inline (License): Change from GPL to LGPL.
74072
74073 2006-11-17  Jim Meyering  <jim@meyering.net>
74074
74075         * modules/d-type (License): Switch to LGPL.
74076
74077 2006-11-15  Bruno Haible  <bruno@clisp.org>
74078
74079         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74080
74081 2006-11-15  Eric Blake  <ebb9@byu.net>
74082
74083         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74084         the module dependency.
74085
74086 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74087             Bruno Haible  <bruno@clisp.org>
74088
74089         * gnulib-tool (func_create_testdir): Add license consistency check.
74090
74091 2006-11-15  Eric Blake  <ebb9@byu.net>
74092
74093         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74094         random "(cached)" in configure output.
74095
74096 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74097
74098         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74099         test for conforming inttypes.h is both announced and cached.
74100
74101         * MODULES.html.sh (seen_modules, seen_files): New variables.
74102         (func_module): Rewrite to use a few less gnulib-tool and sed
74103         invocations.  Avoid a couple of quadratic algorithms for ...
74104         (missed_modules, missed_files): ... these, with ...
74105         (func_append, func_tmpdir): ... these new functions, from
74106         gnulib-tool.  Analogously, install traps for cleanup.
74107
74108         * tests/test-gc.c (main): Remove unused variables.
74109         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74110
74111 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74112
74113         * modules/inttostr (License): Change to LGPL.
74114
74115 2006-11-14  Eric Blake  <ebb9@byu.net>
74116
74117         * modules/tempname (License): Change to LGPL.
74118
74119 2006-11-14  Eric Blake  <ebb9@byu.net>
74120
74121         * doc/functions.texi (Function Portability): *printf functions on
74122         Cygwin now understand all POSIX size specifiers.
74123
74124 2006-11-14  Bruno Haible  <bruno@clisp.org>
74125
74126         * modules/c-ctype (License): Change to LGPL.
74127
74128 2006-11-12  Bruno Haible  <bruno@clisp.org>
74129
74130         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74131         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74132         for GNOME libraries, for which the include files are installed in
74133         subdirectories of $prefix/include.
74134
74135 2006-11-12  Bruno Haible  <bruno@clisp.org>
74136
74137         * m4/lib-link.m4: Require at least autoconf-2.54.
74138         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74139         name to underscores for the --with option.
74140
74141 2006-11-13  Bruno Haible  <bruno@clisp.org>
74142
74143         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74144         the tests directory.
74145         Reported by Ralf Wildenhues.
74146
74147 2006-11-13  Bruno Haible  <bruno@clisp.org>
74148
74149         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74150         (func_emit_initmacro_end): Undo the override here.
74151         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74152         Works around the famous automake error in coreutils.
74153
74154 2006-11-13  Eric Blake  <ebb9@byu.net>
74155
74156         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74157         element, not its node.
74158
74159 2006-11-12  Bruno Haible  <bruno@clisp.org>
74160
74161         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74162         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74163
74164 2006-11-12  Bruno Haible  <bruno@clisp.org>
74165
74166         * gnulib-tool: New option --local-symlink.
74167         (func_usage): Document it.
74168         (lsymbolic): New variable.
74169         (func_import, func_create_testdir): If --symlink was not specified,
74170         test whether --local-symlink was specified and the file comes from
74171         the local_gnulib_dir.
74172
74173 2006-11-12  Bruno Haible  <bruno@clisp.org>
74174
74175         * gnulib-tool (func_ln): New function.
74176         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74177
74178 2006-11-12  Bruno Haible  <bruno@clisp.org>
74179
74180         Finish support for source files in subdirectories.
74181         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74182         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74183         AUTOMAKE_OPTIONS.
74184         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74185
74186 2006-11-12  Bruno Haible  <bruno@clisp.org>
74187
74188         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74189         EXTRA_lib_SOURCES augmentation.
74190         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74191
74192 2006-11-12  Jim Meyering  <jim@meyering.net>
74193
74194         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74195         file descriptors.  This also averts a failure on systems with
74196         native openat support when a traversed directory lacks "x" access.
74197         * lib/fts_.h: Include "i-ring.h"
74198         (struct FTS) [fts_fd_ring]: New member.
74199         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74200         (FCHDIR): Add parentheses.
74201         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74202         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74203         When descending, rather than simply closing the previous
74204         fts_cwd_fd value, push that file descriptor onto the ring.
74205         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74206         (fts_open): Initialize the new fd_ring member.
74207         (fts_close): Clear the ring.
74208         (fts_safe_changedir): When possible, use our new fd_ring to skip
74209         the diropen and fstat and dev/ino comparison that would normally
74210         accompany a virtual `chdir ("..")'.
74211
74212         * modules/fts (Depends-on): Add i-ring.
74213         * modules/i-ring: New module.
74214         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74215         * m4/i-ring.m4: New file.
74216
74217 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74218
74219         * gnulib-tool (func_create_testdir): Fix replacement of
74220         `build-aux' in configure.ac.  Run autotools in gltests
74221         subdirectory.
74222         (func_create_testdir, func_create_megatestdir, test): There is
74223         no need for '--force' in most autotool invocations in a new
74224         tree.  Actually fail the whole test if any of the tools, or the
74225         configure or make stages fail.
74226
74227         Sync from Automake.
74228         * build-aux/gnupload: Revert last change.  Add pointer to upload
74229         instructions of the GNU Maintenance Instructions.
74230         Suggestion by Karl Berry.
74231
74232 2006-11-10  Jim Meyering  <jim@meyering.net>
74233
74234         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74235
74236 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74237
74238         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74239         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74240         (bind_textdomain_codeset) [! ENABLE_NLS]:
74241         Evaluate all the arguments.  That way, callers get compatible behavior
74242         if the arguments have side effects.  Also, it avoids some GCC
74243         diagnostics in some cases; Joel E. Denny reported problems when Bison
74244         was configured with --enable-gcc-warnigs.
74245
74246 2006-11-10  Jim Meyering  <jim@meyering.net>
74247
74248         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74249         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74250         account.
74251
74252 2006-11-10  Jim Meyering  <jim@meyering.net>
74253
74254         * modules/inline: New file/module.
74255         * modules/xalloc (Files): Remove m4/inline.m4.
74256         (Depends-on): Add inline, instead.
74257         * modules/oset: Likewise.
74258         * modules/list: Likewise.
74259
74260 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74261
74262         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74263         Problem reported by Matthew Woehlke.
74264
74265 2006-11-09  Bruno Haible  <bruno@clisp.org>
74266
74267         * lib/tempname.c (gen_tempname): Remove variant that invokes
74268         __gen_tempname.
74269         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74270         __gen_tempname.
74271
74272 2006-11-08  Bruno Haible  <bruno@clisp.org>
74273
74274         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74275         to 'yes' instead of 'cross-compiling'.
74276
74277 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74278
74279         * lib/quotearg.h (quotearg_free): New decl.
74280         * lib/quotearg.c (quotearg_free): New function.
74281         (slot0, nslots, slotvec0, slotvec):
74282         Now file-scope so that quotearg_free can get at them.
74283
74284 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74285
74286         Sync from Automake.
74287         * build-aux/gnupload: Add missing 'gnu' to example URL.
74288         Report by Karl Berry.
74289
74290 2006-11-08  Bruno Haible  <bruno@clisp.org>
74291
74292         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74293         Suggested by Paul Eggert.
74294
74295 2006-11-08  Jim Meyering  <jim@meyering.net>
74296
74297         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74298         It's already included if !_LIBC.
74299         (fts_safe_changedir): Add a comment.
74300
74301 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74302
74303         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74304         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74305         Matthew Woehlke.
74306
74307         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74308         definitions up, to avoid colliding with change below.
74309         (static_inline) [HAVE_INLINE]: New macro.
74310         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74311         Provide extern decls when !HAVE_INLINE.  Do not define unless
74312         static_inline is defined, either by us or by xmalloc.c.  Use
74313         static_inline rather than static inline.
74314         (XCALLOC): Optimize sizeof(T) = 1 case.
74315         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74316
74317 2006-11-07  Bruno Haible  <bruno@clisp.org>
74318
74319         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74320         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74321         AC_C_INLINE.
74322         * modules/xalloc (Files): Add m4/inline.m4.
74323
74324 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74325
74326         * README: Fix typo.
74327         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74328         (Miscellanous Notes): ...from this.
74329
74330 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74331
74332         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74333         Mention that offsetof should be used instead of sizeof.
74334         From Bruno Haible.
74335
74336 2006-11-07  Bruno Haible  <bruno@clisp.org>
74337
74338         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74339
74340 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74341
74342         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74343         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74344         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74345         (gl_tree_add_before, gl_tree_add_after):
74346         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74347         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74348         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74349         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74350         (gl_linked_add_after, gl_linked_add_at): Likewise.
74351         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74352         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74353         (gl_tree_add_before, gl_tree_add_after): Likewise.
74354         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74355         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74356         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74357
74358 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74359
74360         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74361
74362 2006-11-06  Bruno Haible  <bruno@clisp.org>
74363
74364         * m4/inline.m4: New file.
74365         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74366         * modules/list (Files): Add m4/inline.m4.
74367         * modules/oset (Files): Likewise.
74368
74369 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74370
74371         * lib/idcache.c: Include <stddef.h>, for offsetof.
74372         (struct userid.name): Change from char * to a flexible array member.
74373         All uses changed.
74374         * modules/idcache (Depends-on): Add flexmember.
74375
74376         * MODULES.html.sh (Core language properties): New module flexmember.
74377         * modules/flexmember, m4/flexmember.m4: New files.
74378
74379         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74380         inline functions that are identical with the old xnmalloc_inline,
74381         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74382         that we can avoid some unnecessary integer multiplications and
74383         divisions in the common case where the element size is known at
74384         compile time.
74385         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74386         needed.
74387         (xnboundedmalloc): Remove.
74388         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74389         arguments, for consistency with rest of this header.
74390         (xcharalloc): Rewrite using XNMALLOC.
74391         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74392         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74393         versions have been moved to lib/xalloc.h and renamed to be the
74394         non-*_inline versions.
74395         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74396         and xnrealloc functions, since those functions are now inline and
74397         now call us.
74398         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74399         renaming described above.
74400         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74401         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74402         captures the dependency in AC_C_INLINE.
74403
74404         New module canonicalize-lgpl, proposed by Charles Wilson in
74405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74406         with a few small changes afterwards.
74407         * MODULES.html.sh (File system functions): New module
74408         canonicalize-lgpl.
74409         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74410         and canonicalize_file_name.
74411         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74412         * modules/canonicalize-lgpl: New files.
74413
74414 2006-11-05  Bruno Haible  <bruno@clisp.org>
74415
74416         * gnulib-tool (func_import, func_create_testdir): Create directories
74417         also for files in subdirectories of lib/.
74418
74419 2006-11-05  Bruno Haible  <bruno@clisp.org>
74420
74421         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74422         ANSI C compliant.
74423
74424 2006-11-03  Bruno Haible  <bruno@clisp.org>
74425
74426         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74427         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74428         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74429         (xnboundedmalloc): New inline function.
74430         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74431         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74432         xmalloc.
74433         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74434         xmalloc.
74435         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74436         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74437         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74438         xmalloc.
74439         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74440         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74441         xmalloc.
74442         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74443         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74444         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74445         xmalloc.
74446         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74447         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74448         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74449         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74450         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74451         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74452         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74453
74454 2006-11-03  Bruno Haible  <bruno@clisp.org>
74455
74456         * lib/c-ctype.h [C++]: Define functions without name mangling.
74457         * lib/fwriteerror.h [C++]: Likewise.
74458         * lib/gcd.h [C++]: Likewise.
74459         * lib/linebreak.h [C++]: Likewise.
74460
74461 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74462
74463         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74464         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74465         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74466         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74467         Check for functions and headers just once.
74468         Check for declaration of canonicalize_file_name.
74469         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74470
74471 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74472
74473         * gnulib-tool (func_import): Fix typo in actioncmd.
74474
74475 2006-11-02  Bruno Haible  <bruno@clisp.org>
74476
74477         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74478         newline sequence in the Makefile.am snippet as a space, like "make"
74479         does.
74480         Reported by Roger Persson <perrog@gmail.com>.
74481
74482 2006-11-01  Bruno Haible  <bruno@clisp.org>
74483
74484         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74485         already declared in <string.h>.
74486         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74487
74488 2006-11-01  Bruno Haible  <bruno@clisp.org>
74489
74490         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74491         * lib/strcase.h: Include <string.h>.
74492         (strcasecmp): Define to rpl_strcasecmp here.
74493
74494 2006-11-01  Bruno Haible  <bruno@clisp.org>
74495
74496         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74497
74498 2006-11-01  Eric Blake  <ebb9@byu.net>
74499
74500         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74501
74502         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74503
74504 2006-10-29  Bruno Haible  <bruno@clisp.org>
74505
74506         Make it compile in C++ mode.
74507         * lib/full-write.c (full_rw): Add a cast.
74508
74509 2006-11-01  Bruno Haible  <bruno@clisp.org>
74510
74511         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
74512         be POSIX compliant.
74513         Reported by Roger Persson <perrog@gmail.com>.
74514
74515 2006-11-01  Eric Blake  <ebb9@byu.net>
74516
74517         * lib/getopt_.h: Fix comments.
74518
74519 2006-10-31  Eric Blake  <ebb9@byu.net>
74520
74521         * modules/tmpdir (Depends-on): Add sys_stat.
74522         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
74523         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
74524         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
74525         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
74526         tempname.
74527
74528 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
74529
74530         Avoid some C++ diagnostics reported by Bruno Haible.
74531         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
74532         xmalloc.
74533         (quotearg_alloc): Use xcharalloc rather than xmalloc.
74534         (struct slotvec): Move to top level.
74535         (quotearg_n_options): Rewrite to avoid xmalloc.
74536         * lib/xalloc.h (xcharalloc): New function.
74537         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
74538         [defined __cplusplus]: Add function template that provides result
74539         type propagation.  This part of the change is from Bruno Haible.
74540
74541 2006-10-29  Bruno Haible  <bruno@clisp.org>
74542
74543         Make it compile in C++ mode.
74544         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
74545         * lib/strnlen1.c (strnlen1): Cast memchr result.
74546         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
74547         * lib/clean-temp.c (string_equals, string_hash): Add casts.
74548         (create_temp_dir): Rename local variable 'template'.
74549         (compile_csharp_using_sscli): Add cast.
74550         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
74551         * lib/findprog.c (find_in_path): Likewise.
74552         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
74553         * lib/wait-process.c (register_slave_subprocess): Likewise.
74554
74555 2006-10-22  Bruno Haible  <bruno@clisp.org>
74556
74557         * modules/tsearch: New file.
74558         * lib/tsearch.h: New file.
74559         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
74560         * m4/tsearch.m4: New file.
74561         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
74562
74563 2006-10-29  Eric Blake  <ebb9@byu.net>
74564
74565         * lib/arcfour.c: Assume config.h.
74566         * lib/arctwo.c: Likewise.
74567         * lib/base64.c: Likewise.
74568         * lib/check-version.c: Likewise.
74569         * lib/crc.c: Likewise.
74570         * lib/des.c: Likewise.
74571         * lib/gc-gnulib.c: Likewise.
74572         * lib/gc-libgcrypt.c: Likewise.
74573         * lib/gc-pbkdf2-sha1.c: Likewise.
74574         * lib/getaddrinfo.c: Likewise.
74575         * lib/getdelim.c: Likewise.
74576         * lib/getline.c: Likewise.
74577         * lib/hmac-md5.c: Likewise.
74578         * lib/hmac-sha1.c: Likewise.
74579         * lib/iconvme.c: Likewise.
74580         * lib/md2.c: Likewise.
74581         * lib/md4.c: Likewise.
74582         * lib/memxor.c: Likewise.
74583         * lib/read-file.c: Likewise.
74584         * lib/readline.c: Likewise.
74585         * lib/rijndael-alg-fst.c: Likewise.
74586         * lib/rijndael-api-fst.c: Likewise.
74587         * lib/xgetdomainname.c: Likewise.
74588
74589 2006-10-28  Eric Blake  <ebb9@byu.net>
74590
74591         * lib/xstrndup.c: Assume config.h.
74592
74593 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
74594
74595         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
74596         stat-macros.h is now for our own macros, whereas stat_h is for
74597         macros in the <sys/stat.h> name space.
74598         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
74599         (STAT_MACROS_H): Remove.
74600         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
74601         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
74602         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
74603         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
74604         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
74605         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
74606         Move these macros to ...
74607         * lib/stat_.h: here.  Don't include stat-macros.h.
74608         * lib/canonicalize.c: Don't include stat-macros.h.
74609         * lib/chown.c: Likewise.
74610         * lib/euidaccess.c: Likewise.
74611         * lib/file-type.c: Likewise.
74612         * lib/filemode.c: Likewise.
74613         * lib/glob.c: Likewise.
74614         * lib/isapipe.c: Likewise.
74615         * lib/lchown.c: Likewise.
74616         * lib/lstat.c: Likewise.
74617         * lib/mkdir-p.c: Likewise.
74618         * lib/rmdir.c: Likewise.
74619         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
74620         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
74621         unless mkdir isn't declared, to speed up 'configure'.
74622         Always create sys/stat.h, since it's unlikely any real sys/stat.h
74623         would define all the S_* symbols.
74624         * modules/canonicalize (Depends-on):
74625         Depend on sys_stat, not stat-macros.
74626         * modules/chown: Likewise.
74627         * modules/euidaccess: Likewise.
74628         * modules/filemode: Likewise.
74629         * modules/file-type: Likewise.
74630         * modules/glob: Likewise.
74631         * modules/isapipe: Likewise.
74632         * modules/lchown: Likewise.
74633         * modules/lstat: Likewise.
74634         * modules/mkancesdirs: Likewise.
74635         * modules/rmdir: Likewise.
74636         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
74637         * modules/modechange: Likewise.
74638         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
74639         (configure.ac): Remove gl_STAT_MACROS.
74640         * modules/sys_stat (Depends-on): Remove stat-macros.
74641
74642 2006-10-27  Bruno Haible  <bruno@clisp.org>
74643
74644         * m4/signed.m4: Remove file.
74645         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
74646         invocation.
74647         * modules/vasnprintf (Files): Remove m4/signed.m4.
74648
74649 2006-10-27  Bruno Haible  <bruno@clisp.org>
74650
74651         Update to GNU gettext 0.16.
74652         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
74653         m4/inttypes-h.m4, m4/signed.m4.
74654         * m4/gettext.m4: Update to GNU gettext 0.16.
74655         * m4/intl.m4: New file, from GNU gettext.
74656         * m4/intldir.m4: New file, from GNU gettext.
74657         * config/srclist.txt: Update
74658
74659 2006-10-27  Eric Blake  <ebb9@byu.net>
74660
74661         * MODULES.html.sh: Document tempname.
74662         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
74663         dependencies.
74664         (Files): Move lib/tempname.c...
74665         * modules/tempname: ...to this new module.
74666         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
74667         (gl_PREREQ_TEMPNAME): Move...
74668         * m4/tempname.m4: ...to this new file.
74669         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
74670         * modules/sys_stat (Depends-on): Add stat-macros.
74671         * lib/stat_.h (includes): Pick up stat macros.
74672         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
74673         if stat macros are broken.
74674         * lib/tempname.c (includes): No need to include "stat-macros.h".
74675         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
74676         (direxists, __path_search) [!_LIBC]: Don't compile these in
74677         gnulib; the tmpdir module covers that.
74678         * lib/tempname.h: New file.
74679
74680 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
74681
74682         * COPYING: Explain how gnulib-tool converts licence headers.
74683         Almost all wording by Eric Blake.
74684
74685 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
74686
74687         * lib/mbchar.h (is_basic_table): Make read-only.
74688         * lib/mbchar.c (is_basic_table): Likewise.
74689         Reported by John Darrington.
74690
74691 2006-10-25  Bruno Haible  <bruno@clisp.org>
74692
74693         * lib/progname.h (set_program_name): Undefine before defining.
74694
74695 2006-10-25  Bruno Haible  <bruno@clisp.org>
74696
74697         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
74698         false for non-gcc C++ compilers.
74699         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74700
74701 2006-10-24  Bruno Haible  <bruno@clisp.org>
74702
74703         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
74704         iconv implementations like Irix iconv.
74705
74706 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74707
74708         * modules/vararrays: New file.
74709         * m4/vararrays.m4: New file, taken from diffutils.
74710         * MODULES.html.sh: New module vararrays.
74711
74712 2006-10-24  Karl Berry  <karl@gnu.org>
74713
74714         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
74715         Don't call GNU Unix.
74716
74717 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74718
74719         * users.txt: Add Libtool.
74720
74721         Sync from Libtool:
74722
74723         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74724
74725         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
74726         to gnulib's policy of including config.h unconditionally.
74727
74728 2006-10-24  Bruno Haible  <bruno@clisp.org>
74729
74730         * modules/wcwidth (Files): Add m4/wint_t.m4.
74731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
74732         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
74733
74734 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
74735
74736         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
74737         to pacify GCC with some -W flags enabled.  Problem reported by
74738         Bruno Haible.
74739
74740 2006-10-24  Jim Meyering  <jim@meyering.net>
74741
74742         * MODULES.html.sh: Remove uinttostr.  It's not a module.
74743         Reported by Karl Berry.
74744
74745 2006-10-23  Bruno Haible  <bruno@clisp.org>
74746
74747         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
74748
74749 2006-10-24  Bruno Haible  <bruno@clisp.org>
74750
74751         * lib/gl_list.h: Use C comment style, not C++ comment style.
74752
74753 2006-10-23  Eric Blake  <ebb9@byu.net>
74754
74755         * lib/getaddrinfo.c (includes): Add missing include.
74756
74757 2006-10-23  Bruno Haible  <bruno@clisp.org>
74758             Paul Eggert  <eggert@cs.ucla.edu>
74759
74760         Ability to rename obstack_free.
74761         * lib/obstack.h (__obstack_free): New macro. Declare instead of
74762         obstack_free.
74763         (obstack_free): Invoke the __obstack_free macro.
74764         * lib/obstack.c (obstack_free): Use __obstack_free macro.
74765
74766 2006-10-23  Bruno Haible  <bruno@clisp.org>
74767             Paul Eggert  <eggert@cs.ucla.edu>
74768
74769         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
74770         __argc, __argv from the declaration. (They are defined as macros on
74771         mingw.)
74772
74773 2006-10-22  Bruno Haible  <bruno@clisp.org>
74774
74775         * doc/gnulib-intro.texi: New file.
74776         * doc/gnulib.texi: Include it.
74777
74778 2006-10-21  Bruno Haible  <bruno@clisp.org>
74779
74780         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
74781         "Introduction", "Miscellanous Notes", "Particular Modules".
74782
74783 2006-10-21  Bruno Haible  <bruno@clisp.org>
74784
74785         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74786         Change mostlyclean-local rule to avoid sh syntax error from bash
74787         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
74788
74789 2006-10-23  Jim Meyering  <jim@meyering.net>
74790
74791         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
74792         in place of snprintf.
74793
74794         * modules/inttostr (Files): Add lib/uinttostr.c.
74795         * lib/uinttostr.c (inttostr): New file/function.
74796         * lib/inttostr.h (uinttostr): Declare.
74797         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
74798         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74799         Add uinttostr.
74800         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
74801
74802 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74803
74804         * lib/canonicalize.c (ELOOP): Define if not already defined.
74805         Problem reported by Bruno Haible in
74806         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
74807
74808 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
74809
74810         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
74811         Problem reported by Perry Smith and Ville Laurikari.
74812
74813         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
74814         uses.
74815
74816 2006-10-19  Bruno Haible  <bruno@clisp.org>
74817
74818         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
74819         for mingw.
74820
74821 2006-10-19  Bruno Haible  <bruno@clisp.org>
74822
74823         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
74824         Needed for mingw.
74825
74826 2006-10-19  Bruno Haible  <bruno@clisp.org>
74827
74828         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
74829
74830 2006-10-19  Bruno Haible  <bruno@clisp.org>
74831
74832         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
74833         it.
74834
74835 2006-10-19  Bruno Haible  <bruno@clisp.org>
74836
74837         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
74838         invocation.
74839
74840 2006-10-19  Bruno Haible  <bruno@clisp.org>
74841
74842         * gnulib-tool (func_create_testdir): Don't include ftruncate and
74843         mountlist by default.
74844
74845 2006-10-16  Bruno Haible  <bruno@clisp.org>
74846
74847         * lib/c-strstr.c: Include c-strstr.h.
74848
74849 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74850
74851         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
74852         in a slash.
74853
74854 2006-10-18  Bruno Haible  <bruno@clisp.org>
74855
74856         * lib/lock.h [C++]: Wrap definitions in extern "C".
74857
74858 2006-10-18  Bruno Haible  <bruno@clisp.org>
74859
74860         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
74861         gl_LIBOBJS list.
74862
74863 2006-10-18  Bruno Haible  <bruno@clisp.org>
74864
74865         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
74866
74867 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
74868
74869         * lib/xstrtol.h: Include gettext.h.
74870         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
74871         Problem reported by Eric Blake.
74872         * modules/xstrtol (Depends-on): Add gettext-h.
74873
74874 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
74875
74876         * lib/strftime.c (advance): New macro.
74877         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
74878         incomplete type, so you can't add 0 to it.  Problem and patch
74879         reported by Eelco Dolstra for dietlibc.
74880
74881 2006-10-18  Jim Meyering  <jim@meyering.net>
74882
74883         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
74884         type for a local, and rename it: s/up/user_proc/.
74885
74886 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74887
74888         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
74889         READ_UTMP_USER_PROCESS.
74890         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
74891
74892 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74893
74894         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
74895         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
74896
74897 2006-10-17  Eric Blake  <ebb9@byu.net>
74898
74899         * lib/sigprocmask.c (sigprocmask): Fix typo.
74900
74901         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74902
74903         * modules/clean-temp (Makefile.am): Don't add to make output...
74904         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74905         config.h.
74906
74907 2006-10-17  Bruno Haible  <bruno@clisp.org>
74908
74909         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74910         differently if DEFAULT_TEXT_DOMAIN is set.
74911
74912 2006-10-16  Bruno Haible  <bruno@clisp.org>
74913
74914         * lib/clean-temp.c: Include fwriteerror.h.
74915
74916 2006-10-16  Bruno Haible  <bruno@clisp.org>
74917
74918         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74919
74920 2006-10-16  Bruno Haible  <bruno@clisp.org>
74921
74922         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
74923         * lib/sigprocmask.h: Include <sys/types.h>.
74924         (sigset_t): Use the system's definition if present.
74925
74926 2006-10-17  Eric Blake  <ebb9@byu.net>
74927
74928         * lib/xvasprintf.c (includes): Assume config.h.
74929         * lib/xasprintf.c (includes): Likewise.
74930
74931 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74932
74933         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
74934         at least as wide as intmax_t.
74935
74936 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
74937
74938         (Imported from Automake.)
74939         * build-aux/gnupload: Update to version 1.1 of directive file.
74940
74941 2006-10-16  Eric Blake  <ebb9@byu.net>
74942
74943         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
74944         match Automake 1.10a.
74945
74946 2006-10-14  Bruno Haible  <bruno@clisp.org>
74947
74948         * modules/sigprocmask: New file.
74949         * lib/sigprocmask.h: New file.
74950         * lib/sigprocmask.c: New file.
74951         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
74952         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
74953         request sigprocmask.o.
74954         (gl_PREREQ_SIGPROCMASK): New macro.
74955         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
74956         (Depends-on): Add sigprocmask.
74957         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
74958         gt_SIGNALBLOCKING. Test for 'raise' only once.
74959         * lib/fatal-signal.c: Include sigprocmask.h.
74960         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
74961         unblock_fatal_signals): Define always.
74962         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74963         sigprocmask.
74964
74965 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74966
74967         Sync from Automake.
74968         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
74969         which incorrectly sets the mode of an existing destination
74970         directory.  In some cases the unpatched install-sh could do the
74971         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
74972         system.  We hope this is rare in practice, but it's clearly worth
74973         fixing.  Problem reported by Alex Unleashed in
74974         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74975         Also, don't bother to check for -m bugs unless we're using -m;
74976         suggested by Stepan Kasal.
74977
74978 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74979
74980         Sync from Automake.
74981         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74982         `-c' flag, so they appear at the same position as in %FASTDEP%
74983         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74984         which ignores unknown options only after the first non-option.
74985         Bug report against M4 by Nelson H. F. Beebe.
74986
74987 2006-10-13  Jim Meyering  <jim@meyering.net>
74988
74989         Fix a bug in yesterday's change.
74990         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74991         p->fts_statp->st_dev would be used uninitialized.
74992         Ensures that we always call fts_stat on the very first entry.
74993         Miklos Szeredi reported that find -xdev stopped working.
74994
74995 2006-10-12  Bruno Haible  <bruno@clisp.org>
74996
74997         * gnulib-tool (func_get_automake_snippet): Append an automatically
74998         computed EXTRA_DIST augmentation.
74999         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75000         * modules/alloca-opt (Makefile.am): Likewise.
75001         * modules/allocsa (Makefile.am): Likewise.
75002         * modules/arcfour (Makefile.am): Likewise.
75003         * modules/arctwo (Makefile.am): Likewise.
75004         * modules/argmatch (Makefile.am): Likewise.
75005         * modules/argz (Makefile.am): Likewise.
75006         * modules/atexit (Makefile.am): Likewise.
75007         * modules/backupfile (Makefile.am): Likewise.
75008         * modules/byteswap (Makefile.am): Likewise.
75009         * modules/c-strtod (Makefile.am): Likewise.
75010         * modules/c-strtold (Makefile.am): Likewise.
75011         * modules/calloc (Makefile.am): Likewise.
75012         * modules/canon-host (Makefile.am): Likewise.
75013         * modules/canonicalize (Makefile.am): Likewise.
75014         * modules/chdir-long (Makefile.am): Likewise.
75015         * modules/chdir-safer (Makefile.am): Likewise.
75016         * modules/check-version (Makefile.am): Likewise.
75017         * modules/chown (Makefile.am): Likewise.
75018         * modules/cloexec (Makefile.am): Likewise.
75019         * modules/close-stream (Makefile.am): Likewise.
75020         * modules/closeout (Makefile.am): Likewise.
75021         * modules/crc (Makefile.am): Likewise.
75022         * modules/csharpexec (Makefile.am): Likewise.
75023         * modules/cycle-check (Makefile.am): Likewise.
75024         * modules/des (Makefile.am): Likewise.
75025         * modules/dev-ino (Makefile.am): Likewise.
75026         * modules/dirfd (Makefile.am): Likewise.
75027         * modules/dirname (Makefile.am): Likewise.
75028         * modules/dup2 (Makefile.am): Likewise.
75029         * modules/eealloc (Makefile.am): Likewise.
75030         * modules/error (Makefile.am): Likewise.
75031         * modules/euidaccess (Makefile.am): Likewise.
75032         * modules/exclude (Makefile.am): Likewise.
75033         * modules/exitfail (Makefile.am): Likewise.
75034         * modules/fcntl-safer (Makefile.am): Likewise.
75035         * modules/fcntl (Makefile.am): Likewise.
75036         * modules/file-type (Makefile.am): Likewise.
75037         * modules/fileblocks (Makefile.am): Likewise.
75038         * modules/filemode (Makefile.am): Likewise.
75039         * modules/filenamecat (Makefile.am): Likewise.
75040         * modules/fnmatch (Makefile.am): Likewise.
75041         * modules/fopen-safer (Makefile.am): Likewise.
75042         * modules/fpending (Makefile.am): Likewise.
75043         * modules/fprintftime (Makefile.am): Likewise.
75044         * modules/free (Makefile.am): Likewise.
75045         * modules/fsusage (Makefile.am): Likewise.
75046         * modules/ftruncate (Makefile.am): Likewise.
75047         * modules/fts (Makefile.am): Likewise.
75048         * modules/gc-arcfour (Makefile.am): Likewise.
75049         * modules/gc-des (Makefile.am): Likewise.
75050         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75051         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75052         * modules/gc-md4 (Makefile.am): Likewise.
75053         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75054         * modules/gc-sha1 (Makefile.am): Likewise.
75055         * modules/gc (Makefile.am): Likewise.
75056         * modules/getaddrinfo (Makefile.am): Likewise.
75057         * modules/getcwd (Makefile.am): Likewise.
75058         * modules/getdelim (Makefile.am): Likewise.
75059         * modules/getdomainname (Makefile.am): Likewise.
75060         * modules/getgroups (Makefile.am): Likewise.
75061         * modules/gethostname (Makefile.am): Likewise.
75062         * modules/gethrxtime (Makefile.am): Likewise.
75063         * modules/getline (Makefile.am): Likewise.
75064         * modules/getloadavg (Makefile.am): Likewise.
75065         * modules/getlogin_r (Makefile.am): Likewise.
75066         * modules/getndelim2 (Makefile.am): Likewise.
75067         * modules/getopt (Makefile.am): Likewise.
75068         * modules/getpagesize (Makefile.am): Likewise.
75069         * modules/getpass-gnu (Makefile.am): Likewise.
75070         * modules/getpass (Makefile.am): Likewise.
75071         * modules/getsubopt (Makefile.am): Likewise.
75072         * modules/gettime (Makefile.am): Likewise.
75073         * modules/gettimeofday (Makefile.am): Likewise.
75074         * modules/getugroups (Makefile.am): Likewise.
75075         * modules/getusershell (Makefile.am): Likewise.
75076         * modules/glob (Makefile.am): Likewise.
75077         * modules/group-member (Makefile.am): Likewise.
75078         * modules/hard-locale (Makefile.am): Likewise.
75079         * modules/hash (Makefile.am): Likewise.
75080         * modules/hmac-md5 (Makefile.am): Likewise.
75081         * modules/hmac-sha1 (Makefile.am): Likewise.
75082         * modules/human (Makefile.am): Likewise.
75083         * modules/idcache (Makefile.am): Likewise.
75084         * modules/imaxabs (Makefile.am): Likewise.
75085         * modules/imaxdiv (Makefile.am): Likewise.
75086         * modules/inet_ntop (Makefile.am): Likewise.
75087         * modules/inet_pton (Makefile.am): Likewise.
75088         * modules/intprops (Makefile.am): Likewise.
75089         * modules/inttostr (Makefile.am): Likewise.
75090         * modules/inttypes (Makefile.am): Likewise.
75091         * modules/isapipe (Makefile.am): Likewise.
75092         * modules/javaversion (Makefile.am): Likewise.
75093         * modules/lchmod (Makefile.am): Likewise.
75094         * modules/lchown (Makefile.am): Likewise.
75095         * modules/localcharset (Makefile.am): Likewise.
75096         * modules/long-options (Makefile.am): Likewise.
75097         * modules/lstat (Makefile.am): Likewise.
75098         * modules/malloc (Makefile.am): Likewise.
75099         * modules/mathl (Makefile.am): Likewise.
75100         * modules/mbchar (Makefile.am): Likewise.
75101         * modules/md2 (Makefile.am): Likewise.
75102         * modules/md4 (Makefile.am): Likewise.
75103         * modules/md5 (Makefile.am): Likewise.
75104         * modules/memcasecmp (Makefile.am): Likewise.
75105         * modules/memchr (Makefile.am): Likewise.
75106         * modules/memcmp (Makefile.am): Likewise.
75107         * modules/memcoll (Makefile.am): Likewise.
75108         * modules/memcpy (Makefile.am): Likewise.
75109         * modules/memmem (Makefile.am): Likewise.
75110         * modules/memmove (Makefile.am): Likewise.
75111         * modules/mempcpy (Makefile.am): Likewise.
75112         * modules/memrchr (Makefile.am): Likewise.
75113         * modules/memset (Makefile.am): Likewise.
75114         * modules/memxor (Makefile.am): Likewise.
75115         * modules/mkancesdirs (Makefile.am): Likewise.
75116         * modules/mkdir-p (Makefile.am): Likewise.
75117         * modules/mkdir (Makefile.am): Likewise.
75118         * modules/mkdtemp (Makefile.am): Likewise.
75119         * modules/mkstemp (Makefile.am): Likewise.
75120         * modules/mktime (Makefile.am): Likewise.
75121         * modules/modechange (Makefile.am): Likewise.
75122         * modules/mountlist (Makefile.am): Likewise.
75123         * modules/nanosleep (Makefile.am): Likewise.
75124         * modules/obstack (Makefile.am): Likewise.
75125         * modules/openat (Makefile.am): Likewise.
75126         * modules/pagealign_alloc (Makefile.am): Likewise.
75127         * modules/pathmax (Makefile.am): Likewise.
75128         * modules/physmem (Makefile.am): Likewise.
75129         * modules/poll (Makefile.am): Likewise.
75130         * modules/posixtm (Makefile.am): Likewise.
75131         * modules/posixver (Makefile.am): Likewise.
75132         * modules/putenv (Makefile.am): Likewise.
75133         * modules/quote (Makefile.am): Likewise.
75134         * modules/quotearg (Makefile.am): Likewise.
75135         * modules/raise (Makefile.am): Likewise.
75136         * modules/read-file (Makefile.am): Likewise.
75137         * modules/readline (Makefile.am): Likewise.
75138         * modules/readlink (Makefile.am): Likewise.
75139         * modules/readtokens (Makefile.am): Likewise.
75140         * modules/readutmp (Makefile.am): Likewise.
75141         * modules/realloc (Makefile.am): Likewise.
75142         * modules/regex (Makefile.am): Likewise.
75143         * modules/rename-dest-slash (Makefile.am): Likewise.
75144         * modules/rename (Makefile.am): Likewise.
75145         * modules/rijndael (Makefile.am): Likewise.
75146         * modules/rmdir (Makefile.am): Likewise.
75147         * modules/rpmatch (Makefile.am): Likewise.
75148         * modules/safe-read (Makefile.am): Likewise.
75149         * modules/safe-write (Makefile.am): Likewise.
75150         * modules/same-inode (Makefile.am): Likewise.
75151         * modules/same (Makefile.am): Likewise.
75152         * modules/save-cwd (Makefile.am): Likewise.
75153         * modules/savedir (Makefile.am): Likewise.
75154         * modules/setenv (Makefile.am): Likewise.
75155         * modules/settime (Makefile.am): Likewise.
75156         * modules/sha1 (Makefile.am): Likewise.
75157         * modules/sig2str (Makefile.am): Likewise.
75158         * modules/snprintf (Makefile.am): Likewise.
75159         * modules/stat-macros (Makefile.am): Likewise.
75160         * modules/stat-time (Makefile.am): Likewise.
75161         * modules/stdbool (Makefile.am): Likewise.
75162         * modules/stdint (Makefile.am): Likewise.
75163         * modules/stdlib-safer (Makefile.am): Likewise.
75164         * modules/stpcpy (Makefile.am): Likewise.
75165         * modules/stpncpy (Makefile.am): Likewise.
75166         * modules/strcase (Makefile.am): Likewise.
75167         * modules/strcasestr (Makefile.am): Likewise.
75168         * modules/strchrnul (Makefile.am): Likewise.
75169         * modules/strcspn (Makefile.am): Likewise.
75170         * modules/strdup (Makefile.am): Likewise.
75171         * modules/strerror (Makefile.am): Likewise.
75172         * modules/strftime (Makefile.am): Likewise.
75173         * modules/strndup (Makefile.am): Likewise.
75174         * modules/strnlen (Makefile.am): Likewise.
75175         * modules/strpbrk (Makefile.am): Likewise.
75176         * modules/strsep (Makefile.am): Likewise.
75177         * modules/strstr (Makefile.am): Likewise.
75178         * modules/strtod (Makefile.am): Likewise.
75179         * modules/strtoimax (Makefile.am): Likewise.
75180         * modules/strtok_r (Makefile.am): Likewise.
75181         * modules/strtol (Makefile.am): Likewise.
75182         * modules/strtoll (Makefile.am): Likewise.
75183         * modules/strtoul (Makefile.am): Likewise.
75184         * modules/strtoull (Makefile.am): Likewise.
75185         * modules/strtoumax (Makefile.am): Likewise.
75186         * modules/strverscmp (Makefile.am): Likewise.
75187         * modules/sys_socket (Makefile.am): Likewise.
75188         * modules/sys_stat (Makefile.am): Likewise.
75189         * modules/sysexits (Makefile.am): Likewise.
75190         * modules/time_r (Makefile.am): Likewise.
75191         * modules/timegm (Makefile.am): Likewise.
75192         * modules/timespec (Makefile.am): Likewise.
75193         * modules/tmpfile-safer (Makefile.am): Likewise.
75194         * modules/trim (Makefile.am): Likewise.
75195         * modules/unistd-safer (Makefile.am): Likewise.
75196         * modules/unlinkdir (Makefile.am): Likewise.
75197         * modules/unlocked-io (Makefile.am): Likewise.
75198         * modules/userspec (Makefile.am): Likewise.
75199         * modules/utime (Makefile.am): Likewise.
75200         * modules/utimecmp (Makefile.am): Likewise.
75201         * modules/utimens (Makefile.am): Likewise.
75202         * modules/vasnprintf (Makefile.am): Likewise.
75203         * modules/vasprintf (Makefile.am): Likewise.
75204         * modules/vsnprintf (Makefile.am): Likewise.
75205         * modules/xalloc (Makefile.am): Likewise.
75206         * modules/xgetcwd (Makefile.am): Likewise.
75207         * modules/xnanosleep (Makefile.am): Likewise.
75208         * modules/xreadlink (Makefile.am): Likewise.
75209         * modules/xstrtod (Makefile.am): Likewise.
75210         * modules/xstrtol (Makefile.am): Likewise.
75211         * modules/xstrtold (Makefile.am): Likewise.
75212         * modules/yesno (Makefile.am): Likewise.
75213         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75214
75215 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75216
75217         * modules/error (Makefile.am): Distribute files through
75218         EXTRA_DIST, not lib_SOURCES.
75219
75220 2006-10-12  Eric Blake  <ebb9@byu.net>
75221
75222         * modules/error (Makefile.am): Distribute files in /lib.
75223         * modules/obstack (Makefile.am): Likewise.
75224
75225 2006-10-12  Bruno Haible  <bruno@clisp.org>
75226
75227         * modules/acl (Makefile.am): Distribute all files in lib/ through
75228         EXTRA_DIST.
75229         * modules/arcfour (Makefile.am): Likewise.
75230         * modules/arctwo (Makefile.am): Likewise.
75231         * modules/argmatch (Makefile.am): Likewise.
75232         * modules/argz (Makefile.am): Likewise.
75233         * modules/atexit (Makefile.am): Likewise.
75234         * modules/backupfile (Makefile.am): Likewise.
75235         * modules/c-strtod (Makefile.am): Likewise.
75236         * modules/c-strtold (Makefile.am): Likewise.
75237         * modules/calloc (Makefile.am): Likewise.
75238         * modules/canon-host (Makefile.am): Likewise.
75239         * modules/canonicalize (Makefile.am): Likewise.
75240         * modules/chdir-long (Makefile.am): Likewise.
75241         * modules/chdir-safer (Makefile.am): Likewise.
75242         * modules/check-version (Makefile.am): Likewise.
75243         * modules/chown (Makefile.am): Likewise.
75244         * modules/cloexec (Makefile.am): Likewise.
75245         * modules/close-stream (Makefile.am): Likewise.
75246         * modules/closeout (Makefile.am): Likewise.
75247         * modules/crc (Makefile.am): Likewise.
75248         * modules/cycle-check (Makefile.am): Likewise.
75249         * modules/des (Makefile.am): Likewise.
75250         * modules/dirfd (Makefile.am): Likewise.
75251         * modules/dirname (Makefile.am): Likewise.
75252         * modules/dup2 (Makefile.am): Likewise.
75253         * modules/euidaccess (Makefile.am): Likewise.
75254         * modules/exclude (Makefile.am): Likewise.
75255         * modules/exitfail (Makefile.am): Likewise.
75256         * modules/fcntl-safer (Makefile.am): Likewise.
75257         * modules/file-type (Makefile.am): Likewise.
75258         * modules/fileblocks (Makefile.am): Likewise.
75259         * modules/filemode (Makefile.am): Likewise.
75260         * modules/filenamecat (Makefile.am): Likewise.
75261         * modules/fnmatch (Makefile.am): Likewise.
75262         * modules/fopen-safer (Makefile.am): Likewise.
75263         * modules/fpending (Makefile.am): Likewise.
75264         * modules/fprintftime (Makefile.am): Likewise.
75265         * modules/free (Makefile.am): Likewise.
75266         * modules/fsusage (Makefile.am): Likewise.
75267         * modules/ftruncate (Makefile.am): Likewise.
75268         * modules/fts (Makefile.am): Likewise.
75269         * modules/gc (Makefile.am): Likewise.
75270         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75271         * modules/getaddrinfo (Makefile.am): Likewise.
75272         * modules/getcwd (Makefile.am): Likewise.
75273         * modules/getdelim (Makefile.am): Likewise.
75274         * modules/getdomainname (Makefile.am): Likewise.
75275         * modules/getgroups (Makefile.am): Likewise.
75276         * modules/gethostname (Makefile.am): Likewise.
75277         * modules/gethrxtime (Makefile.am): Likewise.
75278         * modules/getline (Makefile.am): Likewise.
75279         * modules/getloadavg (Makefile.am): Likewise.
75280         * modules/getlogin_r (Makefile.am): Likewise.
75281         * modules/getopt (Makefile.am): Likewise.
75282         * modules/getpass (Makefile.am): Likewise.
75283         * modules/getpass-gnu (Makefile.am): Likewise.
75284         * modules/getsubopt (Makefile.am): Likewise.
75285         * modules/gettime (Makefile.am): Likewise.
75286         * modules/gettimeofday (Makefile.am): Likewise.
75287         * modules/getugroups (Makefile.am): Likewise.
75288         * modules/getusershell (Makefile.am): Likewise.
75289         * modules/glob (Makefile.am): Likewise.
75290         * modules/group-member (Makefile.am): Likewise.
75291         * modules/hard-locale (Makefile.am): Likewise.
75292         * modules/hash (Makefile.am): Likewise.
75293         * modules/hmac-md5 (Makefile.am): Likewise.
75294         * modules/hmac-sha1 (Makefile.am): Likewise.
75295         * modules/human (Makefile.am): Likewise.
75296         * modules/idcache (Makefile.am): Likewise.
75297         * modules/imaxabs (Makefile.am): Likewise.
75298         * modules/imaxdiv (Makefile.am): Likewise.
75299         * modules/inet_ntop (Makefile.am): Likewise.
75300         * modules/inet_pton (Makefile.am): Likewise.
75301         * modules/inttostr (Makefile.am): Likewise.
75302         * modules/isapipe (Makefile.am): Likewise.
75303         * modules/lchown (Makefile.am): Likewise.
75304         * modules/long-options (Makefile.am): Likewise.
75305         * modules/lstat (Makefile.am): Likewise.
75306         * modules/malloc (Makefile.am): Likewise.
75307         * modules/mathl (Makefile.am): Likewise.
75308         * modules/mbchar (Makefile.am): Likewise.
75309         * modules/md2 (Makefile.am): Likewise.
75310         * modules/md4 (Makefile.am): Likewise.
75311         * modules/md5 (Makefile.am): Likewise.
75312         * modules/memcasecmp (Makefile.am): Likewise.
75313         * modules/memchr (Makefile.am): Likewise.
75314         * modules/memcmp (Makefile.am): Likewise.
75315         * modules/memcoll (Makefile.am): Likewise.
75316         * modules/memcpy (Makefile.am): Likewise.
75317         * modules/memmem (Makefile.am): Likewise.
75318         * modules/memmove (Makefile.am): Likewise.
75319         * modules/mempcpy (Makefile.am): Likewise.
75320         * modules/memrchr (Makefile.am): Likewise.
75321         * modules/memset (Makefile.am): Likewise.
75322         * modules/memxor (Makefile.am): Likewise.
75323         * modules/mkancesdirs (Makefile.am): Likewise.
75324         * modules/mkdir (Makefile.am): Likewise.
75325         * modules/mkdir-p (Makefile.am): Likewise.
75326         * modules/mkdtemp (Makefile.am): Likewise.
75327         * modules/mkstemp (Makefile.am): Likewise.
75328         * modules/mktime (Makefile.am): Likewise.
75329         * modules/modechange (Makefile.am): Likewise.
75330         * modules/mountlist (Makefile.am): Likewise.
75331         * modules/nanosleep (Makefile.am): Likewise.
75332         * modules/openat (Makefile.am): Likewise.
75333         * modules/pagealign_alloc (Makefile.am): Likewise.
75334         * modules/physmem (Makefile.am): Likewise.
75335         * modules/poll (Makefile.am): Likewise.
75336         * modules/posixtm (Makefile.am): Likewise.
75337         * modules/posixver (Makefile.am): Likewise.
75338         * modules/putenv (Makefile.am): Likewise.
75339         * modules/quote (Makefile.am): Likewise.
75340         * modules/quotearg (Makefile.am): Likewise.
75341         * modules/raise (Makefile.am): Likewise.
75342         * modules/read-file (Makefile.am): Likewise.
75343         * modules/readline (Makefile.am): Likewise.
75344         * modules/readlink (Makefile.am): Likewise.
75345         * modules/readtokens (Makefile.am): Likewise.
75346         * modules/readutmp (Makefile.am): Likewise.
75347         * modules/realloc (Makefile.am): Likewise.
75348         * modules/regex (Makefile.am): Likewise.
75349         * modules/rename (Makefile.am): Likewise.
75350         * modules/rename-dest-slash (Makefile.am): Likewise.
75351         * modules/rijndael (Makefile.am): Likewise.
75352         * modules/rmdir (Makefile.am): Likewise.
75353         * modules/rpmatch (Makefile.am): Likewise.
75354         * modules/safe-read (Makefile.am): Likewise.
75355         * modules/safe-write (Makefile.am): Likewise.
75356         * modules/same (Makefile.am): Likewise.
75357         * modules/save-cwd (Makefile.am): Likewise.
75358         * modules/savedir (Makefile.am): Likewise.
75359         * modules/setenv (Makefile.am): Likewise.
75360         * modules/settime (Makefile.am): Likewise.
75361         * modules/sha1 (Makefile.am): Likewise.
75362         * modules/sig2str (Makefile.am): Likewise.
75363         * modules/snprintf (Makefile.am): Likewise.
75364         * modules/stdlib-safer (Makefile.am): Likewise.
75365         * modules/stpcpy (Makefile.am): Likewise.
75366         * modules/stpncpy (Makefile.am): Likewise.
75367         * modules/strcase (Makefile.am): Likewise.
75368         * modules/strcasestr (Makefile.am): Likewise.
75369         * modules/strchrnul (Makefile.am): Likewise.
75370         * modules/strcspn (Makefile.am): Likewise.
75371         * modules/strdup (Makefile.am): Likewise.
75372         * modules/strerror (Makefile.am): Likewise.
75373         * modules/strftime (Makefile.am): Likewise.
75374         * modules/strndup (Makefile.am): Likewise.
75375         * modules/strnlen (Makefile.am): Likewise.
75376         * modules/strpbrk (Makefile.am): Likewise.
75377         * modules/strsep (Makefile.am): Likewise.
75378         * modules/strstr (Makefile.am): Likewise.
75379         * modules/strtod (Makefile.am): Likewise.
75380         * modules/strtoimax (Makefile.am): Likewise.
75381         * modules/strtok_r (Makefile.am): Likewise.
75382         * modules/strtol (Makefile.am): Likewise.
75383         * modules/strtoll (Makefile.am): Likewise.
75384         * modules/strtoul (Makefile.am): Likewise.
75385         * modules/strtoull (Makefile.am): Likewise.
75386         * modules/strtoumax (Makefile.am): Likewise.
75387         * modules/strverscmp (Makefile.am): Likewise.
75388         * modules/time_r (Makefile.am): Likewise.
75389         * modules/timegm (Makefile.am): Likewise.
75390         * modules/tmpfile-safer (Makefile.am): Likewise.
75391         * modules/unistd-safer (Makefile.am): Likewise.
75392         * modules/unlinkdir (Makefile.am): Likewise.
75393         * modules/userspec (Makefile.am): Likewise.
75394         * modules/utime (Makefile.am): Likewise.
75395         * modules/utimecmp (Makefile.am): Likewise.
75396         * modules/utimens (Makefile.am): Likewise.
75397         * modules/vasnprintf (Makefile.am): Likewise.
75398         * modules/vasprintf (Makefile.am): Likewise.
75399         * modules/vsnprintf (Makefile.am): Likewise.
75400         * modules/xalloc (Makefile.am): Likewise.
75401         * modules/xgetcwd (Makefile.am): Likewise.
75402         * modules/xnanosleep (Makefile.am): Likewise.
75403         * modules/xreadlink (Makefile.am): Likewise.
75404         * modules/xstrtod (Makefile.am): Likewise.
75405         * modules/xstrtol (Makefile.am): Likewise.
75406         * modules/xstrtold (Makefile.am): Likewise.
75407         * modules/yesno (Makefile.am): Likewise.
75408
75409 2006-10-12  Jim Meyering  <jim@meyering.net>
75410
75411         * m4/getloadavg.m4: Revert the change below.
75412
75413         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75414         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75415         fail with a symlink, which is what coreutils' ./bootstrap now
75416         creates by default.
75417
75418 2006-10-12  Bruno Haible  <bruno@clisp.org>
75419
75420         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75421         mingw.
75422         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75423         MSVC and mingw explicitly.
75424
75425 2006-10-11  Simon Josefsson  <jas@extundo.com>
75426             Bruno Haible  <bruno@clisp.org>
75427
75428         Add support for multiple gnulib-tool invocations in the scope of a
75429         single configure.ac file.
75430         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75431         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75432         with the same contents as the _LIBADD variable.
75433         (func_emit_initmacro_start, func_emit_initmacro_end,
75434         func_emit_initmacro_done): New functions.
75435         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75436         gl_LIBOBJS and gl_LTLIBOBJS.
75437
75438 2006-10-11  Bruno Haible  <bruno@clisp.org>
75439
75440         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75441         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75442         autoreconf. Instead, invoke autopoint explicitly but move back the
75443         *.m4 files from gnulib.
75444
75445 2006-10-11  Bruno Haible  <bruno@clisp.org>
75446
75447         * gnulib-tool (func_usage): Make module names after --create-testdir
75448         optional.
75449         (func_create_testdir): If no module was specified, use nearly all
75450         modules.
75451
75452 2006-10-12  Jim Meyering  <jim@meyering.net>
75453
75454         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75455         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75456         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75457         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75458         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75459         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75460         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75461         (fts_set_stat_required): New function.
75462         (fts_open): Defer the calls to fts_stat, if possible or requested.
75463         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75464         into fts_stat itself.
75465         (fts_read): Perform any required (deferred) fts_stat call.
75466         (fts_build): Likewise, for the directory we're about to open and read.
75467         In the readdir loop, carefully decide whether each entry will require
75468         an eventual call to fts_stat, using dirent.d_type info if available.
75469         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75470         a command line argument into this function.  Update all callers.
75471         Map a return value of FTS_DOT to FTS_D for a command line argument.
75472         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75473         Thanks to Miklos Szeredi for his tenacity and for the initial
75474         bug report about "find" failing on a FUSE-based file system.
75475
75476         * lib/fts.c (fts_open): Use consistent indentation.
75477
75478 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75479
75480         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75481         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75482         reported by Jim Meyering.  All uses of cache variables renamed
75483         to match Autoconf's.
75484         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75485         the other one.
75486
75487         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75488         Fix misspelling in diagnostic.
75489
75490 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75491
75492         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75493         defined.  Problem reported by Matthew Woehlke.
75494
75495         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75496         Add support for Tandem NonStop R series.
75497         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75498         Use new macro.
75499
75500         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75501         (has_trailing_slash): Omit size arg; all callers changed.
75502         Omit 'inline', since it doesn't help performance and we'd
75503         need to configure it.
75504         Don't count //, ///, etc. as having a trailing slash.
75505         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75506         (rpl_rename_dest_slash): On failure, use rename's errno rather
75507         than (in some cases) an incorrect or junk errno.
75508         Simplify code by removing need to compute length; this does
75509         cause it to make two passes instead of one over the file name,
75510         but it's worth it.
75511
75512         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
75513         change, since Autoconf's version may no longer be appropriate now
75514         that we are using CVS Autoconf's version.  Add support for Tandem.
75515
75516 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75517             Bruno Haible  <bruno@clisp.org>
75518
75519         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
75520         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
75521         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
75522         gl_AC_TYPE_LONG_LONG.
75523
75524         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
75525         instead of HAVE_LONG_LONG.
75526         * lib/printf-args.c (printf_fetchargs): Likewise.
75527         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
75528         * lib/vasnprintf.c (VASNPRINTF): Likewise.
75529         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
75530         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
75531         gl_AC_TYPE_LONG_LONG.
75532
75533 2006-10-11  Bruno Haible  <bruno@clisp.org>
75534
75535         * m4/longlong.m4: Add comments.
75536         * m4/ulonglong.m4: Likewise.
75537
75538 2006-10-10  Bruno Haible  <bruno@clisp.org>
75539
75540         Make it possible to #define stpcpy, strdup to aliases.
75541         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
75542         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
75543
75544 2006-10-10  Bruno Haible  <bruno@clisp.org>
75545
75546         Make it possible to #define gcd to an alias.
75547         * lib/gcd.c: Include config.h.
75548
75549 2006-10-10  Bruno Haible  <bruno@clisp.org>
75550
75551         Make it possible to #define c_isascii to an alias.
75552         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
75553         defined. Undefine the macros before defining them, to avoid gcc
75554         warnings.
75555         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
75556         define NO_C_CTYPE_MACROS early.
75557
75558 2006-10-10  Bruno Haible  <bruno@clisp.org>
75559
75560         Make it possible to #define set_program_name to an alias.
75561         * lib/progname.c: Don't undefine set_program_name; instead, undefine
75562         ENABLE_RELOCATABLE early.
75563
75564 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
75565
75566         Port to Tandem NSK OSS, which has 64-bit signed int but at most
75567         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
75568         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
75569         More generally, don't assume that 64-bit signed int is available
75570         if unsigned int is, and vice versa.
75571         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
75572         unsigned symbols, not on their signed counterparts.
75573         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
75574         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
75575         (UINT64_C, UINTMAX_C):
75576         Likewise.
75577         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
75578         unsigned counterparts.
75579         (Have_long_long, Unsigned): New macros.
75580         (Int): Renamed from INT.
75581         (strtoimax): Use the new macros.
75582         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
75583         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
75584         * modules/inttypes (inttypes.h): Substitute
75585         HAVE_UNSIGNED_LONG_LONG_INT.
75586         * modules/stdint (stdint.h): Likewise.
75587         (Files): Add m4/ulonglong.m4.
75588
75589 2006-10-10  Bruno Haible  <bruno@clisp.org>
75590
75591         Fix a gcc -Wshadow warning.
75592         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
75593         to 'bucket'.
75594         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
75595         gl_linked_indexof_from_to): Likewise.
75596         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
75597         Likewise.
75598         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
75599         Likewise.
75600         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
75601         Reported by Eric Blake.
75602
75603 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
75604
75605         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
75606         for NetBSD.  Problem reported by Bruno Haible.
75607
75608 2006-10-09  Jim Meyering  <jim@meyering.net>
75609
75610         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
75611         Patch from Bruno Haible.
75612
75613 2006-10-09  Jim Meyering  <jim@meyering.net>
75614
75615         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
75616         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
75617         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
75618
75619 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
75620
75621         Don't include <config.h> twice; this doesn't work in some cases,
75622         e.g., when config.h has "#define intmax_t long long int" and
75623         we include <config.h>, <inttypes.h>, <config.h> in that order.
75624         Problem reported by Matthew Woehlke in:
75625         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
75626         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
75627         * lib/fts-cycle.c: Don't include config.h.
75628         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
75629         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
75630         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
75631         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
75632         inttypes.h.
75633         * lib/xstrtoumax.c: Likewise.
75634         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
75635         __strtol and the like, so that this module is more like its siblings.
75636         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
75637         Remove; no longer needed now that we assume gnulib inttypes.h.
75638
75639 2006-10-08  Bruno Haible  <bruno@clisp.org>
75640
75641         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
75642         option.
75643
75644 2006-10-07  Jim Meyering  <jim@meyering.net>
75645
75646         * modules/inttypes (inttypes.h): Revert what seems to have been
75647         an inadvertent part of today's change: use "|", not "/" in the
75648         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
75649
75650 2006-10-07  Bruno Haible  <bruno@clisp.org>
75651
75652         * modules/sublist: New file.
75653
75654 2006-10-07  Bruno Haible  <bruno@clisp.org>
75655
75656         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
75657         * modules/argz (argz.h): Likewise.
75658         * modules/arpa_inet (arpa/inet.h): Likewise.
75659         * modules/byteswap (byteswap.h): Likewise.
75660         * modules/configmake (configmake.h): Likewise.
75661         * modules/fcntl (fcntl.h): Likewise.
75662         * modules/fnmatch (fnmatch.h): Likewise.
75663         * modules/getopt (getopt.h): Likewise.
75664         * modules/glob (glob.h): Likewise.
75665         * modules/inttypes (inttypes.h): Likewise.
75666         * modules/netinet_in (netinet/in.h): Likewise.
75667         * modules/poll (poll.h): Likewise.
75668         * modules/stdbool (stdbool.h): Likewise.
75669         * modules/stdint (stdint.h): Likewise.
75670         * modules/sys_select (sys/select.h): Likewise.
75671         * modules/sys_socket (sys/socket.h): Likewise.
75672         * modules/sys_stat (sys/stat.h): Likewise.
75673         * modules/sysexits (sysexits.h): Likewise.
75674         * modules/unistd (unistd.h): Likewise.
75675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75676         Add a "DO NOT EDIT" comment to the generated file.
75677         (func_import): Likewise for gnulib-comp.m4.
75678
75679 2006-10-07  Bruno Haible  <bruno@clisp.org>
75680
75681         * lib/gl_sublist.h: New file.
75682         * lib/gl_sublist.c: New file.
75683
75684 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
75685
75686         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
75687         name (relative to the original working directory) and the file
75688         name component (relative to the temporary working directory).  All
75689         callers changed.
75690         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
75691         * lib/mkdir-p.c (make_dir_parents): Likewise.
75692         * lib/mkdir-p.h (make_dir_parents): Likewise.
75693
75694 2006-10-06  Eric Blake  <ebb9@byu.net>
75695
75696         Define several macros for use by the clean-temp module.
75697         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
75698         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
75699         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
75700
75701         * lib/clean-temp.h (close_stream_temp): New declaration.
75702         * lib/clean-temp.c (includes): Pull in headers according to what
75703         other modules are in use.
75704         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
75705
75706 2006-10-06  Bruno Haible  <bruno@clisp.org>
75707
75708         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
75709         instead of fopen, fwriteerror.
75710
75711 2006-10-06  Bruno Haible  <bruno@clisp.org>
75712
75713         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
75714         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
75715         int.
75716         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
75717         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
75718         Return an error indicator.
75719         Suggested by Eric Blake.
75720
75721 2006-10-06  Bruno Haible  <bruno@clisp.org>
75722
75723         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
75724         Reported by Eric Blake.
75725
75726 2006-10-06  Bruno Haible  <bruno@clisp.org>
75727
75728         * modules/closeout (Description): Mention stderr too.
75729
75730 2006-10-06  Bruno Haible  <bruno@clisp.org>
75731         and Paul Eggert  <eggert@cs.ucla.edu>
75732
75733         * lib/closeout.c (close_stdout): Also close stderr.
75734         * lib/closeout.h: Update comment.
75735
75736 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
75737
75738         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
75739         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
75740         * lib/dirchownmod.c: Include lchown.h.
75741         * lib/lchown.c: Don't include files that lchown.h now includes.
75742         Don't declare chown, since lchown.h now does that.
75743         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
75744         (lchown): Define to rpl_chown if lchown is declared but
75745         does not exist.  Declare using a prototype if lchown is not
75746         declared.  Add a copyright notice.
75747         * lib/mkstemp.h: Include <unistd.h>.
75748         * lib/openat.c: Include lchown.h.
75749
75750         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
75751         we now test for that separately.
75752         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
75753         rather than O_NOFOLLOW, when testing whether it's possible to
75754         avoid a race condition reliably.
75755         * lib/savewd.c (savewd_chdir): Likewise.
75756
75757         Remove macros that are no longer needed now that stdint.h is
75758         reliable.
75759         * lib/fsusage.c (UINTMAX_MAX): Remove.
75760         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
75761         * lib/utimecmp.c (SIZE_MAX): Remove.
75762
75763         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
75764
75765         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
75766         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
75767         O_NOATIME works.
75768
75769 2006-10-05  Bruno Haible  <bruno@clisp.org>
75770
75771         * lib/gl_list.h (gl_sortedlist_search_from_to,
75772         gl_sortedlist_indexof_from_to): New declarations.
75773         (gl_list_implementation): New fields sortedlist_search_from_to,
75774         sortedlist_indexof_from_to.
75775         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
75776         inline functions.
75777         * lib/gl_list.c (gl_sortedlist_search_from_to,
75778         gl_sortedlist_indexof_from_to): New functions.
75779         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
75780         function.
75781         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
75782         (gl_array_sortedlist_search_from_to): New function.
75783         (gl_array_list_implementation): Update.
75784         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
75785         function.
75786         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
75787         (gl_carray_sortedlist_search_from_to): New function.
75788         (gl_carray_list_implementation): Update.
75789         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
75790         gl_linked_sortedlist_indexof_from_to): New functions.
75791         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75792         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75793         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
75794         gl_tree_sortedlist_indexof_from_to): New functions.
75795         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75796         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75797         Update.
75798         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75799         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
75800         Update.
75801
75802 2006-10-05  Bruno Haible  <bruno@clisp.org>
75803
75804         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
75805         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
75806         (struct gl_list_implementation): Add fields search_from_to,
75807         indexof_from_to. Remove fields search, indexof.
75808         (gl_list_search): Use the search_from_to method.
75809         (gl_list_search_from, gl_list_search_from_to): New functions.
75810         (gl_list_indexof): Use the indexof_from_to method.
75811         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75812         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
75813         (gl_list_search_from, gl_list_search_from_to): New functions.
75814         (gl_list_indexof): Use the indexof_from_to method.
75815         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
75816         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
75817         gl_array_indexof. Add start_index, end_index arguments.
75818         (gl_array_search_from_to): Renamed from gl_array_search. Add
75819         start_index, end_index arguments.
75820         (gl_array_remove, gl_array_list_implementation): Update.
75821         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
75822         gl_carray_indexof. Add start_index, end_index arguments.
75823         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
75824         start_index, end_index arguments.
75825         (gl_carray_remove, gl_carray_list_implementation): Update.
75826         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
75827         gl_linked_search. Add start_index, end_index arguments.
75828         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
75829         start_index, end_index arguments.
75830         (gl_linked_remove): Update.
75831         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75832         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75833         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
75834         field to 'size_t'.
75835         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
75836         gl_tree_search. Add start_index, end_index arguments.
75837         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75838         start_index, end_index arguments.
75839         (gl_tree_remove): Update.
75840         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75841         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75842         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
75843         function.
75844         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
75845         gl_tree_search. Add start_index, end_index arguments.
75846         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75847         start_index, end_index arguments.
75848         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75849         Update.
75850         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75851
75852 2006-10-05  Bruno Haible  <bruno@clisp.org>
75853
75854         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
75855
75856         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
75857         fwriteerror_temp): New declarations.
75858         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
75859         (descriptors): New variable.
75860         (cleanup): First, close the descriptors.
75861         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
75862         fclose_temp, fwriteerror_temp): New functions.
75863
75864 2006-10-04  Jim Meyering  <jim@meyering.net>
75865
75866         * lib/fts.c (fts_open): Tiny comment change.
75867
75868 2006-10-04  Bruno Haible  <bruno@clisp.org>
75869
75870         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
75871         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
75872         gl_LOCK_BODY.
75873         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
75874         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
75875         gl_LOCK_EARLY_BODY.
75876         (gl_LOCK): Require gl_LOCK_BODY.
75877
75878 2006-10-04  Bruno Haible  <bruno@clisp.org>
75879
75880         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
75881         (gl_oset_search_atleast): New declaration.
75882         (struct gl_oset_implementation): Add field 'search_atleast'.
75883         (gl_oset_search_atleast): New inline function.
75884         * lib/gl_oset.c (gl_oset_search_atleast): New function.
75885         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
75886         (gl_array_oset_implementation): Update.
75887         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
75888         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
75889         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
75890
75891 2006-10-04  Bruno Haible  <bruno@clisp.org>
75892
75893         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
75894
75895 2006-10-03  Bruno Haible  <bruno@clisp.org>
75896
75897         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75898         from gl_avltreehash_list_implementation.
75899
75900 2006-10-03  Bruno Haible  <bruno@clisp.org>
75901
75902         * lib/gl_oset.c (gl_oset_add): Fix return type.
75903
75904 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75905
75906         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75907
75908 2006-10-02  Eric Blake  <ebb9@byu.net>
75909
75910         * modules/strnlen (Depends-on): Add extensions.
75911
75912 2006-10-02  Eric Blake  <ebb9@byu.net>
75913
75914         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75915         definition in 2.60+.
75916
75917 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75918
75919         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75920         checks.
75921
75922 2006-10-02  Bruno Haible  <bruno@clisp.org>
75923
75924         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
75925         to the AUTOMAKE_OPTIONS.
75926         Reported by Jim Meyering.
75927
75928 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75929
75930         Work around bug in Solaris 10 /proc file system:
75931         /proc/self/fd/NNN/.. isn't the parent directory of
75932         the directory whose file descriptor is NNN.  This needs to
75933         be worked around at run time, not compile time, since a
75934         program might be built on Solaris 8, where things work, and
75935         run on Solaris 10.
75936         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
75937         to use the following interface instead:
75938         (OPENAT_BUFFER_SIZE): New macro.
75939         (openat_proc_name): New function.
75940         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
75941         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
75942         Likewise.
75943         * lib/openat-proc.c: New file.
75944         * modules/openat (Files): Add lib/openat-proc.c.
75945         (Depends-on): Add same-inode, stdbool.
75946         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
75947
75948 2006-09-29  Bruno Haible  <bruno@clisp.org>
75949
75950         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
75951         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
75952         argument. Set stdout_closed before testing for ferror, not after.
75953         (fwriteerror, fwriteerror_no_ebadf): New functions.
75954
75955 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75956
75957         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
75958
75959 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
75960
75961         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
75962         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
75963
75964 2006-09-28  Jim Meyering  <jim@meyering.net>
75965
75966         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
75967         Include <unistd.h>.
75968
75969 2006-09-28  Bruno Haible  <bruno@clisp.org>
75970
75971         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
75972         * modules/linkedhash-list (Depends-on): Likewise.
75973         * modules/rbtreehash-list (Depends-on): Likewise.
75974
75975 2006-09-28  Bruno Haible  <bruno@clisp.org>
75976
75977         * lib/strndup.h: Simplify the redefinition of strndup.
75978         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75979         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75980
75981 2006-09-28  Bruno Haible  <bruno@clisp.org>
75982
75983         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75984         * lib/gl_linkedhash_list.c: Likewise.
75985         * lib/gl_rbtreehash_list.c: Likewise.
75986
75987 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75988
75989         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75990         getaddrinfo.
75991
75992         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75993         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75994         it causes <stdio_ext.h> to cause a compile-time error.
75995         Problem reported by Nelson H. F. Beebe.
75996         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75997         of HAVE_DECL___PENDING.
75998
75999         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76000         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76001         declaration.
76002
76003 2006-09-27  Jim Meyering  <jim@meyering.net>
76004
76005         This file could end up with a definition for a function
76006         named __strndup, rather than rpl_strndup on a system with
76007         incomplete weak_alias support.
76008         * lib/strndup.c (strndup): Rename from __strndup.
76009         Remove #defines that used to map __strndup to strndup.
76010         Don't use K&R prototypes.
76011         Remove LIBC-related code, since this file is not sync'd with glibc.
76012         * lib/strndup.h: Revamp, accordingly.
76013         * m4/strndup.m4: Modernize.
76014
76015 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76016
76017         * modules/savewd (Depends-on): Add 'raise'.
76018         * lib/savewd.c: Include <signal.h>, for 'raise'.
76019
76020 2006-09-26  Jim Meyering  <jim@meyering.net>
76021
76022         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76023         when we detect Darwin 8.7.0's acl_get_file bug.
76024         Rearrange to perform the new (below) run-test while $LIBS
76025         contains any acl-related library.  Set USE_ACL at the end.
76026         (gl_ACL_GET_FILE): New function.
76027
76028 2006-09-26  Eric Blake  <ebb9@byu.net>
76029
76030         * lib/verror.c: Include <config.h> unconditionally.
76031
76032 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76033
76034         * modules/clock-time (Maintainer): Add self.
76035         * modules/getlogin_r (Depends-on): Add extensions.
76036
76037 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76038
76039         * modules/clock-time: New module.
76040         * modules/nanosleep (Depends-on): Add clock-time.
76041         * modules/gethrxtime (Depends-on): Likewise.
76042         * modules/gettime (Depends-on): Likewise.
76043         * modules/settime (Depends-on): Likewise.
76044
76045         * modules/fts-lgpl: Depend on openat.
76046         * modules/mkancesdirs: Depend on savewd.
76047         * modules/mkdir-p: Likewise.
76048
76049 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76050
76051         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76052
76053         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76054         `gl_have_arbitrary_file_name_length_limit' to
76055         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76056         actually works between configure runs.
76057
76058 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76059             Bruno Haible  <bruno@clisp.org>
76060
76061         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76062
76063 2006-09-25  Jim Meyering  <jim@meyering.net>
76064
76065         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76066         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76067
76068 2006-09-25  Eric Blake  <ebb9@byu.net>
76069
76070         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76071         exec's in 2006-09-18 patch when shuffling fds.
76072
76073 2006-09-25  Bruno Haible  <bruno@clisp.org>
76074
76075         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76076         Reported by Jim Meyering.
76077
76078 2006-09-24  Jim Meyering  <jim@meyering.net>
76079
76080         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76081         compare a pointer against a literal "0".  That caused failures with
76082         at least HP-UX's hpcc.
76083
76084 2006-09-22  Simon Josefsson  <jas@extundo.com>
76085
76086         * modules/gc-sha1:
76087         * modules/gc-md4:
76088         * modules/gc-hmac-sha1:
76089         * modules/gc-hmac-md5:
76090         * modules/gc-des:
76091         * modules/gc-arcfour: Distribute more files.
76092
76093 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76094
76095         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76096         (gl_linked_iterator_from_to): Initialize struct completely.
76097         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76098         (gl_tree_iterator_from_to): Likewise
76099         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76100         * lib/gl_array_list.c [lint] (gl_array_iterator)
76101         (gl_array_iterator_from_to): Likewise.
76102         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76103         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76104         (gl_carray_iterator_from_to): Likewise.
76105
76106         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76107         * lib/md4.c (md4_process_block): Remove unused variable.
76108         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76109         parentheses for clarity.
76110
76111 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76112
76113         * modules/bison-i18n (Depends-on): Add gettext.
76114
76115 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76116
76117         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76118         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76119         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76120         also add missing comma that caused broken test.
76121         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76122         stdlib.h, for `abort'.
76123         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76124         variables.
76125         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76126         include unistd.h if present, for `rmdir'.
76127         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76128         variables.
76129         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76130         in the process include standard headers for prototypes.
76131         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76132         gets declared on GNU/Linux.
76133         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76134         unistd.h, for `rmdir'.
76135         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76136
76137         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76138         always true.
76139         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76140
76141         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76142
76143 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76144
76145         * gnulib-tool (func_version): Create output all at once.  This
76146         may help avoid triggering unnecessary SIGPIPEs, and at any
76147         rate it doesn't hurt.
76148
76149 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76150             Bruno Haible  <bruno@clisp.org>
76151
76152         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76153         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76154         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76155
76156         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76157         (gl_FUNC_VASPRINTF): Invoke it.
76158
76159 2006-09-22  Bruno Haible  <bruno@clisp.org>
76160
76161         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76162         getloadavg.c as first argument.
76163
76164 2006-09-22  Bruno Haible  <bruno@clisp.org>
76165
76166         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76167         at the beginning of the gl_INIT macro.
76168         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76169         gl_GETLOADAVG.
76170
76171 2006-09-22  Bruno Haible  <bruno@clisp.org>
76172
76173         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76174         module.
76175         Suggested by Ralf Wildenhues.
76176
76177 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76178
76179         Import this patch from libc:
76180
76181         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76182
76183         * lib/regex_internal.c (re_string_reconstruct): Handle
76184         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76185         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76186         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76187         re_string_context_at.
76188
76189         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76190         now requires it.
76191         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76192         gl_REGEX now does it for us.
76193         (gl_REGEX): Add test taken from
76194         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76195
76196         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76197         Check that large offsets work.  Modernize Autoconf usages.
76198         Prefer "yes" to mean a good thing rather than a bad.
76199         Don't put "#define mkstemp" in config.h, as this might interfere
76200         with standard system headers that "#define mkstemp mkstemp64".
76201
76202         * modules/mkstemp (Depends-on): Add extensions, so that
76203         mkstemp is visible on some platforms.
76204         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76205         (Include): Change to "mkstemp.h" from <stdlib.h>.
76206         (Files): Add mkstemp.h.
76207
76208         * lib/mkstemp.h: New file, since some standard headers
76209         #define mkstemp.
76210         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76211         Include "mkstemp.h".
76212         Make the _LIBC code resemble glibc original more,
76213         e.g., use K&R style.
76214         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76215         (mkstemp): Remove, since mkstemp.h does this for us.
76216         * lib/stdlib--.h: Include mkstemp.h.
76217
76218         Import this patch from libc:
76219
76220         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76221
76222         * lib/tempname.c (__gen_tempname): Change attempts_min
76223         into a macro.  Use preprocessor to decide how to initialize
76224         attempts [Coverity CID 67].
76225
76226 2006-09-20  Bruno Haible  <bruno@clisp.org>
76227
76228         * lib/mkdtemp.c: Import from libc.
76229         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76230                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76231                 attempts_min into a macro.  Use preprocessor to decide how to
76232                 initialize attempts [Coverity CID 67].
76233         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76234                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76235                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76236
76237 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76238
76239         * gnulib-tool (func_exit): New function, to allow to pass the
76240         exit status portably through the trap.  Use everywhere.
76241         (--help, --version): Signal a write error.
76242         (trap): catch SIGPIPE, for write errors.
76243         Exit at the end of the trap, with the correct exit status.
76244
76245 2006-09-19  Karl Berry  <karl@gnu.org>
76246
76247         * doc/gnulib.texi: note about the license texinfo files.
76248
76249 2006-09-19  Eric Blake  <ebb9@byu.net>
76250
76251         * gnulib-tool: Avoid space-tab.
76252
76253 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76254
76255         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76256         that prevented coreutils 6.1 from building.  Problem reported
76257         by Petter Reinholdtsen.
76258
76259 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76260
76261         * gnulib-tool (avoidlist): Fix typo that broke options like
76262         --avoid=lock that are used by coreutils bootstrap.
76263
76264 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76265
76266         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76267         more systematically.
76268
76269 2006-09-18  Jim Meyering  <jim@meyering.net>
76270
76271         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76272
76273 2006-09-18  Bruno Haible  <bruno@clisp.org>
76274
76275         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76276
76277 2006-09-18  Bruno Haible  <bruno@clisp.org>
76278
76279         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76280         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76281         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76282         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76283         * m4/gettext.m4: Require autoconf >= 2.52.
76284         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76285         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76286         of gl_cv_header_inttypes_h.
76287
76288 2006-09-18  Bruno Haible  <bruno@clisp.org>
76289
76290         * lib/javaversion.c: Include configmake.h.
76291
76292 2006-09-18  Bruno Haible  <bruno@clisp.org>
76293
76294         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76295         avoid that the while loops be executed in a subshell.
76296
76297 2006-09-18  Bruno Haible  <bruno@clisp.org>
76298
76299         * MODULES.html.sh (func_module): Break long lines.
76300         Suggested by Bruce Korb <bkorb@gnu.org>.
76301
76302 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76303
76304         Speed up by a factor of 1.12.
76305         * gnulib-tool (nl): New variable.
76306         (func_import): Rewrite include directive extraction to only read each
76307         directive once.
76308
76309 2006-09-17  Bruno Haible  <bruno@clisp.org>
76310
76311         * modules/javaversion (Makefile.am): Remove DEFS setting.
76312         (Depends-on): Add configmake, for PKGDATADIR definition.
76313
76314 2006-09-17  Bruno Haible  <bruno@clisp.org>
76315
76316         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76317
76318 2006-09-17  Bruno Haible  <bruno@clisp.org>
76319
76320         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76321         (func_modules_transitive_closure, func_modules_add_dummy,
76322         func_modules_to_filelist, func_import, func_create_testdir,
76323         func_create_megatestdir, ...): Use it wherever possible.
76324         Suggested by Ralf Wildenhues.
76325
76326 2006-09-16  Karl Berry  <karl@gnu.org>
76327
76328         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76329         to avoid sectioning errors.
76330         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76331         [ifinfo]: blank line after @center-ed titles.
76332         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76333         Spell FSF address consistently with others.
76334         (These changes approved by rms.)
76335
76336 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76337
76338         Speed up by a factor of 1.61.
76339         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76340         already checked module names again.
76341
76342 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76343
76344         Speed up by a factor of 1.13.
76345         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76346         for new_files, and the input to func_add_or_update.
76347
76348 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76349
76350         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76351         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76352
76353 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76354
76355         * modules/mkancesdirs (Depends-on): Add fcntl.
76356         * modules/savewd: New file.
76357         * MODULES.html.sh (File system functions): Add savewd.
76358
76359         * modules/configmake (Makefile.am): Add support for the
76360         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76361
76362 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76363
76364         * m4/savewd.m4: New file.
76365
76366 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76367
76368         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76369         (dirchownmod): New arg FD.  All callers changed.
76370         Use FD rather than opening the directory ourself, as opening is
76371         now the caller's responsibility.
76372         * lib/dirchownmod.h: Likewise.
76373         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76374         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76375         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76376         (test_dir): Remove.
76377         (mkancesdirs): Return length of prefix of FILE that has already
76378         been made, or -2 if there is a child doing the work.  Redo
76379         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76380         ".", and treat ".." specially since it might stray back into
76381         already-created areas.  Use a subprocess if necessary.  New arg
76382         WD; all users changed.  MAKE_DIR function should now return 1
76383         if it creates a directory that is not readable.  Return -2 if
76384         a child process is spun off.
76385         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76386         Adjust signature to match code.
76387         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76388         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76389         all users changed.
76390         * lib/savewd.c, lib/savewd.h: New files.
76391
76392 2006-09-15  Jim Meyering  <jim@meyering.net>
76393
76394         * modules/rename-dest-slash: New module.
76395         * MODULES.html.sh (posix_compat): Add it here.
76396
76397         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76398
76399 2006-09-15  Jim Meyering  <jim@meyering.net>
76400
76401         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76402         file.
76403
76404         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76405
76406 2006-09-15  Jim Meyering  <jim@meyering.net>
76407
76408         * lib/rename-dest-slash.c (has_trailing_slash): Use
76409         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76410         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76411         test before testing whether SRC is a directory.
76412         Suggestions from Bruno Haible.
76413
76414         Avoid a warning about an unused variable.
76415         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76416         into the #ifdef block where it's used.
76417
76418         * lib/rename-dest-slash.c: New file.
76419
76420 2006-09-14  Bruno Haible  <bruno@clisp.org>
76421
76422         * lib/allocsa.c: Include <config.h> unconditionally.
76423         * lib/asnprintf.c: Likewise.
76424         * lib/asprintf.c: Likewise.
76425         * lib/c-strcasecmp.c: Likewise.
76426         * lib/c-strcasestr.c: Likewise.
76427         * lib/c-strncasecmp.c: Likewise.
76428         * lib/c-strstr.c: Likewise.
76429         * lib/classpath.c: Likewise.
76430         * lib/clean-temp.c: Likewise.
76431         * lib/concatpath.c: Likewise.
76432         * lib/copy-file.c: Likewise.
76433         * lib/csharpcomp.c: Likewise.
76434         * lib/csharpexec.c: Likewise.
76435         * lib/execute.c: Likewise.
76436         * lib/fatal-signal.c: Likewise.
76437         * lib/findprog.c: Likewise.
76438         * lib/fwriteerror.c: Likewise.
76439         * lib/gl_array_list.c: Likewise.
76440         * lib/gl_array_oset.c: Likewise.
76441         * lib/gl_avltree_list.c: Likewise.
76442         * lib/gl_avltree_oset.c: Likewise.
76443         * lib/gl_avltreehash_list.c: Likewise.
76444         * lib/gl_carray_list.c: Likewise.
76445         * lib/gl_linked_list.c: Likewise.
76446         * lib/gl_linkedhash_list.c: Likewise.
76447         * lib/gl_list.c: Likewise.
76448         * lib/gl_oset.c: Likewise.
76449         * lib/gl_rbtree_list.c: Likewise.
76450         * lib/gl_rbtree_oset.c: Likewise.
76451         * lib/gl_rbtreehash_list.c: Likewise.
76452         * lib/imaxabs.c: Likewise.
76453         * lib/imaxdiv.c: Likewise.
76454         * lib/javacomp.c: Likewise.
76455         * lib/javaexec.c: Likewise.
76456         * lib/javaversion.c: Likewise.
76457         * lib/linebreak.c: Likewise.
76458         * lib/localcharset.c: Likewise.
76459         * lib/lock.c: Likewise.
76460         * lib/mbchar.c: Likewise.
76461         * lib/mbswidth.c: Likewise.
76462         * lib/mkdtemp.c: Likewise.
76463         * lib/pipe.c: Likewise.
76464         * lib/printf-args.c: Likewise.
76465         * lib/printf-parse.c: Likewise.
76466         * lib/progname.c: Likewise.
76467         * lib/progreloc.c: Likewise.
76468         * lib/readlink.c: Likewise.
76469         * lib/sh-quote.c: Likewise.
76470         * lib/stpcpy.c: Likewise.
76471         * lib/stpncpy.c: Likewise.
76472         * lib/strcasecmp.c: Likewise.
76473         * lib/strcasestr.c: Likewise.
76474         * lib/strcspn.c: Likewise.
76475         * lib/striconv.c: Likewise.
76476         * lib/strncasecmp.c: Likewise.
76477         * lib/strnlen1.c: Likewise.
76478         * lib/strstr.c: Likewise.
76479         * lib/strtok_r.c: Likewise.
76480         * lib/tls.c: Likewise.
76481         * lib/tmpdir.c: Likewise.
76482         * lib/unicodeio.c: Likewise.
76483         * lib/unsetenv.c: Likewise.
76484         * lib/vasnprintf.c: Likewise.
76485         * lib/vasprintf.c: Likewise.
76486         * lib/wait-process.c: Likewise.
76487         * lib/xallocsa.c: Likewise.
76488         * lib/xsetenv.c: Likewise.
76489         * lib/xstriconv.c: Likewise.
76490
76491 2006-09-13  Simon Josefsson  <jas@extundo.com>
76492
76493         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76494         that internally, suggested by Ralf Wildenhues
76495         <Ralf.Wildenhues@gmx.de>.
76496
76497 2006-09-13  Simon Josefsson  <jas@extundo.com>
76498
76499         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76500         @LIBOBJS@.
76501         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76502
76503 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76504
76505         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76506         longer worry about uses that don't define HAVE_CONFIG_H.
76507         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
76508         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
76509         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
76510         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
76511         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
76512         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
76513         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
76514         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
76515         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
76516         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
76517         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
76518         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
76519         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
76520         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
76521         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
76522         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
76523         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
76524         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
76525         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
76526         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
76527         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
76528         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
76529         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
76530         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
76531         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
76532         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
76533         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
76534         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
76535         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
76536         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
76537         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
76538         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
76539         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
76540         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
76541         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
76542         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
76543         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
76544         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
76545         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
76546         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
76547         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
76548         Likewise.
76549
76550 2006-09-13  Eric Blake  <ebb9@byu.net>
76551
76552         * lib/getopt.c: Fix typo in last commit.
76553
76554 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
76555
76556         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
76557         dgettext.
76558
76559 2006-09-12  Jim Meyering  <jim@meyering.net>
76560
76561         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
76562         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
76563         Reported by Nelson H. F. Beebe.
76564
76565 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
76566
76567         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
76568         program_invocation_name and program_invocation_short_name are
76569         initialized.
76570         * lib/argp-namefrob.h: Move declarations of program_invocation_name
76571         and program_invocation_short_name to argp.h, so they are visible
76572         to user programs.
76573         * lib/argp.h: Likewise
76574
76575 2006-09-10  Bruno Haible  <bruno@clisp.org>
76576
76577         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76578         m4/inttypes_h.m4, m4/uintmax_t.m4.
76579
76580 2006-09-10  Bruno Haible  <bruno@clisp.org>
76581
76582         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
76583         gl_AC_TYPE_UINTMAX_T.
76584
76585 2006-09-10  Bruno Haible  <bruno@clisp.org>
76586
76587         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
76588
76589 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
76590
76591         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
76592         convention.  Text proposed by Bruno Haible.
76593         (struct argp_option): Document the use of N_() wrappers.
76594
76595         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
76596         '\v', and translate the two parts separately, instead of feeding
76597         the whole string to gettext.  This allows to exclude
76598         '\v' from the strings visible to the translator by writing doc
76599         strings as N_("..") "\v" N_("..").
76600
76601 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
76602
76603         * config/srclist.txt: Undo latest change; the bug was fixed.
76604
76605 2006-09-09  Bruno Haible  <bruno@clisp.org>
76606
76607         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
76608         assignments if building a library without libtool.
76609         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
76610         in func_emit_lib_Makefile_am.
76611         (func_import): When building a static library libfoo.a, arrange to
76612         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
76613         (func_create_testdir): Likewise.
76614         * modules/gc (configure.ac, Makefile.am): If building statically,
76615         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
76616         * modules/iconvme (configure.ac, Makefile.am): Likewise.
76617         * modules/striconv (configure.ac, Makefile.am): Likewise.
76618         Based on a suggestion by Ralf Wildenhues.
76619
76620 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76621
76622         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
76623         Check for unistd.h too, since Autoconf doesn't assume POSIX.
76624         Also:
76625
76626         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76627         Add year_2050_test to catch glibc bug 2821
76628         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76629
76630         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76631         Prefer #ifdef to #if.
76632
76633         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
76634         Return from 'main' instead of calling 'exit'.
76635
76636 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76637
76638         * lib/mktime.c (guess_time_tm): Fix bug where mktime
76639         returned the maximum time_t value rather than (time_t) -1.
76640         Problem originally reported by William Bardwell
76641         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
76642
76643         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76644         Moved to here ...
76645         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
76646         ... from here.
76647
76648 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
76649
76650         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
76651         2821 is fixed.
76652
76653 2006-09-08  Jim Meyering  <jim@meyering.net>
76654
76655         Don't make generated files read-only.  That would bother too many
76656         people.  However, do retain the ability to work when targets are
76657         read-only: remove the destination and temporary files before writing
76658         them (when generated via sed or echo), or by using the -f option for
76659         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
76660         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76661         * modules/byteswap, modules/configmake, modules/fcntl:
76662         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76663         * modules/localcharset, modules/netinet_in, modules/poll:
76664         * modules/stdbool, modules/stdint, modules/sys_select:
76665         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76666
76667 2006-09-08  Jim Meyering  <jim@meyering.net>
76668
76669         Avoid new build failure on FreeBSD 6.0.
76670         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
76671         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
76672         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
76673
76674 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76675
76676         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
76677
76678 2006-09-07  Jim Meyering  <jim@meyering.net>
76679
76680         Fix global typo in last change: use chmod u-w, not chmod u-x.
76681         Spotted by Paul Eggert and Bruce Korb.
76682         * modules/alloca-opt, modules/argz, modules/arpa_inet:
76683         * modules/byteswap, modules/configmake, modules/fcntl:
76684         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
76685         * modules/localcharset, modules/netinet_in, modules/poll:
76686         * modules/stdbool, modules/stdint, modules/sys_select:
76687         * modules/sys_socket, modules/sys_stat, modules/sysexits:
76688
76689 2006-09-06  Jim Meyering  <jim@meyering.net>
76690
76691         Make generated files be read-only.
76692         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
76693         Ensure that each generated file is now read-only.
76694         * modules/argz: Likewise.
76695         * modules/arpa_inet: Likewise.
76696         * modules/byteswap: Likewise.
76697         * modules/configmake: Likewise.
76698         * modules/fcntl: Likewise.
76699         * modules/fnmatch: Likewise.
76700         * modules/getopt: Likewise.
76701         * modules/glob: Likewise.
76702         * modules/inttypes: Likewise.
76703         * modules/netinet_in: Likewise.
76704         * modules/poll: Likewise.
76705         * modules/stdbool: Likewise.
76706         * modules/stdint: Likewise.
76707         * modules/sys_select: Likewise.
76708         * modules/sys_socket: Likewise.
76709         * modules/sys_stat: Likewise.
76710         * modules/sysexits: Likewise.
76711         * modules/localcharset: Same as above, but continue using temporary
76712         file named "t-$@" (why different?) rather than the "$@-t" used
76713         everywhere else.
76714
76715         * modules/sysexits (Makefile.am): Replace literal occurrences
76716         of "sysexit.h" more readable, and more consistent, "$@".
76717
76718 2006-09-06  Bruno Haible  <bruno@clisp.org>
76719
76720         * modules/striconv: New file.
76721         * modules/xstriconv: New file.
76722         * MODULES.html.sh (Internationalization functions): Add striconv,
76723         xstriconv.
76724
76725 2006-09-06  Bruno Haible  <bruno@clisp.org>
76726
76727         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
76728         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
76729         not using libtool correctly.
76730
76731 2006-09-06  Bruno Haible  <bruno@clisp.org>
76732
76733         * lib/striconv.h: New file.
76734         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
76735         iconvstring.c.
76736         * lib/xstriconv.h: New file.
76737         * lib/xstriconv.c: New file.
76738
76739 2006-09-06  Bruno Haible  <bruno@clisp.org>
76740
76741         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
76742         lib_..._LDFLAGS.
76743
76744 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76745
76746         * lib/argz_.h: Sync from Libtool.
76747
76748         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
76749                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
76750
76751         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
76752
76753 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76754
76755         * modules/trim: New file.
76756
76757 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
76758
76759         * lib/trim.h: New file.
76760         * lib/trim.c: New file.
76761
76762 2006-09-05  Bruno Haible  <bruno@clisp.org>
76763
76764         * MODULES.html.sh (String handling): Add trim.
76765
76766 2006-09-04  Karl Berry  <karl@gnu.org>
76767
76768         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
76769         until next release.
76770
76771 2006-09-03  Bruno Haible  <bruno@clisp.org>
76772
76773         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
76774         correctly.
76775
76776 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76777
76778         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
76779         not gl_GETLOADAVG.  Omit unneeded semicolons.
76780         Problems reported by Ralf Wildenhues in
76781         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76782         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
76783         at the end, which is the usual gnulib style.
76784
76785         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
76786         of doing all the work ourselves.
76787         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
76788         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
76789
76790 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76791
76792         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
76793         Problem reported by Ralf Wildenhues in
76794         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
76795
76796         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
76797         HAVE_STRUCT_STATFS_F_FSTYPENAME.
76798
76799 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
76800
76801         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
76802         yesterday's patch by changing test -n to test -z.
76803
76804 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76805
76806         * modules/getloadavg (Files): Add m4/getloadavg.m4.
76807         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
76808         the former is now obsolescent.
76809
76810         * modules/chdir-long (Depends-on): Add fcntl.
76811
76812 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76813
76814         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
76815         obsolescent, and programs should use gnulib instead.
76816         * m4/getloadavg.m4: New file, with contents taken from Autoconf
76817         but with prefixes changed.
76818
76819 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
76820
76821         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
76822         or stdbool.h, because they might not exist while configuring.
76823
76824         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
76825         Don't include unistd.h or limits.h; not needed, since chdir-long.h
76826         does that for us.
76827         (O_DIRECTORY): Remove.
76828
76829 2006-08-31  Eric Blake  <ebb9@byu.net>
76830
76831         * gnulib-tool: Don't let emacs change spaces to TAB.
76832
76833 2006-08-31  Bruno Haible  <bruno@clisp.org>
76834
76835         * gnulib-tool: When calling func_import more than once, do it in a
76836         subshell.
76837         Reported by Eric Blake <ebb9@byu.net>.
76838
76839 2006-08-31  Bruno Haible  <bruno@clisp.org>
76840
76841         * gnulib-tool (nl): Remove variable.
76842         (sed_transform_lib_file): Use more robust test for config-h module.
76843         (func_import): Fix typo in 2006-08-25 patch.
76844
76845 2006-08-31  Bruno Haible  <bruno@clisp.org>
76846
76847         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
76848         specified, augment Makefile.am variables instead of assigning them.
76849
76850 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76851
76852         Work around a bug in both the Linux and SunOS 64-bit kernels:
76853         nanosleep mishandles sleeps for longer than 2**31 seconds.
76854         Problem reported by Frank v Waveren in
76855         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76856         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
76857         Check for nanosleep bug.
76858         (LIB_NANOSLEEP): Append clock_gettime library if needed.
76859
76860 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76861
76862         Work around a bug in both the Linux and SunOS 64-bit kernels:
76863         nanosleep mishandles sleeps for longer than 2**31 seconds.
76864         Problem reported by Frank v Waveren in
76865         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76866         * lib/nanosleep.c (BILLION): New constant.
76867         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
76868         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
76869         implementation.
76870
76871 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76872
76873         * modules/nanosleep (Depends-on): Add gettime.
76874
76875 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76876         and Simon Josefsson  <jas@extundo.com>
76877         and Oskar Liljeblad  <oskar@osk.mine.nu>
76878
76879         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
76880         * gnulib-tool (func_import): New license type 'unmodifiable license
76881         text'.
76882         * modules/fdl: Use it.  Longer description.
76883         * module/gpl, module/lgpl: New files.
76884
76885 2006-08-30  Jim Meyering  <jim@meyering.net>
76886
76887         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
76888         shadowing the parameter.
76889
76890 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76891
76892         Sync from Libtool:
76893
76894         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76895
76896         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
76897         sharing with gnulib.  Report by Eric Blake.
76898
76899 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76900
76901         * modules/isapipe: New file.
76902         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76903
76904 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76905
76906         * modules/configmake (Makefile.am): Add a comment, and omit
76907         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76908         by Bruno Haible.
76909
76910 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76911
76912         * m4/isapipe.m4: New file.
76913
76914 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76915
76916         * lib/isapipe.c, lib/isapipe.h: New files.
76917
76918 2006-08-29  Jim Meyering  <jim@meyering.net>
76919
76920         * modules/configmake (Makefile.am): Make configmake.h depend on
76921         Makefile.  Otherwise, a stale configmake.h could hang around.
76922
76923 2006-08-29  Eric Blake  <ebb9@byu.net>
76924
76925         * lib/error.c (error_at_line, print_errno_message): Match libc, after
76926         resolution of upstream bug 3044.
76927
76928 2006-08-29  Bruno Haible  <bruno@clisp.org>
76929
76930         * modules/localcharset (Depends-on): Add configmake.
76931         (Makefile.am): Remove setting of LIBDIR through DEFS.
76932
76933 2006-08-29  Bruno Haible  <bruno@clisp.org>
76934
76935         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
76936         defined.
76937
76938 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76939
76940         * modules/fcntl: New file.
76941         * modules/chdir-safer (Depends-on): Add fcntl.
76942         * modules/fts: Likewise.
76943         * modules/mkdir-p: Likewise.
76944
76945         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
76946         This undoes the most recent change, since we're now addressing the
76947         problem in a different way.
76948
76949         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
76950         into output, since the output might be called Makefile.am even
76951         if $makefile_name is something different.
76952         (func_import): Use $makefile_am rather than
76953         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
76954         empty.
76955
76956         * modules/inttypes (Files): Add m4/inttypes-h.m4.
76957
76958 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76959
76960         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
76961         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
76962         recent change to stdint.m4, since we're now addressing the problem in a
76963         different way.
76964
76965 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76966
76967         * m4/fcntl_h.m4: New file.
76968
76969 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76970
76971         * lib/fcntl_.h: New file.
76972         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
76973         the fcntl module.
76974         * lib/dirchownmod.c: Likewise.
76975         * lib/fts.c: Likewise.
76976
76977         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76978         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76979         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76980         just before including <inttypes.h>, to avoid circular inclusion.
76981
76982 2006-08-28  Jim Meyering  <jim@meyering.net>
76983
76984         * doc/visibility.texi: Actually read and correct the grammar of the
76985         sentence affected by yesterday's change.
76986
76987 2006-08-28  Eric Blake  <ebb9@byu.net>
76988
76989         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76990         needs wrapper.
76991
76992 2006-08-28  Eric Blake  <ebb9@byu.net>
76993
76994         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76995
76996 2006-08-28  Eric Blake  <ebb9@byu.net>
76997
76998         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76999
77000 2006-08-28  Bruno Haible  <bruno@clisp.org>
77001
77002         * modules/c-strstr: New file, from GNU gettext.
77003         * MODULES.html.sh (String handling): Add c-strstr.
77004
77005 2006-08-28  Bruno Haible  <bruno@clisp.org>
77006
77007         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77008         macros.
77009         Reported by Eric Blake.
77010
77011 2006-08-28  Bruno Haible  <bruno@clisp.org>
77012
77013         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77014         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77015         * lib/vasprintf.c: Include errno.h, limits.h.
77016         (EOVERFLOW): New fallback definition.
77017         (vasprintf): Test here whether the string length is > INT_MAX.
77018         * lib/vsnprintf.c: Include errno.h, limits.h.
77019         (EOVERFLOW): New fallback definition.
77020         (vsnprintf): Fix bug when generated string was too long for the buffer.
77021         Test here whether the string length is > INT_MAX.
77022
77023 2006-08-28  Bruno Haible  <bruno@clisp.org>
77024
77025         * lib/inttypes_.h (SCNX*): Remove definitions.
77026         Reported by Eric Blake.
77027
77028 2006-08-28  Bruno Haible  <bruno@clisp.org>
77029
77030         * lib/c-strstr.h: New file, from GNU gettext.
77031         * lib/c-strstr.c: New file, from GNU gettext.
77032
77033 2006-08-28  Bruno Haible  <bruno@clisp.org>
77034
77035         * gnulib-tool: Reorder some statements.
77036
77037 2006-08-28  Bruno Haible  <bruno@clisp.org>
77038
77039         * gnulib-tool: New option --makefile-name.
77040         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77041         $makefile_name.
77042         (func_import): Write $makefile_name to the cache file, and read it from
77043         there unless explicitly specified. Use $makefile_name as file name
77044         instead of Makefile.am. Adjust the recommendations accordingly.
77045
77046 2006-08-28  Bruno Haible  <bruno@clisp.org>
77047
77048         * gnulib-tool (func_verify_module): Check against misapplying patch.
77049
77050 2006-08-28  Bruno Haible  <bruno@clisp.org>
77051
77052         * gnulib-tool (func_relativize, func_relconcat): New functions.
77053         Give an error if --local-dir is given with --update.
77054         Remove trailing slashes from $local_gnulib_dir.
77055         (func_import): Store the relativized $local_gnulib_dir in
77056         gnulib-cache.m4, and read it from there if not specified explicitly.
77057
77058 2006-08-28  Bruno Haible  <bruno@clisp.org>
77059
77060         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77061         is the current directory. Respect also $local_gnulib_dir.
77062
77063 2006-08-28  Bruno Haible  <bruno@clisp.org>
77064             Simon Josefsson  <jas@extundo.com>
77065
77066         BeOS portability.
77067         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77068
77069 2006-08-27  Jim Meyering  <jim@meyering.net>
77070
77071         * doc/visibility.texi: Remove duplicate word: "pointer".
77072
77073 2006-08-26  Bruno Haible  <bruno@clisp.org>
77074
77075         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77076         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77077         (Makefile.am): Create inttypes.h from inttypes_.h.
77078         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77079
77080         * modules/imaxabs: New file.
77081
77082         * modules/imaxdiv: New file.
77083
77084 2006-08-26  Bruno Haible  <bruno@clisp.org>
77085
77086         * m4/inttypes.m4: New file.
77087         * m4/_inttypes_h.m4: Remove file.
77088         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77089         PRI_MACROS_BROKEN.
77090         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77091
77092         * m4/imaxabs.m4: New file.
77093
77094         * m4/imaxdiv.m4: New file.
77095
77096 2006-08-26  Bruno Haible  <bruno@clisp.org>
77097
77098         * lib/inttypes_.h: New file.
77099         * lib/inttypes.h: Remove file.
77100         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77101
77102         * lib/imaxabs.c: New file.
77103
77104         * lib/imaxdiv.c: New file.
77105
77106 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77107
77108         New config-h module, so that "make" output needn't be cluttered
77109         by -DHAVE_CONFIG_H.
77110         * MODULES.html.sh (Support for building libraries and executables):
77111         Add config-h.
77112         * modules/config-h: New file.
77113         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77114         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77115         the config-h module is used.
77116
77117         New configmake module, so that "make" output needn't be cluttered
77118         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77119         * MODULES.html.sh (Support for building libraries and executables):
77120         Add configmake.
77121         * modules/configmake: New file.
77122
77123 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77124
77125         * m4/config-h.m4: New file.
77126
77127 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77128
77129         * config/srclist.txt: Add elisp-comp.
77130
77131 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77132
77133         * MODULES.html.sh (Support for building libraries and executables):
77134         Add elisp-comp.
77135         * build-aux/elisp-comp: New file.
77136         * modules/elisp-comp: New file.
77137
77138 2006-08-24  Bruno Haible  <bruno@clisp.org>
77139
77140         * gnulib-tool (func_create_testdir): Use non-default values of
77141         sourcebase and m4base.
77142
77143 2006-08-24  Bruno Haible  <bruno@clisp.org>
77144
77145         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77146         HTML structure.
77147
77148 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77149
77150         * modules/openat (Depends-on): Add lchown.
77151
77152 2006-08-23  Bruno Haible  <bruno@clisp.org>
77153
77154         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77155         of gl_LOCK_EARLY instead of gl_LOCK.
77156
77157 2006-08-23  Bruno Haible  <bruno@clisp.org>
77158
77159         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77160         on OSF/1 to no.
77161         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77162
77163 2006-08-23  Bruno Haible  <bruno@clisp.org>
77164
77165         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77166         as unusable.
77167
77168         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77169         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77170         (gl_LOCK): New macro.
77171
77172 2006-08-22  Simon Josefsson  <jas@extundo.com>
77173
77174         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77175         to md5 module.
77176
77177 2006-08-22  Simon Josefsson  <jas@extundo.com>
77178
77179         * MODULES.html.sh: Add "Support for maintaining and release
77180         projects".
77181
77182         * build-aux/gnupload: New file, from coreutils.
77183
77184 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77185
77186         Avoid the need for AC_LIBSOURCES in m4 macros.
77187         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77188         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77189         * modules/check-version (EXTRA_DIST): Add check-version.h.
77190         * modules/crc (EXTRA_DIST): Add crc.h.
77191         * modules/des (EXTRA_DIST): Add des.h.
77192         * modules/gc (EXTRA_DIST): Add gc.h.
77193         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77194         * modules/getline (EXTRA_DIST): Add getline.h.
77195         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77196         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77197         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77198         * modules/md2 (EXTRA_DIST): Add md2.h.
77199         * modules/md4 (EXTRA_DIST): Add md4.h.
77200         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77201         * modules/read-file (EXTRA_DIST): Add read-file.h.
77202         * modules/readline (EXTRA_DIST): Add readline.h.
77203         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77204         rijndael-api-fst.h.
77205
77206 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77207
77208         * m4/rijndael.m4 (gl_ARCFOUR):
77209         * m4/arctwo.m4 (gl_ARCTWO):
77210         * m4/check-version.m4 (gl_CHECK_VERSION):
77211         * m4/crc.m4 (gl_CRC):
77212         * m4/des.m4 (gl_DES):
77213         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77214         * m4/gc.m4 (gl_GC):
77215         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77216         * m4/getline.m4 (gl_FUNC_GETLINE):
77217         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77218         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77219         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77220         * m4/md2.m4 (gl_MD2):
77221         * m4/md4.m4 (gl_MD4):
77222         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77223         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77224         * m4/readline.m4 (gl_FUNC_READLINE):
77225         * m4/rijndael.m4 (gl_RIJNDAEL):
77226         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77227         to get the necessary .h files and whatnot.
77228
77229 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77230
77231         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77232         gnulib rather than the other way around.
77233         * config/srclistvars.sh (COREUTILS): Remove.
77234
77235 2006-08-22  Jim Meyering  <jim@meyering.net>
77236
77237         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77238
77239         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77240
77241 2006-08-22  Eric Blake  <ebb9@byu.net>
77242
77243         * modules/regexprops-generic: New file.
77244         * MODULES.html.sh (Support for building documentation): List it.
77245
77246 2006-08-22  Eric Blake  <ebb9@byu.net>
77247
77248         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77249         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77250         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77251         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77252
77253 2006-08-22  Bruno Haible  <bruno@clisp.org>
77254
77255         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77256         and lib_LTLIBRARIES like the other lib_* variables.
77257
77258 2006-08-22  Bruno Haible  <bruno@clisp.org>
77259
77260         * build-aux/x-to-1.in: New file, from GNU gettext.
77261
77262 2006-08-22  Bruno Haible  <bruno@clisp.org>
77263
77264         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77265         <utmpx.h> exists.
77266
77267 2006-08-22  Bruno Haible  <bruno@clisp.org>
77268
77269         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77270         <utmpx.h> exists.
77271
77272 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77273
77274         BeOS portability.
77275         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77276         exist.
77277         Problem reported by Bruno Haible.
77278
77279 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77280
77281         Avoid the need for AC_LIBSOURCES in m4 macros.
77282         * modules/acl (EXTRA_DIST): Add acl.h.
77283         * modules/argmatch (Files): Add m4/argmatch.m4.
77284         (configure.ac): Add gl_ARGMATCH.
77285         (EXTRA_DIST): Renamed from lib_SOURCES, for
77286         consistency with the other modules.  Remove argmatch.c.
77287         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77288         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77289         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77290         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77291         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77292         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77293         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77294         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77295         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77296         * modules/closeout (EXTRA_DIST): Add closeout.h.
77297         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77298         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77299         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77300         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77301         dirname.h; remove basename.c and stripslash.c.
77302         * modules/exclude (EXTRA_DIST): Add exclude.h.
77303         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77304         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77305         * modules/file-type (EXTRA_DIST): Add file-type.h.
77306         * modules/filemode (EXTRA_DIST): Add filemode.h.
77307         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77308         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77309         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77310         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77311         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77312         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77313         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77314         * modules/getdate (EXTRA_DIST): Add getdate.c.
77315         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77316         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77317         * modules/getpass (EXTRA_DIST): Add getpass.h.
77318         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77319         * modules/group-member (EXTRA_DIST): Add group-member.h.
77320         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77321         * modules/hash (EXTRA_DIST): Add hash.h.
77322         * modules/human (EXTRA_DIST): Add human.h.
77323         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77324         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77325         * modules/lchown (EXTRA_DIST): Add lchown.h.
77326         * modules/long-options (EXTRA_DIST): Add long-options.h.
77327         * modules/lstat (EXTRA_DIST): Add lstat.h.
77328         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77329         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77330         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77331         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77332         * modules/memxor (EXTRA_DIST): Add memxor.h.
77333         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77334         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77335         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77336         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77337         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77338         * modules/physmem (EXTRA_DIST): Add physmem.h.
77339         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77340         * modules/posixver (EXTRA_DIST): Add posixver.h.
77341         * modules/quote (EXTRA_DIST): Add quote.h.
77342         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77343         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77344         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77345         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77346         regex_internal.h regexec.c.
77347         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77348         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77349         * modules/same (EXTRA_DIST): Add same.h.
77350         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77351         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77352         * modules/savedir (EXTRA_DIST): Add savedir.h.
77353         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77354         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77355         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77356         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77357         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77358         * modules/strdup (EXTRA_DIST): Add strdup.h.
77359         * modules/strftime (EXTRA_DIST): Add strftime.h.
77360         * modules/strndup (EXTRA_DIST): Add strndup.h.
77361         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77362         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77363         * modules/time_r (EXTRA_DIST): Add time_r.h.
77364         * modules/timespec (EXTRA_DIST): Add timespec.h.
77365         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77366         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77367         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77368         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77369         * modules/userspec (EXTRA_DIST): Add userspec.h.
77370         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77371         * modules/utimens (EXTRA_DIST): Add utimens.h.
77372         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77373         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77374         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77375         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77376         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77377         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77378         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77379         * modules/yesno (EXTRA_DIST): Add yesno.h.
77380
77381 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77382
77383         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77384
77385         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77386         * m4/dev-ino.m4, same-inode.m4: Remove.
77387
77388         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77389         * m4/acl.m4 (AC_FUNC_ACL):
77390         * m4/backupfile.m4 (gl_BACKUPFILE):
77391         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77392         * m4/canon-host.m4 (gl_CANON_HOST):
77393         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77394         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77395         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77396         * m4/cloexec.m4 (gl_CLOEXEC):
77397         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77398         * m4/closeout.m4 (gl_CLOSEOUT):
77399         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77400         * m4/dirname.m4 (gl_DIRNAME):
77401         * m4/exclude.m4 (gl_EXCLUDE):
77402         * m4/exitfail.m4 (gl_EXITFAIL):
77403         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77404         * m4/file-type.m4 (gl_FILE_TYPE):
77405         * m4/filemode.m4 (gl_FILEMODE):
77406         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77407         * m4/fpending.m4 (gl_FUNC_FPENDING):
77408         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77409         * m4/fts.m4 (gl_FUNC_FTS):
77410         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77411         * m4/getdate.m4 (gl_GETDATE):
77412         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77413         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77414         * m4/getpass.m4 (gl_FUNC_GETPASS):
77415         * m4/gettime.m4 (gl_GETTIME):
77416         * m4/getugroups.m4 (gl_GETUGROUPS):
77417         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77418         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77419         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77420         * m4/hash.m4 (gl_HASH):
77421         * m4/idcache.m4 (gl_IDCACHE):
77422         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77423         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77424         * m4/long-options.m4 (gl_LONG_OPTIONS):
77425         * m4/lstat.m4 (gl_FUNC_LSTAT):
77426         * m4/md5.m4 (gl_MD5):
77427         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77428         * m4/memcoll.m4 (gl_MEMCOLL):
77429         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77430         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77431         * m4/memxor.m4 (gl_MEMXOR):
77432         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77433         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77434         * m4/modechange.m4 (gl_MODECHANGE):
77435         * m4/mountlist.m4 (gl_MOUNTLIST):
77436         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77437         * m4/openat.m4 (gl_FUNC_OPENAT):
77438         * m4/pathmax.m4 (gl_PATHMAX):
77439         * m4/physmem.m4 (gl_PHYSMEM):
77440         * m4/posixtm.m4 (gl_POSIXTM):
77441         * m4/posixver.m4 (gl_POSIXVER):
77442         * m4/quote.m4 (gl_QUOTE):
77443         * m4/quotearg.m4 (gl_QUOTEARG):
77444         * m4/readtokens.m4 (gl_READTOKENS):
77445         * m4/readutmp.m4 (gl_READUTMP):
77446         * m4/regex.m4 (gl_REGEX):
77447         * m4/safe-read.m4 (gl_SAFE_READ):
77448         * m4/safe-write.m4 (gl_SAFE_WRITE):
77449         * m4/same.m4 (gl_SAME):
77450         * m4/save-cwd.m4 (gl_SAVE_CWD):
77451         * m4/savedir.m4 (gl_SAVEDIR):
77452         * m4/settime.m4 (gl_SETTIME):
77453         * m4/sha1.m4 (gl_SHA1):
77454         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77455         * m4/stat-macros.m4 (gl_STAT_MACROS):
77456         * m4/stat-time.m4 (gl_STAT_TIME):
77457         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77458         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77459         * m4/strdup.m4 (gl_FUNC_STRDUP):
77460         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77461         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77462         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77463         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77464         * m4/time_r.m4 (gl_TIME_R):
77465         * m4/timespec.m4 (gl_TIMESPEC):
77466         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77467         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77468         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77469         * m4/userspec.m4 (gl_USERSPEC):
77470         * m4/utimecmp.m4 (gl_UTIMECMP):
77471         * m4/utimens.m4 (gl_UTIMENS):
77472         * m4/xalloc.m4 (gl_XALLOC):
77473         * m4/xgetcwd.m4 (gl_XGETCWD):
77474         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77475         * m4/xreadlink.m4 (gl_XREADLINK):
77476         * m4/xstrtod.m4 (gl_XSTRTOD):
77477         * m4/yesno.m4 (gl_YESNO):
77478         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77479         to get the necessary .h files and whatnot.
77480
77481 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77482             Bruno Haible  <bruno@clisp.org>
77483
77484         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77485         /bin/sh understanding of '!' conditional negation.
77486
77487 2006-08-21  Jim Meyering  <jim@meyering.net>
77488
77489         * modules/openat (Depends-on): Really alphabetize.
77490
77491         * modules/acl (Depends-on): Add error and quote.
77492
77493         * check-module (find_included_lib_files): Add at-func.c to the
77494         ok-to-include-more-than-once white list.
77495
77496         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77497
77498 2006-08-21  Bruno Haible  <bruno@clisp.org>
77499
77500         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77501         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77502         Reported by Martin Lambers <marlam@marlam.de>.
77503
77504 2006-08-21  Bruno Haible  <bruno@clisp.org>
77505
77506         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
77507         specify an installation location, don't emit a noinst_LIBRARIES or
77508         noinst_LTLIBRARIES assignment.
77509
77510 2006-08-21  Bruno Haible  <bruno@clisp.org>
77511
77512         BeOS portability.
77513         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
77514         BeOS has mbrtowc() but no <wctype.h>.
77515
77516 2006-08-21  Bruno Haible  <bruno@clisp.org>
77517
77518         BeOS portability.
77519         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
77520         exist.
77521
77522 2006-08-21  Bruno Haible  <bruno@clisp.org>
77523
77524         BeOS portability.
77525         * lib/mbchar.h: Include <wctype.h> only if it exists.
77526
77527 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77528
77529         Remove files that are no longer needed by their respective modules.
77530         * m4/obstack.m4: Remove.
77531         * m4/strerror_r.m4: Remove.
77532         * m4/uint32_t.m4: Remove.
77533         * m4/uintptr_t.m4: Remove.
77534         * m4/ullong_max.m4: Remove.
77535         * m4/xstrtoimax.m4: Remove.
77536         * m4/xstrtoumax.m4: Remove.
77537
77538         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
77539         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
77540         dependencies now capture this.
77541
77542         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
77543         Do not use AC_LIBSOURCES, since gnulib modules now do this.
77544         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
77545         * m4/human.m4 (gl_HUMAN): Likewise.
77546         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
77547         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
77548
77549         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
77550
77551         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
77552         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
77553         stdint.
77554         * m4/human.m4 (gl_HUMAN): Likewise.
77555         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
77556         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
77557         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77558         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77559         * m4/xstrtol (gl_XSTRTOL): Likewise.
77560
77561         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
77562         AC_TYPE_LONG_LONG_INT.
77563         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
77564         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
77565         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
77566         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
77567
77568         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
77569         on stdbool.
77570
77571         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
77572         (gl_PREREQ_XSTRTOUL): Remove.
77573
77574         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
77575
77576         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
77577         mode.
77578
77579 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77580
77581         Add and change modules to make it easier for coreutils to use
77582         gnulib-tool.
77583         * modules/backupfile (Files): Remove m4/d-ino.m4.
77584         (Depends-on): Add d-ino.
77585         * modules/cycle-check (Depends-on): Add stdint.
77586         (lib_SOURCES): Add cycle-check.h.
77587         * modules/d-ino: New module.
77588         * modules/d-type: New module.
77589         * modules/error (Files): Remove m4/strerror_r.m4.
77590         * modules/filemode (Files): Add m4/st_dm_mode.m4.
77591         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77592         m4/inttypes_h.m4, m4/uintmax_t.m4.
77593         (Depends-on): Add stdint.
77594         (lib_SOURCES): Add fsusage.h.
77595         * modules/getcwd (Files): Remove d-ino.m4.
77596         (Depends-on): Add d-ino.
77597         * modules/getndelim2 (Depends-on): Add stdint.
77598         * modules/glob (Files): Remove m4/d-type.m4.
77599         (Depends-on): Add d-type.
77600         * modules/host-os: New module.
77601         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
77602         m4/inttypes_h.m4, m4/uintmax_t.m4.
77603         * Depends-on: Add stdint.
77604         (lib_SOURCES): Add human.h.
77605         * modules/inttostr (Files): Remove m4/intmax_t.m4,
77606         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
77607         m4/uintmax_t.m4, m4/ulonglong.m4.
77608         (Depends-on): Add stdint.
77609         (EXTRA_DIST): Add inttostr.h.
77610         * modules/lchmod: New module.
77611         * modules/link-follow: New module.
77612         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
77613         (Depends-on): Add lchmod.
77614         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
77615         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
77616         (Depends-on): Add stdint.
77617         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
77618         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
77619         (Depends-on): Add stdint.
77620         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
77621         * modules/perl: New module.
77622         * modules/regex (Depends-on): Add stdint.
77623         * modules/rmdir-errno: New module.
77624         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77625         m4/intmax_t.m4.
77626         (Depends-on): Add stdint.
77627         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
77628         m4/uintmax_t.m4.
77629         (Depends-on): Add stdint.
77630         * modules/unlink-busy: New module.
77631         * modules/utimecmp (Depends-on): Add stdint.
77632         * modules/uptime: New module.
77633         * modules/winsz-ioctl: New module.
77634         * modules/winsz-termios: New module.
77635         * modules/xnanosleep (Depends-on): Add nanosleep.
77636         * modules/ullong_max: Remove.
77637         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
77638         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
77639         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
77640         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
77641         (Depends-on): Add inttypes.
77642         (lib_SOURCES): Add xstrtol.h.
77643         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
77644         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
77645         * MODULES.html.sh: Move 'assert' into the assert section.
77646         Move 'dummy' into the linking section.
77647         Remove ullong_max.
77648         Add section for compatibility checks for POSIX:2001 functions,
77649         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
77650         winsz-ioctl, and winsz-termios into it.
77651         Add lchmod.
77652         Add top-level Misc section and put host-os, perl, and uptime
77653         into it.
77654
77655 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
77656
77657         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
77658         now assume the stdint module.  Do not include inttypes.h.
77659         * lib/fsusage.h: Likewise.
77660         * lib/getndelim2.c: Likewise.
77661         * lib/human.h: Likewise.
77662         * lib/inttostr.h: Likewise.
77663         * lib/obstack.c: Likewise.
77664         * lib/regex_internal.h: Likewise.
77665         * lib/tempname.c: Likewise.
77666         * lib/utimecmp.c: Likewise.
77667         * lib/xstrtol.h: Likewise.
77668
77669         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
77670
77671         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
77672         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
77673         * lib/xtime.h: Likewise.
77674
77675 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77676
77677         * modules/openat (Files): Add lib/fchmodat.c.
77678         Fixes problem reported by Jay Youngman.
77679
77680 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
77681
77682         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
77683         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
77684
77685 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
77686             Bruno Haible  <bruno@clisp.org>
77687
77688         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
77689         and is a script that invokes bison. Tighten the code. Add comments.
77690
77691 2006-08-18  Jim Meyering  <jim@meyering.net>
77692
77693         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
77694         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
77695         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
77696         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
77697
77698 2006-08-18  Bruno Haible  <bruno@clisp.org>
77699
77700         * modules/bison-i18n: New file.
77701         * MODULES.html.sh (Internationalization functions): Add it.
77702
77703 2006-08-18  Bruno Haible  <bruno@clisp.org>
77704
77705         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
77706         sys/statvfs.h. When getmntinfo was found, check its declaration and
77707         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
77708
77709 2006-08-18  Bruno Haible  <bruno@clisp.org>
77710
77711         * m4/bison-i18n.m4: New file, from bison.
77712
77713 2006-08-18  Bruno Haible  <bruno@clisp.org>
77714
77715         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
77716         (ME_DUMMY): Treat "kernfs" as a dummy.
77717         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
77718
77719 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77720
77721         Update from coreutils.
77722
77723         2006-08-15  Jim Meyering  <jim@meyering.net>
77724
77725         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
77726
77727         2006-01-17  Jim Meyering  <jim@meyering.net>
77728
77729         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
77730
77731         2006-01-11  Jim Meyering  <jim@meyering.net>
77732
77733         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
77734         Check for the lchmod function.
77735
77736 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
77737
77738         Update from coreutils.
77739
77740         * lib/__fpending.h: Add copyright notice.
77741         * lib/fprintftime.h: Likewise.
77742         * lib/savedir.c: Use (C) in copyright notice.
77743         * lib/savedir.h: Likewise.
77744
77745         2006-08-15  Jim Meyering  <jim@meyering.net>
77746
77747         * lib/at-func.c: New file, with the logic of all emulated at-functions.
77748         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
77749         in support of the EXPECTED_ERRNO macro.
77750         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
77751         definitions.  Instead, define the appropriate symbols and include
77752         "at-func.c".
77753         * lib/mkdirat.c (mkdirat): Likewise.
77754         * lib/fchmodat.c (fchmodat): Likewise.
77755         (ENOSYS): Remove definition.
77756         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
77757         it.  Don't include "unistd--.h" -- it wasn't ever used.
77758
77759         2006-01-17  Jim Meyering  <jim@meyering.net>
77760
77761         Rewrite fts.c not to change the current working directory,
77762         by using openat, fstatat, fdopendir, etc..
77763
77764         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
77765         (HAVE_OPENAT_SUPPORT): Define.
77766         [_LIBC] (fchdir): Don't undef or define; no longer used.
77767         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
77768         Now, this `function' always succeeds, and consumes its file descriptor
77769         parameter -- so callers must not close such FDs.  Update callers.
77770         (diropen_fd, opendirat, cwd_advance_fd): New functions.
77771         (diropen): Add parameter, SP.  Adjust all callers.
77772         Implement using diropen_fd, rather than open.
77773         (fts_open): Initialize new member, fts_cwd_fd.
77774         Remove fts_rft-setting code.
77775         (fts_close): Close fts_cwd_fd, if necessary.
77776         (__opendir2): Define in terms of opendir or opendirat,
77777         depending on whether the FST_NOCHDIR flag is set.
77778         (fts_build): Since fts_safe_changedir consumes its FD, and since
77779         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
77780         and close the dup'd file descriptor upon failure.
77781         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
77782         (fts_safe_changedir): Tweak semantics to reflect that this function
77783         now calls cwd_advance_fd and hence consumes its FD argument.
77784         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
77785         [struct FTS] (fts_rft): Remove now-unused member.
77786         [struct FTS] (fts_cycle.state): Improve comment.
77787
77788         * lib/openat.c (openat_needs_fchdir): New function.
77789         * lib/openat.h (openat_needs_fchdir): Declare it.
77790
77791 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
77792
77793         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
77794         Problem and fix reported by Pádraig Brady in
77795         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
77796
77797 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77798
77799         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
77800
77801 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77802
77803         * lib/memcoll.c (memcoll): Optimize for the common case where the
77804         arguments are bytewise equal.
77805
77806 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77807
77808         * doc/regexprops-generic.texi: Add a copyright notice.
77809
77810 2006-08-15  Bruno Haible  <bruno@clisp.org>
77811
77812         * modules/tmpdir (License): Change to LGPL.
77813
77814 2006-08-15  Bruno Haible  <bruno@clisp.org>
77815
77816         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
77817         module.
77818
77819 2006-08-14  Simon Josefsson  <jas@extundo.com>
77820
77821         * config/srclist.txt: Add gnupload.
77822
77823 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77824
77825         Change copyright notice from LGPL 2 to GPL 2, since that's the
77826         standard form used in the gnulib repository.
77827         * tests/test-lock.c: Likewise.
77828         * tests/test-stdint.c: Likewise.
77829         * tests/test-tls.c: Likewise.
77830
77831         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
77832         prelude-manager.  User shorter URLs for GNU projects, without '?'.
77833         Add copyright notice.
77834
77835         * check-module: Add copyright notice.  Output a copyright
77836         notice if "--version" is specified.
77837         * modules/COPYING: New file.
77838         * tests/test-getaddrinfo.c: Add copyright notice.
77839         * tests/test-verify.c: Likewise.
77840
77841 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77842
77843         Change copyright notice from LGPL 2 to GPL 2, since that's the
77844         standard form used in the gnulib repository.
77845         * lib/lock.c: LGPL -> GPL.
77846         * lib/lock.h: Likewise.
77847         * lib/strnlen1.c: Likewise.
77848         * lib/strnlen1.h: Likewise.
77849         * lib/tls.c: Likewise.
77850         * lib/tls.h: Likewise.
77851         * lib/tmpdir.c: Likewise.
77852
77853         * lib/TODO: Remove; this belongs only in coreutils.
77854
77855 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77856
77857         Add copyright notices to long-enough files that lack them, since
77858         otherwise the files aren't clearly free.  Use the same notice that
77859         getdate.texi already uses.
77860         * doc/alloca-opt.texi: Add copyright notice.
77861         * doc/alloca.texi: Likewise.
77862         * doc/ctime.texi: Likewise.
77863         * doc/functions.texi: Likewise.
77864         * doc/gcd.texi: Likewise.
77865         * doc/gnulib-tool.texi: Likewise.
77866         * doc/inet_ntoa.texi: Likewise.
77867         * doc/visibility.texi: Likewise.
77868
77869         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
77870         * doc/quote.texi: Add copyright notice.
77871
77872         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
77873         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
77874         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
77875         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
77876         is now obsolete, and give a pointer to the Sun list.
77877         Add copyright notice.
77878
77879 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77880
77881         * config/srclistvars.sh: Add copyright notice.
77882
77883 2006-08-14  Eric Blake  <ebb9@byu.net>
77884
77885         Import the following change from libc:
77886
77887         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
77888
77889         Upstream bug 2997.
77890         * lib/misc/error.c: Add space between program name and message if file
77891         name is missing.
77892
77893 2006-08-12  Karl Berry  <karl@gnu.org>
77894
77895         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
77896         remove, these originate in gnulib now.
77897
77898 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77899
77900         * doc/Makefile (standards.info standards.html standards.dvi):
77901         Also depend on make-stds.texi.
77902
77903 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77904
77905         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77906         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77907
77908         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77909         in wchar_t.  Problem reported by Eric Blake.
77910
77911         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77912         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77913         Also, help the compiler to keep LEN in a register.
77914
77915 2006-08-11  Eric Blake  <ebb9@byu.net>
77916
77917         * users.txt: Sort.  Add tar.
77918
77919 2006-08-11  Bruno Haible  <bruno@clisp.org>
77920
77921         * users.txt: New file.
77922
77923 2006-08-11  Bruno Haible  <bruno@clisp.org>
77924
77925         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
77926         before <wchar.h>. Needed for OSF/1 and BSD/OS.
77927
77928 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77929
77930         * modules/snprintf (Depends-on): Remove minmax.
77931         (Maintainer): Add self and Bruno.
77932
77933 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * lib/.cppi-disable: Add snprintf.h, socket_.h.
77936         * lib/snprintf.c: Include <errno.h> and <limits.h>.
77937         (EOVERFLOW): Define if the system does not.
77938         Do not include "minmax.h"; it wasn't used.
77939         (snprintf): Don't assume size_t promotes to an unsigned type.
77940         Fix bug when generated string was too long for the buffer: the
77941         buffer's contents are supposed to be the initial prefix of the
77942         output.  Don't assume vasnprintf returns EOVERFLOW if the size
77943         exceeds INT_MAX; do the check ourselves.
77944
77945         Import the following changes from libc:
77946
77947         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
77948
77949         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
77950         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
77951         set wc to the byte which couldn't be converted.
77952         (re_string_reconstruct): Don't clear valid_raw_len before calling
77953         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
77954         tip_context using re_string_context_at.
77955
77956         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
77957
77958         * lib/posix/regex.h: g++ still cannot handled [restrict].
77959
77960         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
77961
77962         * lib/posix/regex.h: Remove special handling for VMS.
77963
77964 2006-08-10  Jim Meyering  <jim@meyering.net>
77965
77966         * modules/same-inode: New module.
77967         * modules/dev-ino: New module.
77968         * modules/cycle-check: Depend on these modules, rather than simply
77969         including their .h files.
77970         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
77971         required via m4/cycle-check.m4.
77972         * modules/same: Depend on new same-inode module, rather than
77973         including same-inode.h.
77974         * modules/chdir-safer: New file.
77975
77976         * modules/chown (Depends-on): Add stat-macros.
77977
77978 2006-08-10  Jim Meyering  <jim@meyering.net>
77979
77980         * m4/cycle-check.m4: New file.
77981         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77982         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77983
77984 2006-08-10  Eric Blake  <ebb9@byu.net>
77985
77986         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77987         in from original proposal.
77988
77989 2006-08-10  Eric Blake  <ebb9@byu.net>
77990         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77991
77992         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77993         namespace.
77994
77995 2006-08-10  Bruno Haible  <bruno@clisp.org>
77996
77997         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77998         as well.
77999
78000 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78001
78002         Sync from coreutils.
78003
78004         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78005
78006         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78007         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78008
78009 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78010
78011         * modules/restrict: Remove; no longer needed now that we assume
78012         Autoconf 2.59 or later.
78013         * MODULES.html.sh: Remove 'restrict'.
78014         * modules/argp (Depends-on): Remove 'restrict'.
78015         * modules/base64 (Depends-on): Likewise.
78016         * modules/gc (Depends-on): Likewise.
78017         * modules/getaddrinfo (Depends-on): Likewise.
78018         * modules/glob (Depends-on): Likewise.
78019         * modules/inet_ntop (Depends-on): Likewise.
78020         * modules/inet_pton (Depends-on): Likewise.
78021         * modules/memxor (Depends-on): Likewise.
78022         * modules/regex (Depends-on): Likewise.
78023         * modules/strtok_r (Depends-on): Likewise.
78024         * modules/time_r (Depends-on): Likewise.
78025
78026 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78027
78028         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78029         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78030         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78031         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78032         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78033         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78034         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78035         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78036
78037         Merge from coreutils.
78038         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78039         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78040         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78041         * m4/time_r.m4 (gl_TIME_R): Likewise.
78042
78043 2006-08-09  Karl Berry  <karl@gnu.org>
78044
78045         * config/srclist.txt: no more gettext-tools, per Bruno.
78046
78047 2006-08-08  Eric Blake  <ebb9@byu.net>
78048
78049         * modules/verror: New module.
78050         * MODULES.html.sh: Document it.
78051
78052 2006-08-08  Eric Blake  <ebb9@byu.net>
78053
78054         * lib/verror.h, lib/verror.c: New files.
78055
78056 2006-08-08  Eric Blake  <ebb9@byu.net>
78057
78058         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78059         verror_at_line output complies with GNU Coding Standards even when
78060         file is NULL.
78061
78062 2006-08-07  Bruno Haible  <bruno@clisp.org>
78063
78064         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78065         versions of AIX.
78066         Reported by Ralf Wildenhues.
78067
78068 2006-08-07  Bruno Haible  <bruno@clisp.org>
78069
78070         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78071         in an AC_DEFUN. Needed so that the autoconf snippets can use
78072         AC_REQUIRE.
78073
78074 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78075
78076         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78077         Initialize pkgdata_DATA.
78078         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78079         overriding it.
78080
78081 2006-08-06  Eric Blake  <ebb9@byu.net>
78082
78083         * lib/error.h: Fold in some upstream changes from glibc.
78084         * lib/error.c: Likewise.
78085
78086 2006-08-04  Bruno Haible  <bruno@clisp.org>
78087
78088         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78089         Make the mostlyclean-local rule depend on mostlyclean-generic.
78090         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78091
78092 2006-07-31  Bruno Haible  <bruno@clisp.org>
78093
78094         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78095         <stdlib.h>, <string.h>.
78096
78097 2006-07-30  Bruno Haible  <bruno@clisp.org>
78098
78099         * modules/readlink (License): Change to LGPL.
78100
78101 2006-07-30  Bruno Haible  <bruno@clisp.org>
78102
78103         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78104         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78105         set PKGDATADIR to point to it.
78106
78107 2006-07-30  Bruno Haible  <bruno@clisp.org>
78108
78109         * modules/csharpexec (configure.ac): Comment out macro invocation.
78110         * modules/javaexec (configure.ac): Likewise.
78111         * modules/javacomp-script (configure.ac): Likewise.
78112
78113         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78114
78115 2006-07-30  Bruno Haible  <bruno@clisp.org>
78116
78117         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78118         linked-list.
78119
78120 2006-07-30  Bruno Haible  <bruno@clisp.org>
78121
78122         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78123
78124 2006-07-30  Bruno Haible  <bruno@clisp.org>
78125
78126         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78127         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78128         get removed.
78129
78130 2006-07-29  Bruno Haible  <bruno@clisp.org>
78131
78132         Make it possible for gnulib-tool to work with locally modified or
78133         augmented gnulib repositories.
78134         * gnulib-tool (func_usage): Document --local-dir option.
78135         (local_gnulib_dir): New variable.
78136         Handle --local-dir option.
78137         (func_lookup_file): New function.
78138         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78139         (func_get_description, func_get_filelist, func_get_description,
78140         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78141         func_get_automake_snippet, func_get_include_directive,
78142         func_get_license, func_get_maintainer): Use func_lookup_file.
78143         (func_import, func_create_testdir): Use func_lookup_file.
78144
78145 2006-07-29  Bruno Haible  <bruno@clisp.org>
78146
78147         * modules/setenv (Depends-on): Add unistd.
78148
78149 2006-07-29  Bruno Haible  <bruno@clisp.org>
78150
78151         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78152
78153 2006-07-29  Bruno Haible  <bruno@clisp.org>
78154
78155         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78156
78157 2006-07-29  Bruno Haible  <bruno@clisp.org>
78158
78159         * gnulib-tool (import, update): If there is no Makefile.am, look at
78160         aclocal.m4, instead of bailing out.
78161
78162 2006-07-29  Bruno Haible  <bruno@clisp.org>
78163
78164         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78165         Categorize the options by when they are useful.
78166
78167 2006-07-29  Bruno Haible  <bruno@clisp.org>
78168
78169         * gnulib-tool (func_usage): Document option --no-libtool.
78170         Handle option --no-libtool.
78171         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78172         for changed semantics of $libtool variable.
78173         (func_import): Likewise. If libtool is not used, show this through
78174         an option --no-libtool.
78175         (func_create_testdir): Update.
78176
78177 2006-07-29  Bruno Haible  <bruno@clisp.org>
78178
78179         * gnulib-tool (func_import): Extend error message about missing
78180         --doc-base.
78181
78182 2006-07-29  Bruno Haible  <bruno@clisp.org>
78183
78184         * gnulib-tool (func_import): Don't create the $docbase directory if
78185         there is no file to store there.
78186
78187 2006-07-29  Bruno Haible  <bruno@clisp.org>
78188
78189         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78190         relevant, look for configure.ac there, not in the current directory.
78191         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78192
78193 2006-07-29  Bruno Haible  <bruno@clisp.org>
78194
78195         * gnulib-tool (SORT): New variable.
78196         (func_usage): Undocument --assume-autoconf option.
78197         Remove --assume-autoconf option handling.
78198         (autoconf_minversion): Determine from the contents of configure.ac.
78199         (func_import): Remove autoconf_minversion handling.
78200         Suggested by Eric Blake.
78201
78202 2006-07-29  Bruno Haible  <bruno@clisp.org>
78203
78204         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78205
78206 2006-07-29  Bruno Haible  <bruno@clisp.org>
78207
78208         * config/srclist.txt (*setenv.[ch]): Remove rules.
78209
78210 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78211
78212         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78213
78214 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78215
78216         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78217         arpa/inet.h.
78218
78219 2006-07-28  Simon Josefsson  <jas@extundo.com>
78220
78221         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78222         * modules/inet_pton (Depends-on): Likewise.
78223
78224 2006-07-28  Simon Josefsson  <jas@extundo.com>
78225
78226         * m4/netinet_in_h.m4: New file.
78227
78228 2006-07-28  Simon Josefsson  <jas@extundo.com>
78229
78230         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78231         #include's.
78232
78233 2006-07-28  Simon Josefsson  <jas@extundo.com>
78234
78235         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78236         #include's.
78237
78238 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78239
78240         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78241         setgid on directories only if they set these bits.
78242         * lib/modechange.h: Remove obsolete comment about masks.
78243
78244 2006-07-28  Eric Blake  <ebb9@byu.net>
78245
78246         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78247         macro expansion.
78248
78249 2006-07-28  Bruno Haible  <bruno@clisp.org>
78250
78251         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78252
78253 2006-07-28  Bruno Haible  <bruno@clisp.org>
78254
78255         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78256
78257 2006-07-28  Bruno Haible  <bruno@clisp.org>
78258
78259         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78260         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78261         Define fallbacks.
78262         Avoids link error on FreeBSD 4.x.
78263         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78264
78265         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78266         encoding.
78267         * lib/mbswidth.c (iswcntrl): Likewise.
78268
78269 2006-07-27  Bruno Haible  <bruno@clisp.org>
78270
78271         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78272         test.
78273
78274 2006-07-27  Bruno Haible  <bruno@clisp.org>
78275
78276         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78277         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78278         defined.
78279
78280 2006-07-26  Eric Blake  <ebb9@byu.net>
78281
78282         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78283
78284 2006-07-26  Eric Blake  <ebb9@byu.net>
78285
78286         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78287         like mingw that lack mkstemp.
78288         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78289         avoid compilation warning on mingw.
78290
78291 2006-07-26  Bruno Haible  <bruno@clisp.org>
78292
78293         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78294         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78295         INT_FAST*_MIN, INTPTR_MIN.
78296
78297 2006-07-25  Bruno Haible  <bruno@clisp.org>
78298
78299         * modules/version-etc (Depends-on): Add stdarg.
78300
78301 2006-07-25  Bruno Haible  <bruno@clisp.org>
78302
78303         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78304         complex commands.
78305
78306 2006-07-25  Bruno Haible  <bruno@clisp.org>
78307
78308         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78309         defined in <stdarg.h> or config.h.
78310
78311 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78312
78313         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78314         (gl_STDIO_SAFER): Remove.
78315
78316 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78317
78318         * MODULES.html.sh (File stream based Input/Output):
78319         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78320         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78321         * modules/fopen-safer, modules/tmpfile-safer: New files.
78322         * modules/stdio-safer: Remove.
78323
78324 2006-07-24  Bruno Haible  <bruno@clisp.org>
78325
78326         * modules/tmpdir: New file.
78327         * MODULES.html.sh (File system functions): Add it.
78328
78329 2006-07-24  Bruno Haible  <bruno@clisp.org>
78330
78331         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78332         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78333
78334 2006-07-24  Bruno Haible  <bruno@clisp.org>
78335
78336         * modules/clean-temp: New file.
78337
78338 2006-07-24  Bruno Haible  <bruno@clisp.org>
78339
78340         * m4/tmpdir.m4: New file, from GNU gettext.
78341
78342 2006-07-24  Bruno Haible  <bruno@clisp.org>
78343
78344         * lib/tmpdir.h: New file, from GNU gettext.
78345         * lib/tmpdir.c: New file, from GNU gettext.
78346
78347 2006-07-24  Bruno Haible  <bruno@clisp.org>
78348
78349         * lib/clean-temp.h: New file, from GNU gettext.
78350         * lib/clean-temp.c: New file, from GNU gettext.
78351
78352 2006-07-23  Eric Blake  <ebb9@byu.net>
78353
78354         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78355         (Depends-on): Add binary-io.
78356
78357 2006-07-23  Eric Blake  <ebb9@byu.net>
78358
78359         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78360
78361 2006-07-23  Eric Blake  <ebb9@byu.net>
78362
78363         * lib/tmpfile-safer.c: New file.
78364         * lib/stdio-safer.h (fopen_safer): Add prototype.
78365         * lib/stdio--.h (tmpfile): Make safer.
78366
78367 2006-07-23  Bruno Haible  <bruno@clisp.org>
78368
78369         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78370         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78371         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78372         gl_linked_remove_at): Use it.
78373
78374 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78375         and Simon Josefsson <jas@extundo.com>
78376
78377         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78378
78379         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78380
78381 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78382
78383         * modules/close-stream: New file.
78384         * modules/closeout (Description): Make it clear that it exits
78385         with a diagnostic on error.
78386         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78387         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78388
78389 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78390
78391         * m4/close-stream.m4: New file.
78392
78393 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78394
78395         * lib/close-stream.c, lib/close-stream.h: New files.
78396
78397 2006-07-22  Bruno Haible  <bruno@clisp.org>
78398
78399         Merge from GNU gettext 0.15.
78400
78401         2006-05-01  Bruno Haible  <bruno@clisp.org>
78402
78403                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78404
78405         2006-07-22  Bruno Haible  <bruno@clisp.org>
78406
78407                 * modules/javaversion: New file.
78408                 * MODULES.html.sh (Java): Add javaversion.
78409
78410         2006-03-12  Bruno Haible  <bruno@clisp.org>
78411
78412                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78413
78414         2005-12-04  Bruno Haible  <bruno@clisp.org>
78415
78416                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78417                 (untested).
78418
78419         2006-06-21  Bruno Haible  <bruno@clisp.org>
78420
78421                 Avoid warnings from recent versions of mcs.
78422                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78423                 -o, -L, -r any more. Use options documented since mcs-1.0
78424                 instead. Similarly for -g.
78425
78426         2005-12-04  Bruno Haible  <bruno@clisp.org>
78427
78428                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78429                 .resources, not .resource.
78430
78431         2005-07-09  Bruno Haible  <bruno@clisp.org>
78432
78433                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78434                 add a .dll suffix.
78435                 Reported by Mark Junker <mjscod@gmx.de>.
78436
78437         2006-07-22  Bruno Haible  <bruno@clisp.org>
78438
78439                 * modules/gettext: Upgrade to gettext-0.15.
78440                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78441                 m4/visibility.m4.
78442                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78443
78444 2006-07-22  Bruno Haible  <bruno@clisp.org>
78445
78446         Merge from GNU gettext 0.15.
78447
78448         2006-03-25  Bruno Haible  <bruno@clisp.org>
78449
78450                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78451
78452         2006-07-21  Bruno Haible  <bruno@clisp.org>
78453
78454                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78455                 "1.1".
78456
78457         2006-05-09  Bruno Haible  <bruno@clisp.org>
78458
78459                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78460                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78461                 for the conftestver execution.
78462
78463         2006-05-01  Bruno Haible  <bruno@clisp.org>
78464
78465                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78466                 optional target-version argument. Verify that the compiler
78467                 groks source of the specified source-version, or add -source
78468                 option as necessary. Verify that the compiler produces
78469                 bytecode in the specified target-version, or add -target and
78470                 -source options as necessary. Make the result of the test
78471                 available as variable CONF_JAVAC. Also log error output in
78472                 config.log.
78473
78474         2006-03-11  Bruno Haible  <bruno@clisp.org>
78475
78476                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78477
78478         2006-05-09  Bruno Haible  <bruno@clisp.org>
78479
78480                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78481                 CLASSPATH_SEPARATOR to a semicolon.
78482
78483         2006-03-12  Bruno Haible  <bruno@clisp.org>
78484
78485                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78486                 available as variable CONF_JAVA, for subsequent autoconf
78487                 tests. Also log error output in config.log.
78488
78489         2006-07-19  Bruno Haible  <bruno@clisp.org>
78490
78491                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78492                 that getline works on glibc2 systems. Needed to avoid trouble
78493                 in relocatable.c.
78494                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78495
78496         2005-12-04  Bruno Haible  <bruno@clisp.org>
78497
78498                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78499                 launcher (untested).
78500
78501         2005-12-04  Bruno Haible  <bruno@clisp.org>
78502
78503                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78504
78505         2006-07-22  Bruno Haible  <bruno@clisp.org>
78506
78507                 * gettext.m4: Update from GNU gettext-0.15.
78508                 * nls.m4: Likewise.
78509                 * po.m4: Likewise.
78510                 * inttypes-pri.m4: Likewise.
78511                 * inttypes-h.m4: Renamed from inttypes.m4.
78512                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
78513
78514 2006-07-22  Bruno Haible  <bruno@clisp.org>
78515
78516         Merge from GNU gettext 0.15.
78517
78518         2005-07-05  Bruno Haible  <bruno@clisp.org>
78519
78520                 * printf-args.c (printf_fetchargs): Work around broken
78521                 definition of wint_t on mingw.
78522
78523         2005-02-12  Bruno Haible  <bruno@clisp.org>
78524
78525                 * xallocsa.h: Add extern "C" for C++.
78526
78527         2006-05-17  Bruno Haible  <bruno@clisp.org>
78528
78529                 Cygwin portability.
78530                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
78531
78532         2006-04-30  Bruno Haible  <bruno@clisp.org>
78533
78534                 * progreloc.c: Include <mach-o/dyld.h> if available.
78535                 (find_executable): Use _NSGetExecutablePath when possible.
78536
78537         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
78538
78539                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
78540                 function.
78541
78542         2005-12-29  Bruno Haible  <bruno@clisp.org>
78543
78544                 * progreloc.c (set_program_name_and_installdir): Fix
78545                 compilation error.
78546
78547         2005-12-04  Bruno Haible  <bruno@clisp.org>
78548
78549                 Cygwin portability.
78550                 * progreloc.c: Include <windows.h> also on Cygwin.
78551                 (find_executable): Add support for Cygwin.
78552                 (set_program_name_and_installdir): Handle also platforms with
78553                 nonempty EXEEXT.
78554
78555         2006-07-11  Bruno Haible  <bruno@clisp.org>
78556
78557                 * javacomp.c: Fix a comment.
78558                 Reported by Jim Meyering.
78559
78560         2006-04-30  Bruno Haible  <bruno@clisp.org>
78561
78562                 * javacomp.h (compile_java_class): Add source_version,
78563                 target_version arguments.
78564                 * javacomp.c: Rewritten to choose only a compiler that
78565                 respects the specified source_version and target_version.
78566
78567         2006-06-27  Bruno Haible  <bruno@clisp.org>
78568
78569                 Assume correct S_ISDIR macro.
78570                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
78571
78572         2006-07-22  Bruno Haible  <bruno@clisp.org>
78573
78574                 * javaversion.h: New file, from GNU gettext.
78575                 * javaversion.c: New file, from GNU gettext.
78576                 * javaversion.java: New file, from GNU gettext.
78577                 * javaversion.class: New file, from GNU gettext.
78578
78579         2006-05-17  Bruno Haible  <bruno@clisp.org>
78580
78581                 Cygwin portability.
78582                 * javaexec.c (execute_java_class): Test for jview program
78583                 also on Cygwin.
78584
78585         2006-04-09  Bruno Haible  <bruno@clisp.org>
78586
78587                 * fatal-signal.c: Don't include string.h.
78588                 (at_fatal_signal): Use a copying loop instead of memcpy.
78589
78590         2005-12-04  Bruno Haible  <bruno@clisp.org>
78591
78592                 * csharpexec.c: Add support for 'clix' launcher (untested).
78593                 (execute_csharp_using_sscli): New function.
78594                 (execute_csharp_program): Call it.
78595
78596         2006-06-21  Bruno Haible  <bruno@clisp.org>
78597
78598                 Avoid warnings from recent versions of mcs.
78599                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
78600                 -o, -L, -r any more. Use options documented since mcs-1.0
78601                 instead. Similarly for -g.
78602
78603         2005-07-09  Bruno Haible  <bruno@clisp.org>
78604
78605                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
78606                 add a .dll suffix.
78607                 Reported by Mark Junker <mjscod@gmx.de>.
78608
78609         2006-06-17  Bruno Haible  <bruno@clisp.org>
78610
78611                 * config.charset: Update for NetBSD 3.0.
78612
78613         2006-05-17  Bruno Haible  <bruno@clisp.org>
78614
78615                 Cygwin portability.
78616                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
78617
78618         2006-05-16  Bruno Haible  <bruno@clisp.org>
78619
78620                 * localcharset.c [CYGWIN]: Include <windows.h>.
78621                 (get_charset_aliases): For Cygwin, return the same CPxxx
78622                 aliases list as under WIN32.
78623                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
78624                 the environment variables. Fall back to GetACP().
78625
78626         2006-04-05  Bruno Haible  <bruno@clisp.org>
78627
78628                 * config.charset: Update Juan Manuel Guerrero's address.
78629
78630         2005-02-12  Bruno Haible  <bruno@clisp.org>
78631
78632                 * allocsa.h: Add extern "C" for C++.
78633
78634         2005-02-10  Bruno Haible  <bruno@clisp.org>
78635
78636                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
78637                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
78638
78639         2006-07-22  Bruno Haible  <bruno@clisp.org>
78640
78641                 * gettext.h: Update to GNU gettext-0.15.
78642
78643 2006-07-22  Bruno Haible  <bruno@clisp.org>
78644
78645         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
78646         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
78647         lib-prefix.m4, longdouble.m4, ssize_t.m4.
78648
78649 2006-07-21  Eric Blake  <ebb9@byu.net>
78650
78651         * modules/stdlib-safer: New file.
78652         * MODULES.html.sh (File stream based Input/Output): Add
78653         stdlib-safer.
78654
78655 2006-07-21  Eric Blake  <ebb9@byu.net>
78656
78657         * lib/stdlib-safer.h: New file from coreutils, required by
78658         stdlib--.h.
78659
78660 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
78661
78662         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
78663
78664 2006-07-20  Bruno Haible  <bruno@clisp.org>
78665
78666         * gnulib-tool: Recognize new option --assume-autoconf.
78667         (autoconf_minversion): New variable.
78668         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
78669
78670 2006-07-20  Bruno Haible  <bruno@clisp.org>
78671
78672         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
78673
78674 2006-07-19  Derek R. Price  <derek@ximbiot.com>
78675
78676         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
78677         Reindent and repaginate.
78678
78679 2006-07-19  Derek Price  <derek@ximbiot.com>
78680
78681         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
78682         Correct grammar.
78683
78684 2006-07-17  Bruno Haible  <bruno@clisp.org>
78685
78686         * modules/list: New file.
78687         * modules/array-list: New file.
78688         * modules/carray-list, modules/carray-list-tests: New files.
78689         * modules/linked-list, modules/linked-list-tests: New files.
78690         * modules/avltree-list, modules/avltree-list-tests: New files.
78691         * modules/rbtree-list, modules/rbtree-list-tests: New files.
78692         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
78693         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
78694         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
78695         * modules/oset: New file.
78696         * modules/array-oset: New file.
78697         * modules/avltree-oset, modules/avltree-oset-tests: New files.
78698         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
78699         * tests/test-carray_list.c: New file.
78700         * tests/test-linked_list.c: New file.
78701         * tests/test-avltree_list.c: New file.
78702         * tests/test-rbtree_list.c: New file.
78703         * tests/test-linkedhash_list.c: New file.
78704         * tests/test-avltreehash_list.c: New file.
78705         * tests/test-rbtreehash_list.c: New file.
78706         * tests/test-avltree_oset.c: New file.
78707         * tests/test-rbtree_oset.c: New file.
78708         * MODULES.html.sh (Container data structures): New section.
78709
78710 2006-07-17  Bruno Haible  <bruno@clisp.org>
78711
78712         * m4/gl_list.m4: New file.
78713
78714 2006-07-17  Bruno Haible  <bruno@clisp.org>
78715
78716         * lib/gl_list.h: New file.
78717         * lib/gl_list.c: New file.
78718         * lib/gl_array_list.h: New file.
78719         * lib/gl_array_list.c: New file.
78720         * lib/gl_carray_list.h: New file.
78721         * lib/gl_carray_list.c: New file.
78722         * lib/gl_linked_list.h: New file.
78723         * lib/gl_linked_list.c: New file.
78724         * lib/gl_anylinked_list1.h: New file.
78725         * lib/gl_anylinked_list2.h: New file.
78726         * lib/gl_avltree_list.h: New file.
78727         * lib/gl_avltree_list.c: New file.
78728         * lib/gl_anyavltree_list1.h: New file.
78729         * lib/gl_anyavltree_list2.h: New file.
78730         * lib/gl_rbtree_list.h: New file.
78731         * lib/gl_rbtree_list.c: New file.
78732         * lib/gl_anyrbtree_list1.h: New file.
78733         * lib/gl_anyrbtree_list2.h: New file.
78734         * lib/gl_anytree_list1.h: New file.
78735         * lib/gl_anytree_list2.h: New file.
78736         * lib/gl_linkedhash_list.h: New file.
78737         * lib/gl_linkedhash_list.c: New file.
78738         * lib/gl_anyhash_list1.h: New file.
78739         * lib/gl_anyhash_list2.h: New file.
78740         * lib/gl_avltreehash_list.h: New file.
78741         * lib/gl_avltreehash_list.c: New file.
78742         * lib/gl_rbtreehash_list.h: New file.
78743         * lib/gl_rbtreehash_list.c: New file.
78744         * lib/gl_anytreehash_list1.h: New file.
78745         * lib/gl_anytreehash_list2.h: New file.
78746
78747         * lib/gl_oset.h: New file.
78748         * lib/gl_oset.c: New file.
78749         * lib/gl_array_oset.h: New file.
78750         * lib/gl_array_oset.c: New file.
78751         * lib/gl_avltree_oset.h: New file.
78752         * lib/gl_avltree_oset.c: New file.
78753         * lib/gl_rbtree_oset.h: New file.
78754         * lib/gl_rbtree_oset.c: New file.
78755         * lib/gl_anytree_oset.h: New file.
78756
78757 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78758
78759         * m4/mkancesdirs.m4: New file.
78760         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
78761         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
78762         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
78763         it.
78764
78765 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78766
78767         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
78768         * lib/mkancesdirs.h: New files.
78769         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
78770         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
78771         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
78772         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
78773         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
78774         callers changed.  Revamp internals significantly, by not
78775         attempting to create directories that are temporarily more
78776         permissive than the final results.  Do not attempt to use
78777         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
78778         This removes some race conditions, fixes some bugs, and simplifies
78779         things.  Use new dirchownmod function to do owner and mode changes.
78780         * lib/mkdir-p.h: Likewise.
78781         * lib/modechange.c (octal_to_mode): New function.
78782         (struct mode_change): New member mentioned.
78783         (make_node_op_equals): New arg mentioned.  All callers changed.
78784         (mode_compile): Keep track of which mode bits the user has explicitly
78785         mentioned.
78786         (mode_adjust): New arg DIR, so that we implement the X op correctly.
78787         New arg PMODE_BITS, to keep track of which mode bits the user
78788         mentioned; it treats S_ISUID and S_ISGID speciall.
78789         All callers changed.
78790         * lib/modechange.h: Likewise.
78791
78792 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
78793
78794         * MODULES.html.sh: Add mkancestors.
78795         * modules/mkancesdirs: New module.
78796         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
78797         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
78798         The chdir-safer and afs files are now orphans; I'll remove them
78799         unless someone speaks up.
78800         Add lib/dirchownmod.c, lib/dirchownmod.h.
78801         (Depends-on): Remove alloca, chown, save-cwd, dirname.
78802         Add lchown, mkancesdirs.
78803         (Maintainer): Add self.
78804
78805 2006-07-15  Karl Berry  <karl@gnu.org>
78806
78807         * gnulib-tool: help message wording/arrangement.
78808
78809 2006-07-14  Simon Josefsson  <jas@extundo.com>
78810
78811         * doc/gnulib.texi (Libtool and Windows): New section.
78812
78813 2006-07-12  Simon Josefsson  <jas@extundo.com>
78814
78815         * modules/gendocs (License): Fix license, approved by Karl.
78816
78817 2006-07-12  Eric Blake  <ebb9@byu.net>
78818
78819         * MODULES.html.sh: Add gendocs.
78820
78821 2006-07-11  Eric Blake  <ebb9@byu.net>
78822
78823         * modules/fdl: New module, to install doc/fdl.texi.
78824         * MODULES.html.sh: Add new section for documentation modules.
78825         * gnulib-tool: Avoid space-tab.
78826         (--doc-base): New option, to manage files from doc.
78827
78828 2006-07-11  Eric Blake  <ebb9@byu.net>
78829
78830         * m4/absolute-header.m4: Fix comments to match recent change.
78831
78832 2006-07-11  Eric Blake  <ebb9@byu.net>
78833
78834         * gnulib-tool: List --doc-base before --tests-base.
78835
78836 2006-07-11  Derek R. Price  <derek@ximbiot.com>
78837
78838         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
78839
78840 2006-07-11  Bruno Haible  <bruno@clisp.org>
78841
78842         * README: Mention where to put documentation.
78843
78844 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78845
78846         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
78847
78848 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78849
78850         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
78851         to stdint.m4.
78852
78853 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78854
78855         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
78856         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
78857         "no/such/file/stdint.h" when there is no such file, so that
78858         the resulting C code can be parsed by dodgy compilers.
78859         Problems reported by Bob Proulx.
78860
78861 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78862
78863         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
78864         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78865         macros into the GNU _D_EXACT_NAMLEN.
78866         * lib/savedir.c:  Likewise.
78867         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
78868
78869 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78870         and Paul Eggert  <eggert@cs.ucla.edu>
78871
78872         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
78873         * m4/savedir.m4:
78874         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78875         macros into the GNU _D_EXACT_NAMLEN.
78876
78877 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
78880         around the absolute name, to work around a problem with the HP-UX
78881         11.23 native C compiler, reported by Bob Proulx.
78882
78883 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78884
78885         * doc/maintain.texi, make-stds.texi: Sync from
78886         <http://savannah.gnu.org/projects/gnustandards>.
78887
78888 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78889
78890         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
78891
78892 2006-07-09  Jim Meyering  <jim@meyering.net>
78893
78894         * m4/glob.m4: Remove a doubled word in a comment.
78895
78896 2006-07-09  Jim Meyering  <jim@meyering.net>
78897
78898         * lib/argp-pv.c: Remove a doubled word in a comment.
78899         * lib/check-version.c (check_version): Likewise.
78900         * lib/javacomp.c (compile_java_class): Likewise.
78901
78902 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78903
78904         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78905         for the benefit of people using Autoconf 2.60.  If you want to
78906         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78907         (or m4/onceonly.m4, if pre-2.57) manually.
78908
78909 2006-07-08  Jim Meyering  <jim@meyering.net>
78910
78911         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78912         comment.
78913         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78914         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78915         comment.
78916
78917 2006-07-08  Jim Meyering  <jim@meyering.net>
78918
78919         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78920
78921 2006-07-07  Simon Josefsson  <jas@extundo.com>
78922
78923         * tests/test-crc.c: Change expected crc value, the test vector
78924         were probably computed using the old broken crc.c?
78925
78926 2006-07-06  Simon Josefsson  <jas@extundo.com>
78927
78928         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
78929         now the canonical place for the M4 file).
78930
78931         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
78932         from the sys_socket dependency now.
78933
78934         * modules/inet_pton (Files): Ditto.
78935
78936         * modules/inet_ntop (Files): Ditto.
78937
78938 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78939
78940         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
78941         not gl_PREREQ_GETUSERSHELL.
78942
78943 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78944
78945         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
78946         with only one argument, for Autoconf 2.60.
78947         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
78948         expand to nothing, so add a shell command to avoid syntax error.
78949         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78950
78951 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78952
78953         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
78954
78955 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78956
78957         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
78958         no longer needed.  Check for isblank decl.
78959         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
78960         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
78961         of existence.
78962
78963 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78964
78965         * lib/getloadavg.c: Use __VMS, not VMS.
78966         * lib/getopt.c: Likewise.
78967         * lib/getpagesize.h: Likewise.
78968         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
78969         and probably does not work.
78970
78971 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78972
78973         * lib/.cppi-disable: Add wcwidth.
78974         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78975         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78976         (ISGRAPH): Remove.  All uses changed to isgraph.
78977         (FOLD) [!defined _LIBC]: Remove special case.
78978         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78979         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78980         HAVE_ISBLANK.
78981         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78982         case.
78983
78984 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78985
78986         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78987         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78988         brackets.  Other minor changes to suppress some compiler
78989         warnings.
78990
78991 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78992         and Paul Eggert  <eggert@cs.ucla.edu>
78993
78994         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78995         of invoking obsolescent AC_HEADER_DIRENT macro.
78996         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78997         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78998         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78999         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79000         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79001         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79002         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79003         * m4/readdir.m4: Remove; no longer needed.
79004
79005 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79006         and Paul Eggert  <eggert@cs.ucla.edu>
79007
79008         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79009         Don't worry about this obsolete case any more.
79010         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79011         directories.
79012         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79013         worry about this obsolete case any more.
79014         * lib/fts.c: Likewise.
79015         * lib/getcwd.c: Likewise.
79016         * lib/glob.h: Likewise.
79017         * lib/savedir.c: Likewise.
79018
79019 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79020
79021         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79022         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79023         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79024         needed.
79025         All uses removed.
79026         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79027         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79028         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79029         needed.
79030         * m4/getdate.m4 (gl_GETDATE): Likewise.
79031         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79032         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79033         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79034         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79035         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79036         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79037         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79038         needed.
79039
79040 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79041
79042         * lib/memcasecmp.c: Include <limits.h>.
79043         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79044         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79045         Don't assume isdigit succeeds only on '0' through '9'.
79046
79047 2006-07-05  Eric Blake  <ebb9@byu.net>
79048
79049         * modules/getaddrinfo (Depends-on): Add snprintf.
79050
79051 2006-07-05  Eric Blake  <ebb9@byu.net>
79052
79053         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79054         to avoid 'header present but could not be compiled' on cygwin.
79055
79056 2006-07-05  Eric Blake  <ebb9@byu.net>
79057
79058         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79059         missing from netdb.h.
79060         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79061
79062 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79063
79064         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79065         no longer needed.
79066         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79067         * m4/getdate.m4 (gl_GETDATE): Likewise.
79068         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79069         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79070         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79071         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79072         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79073
79074 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79075
79076         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79077         All uses of is_space replaced by isspace.
79078         * lib/exit.h: Don't talk about STDC_HEADERS.
79079         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79080         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79081         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79082         replaced by isprint etc.
79083         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79084         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79085         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79086         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79087         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79088         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79089
79090 2006-07-05  Bruno Haible  <bruno@clisp.org>
79091
79092         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79093         the function exists, before testing against AIX.
79094         Reported by Martin Lambers <marlam@marlam.de>.
79095
79096 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79097
79098         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79099         From Mark D. Baushke.
79100
79101 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79102
79103         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79104         to the absolute name, not just one, to bypass Sun C 5.8's
79105         "warning: #include of /usr/include/... may be non-portable".
79106
79107 2006-07-04  Eric Blake  <ebb9@byu.net>
79108
79109         * modules/dirname-tests: New test module.
79110         * tests/test-dirname.c: New file, replacing dirname.c
79111         TEST_DIRNAME section that was recently deleted.
79112
79113 2006-07-04  Bruno Haible  <bruno@clisp.org>
79114
79115         Assume ANSI C header files and <ctype.h> functions.
79116         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79117         (mbsnwidth): Use isprint, iscntrl instead.
79118
79119 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         Merge from coreutils.
79122         * MODULES.html.sh: Add xstrtold.
79123         * modules/xstrtold: New file.
79124         * modules/cycle-check (Files): Add lib/same-inode.h.
79125         * modules/dirname (Files): Add m4/double-slash-root.m4.
79126         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79127         * modules/mkdir-p (Files): Add lib/same-inode.h.
79128         * modules/same (Files): Add lib/same-inode.h.
79129
79130 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79131
79132         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79133         This is to keep the terminology clean; POSIX talks about
79134         "absolute pathnames", not "full pathnames", but the GNU
79135         Coding Standards say to use "path" for something else;
79136         so use "absolute" to keep both sides happy.
79137         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79138         Set gl_absolute_header, not gl_full_header_path.
79139         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79140         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79141         All uses changed.
79142
79143         Merge from coreutils.
79144
79145         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79146
79147         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79148         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79149         want to require the building of c-strtod.o.
79150         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79151         needs -lm directly.
79152         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79153
79154         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79155
79156         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79157         --as-needed option if available.  Problem reported by Albert Chin in
79158         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79159         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79160         cc merely issues a bunch of annoying warnings for --as-needed
79161         (this problem was reported by Bob Proulx).  Also, try linking with
79162         -lm to detect a bug in binutils 2.16 (this problem was reported
79163         by Ralf Wildenhues).
79164
79165         2006-06-18  Jim Meyering  <jim@meyering.net>
79166
79167         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79168         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79169         macro.
79170         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79171         also check for glibc-2.4's abort-inducing bug.
79172
79173         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79174         Low-probability clean-up should be to use rmdir to get rid of
79175         the just-created directory, not unlink.
79176
79177         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79178         configure fail, and request a bug report to inform us about it.
79179         Add a comment that, barring reports to the contrary, in 2007 we'll
79180         assume ftruncate is universally available.
79181
79182         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79183
79184         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79185
79186         2006-03-12  Jim Meyering  <jim@meyering.net>
79187
79188         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79189         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79190         * m4/same.m4 (gl_SAME): Likewise.
79191         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79192
79193         2006-03-11  Eric Blake  <ebb9@byu.net>
79194
79195         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79196         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79197         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79198         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79199
79200 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79201
79202         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79203         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79204         reported by Mark D. Baushke, one in
79205         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79206
79207         Merge from coreutils.
79208
79209         * lib/.cppi-disable: Add stdint_.h.
79210         * lib/.cvsignore: Add stdint.h.
79211
79212         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79213
79214         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79215         both double and long double versions.
79216         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79217         * lib/xstrtold.c: New file.
79218         * lib/xstrtod.h (xstrtold): New decl.
79219
79220         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79221
79222         * lib/filemode.c (setst): Remove.
79223         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79224         (arguably) clearer, and the generated code is a bit smaller on my
79225         Debian GNU/Linux stable x86 host.
79226
79227         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79228
79229         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79230         Assume that filemode.h includes sys/types.h and sys/stat.h.
79231         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79232         (ftypelet): Reorder to put common cases first, for efficiency.
79233         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79234         to do 'M'.
79235         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79236         of 10, for compatibility with FreeBSD.  All callers changed.
79237         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79238         types that can't be deduced solely from st_mode.  First arg is now a
79239         const pointer.
79240         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79241         (strmode): Renamed from mode_string.
79242         (filemodestring): New decl.
79243         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79244         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79245         needed.
79246         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79247
79248         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79249
79250         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79251         fsusage.h now does that.  Include fsusage.h first, to test interface.
79252         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79253         at most one method (the old code could have generated decls that
79254         didn't conform to C89, not that this was ever exercised).
79255         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79256
79257         2006-03-19  Jim Meyering  <jim@meyering.net>
79258
79259         Work even in a chroot where d_ino values for entries in "/"
79260         don't match the stat.st_ino values for the same names.
79261         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79262         number, iterate through all entries again, using lstat instead.
79263         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79264         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79265
79266         * lib/getcwd.c (__getcwd): Clarify a comment.
79267         Use memcpy in place of a call to strcpy.
79268
79269         2006-03-12  Jim Meyering  <jim@meyering.net>
79270
79271         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79272         matches that of the current directory (which we're about to chdir ".."
79273         out of), then save the dev-ino of the parent, instead.
79274
79275         * lib/same-inode.h (SAME_INODE): New file/macro.
79276         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79277         Include "same-inode.h", instead.
79278         * lib/same.c: Likewise.
79279         * lib/cycle-check.h: Include "same-inode.h".
79280         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79281         * lib/cycle-check.c (SAME_INODE): Remove definition.
79282         * lib/root-dev-ino.h: Include "same-inode.h".
79283
79284         2006-03-11  Eric Blake  <ebb9@byu.net>
79285
79286         * lib/same.c (same_name): s/base_name/last_component/
79287         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79288         * lib/filenamecat.c (file_name_concat): Likewise.
79289
79290         2006-03-11  Eric Blake  <ebb9@byu.net>,
79291                     Paul Eggert  <eggert@cs.ucla.edu>
79292
79293         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79294         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79295         drive prefix.
79296         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79297         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79298         (last_component): New method.
79299         * lib/dirname.c (dir_len): Determine when drive letters need a
79300         subsequent slash.  Preserve // when it is special.
79301         (dir_name): Don't append dot when drive letter is absolute.
79302         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79303         * lib/basename.c (base_name): New semantics - malloc the result.
79304         Preserve // when it is special.  Preserve relative files that look
79305         like drive letters.
79306         (base_len): Preserve // when it is special.
79307         (last_component): New method, similar to old base_name semantics.
79308         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79309         base_name.  Strip redundant slashes from ///.
79310
79311 2006-07-03  Jim Meyering  <jim@meyering.net>
79312
79313         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79314         macro is used before the first cycle_check call.
79315
79316 2006-07-03  Eric Blake  <ebb9@byu.net>
79317
79318         * modules/dirname (Depends-on): Add xstrndup.
79319
79320 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79321
79322         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79323         test cases, so that config.log is a bit easier to follow.
79324
79325 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79326
79327         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79328         both are 64 bits, since this seems to be the tradition, and this
79329         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79330         we ever run into a host that prefers long long to long in this
79331         case, we'll need another configure-time test.  Problem reported by
79332         Jim Meyering.
79333
79334 2006-07-02  Eric Blake  <ebb9@byu.net>
79335
79336         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79337
79338 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79339
79340         * modules/inttypes (Depends-on): No longer depends on stdint.
79341         * modules/stdint (Description): Say more about assumptions.
79342         Say that the fast types might differ.  Say macros are used.
79343         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79344         (Makefile.am): Revise list of substituted symbols to match
79345         new stdint.m4.
79346         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79347         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79348         * tests/test-stdint.c (verify_same_types)
79349         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79350         the code conforms to C99/C89.
79351         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79352         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79353
79354 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79355
79356         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79357         but fix a bug, by requiring at least 64 bits.
79358         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79359         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79360         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79361         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79362
79363         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79364         changes.  Make 2.59 a prerequisite.  Check and substitute for
79365         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79366         inttypes.h.  Do not use special include files; just use the
79367         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79368         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79369         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79370         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79371         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79372         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79373         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79374         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79375         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79376         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79377         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79378         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79379         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79380         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79381         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79382         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79383         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79384         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79385         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79386         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79387         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79388         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79389         not check for things that C99 does not require, e.g., int8_t.  If
79390         a test isn't needed unless <stdint.h> isn't working, and is
79391         unlikely to be needed for any other reason, then don't do it
79392         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79393         size_t, since we assume C89 freestanding at least.  Do not check
79394         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79395         the right thing even if the types are not defined.  Instead use:
79396         (gl_STDINT_TYPE_PROPERTIES): New macro.
79397         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79398         testing whether <sys/types.h> clashes, as Autoconf does this for
79399         us now.  All uses removed.
79400         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79401         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79402         (gl_CHECK_TYPE_SAME):
79403         Remove; no longer needed.
79404         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79405         exists, since we'll return 0 anyway in that case.
79406         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79407
79408 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79409
79410         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79411         possible collision with system files.
79412         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79413         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79414         WCHAR_MIN and WCHAR_MAX in this case.
79415         (<stddef.h>): Do not include; no longer needed.
79416         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79417         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79418         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79419         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79420         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79421         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79422         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79423         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79424         !defined(__c99))]: Include in this case too, since it's harmless
79425         now.
79426         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79427         dangerous to do so.
79428         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79429         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79430         (_STDINT_MIN, _STDINT_MAX): New macros.
79431         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79432         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79433         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79434         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79435         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79436         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79437         macros, not typedefs; this simplifies things quite a bit.
79438         Use long int for all types narrower than int64_t.
79439         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79440         Define in terms of long long int or int64_t or long int,
79441         not int64_t or int32_t.  This saves some compile-time testing.
79442         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79443         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79444         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79445         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79446         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79447         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79448         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79449         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79450         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79451         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79452         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79453         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79454         undef any previous version and define our own version, for
79455         simplicity and consistency with the new macros for types.
79456         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79457         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79458         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79459         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79460         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79461         @WINT_T_SUFFIX@ to keep things simple here.
79462         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79463         Simplify by assuming typical 8/16/32/64 host, since we're
79464         already doing that elsewhere anyway.
79465         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79466         and assume long long int is 64 bits if available.  This
79467         speeds up 'configure'.
79468
79469 2006-07-01  Eric Blake  <ebb9@byu.net>
79470
79471         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79472         Reported by Andreas Buening.
79473
79474 2006-07-01  Eric Blake  <ebb9@byu.net>
79475
79476         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79477
79478 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79479
79480         * lib/getaddrinfo.c: fixed typo
79481
79482 2006-06-29  Jim Meyering  <jim@meyering.net>
79483
79484         * modules/strftime (Maintainer): Add my name, since with the
79485         FPRINTFTIME changes strftime.c has forked from glibc.
79486
79487 2006-06-29  Eric Blake  <ebb9@byu.net>
79488
79489         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79490
79491 2006-06-29  Eric Blake  <ebb9@byu.net>
79492
79493         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79494
79495 2006-06-29  Eric Blake  <ebb9@byu.net>
79496
79497         * lib/stat_.h: New file.
79498
79499 2006-06-29  Eric Blake  <ebb9@byu.net>
79500
79501         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79502         unused static function.
79503
79504 2006-06-29  Eric Blake  <ebb9@byu.net>
79505
79506         * doc/functions.texi (Function Portability): Document missing lstat
79507         on mingw.
79508
79509 2006-06-29  Eric Blake  <ebb9@byu.net>
79510
79511         * MODULES.html.sh: Add sys_stat.
79512         * modules/sys_stat: New module.
79513         * modules/mkstemp (Depends-on): Add sys_stat.
79514
79515 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79516
79517         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
79518
79519 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79520
79521         * m4/c-bs-a.m4: Removed.
79522
79523 2006-06-29  Derek R. Price  <derek@ximbiot.com>
79524
79525         * lib/strftime.c: Assume strftime() exists.
79526
79527 2006-06-29  Derek Price  <derek@ximbiot.com>
79528
79529         * modules/c-bs-a: Removed - \a is C89.
79530         * MODULES.html.sh: Remove c-bs-a.
79531
79532 2006-06-29  Bruno Haible  <bruno@clisp.org>
79533
79534         * modules/wcwidth (License): Change to LGPL.
79535
79536 2006-06-28  Simon Josefsson  <jas@extundo.com>
79537
79538         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
79539         on _WIN32.
79540
79541         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
79542         getnameinfo.
79543
79544 2006-06-28  Simon Josefsson  <jas@extundo.com>
79545
79546         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
79547
79548 2006-06-28  Simon Josefsson  <jas@extundo.com>
79549
79550         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
79551         functions there.  It will succeed on Windows XP, but on Windows
79552         2000 and (presumably) earlier, it will fail, and use the internal
79553         re-implementation.
79554         (use_win32_p): New function.
79555         (getaddrinfo): Use strtoul on servname, to support numeric ports.
79556         Support AI_NUMERICSERV to disable getservbyname.
79557         (getnameinfo): New function, only supports
79558         NI_NUMERICHOST|NI_NUMERICSERV for now.
79559
79560         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
79561         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
79562         getnameinfo.
79563
79564 2006-06-28  Eric Blake  <ebb9@byu.net>
79565
79566         * modules/wcwidth: New file.
79567         * modules/mbchar (Depends-on): Add wcwidth.
79568         * modules/mbswidth (Depends-on): Add wcwidth.
79569         * MODULES.html.sh: Add wcwidth.
79570
79571 2006-06-28  Eric Blake  <ebb9@byu.net>
79572
79573         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
79574         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
79575
79576 2006-06-28  Eric Blake  <ebb9@byu.net>
79577
79578         * lib/xvasprintf.h: Fix comments.
79579
79580 2006-06-28  Eric Blake  <ebb9@byu.net>
79581
79582         * lib/mbchar.h (wcwidth): Include wcwidth.h.
79583         * lib/mbswidth.c (wcwidth): Move from here...
79584         * lib/wcwidth.h: ...to this new file.
79585
79586 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79587
79588         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
79589
79590         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
79591         it's obsolete.
79592         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
79593
79594 2006-06-28  Derek R. Price  <derek@ximbiot.com>
79595
79596         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
79597         Autoconf 2.60 says this stuff was obsolete.
79598
79599 2006-06-28  Bruno Haible  <bruno@clisp.org>
79600
79601         * modules/wcwidth (Files): Add m4/wchar_t.m4.
79602
79603 2006-06-28  Bruno Haible  <bruno@clisp.org>
79604
79605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
79606         gt_TYPE_WCHAR_T.
79607
79608 2006-06-28  Bruno Haible  <bruno@clisp.org>
79609
79610         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
79611         declaration for wcwidth.
79612         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
79613
79614 2006-06-28  Bruno Haible  <bruno@clisp.org>
79615
79616         * lib/mkdtemp.c [MINGW]: Include <io.h>.
79617         (mkdir): Define using _mkdir.
79618
79619 2006-06-28  Bruno Haible  <bruno@clisp.org>
79620
79621         * lib/getaddrinfo.h: Fix POSIX URL.
79622         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
79623         _WIN32.
79624         (use_win32_p): Make static.
79625         (getaddrinfo): Reject service name if it is empty or does not consist
79626         solely of decimal digits, or if its value is > 65535.
79627         (getnameinfo): Remove useless casts.
79628
79629 2006-06-27  Simon Josefsson  <jas@extundo.com>
79630
79631         * modules/sys_select: New file, suggested by Bruno Haible, Paul
79632         Eggert and Martin Lambers.
79633
79634 2006-06-27  Simon Josefsson  <jas@extundo.com>
79635
79636         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
79637         Eggert and Martin Lambers.
79638
79639 2006-06-27  Bruno Haible  <bruno@clisp.org>
79640
79641         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
79642         result to 0, not to empty.
79643         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
79644
79645 2006-06-27  Bruno Haible  <bruno@clisp.org>
79646
79647         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
79648
79649 2006-06-26  Simon Josefsson  <jas@extundo.com>
79650
79651         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
79652         present.
79653
79654 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
79657         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
79658         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
79659
79660 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
79661
79662         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
79663
79664 2006-06-26  Bruno Haible  <bruno@clisp.org>
79665
79666         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
79667
79668 2006-06-26  Bruno Haible  <bruno@clisp.org>
79669
79670         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
79671
79672 2006-06-26  Bruno Haible  <bruno@clisp.org>
79673
79674         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
79675         SGI C compiler in pre-C99 mode.
79676         Suggested by Mark D. Baushke and Larry Jones.
79677
79678 2006-06-26  Bruno Haible  <bruno@clisp.org>
79679
79680         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
79681         WCHAR_MAX.
79682         Reported by Mark D. Baushke and Larry Jones.
79683
79684 2006-06-26  Bruno Haible  <bruno@clisp.org>
79685
79686         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
79687         in pre-C99 mode.
79688         Suggested by Mark D. Baushke and Larry Jones.
79689
79690 2006-06-23  Simon Josefsson  <jas@extundo.com>
79691             Bruno Haible  <bruno@clisp.org>
79692
79693         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
79694         Emit mostlyclean-local rule.
79695         (func_emit_tests_Makefile_am): Likewise.
79696         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
79697
79698 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
79699
79700         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
79701
79702 2006-06-23  Bruno Haible  <bruno@clisp.org>
79703
79704         * tests/test-stdint.c: Update to match ISO C 99 Technical
79705         Corrigendum 1.
79706
79707 2006-06-23  Bruno Haible  <bruno@clisp.org>
79708
79709         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
79710
79711 2006-06-23  Bruno Haible  <bruno@clisp.org>
79712
79713         * lib/stdint_.h: Treat IRIX like OpenBSD.
79714
79715 2006-06-23  Bruno Haible  <bruno@clisp.org>
79716
79717         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
79718         ISO C 99 Technical Corrigendum 1.
79719
79720 2006-06-22  Simon Josefsson  <jas@extundo.com>
79721
79722         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
79723         MinGW.
79724
79725 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
79726
79727         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
79728         needed.  Some compiler complained about some of them.  Problem reported
79729         by Larry Jones in
79730         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
79731
79732 2006-06-21  Simon Josefsson  <jas@extundo.com>
79733
79734         * tests/test-getaddrinfo.c: New file.
79735
79736         * modules/getaddrinfo-tests: New file.
79737
79738         * MODULES.html.sh: Add inet_pton.
79739
79740         * modules/inet_pton: New file.
79741
79742 2006-06-21  Simon Josefsson  <jas@extundo.com>
79743
79744         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
79745         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
79746         of using the (limited) gnulib implementation on Windows XP.
79747
79748         * m4/inet_pton.m4: New file.
79749
79750 2006-06-21  Simon Josefsson  <jas@extundo.com>
79751
79752         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
79753         variable.
79754
79755         * lib/socket_.h: Don't define WINVER.
79756
79757         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
79758         slightly modified to work in gnulib.
79759
79760 2006-06-21  Simon Josefsson  <jas@extundo.com>
79761
79762         * doc/gnulib.texi (Windows sockets): Add.
79763
79764 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
79765
79766         * lib/read-file.c (fread_file): Start with buffer allocation of
79767         0 bytes rather than 1 byte; this simplifies the code.
79768         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
79769         code to free buffer and save/restore errno.
79770         (internal_read_file): Remove unused local.
79771
79772 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
79773
79774         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
79775         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
79776         Problem reported by Denis Excoffier in
79777         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
79778
79779 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79780
79781         * modules/sys_socket, modules/socklen: Include sys/types since
79782         FreeBSD 4.x's sys/socket.h needs it.
79783
79784 2006-06-19  Simon Josefsson  <jas@extundo.com>
79785
79786         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
79787
79788 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79789
79790         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
79791
79792 2006-06-19  Bruno Haible  <bruno@clisp.org>
79793
79794         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
79795         and FULL_PATH_INTTYPES_H in angle brackets.
79796         Reported by Mark D. Baushke <mdb@gnu.org>.
79797
79798 2006-06-17  Eric Blake  <ebb9@byu.net>
79799
79800         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
79801         errno.
79802
79803 2006-06-17  Bruno Haible  <bruno@clisp.org>
79804
79805         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
79806         <sys/inttypes.h>.
79807
79808 2006-06-17  Bruno Haible  <bruno@clisp.org>
79809
79810         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
79811         whether errno is declared. Assume <errno.h> declares errno.
79812
79813 2006-06-17  Bruno Haible  <bruno@clisp.org>
79814
79815         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
79816
79817 2006-06-17  Bruno Haible  <bruno@clisp.org>
79818
79819         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
79820         problem on Solaris 2.5.1.
79821
79822 2006-06-16  Eric Blake  <ebb9@byu.net>
79823
79824         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
79825         * lib/unicodeio.c [!defined errno]: Likewise.
79826         * lib/strtol.c [!defined errno]: Likewise.
79827         * lib/strtod.c [!defined errno]: Likewise.
79828
79829 2006-06-15  Eric Blake  <ebb9@byu.net>
79830
79831         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
79832
79833 2006-06-15  Eric Blake  <ebb9@byu.net>
79834
79835         * config/srclist.txt (ssize_t.m4): Lose sync.
79836
79837 2006-06-15  Bruno Haible  <bruno@clisp.org>
79838
79839         * modules/stdint (Files): Include m4/full-header-path.m4,
79840         m4/size_max.m4, m4/wchar_t.m4.
79841         (Makefile.am): Many more substitutions.
79842         * modules/stdint-tests: New file.
79843         * tests/test-stdint.c: New file.
79844
79845 2006-06-15  Bruno Haible  <bruno@clisp.org>
79846
79847         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
79848         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
79849         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
79850         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
79851         gl_CHECK_TYPE_SAME): New macros.
79852
79853 2006-06-15  Bruno Haible  <bruno@clisp.org>
79854
79855         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
79856
79857 2006-06-15  Bruno Haible  <bruno@clisp.org>
79858
79859         * lib/stdint_.h: Rewritten to be fully auto-configured.
79860         Fixes bug on HP-UX/IA64.
79861
79862 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
79863
79864         * lib/getdate.y (__attribute__): Don't define if already defined.
79865         Problem reported by Larry Jones.
79866         * lib/utimens.c (__attribute__): Likewise.
79867
79868 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
79869
79870         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
79871         reported by Andreas Schwab.
79872
79873 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79874             Bruno Haible  <bruno@clisp.org>
79875
79876         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
79877         check for the declaration of strnlen and a run test that exposes the
79878         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
79879         rpl_strndup.
79880
79881 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79882             Bruno Haible  <bruno@clisp.org>
79883
79884         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
79885
79886 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79887
79888         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
79889         compile test, for Tru64 4.0D.
79890
79891 2006-05-28  Karl Berry  <karl@gnu.org>
79892
79893         * config/srclist.txt (printf-args.c): lose sync.
79894
79895 2006-05-26  Martin Lambers  <marlam@marlam.de>
79896
79897         * lib/getpass.c: Updates the test for the native W32 API, and adds
79898         missing includes, thus fixing compilation warnings.
79899
79900 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79901
79902         * lib/exclude.c (exclude_fnmatch): New function.
79903         (excluded_file_name): Call exclude_fnmatch.
79904         * lib/exclude.h (excluded_file_name): New prototype
79905
79906 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * lib/tempname.c (small_open, large_open): New macros.
79909         (__open, __open64) [!_LIBC]: Remove.
79910         (__gen_tempname): Use small_open and large_open instead of __open
79911         and __open64.  This fixes a portability bug on HP-UX 11.11i
79912         reported by Simon Wing-Tang in
79913         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79914
79915 2006-05-24  Bruno Haible  <bruno@clisp.org>
79916
79917         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79918         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79919         Reported by Thorsten Maerz <torte@netztorte.de> via
79920         Aaron Stone <aaron@serendipity.cx>.
79921
79922 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79923
79924         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
79925         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
79926         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
79927         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
79928         not really conditional on the cache.
79929         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
79930
79931 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79932
79933         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
79934         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
79935         (my_usleep): Don't mishandle maximum value.
79936
79937 2006-05-19  Jim Meyering  <jim@meyering.net>
79938
79939         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
79940
79941 2006-05-17  Bruno Haible  <bruno@clisp.org>
79942
79943         Cygwin portability.
79944         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
79945
79946 2006-05-17  Bruno Haible  <bruno@clisp.org>
79947
79948         * lib/stdint_.h: Fix recognition of Cygwin.
79949
79950 2006-05-15  Bruno Haible  <bruno@clisp.org>
79951
79952         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
79953         on libtool patch by Ralf Wildenhues.
79954
79955 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79956
79957         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
79958         test for C99 conformance; (bool) 0.5 is an integer constant
79959         expression, but (bool) -0.5 is not.  Problem reported by Fedor
79960         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
79961
79962 2006-05-11  Simon Josefsson  <jas@extundo.com>
79963
79964         * m4/xvasprintf.m4: Fix obvious typo.
79965
79966 2006-05-11  Jim Meyering  <jim@meyering.net>
79967
79968         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
79969         James Lemley.
79970
79971 2006-05-10  Simon Josefsson  <jas@extundo.com>
79972
79973         * lib/md4.c: Typo fix, update copyright years.
79974         (K1, K2): Don't use L because it turn computations into 64-bit on
79975         64-bit platforms.
79976
79977 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79978
79979         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79980         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79981         unwanted sign propagation, e.g., on hosts with 64-bit int.
79982         There still are some problems with reeelly weird theoretical hosts
79983         (e.g., 33-bit int) but it's not worth worrying about now.
79984         * lib/sha1.c (rol): Likewise.
79985         (K1, K2, K3, K4): Remove unnecessary L suffix.
79986
79987 2006-05-10  Bruno Haible  <bruno@clisp.org>
79988
79989         * lib/des.c: Cast to avoid warnings.
79990
79991 2006-05-09  Bruno Haible  <bruno@clisp.org>
79992
79993         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79994         (Depends-on): Depend also on xsize, stdarg.
79995         (configure.ac): Add gl_XVASPRINTF.
79996
79997 2006-05-09  Bruno Haible  <bruno@clisp.org>
79998
79999         * m4/xvasprintf.m4: New file.
80000
80001 2006-05-09  Bruno Haible  <bruno@clisp.org>
80002
80003         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80004         (EOVERFLOW): Define fallback value.
80005         (xstrcat): New function.
80006         (xvasprintf): Recognize the special case of a string concatenation.
80007
80008 2006-05-08  Eric Blake  <ebb9@byu.net>
80009
80010         * gnulib-tool (func_version): Base copyright year on CVS date.
80011         (func_emit_copyright_notice): New function.
80012         (func_emit_lib_Makefile_am): Use it.
80013         (func_emit_tests_Makefile_am): Likewise.
80014         (func_import): Likewise.
80015
80016 2006-05-08  Bruno Haible  <bruno@clisp.org>
80017
80018         * modules/stdarg: New file.
80019         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80020
80021 2006-05-08  Bruno Haible  <bruno@clisp.org>
80022
80023         * m4/stdarg.m4: New file, from GNU gettext.
80024
80025 2006-05-08  Bruno Haible  <bruno@clisp.org>
80026
80027         * config/srclist.txt (build-aux/config.rpath): different from latest
80028         release.
80029
80030 2006-05-08  Bruno Haible  <bruno@clisp.org>
80031
80032         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80033
80034 2006-05-05  Jim Meyering  <jim@meyering.net>
80035
80036         * m4/warning.m4: New file, derived from bison's file by the same name.
80037
80038 2006-05-03  Bruno Haible  <bruno@clisp.org>
80039
80040         * lib/stdint_.h: Shorter URL.
80041         * lib/inttypes.h: Likewise.
80042
80043 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80044
80045         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80046
80047 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80048
80049         * lib/verify.h: Document the internals better.  Most of this change
80050         was written by Bruno Haible.
80051
80052 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80053
80054         * doc/verify.texi: New file, partly based on a proposal by
80055         Bruno Haible.
80056
80057 2006-05-02  Bruno Haible  <bruno@clisp.org>
80058
80059         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80060         test from here...
80061         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80062
80063 2006-04-29  Bruno Haible  <bruno@clisp.org>
80064
80065         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80066         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80067
80068 2006-04-29  Bruno Haible  <bruno@clisp.org>
80069
80070         * gnulib-tool: Make --update option actually work.
80071
80072 2006-04-29  Bruno Haible  <bruno@clisp.org>
80073
80074         * doc/gcd.texi: New file.
80075         * doc/gnulib.texi: Include it.
80076
80077 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80078
80079         * lib/getdate.y (get_date): When adding relative date, start with the
80080         initial time, not with the result of the first mktime call.
80081
80082 2006-04-25  Bruno Haible  <bruno@clisp.org>
80083
80084         * gnulib-tool (func_import): Output the include directives in three
80085         blocks, sorted separately.
80086         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80087
80088 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80089
80090         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80091         to define main with arguments, for C++.  Reported by Eric Blake.
80092         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80093         Prefer 'int main ()' to 'int main (void)', for C++.
80094         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80095         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80096         for 'main', for C99 and C++.
80097
80098 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80099
80100         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80101         Don't assume that exit status -1 is valid.
80102         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80103         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80104         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80105         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80106         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80107         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80108         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80109         functions can be used without declaring them, or that you can
80110         exit with status -1.
80111         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80112
80113 2006-04-24  Karl Berry  <karl@gnu.org>
80114
80115         * config/srclist.txt (longdouble.m4): sync lost.
80116
80117 2006-04-24  Eric Blake  <ebb9@byu.net>
80118
80119         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80120
80121 2006-04-24  Bruno Haible  <bruno@clisp.org>
80122
80123         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80124         poll() implementation in AIX.
80125         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80126
80127 2006-04-24  Bruno Haible  <bruno@clisp.org>
80128
80129         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80130         assigned exactly once.
80131
80132 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80133             Bruno Haible  <bruno@clisp.org>
80134
80135         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80136         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80137         for AM_CPPFLAGS.
80138
80139 2006-04-23  Bruno Haible  <bruno@clisp.org>
80140
80141         * modules/copy-file: Depend on unistd.
80142         * modules/execute: Likewise.
80143         * modules/fatal-signal: Likewise.
80144         * modules/findprog: Likewise.
80145         * modules/mkdtemp : Likewise.
80146         * modules/pipe: Likewise.
80147         * modules/wait-process: Likewise.
80148
80149 2006-04-23  Bruno Haible  <bruno@clisp.org>
80150
80151         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80152         condition was already detected.
80153         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80154
80155 2006-04-23  Bruno Haible  <bruno@clisp.org>
80156
80157         * lib/copy-file.c: Include <unistd.h> unconditionally.
80158         * lib/execute.c: Likewise.
80159         * lib/fatal-signal.c: Likewise.
80160         * lib/findprog.c: Likewise.
80161         * lib/mkdtemp.c: Likewise.
80162         * lib/pipe.h: Likewise.
80163         * lib/pipe.c: Likewise.
80164         * lib/wait-process.h: Likewise.
80165
80166 2006-04-23  Bruno Haible  <bruno@clisp.org>
80167
80168         * gnulib-tool (func_usage): Fix --import description. Document
80169         --update.
80170         (func_import): Create temporary file in a temporary directory, if
80171         --dry-run is specified. Silence errors from 'grep' when there are no
80172         m4 files in $m4dir.
80173         (func_create_testdir): Silence errors from 'grep' when there are no
80174         m4 files in $m4dir.
80175         Reported by Karl Berry <karl@freefriends.org>.
80176
80177 2006-04-20  Bruno Haible  <bruno@clisp.org>
80178
80179         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80180         one argument, so that the code will be portable to Autoconf 2.60.
80181         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80182         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80183         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80184
80185 2006-04-19  Derek Price  <derek@ximbiot.com>
80186             Eric Blake  <ebb9@byu.net>
80187
80188         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80189         rather than "/full/path.h".  Update comment to match.  Shorten &
80190         generalize m4_translit call via AS_TR_CPP.
80191
80192 2006-04-19  Derek Price  <derek@ximbiot.com>
80193             Eric Blake  <ebb9@byu.net>
80194
80195         * lib/inttypes.h: Correct grammar in comment.
80196
80197 2006-04-18  Derek Price  <derek@ximbiot.com>
80198             Paul Eggert  <eggert@cs.ucla.edu>
80199
80200         * modules/inttypes: New file.
80201         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80202
80203 2006-04-18  Derek Price  <derek@ximbiot.com>
80204             Paul Eggert  <eggert@cs.ucla.edu>
80205
80206         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80207         New files.
80208
80209 2006-04-18  Derek Price  <derek@ximbiot.com>
80210             Paul Eggert  <eggert@cs.ucla.edu>
80211
80212         * lib/inttypes.h: New file.
80213         * lib/strtoimax.c: Assume <inttypes.h>.
80214
80215 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80216
80217         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80218         isn't mounted.  Problem reported by Kir Kolyshkin.
80219
80220 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80221
80222         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80223         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80224         Derek R. Price.
80225         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80226         implementation.
80227
80228 2006-04-12  Eric Blake  <ebb9@byu.net>
80229
80230         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80231         is now done automatically by the corresponding Autoconf macro.
80232
80233 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80234
80235         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80236         time_r.h.
80237
80238 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80239
80240         Merge regex changes from libc, removing some of our
80241         POSIX-conformance changes that were rejected and redoing them in a
80242         less-intrusive way.
80243
80244         * lib/regcomp.c (re_compile_internal, init_dfa):
80245         Length arg is now size_t, not Idx.  All uses changed.
80246         (peek_token): Forward decl now says internal_function.
80247         (__re_error_msgid, __re_error_msgid_idx):
80248         Now static rather than extern with attribute_hidden.
80249         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80250         For some reason libc prefers K&R style defns for external functions.
80251         (regerror) [!defined _LIBC]: Likewise.
80252         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80253         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80254         (build_range_exp, build_collating_symbol):
80255         Use K&R-style defn.
80256         (re_compile_fastmap): Use '\0' to memset, not 0.
80257         (utf8_sb_map): Make the calculations more obvious.
80258         (init_dfa, parse_bracket_exp, build_charclass_op):
80259         Call calloc and cast result, as glibc does.
80260         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80261         (build_range_exp, build_collating_symbol):
80262         Now internal functions.
80263
80264         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80265
80266         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80267         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80268         Don't depend on VMS; depend on __VMS instead, for POSIX
80269         namespace cleanness.
80270         (regoff_t): Define to ssize_t, not long int.
80271
80272         Remove the REG_ macros named below.  Instead, make the old names
80273         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80274         __USE_GNU_REGEX.
80275         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80276         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80277         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80278         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80279         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80280         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80281         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80282         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80283         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80284         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80285         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80286         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80287         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80288         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80289         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80290         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80291         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80292         (REG_NREGS):
80293         Remove.  All uses replaced by the old RE_* names.
80294         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80295         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80296         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80297         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80298         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80299         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80300         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80301         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80302         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80303         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80304         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80305         Don't bother having these macros be independent of each others'
80306         values, since they no longer exist in the POSIX name space.
80307
80308         Rename the following member names back to their old names,
80309         unless !__USE_GNU_REGEX.  All uses changed back.
80310         (buffer): Renamed from re_buffer.
80311         (allocated): Renamed from re_allocated.
80312         (used): Renamed from re_used.
80313         (syntax): Renamed from re_syntax.
80314         (fastmap): Renamed from re_fastmap.
80315         (translate): Renamed from re_translate.
80316         (can_be_null): Renamed from re_can_be_null.
80317         (regs_allocated): Renamed from re_regs_allocated.
80318         (fastmap_accurate): Renamed from re_fastmap_accurate.
80319         (no_sub): Renamed from re_no_sub.
80320         (not_bol): Renamed from re_not_bol.
80321         (not_eol): Renamed from re_not_eol.
80322         (newline_anchor): Renamed from re_newline_anchor.
80323         (num_regs): Renamed from rm_num_regs.
80324         (start): Renamed from rm_start.
80325         (end): Renamed from rm_end.
80326
80327         (free_state): Move up a bit.
80328
80329         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80330         #define to be empty.
80331         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80332         when that is what is intended.
80333         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80334         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80335         (MAX): New macro.
80336         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80337         All uses changed back to re_malloc, etc.  It's now the caller's
80338         responsibility to check for overflow; all callers changed.
80339         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80340         (re_x2nrealloc): Remove.
80341         (free_state): Remove decl.
80342
80343         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80344         (re_set_registers, re_exec):
80345         Use K&R-style defn.
80346
80347         2006-01-31  Roland McGrath  <roland@redhat.com>
80348
80349         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80350         Reported by Mike Frysinger <vapier@gentoo.org>.
80351
80352         2006-01-15  Andreas Jaeger  <aj@suse.de>
80353
80354         [BZ #1950]
80355         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80356         build_wcs_upper_buffer change.
80357         (build_wcs_upper_buffer): Change return type.
80358
80359         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80360
80361         * lib/regex_internal.h: Include <stdint.h> if available.
80362
80363         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80364
80365         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80366
80367         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80368
80369         * lib/regcomp.c: Adjust for changed secondary hash function.
80370
80371         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80372
80373         * lib/regex.h: Pretty printing.
80374         Clean up namespace a bit.
80375
80376         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80377
80378         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80379         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80380
80381         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80382                     Ulrich Drepper  <drepper@redhat.com>
80383
80384         [BZ #1302]
80385         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80386         changed.
80387         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80388
80389         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80390
80391         [BZ #281]
80392         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80393         * lib/regcomp.c: Remove unnecessary uses of
80394         unsigned RE_TRANSLATE_TYPE.
80395         * lib/regex_internal.h: Likewise.
80396         * lib/regex_internal.c: Likewise.
80397         * lib/regexec.c: Likewise.
80398         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80399
80400         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80401
80402         * lib/regexec.c (find_recover_state): Remove unnecessary
80403         initialization.
80404         (transit_state_bkref): Make DFA a const pointer.
80405         (get_subexp): Likewise.
80406         (check_arrival): Likewise.
80407         (update_cur_sifted_state): Likewise.
80408         (re_search_internal): Likewise.
80409         (prune_impossible_nodes): Likewise.
80410         (acquire_init_state_context): Likewise.
80411         (proceed_next_node): Likewise.
80412         (set_regs): Likewise.
80413         (free_fail_stack_return): Likewise.
80414         (check_arrival_expand_ecl): Mark DFA parameter as const.
80415         (check_arrival_expand_ecl_sub): Likewise.
80416         (check_subexp_limits): Likewise.
80417         (sub_epsilon_src_nodes):  Likewise.
80418         (add_epsilon_src_nodes):  Likewise.
80419         (merge_state_array): Likewise.
80420         (update_regs): Likewise.
80421         (build_trtable): Likewise.
80422         (sift_states_backward): Mark MCTX parameter as const.
80423         (build_sifted_states): Likewise.
80424         (update_cur_sifted_state): Likewise.
80425         (sift_states_mkref): Likewise.
80426         (check_arrival_expand_ecl): Mark eclosure as const.
80427         (check_dst_limits_calc_pos_1): Likewise.
80428         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80429         pointer.
80430
80431         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80432
80433         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80434         (transit_state_sb): Likewise.
80435         (transit_state_mb): Likewise.
80436         (sift_states_iter_mb): Likewise.
80437         (check_arrival_add_next_nodes): Likewise.
80438         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80439         [_LIBC] (re_search_2_stub): Use mempcpy.
80440
80441         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80442         mbrtowc for very simple UTF-8 case.
80443
80444         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80445         a pointer-to-const.
80446         (re_acquire_state_context): Likewise.
80447         * lib/regex_internal.h: Adjust prototypes.
80448
80449         * lib/regex.c: Prevent using C++ compilers.
80450
80451         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80452         (re_acquire_state_context): Likewise.
80453
80454 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80455
80456         * modules/regex (Depends-on): Add ssize_t.
80457
80458 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80459
80460         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80461         translation table.
80462
80463 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80464
80465         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80466
80467 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80468             Bruno Haible  <bruno@clisp.org>
80469
80470         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80471         <sys/types.h> and <inttypes.h>.
80472
80473 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80474
80475         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80476         `__error_t_defined', so argp.h will not typedef the former.
80477
80478 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80479
80480         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80481         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80482         glibc names.  Even if glibc is changed to conform to POSIX, the
80483         traditional names will be available anyway, since regex depends on
80484         the extensions module.  Also, fix a longstanding typo in the
80485         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80486         reported by Emanuele Giaquinta.  Also, change sense of cached
80487         variable, so that the message makes sense.
80488
80489 2006-03-24  Simon Josefsson  <jas@extundo.com>
80490
80491         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80492         including some doc fixes.
80493         (base64_encode_alloc): Fix +1 bug on allocation failures.
80494
80495 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80496
80497         * lib/base64.c (base64_encode): Do not read past end of array with
80498         unsanitized input on systems with CHAR_BIT > 8.
80499
80500 2006-03-24  Eric Blake  <ebb9@byu.net>
80501
80502         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80503
80504 2006-03-22  Karl Berry  <karl@gnu.org>
80505
80506         * config/srclist.txt (*setenv.[ch]): get from coreutils.
80507         * config/srclistvars.sh (COREUTILS): new var.
80508
80509 2006-03-17  Jim Meyering  <jim@meyering.net>
80510
80511         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
80512         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
80513
80514 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80515
80516         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
80517         no longer needs it.  Instead, check that regoff_t is as least
80518         as wide as ptrdiff_t.
80519
80520         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
80521         so that our regex.h stays compatible with the installed regex.
80522         This is helpful for installers who configure --without-included-regex.
80523         Problem reported by Emanuele Giaquinta.
80524
80525 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
80526
80527         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
80528         Typedef to long int, not to off_, as POSIX will likely change
80529         in that direction.
80530
80531 2006-03-15  Eric Blake  <ebb9@byu.net>
80532
80533         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
80534
80535 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80536
80537         * lib/argp-help.c (validate_uparams): Fix typo
80538         * lib/argp-parse.c (argp_default_options): Consistently begin help
80539         messages with a lowercase letter.
80540
80541 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
80542
80543         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
80544         overrun buffers and shouldn't be used (much as gets shouldn't be
80545         used).
80546         * lib/time_r.c (asctime_r, ctime_r): Likewise.
80547
80548 2006-03-08  Simon Josefsson  <jas@extundo.com>
80549
80550         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
80551         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80552
80553 2006-03-08  Simon Josefsson  <jas@extundo.com>
80554
80555         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
80556         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80557
80558 2006-03-08  Simon Josefsson  <jas@extundo.com>
80559
80560         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
80561         signal that configure disabled the device.
80562
80563 2006-03-08  Simon Josefsson  <jas@extundo.com>
80564
80565         * build-aux/maint.mk: Fix refresh-po, to handle no translated
80566         languages.
80567
80568 2006-03-07  Simon Josefsson  <jas@extundo.com>
80569
80570         * modules/getopt (Depends-on): Add unistd.
80571
80572         * modules/unistd: New file.
80573
80574 2006-03-07  Simon Josefsson  <jas@extundo.com>
80575
80576         * modules/gc-random: New file.
80577
80578 2006-03-07  Simon Josefsson  <jas@extundo.com>
80579
80580         * m4/unistd_h.m4: New file.
80581
80582 2006-03-07  Simon Josefsson  <jas@extundo.com>
80583
80584         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
80585         test to be side-effect free by storing the result in the cache
80586         variable gl_cv_lib_readline, and moving the assignment of
80587         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
80588         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80589
80590 2006-03-07  Simon Josefsson  <jas@extundo.com>
80591
80592         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
80593         error on missing devices (the functions will return an error).
80594
80595         * m4/gc.m4: Move random stuff to gc-random.m4
80596
80597 2006-03-07  Simon Josefsson  <jas@extundo.com>
80598
80599         * lib/unistd_.h: New file.
80600
80601 2006-03-07  Simon Josefsson  <jas@extundo.com>
80602
80603         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
80604
80605 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80606
80607         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
80608         Problem reported by Juan Manuel Guerrero.
80609
80610 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80611
80612         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
80613         the unistd module.
80614         * lib/getlogin_r.c: Likewise.
80615         * lib/getlogin_r.h: Likewise.
80616         * lib/glob.c: Likewise.
80617         * lib/pagealign_alloc.c: Likewise.
80618         * lib/unistd_.h: Remove; no longer needed.
80619
80620 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
80621
80622         * MODULES.html.sh (Support for systems lacking POSIX:2001):
80623         Add unistd.
80624         * modules/c-stack (Depends-on): Add unistd.
80625         * modules/getlogin_r: Likewise.
80626         * modules/glob: Likewise.
80627         * modules/pagealign_alloc: Likewise.
80628         * modules/unistd (Files): Remove lib/unistd_.h.
80629         (EXTRA_DIST): Remove.
80630         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
80631         need unistd_.h.
80632         (MOSTLYCLEANFILES): Remove unistd.h-t.
80633
80634 2006-03-03  Simon Josefsson  <jas@extundo.com>
80635
80636         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
80637
80638 2006-03-03  Simon Josefsson  <jas@extundo.com>
80639
80640         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
80641         libidn and bison.
80642
80643 2006-03-03  Simon Josefsson  <jas@extundo.com>
80644
80645         * build-aux/maint.mk: Add indent target.
80646
80647 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
80648
80649         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
80650         our replacement poll.h in any case, to avoid a differing
80651         declaration from a system header.  Seen on AIX.
80652
80653 2006-03-01  Simon Josefsson  <jas@extundo.com>
80654
80655         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
80656         <kasal@ucw.cz>.
80657
80658 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80659
80660         * modules/gettime (Depends-on): Add extensions module.
80661         * modules/nanosleep (Depends-on): Likewise.
80662         * modules/settime (Depends-on): Likewise.
80663
80664 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80665
80666         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
80667         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
80668         pedantically.
80669         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80670         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
80671
80672         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
80673         not "==".  Reported by Ralf Wildenhues.
80674
80675 2006-03-01  Karl Berry  <karl@gnu.org>
80676
80677         * doc/Copyright/request-*: new files, synced from gnuorg.
80678
80679 2006-03-01  Karl Berry  <karl@gnu.org>
80680
80681         * config/srclist.txt (Copyright/*): new entries.
80682
80683 2006-02-28  Simon Josefsson  <jas@extundo.com>
80684
80685         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
80686
80687 2006-02-27  Simon Josefsson  <jas@extundo.com>
80688
80689         * lib/base64.h: Indent #define's.  From Jim Meyering
80690         <jim@meyering.net>.
80691
80692 2006-02-27  Jim Meyering  <jim@meyering.net>
80693
80694         Revert the change of 2006-02-24, so these files can continue
80695         to be sync'd from gettext.
80696         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
80697         of `config.h'.
80698
80699 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * modules/intprops: New file.
80702         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
80703         Add intprops.
80704         * modules/getloadavg (Files): Remove lib/intprops.h.
80705         (Depends-on): Add intprops.
80706         * modules/human: Likewise.
80707         * modules/inttostr: Likewise.
80708         * modules/openat: Likewise.
80709         * modules/sig2str: Likewise.
80710         * modules/userspec: Likewise.
80711         * modules/utimecmp: Likewise.
80712         * modules/xnanosleep: Likewise.
80713         * modules/xstrtol: Likewise.
80714
80715 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
80716
80717         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
80718         * modules/lock-tests (TESTS): Use $(EXEEXT).
80719         * modules/tls-tests: Likewise.
80720         * modules/argp-tests: Likewise.
80721         (check_PROGRAMS): New var, replacing...
80722         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
80723
80724 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80725
80726         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
80727         `config.h'.
80728
80729 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
80730
80731         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
80732
80733 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80734
80735         Sync from coreutils.
80736         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
80737         gl_CHDIR_SAFER.
80738
80739 2006-02-22  Jim Meyering  <jim@meyering.net>
80740
80741         Sync from coreutils.
80742         * m4/chdir-safer.m4: New file.
80743
80744 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
80745
80746         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
80747         AT_FDCWD exceeds INT_MAX.
80748         * lib/openat.h (AT_FDCWD): Likewise.
80749
80750 2006-02-17  Eric Blake  <address@hidden>
80751
80752         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
80753
80754 2006-02-16  Simon Josefsson  <jas@extundo.com>
80755
80756         * modules/getaddrinfo (Depends-on): Add sys_socket.
80757
80758 2006-02-15  Simon Josefsson  <jas@extundo.com>
80759
80760         * build-aux/maint.mk: Add dsyntax-check rule.
80761
80762 2006-02-15  Eric Blake  <ebb9@byu.net>
80763
80764         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
80765         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
80766         'present but cannot compile' warnings on cygwin.
80767         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
80768         use ws2tcpip.h if sys/socket.h works.
80769         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
80770         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
80771
80772 2006-02-14  Simon Josefsson  <jas@extundo.com>
80773
80774         * modules/maintainer-makefile (Files): Rename.
80775
80776         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
80777         and (the local) Makefile.cfg to maint-cfg.mk.
80778
80779         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
80780         to the latter.
80781
80782         * modules/maintainer-makefile: New module.
80783
80784         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
80785         severaly stripped to make it possible to build it up from scratch
80786         with reliable tests.
80787
80788         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
80789         fixes to permit overriding the default actions when configure and
80790         makefile are not available.
80791
80792 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
80793
80794         Sync from coreutils.
80795         * modules/lstat (Depends-on): Don't depend on xalloc.
80796         (License): Change from GPL to LGPL, since this is now simply a
80797         replacement for a libc function.
80798
80799 2006-02-14  Jim Meyering  <jim@meyering.net>
80800
80801         Sync from coreutils.
80802
80803         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
80804         failure on deficient systems, and simplify gnulib lgpl dependencies.
80805         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
80806         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
80807
80808         * lib/xalloc-die.c: Remove unused definition of N_.
80809
80810 2006-02-14  Jim Meyering  <jim@meyering.net>
80811
80812         Sync from coreutils.
80813         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
80814         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
80815         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
80816         double-quote uses of that variable, to accommodate the rare case in
80817         which getmntent is available in none of the libraries checked.  This
80818         happens at least on FreeBSD 5.0.
80819
80820 2006-02-13  Simon Josefsson  <jas@extundo.com>
80821
80822         * gnulib-tool (Usage): Fix --import, from
80823         karl@freefriends.org (Karl Berry).
80824
80825 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80826
80827         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
80828
80829 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
80830
80831         * lib/argp-namefrob.h: Restore changes accidentally lost during the
80832         "autoupdate" on 2005-12-12.
80833
80834 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80835
80836         * modules/closeout (Depends-on): Remove atexit.
80837
80838 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80839
80840         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
80841         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
80842
80843 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
80844
80845         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
80846         __EXTENSIONS__ if this causes compilation to fail.  Problem
80847         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
80848         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
80849
80850 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
80851
80852         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
80853         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
80854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
80855         All uses changed.
80856
80857 2006-01-26  Simon Josefsson  <jas@extundo.com>
80858
80859         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
80860         prototype is visible on mingw32.
80861
80862         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
80863         for mingw32.
80864
80865         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
80866         mingw32).
80867
80868 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
80869
80870         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
80871         attempt to open for write; this always fails, at least on POSIX
80872         hosts.  This reinstates the 2006-01-09 change, which was
80873         inadvertently removed.
80874
80875 2006-01-26  Bruno Haible  <bruno@clisp.org>
80876
80877         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
80878         Reported by Paul Eggert.
80879
80880 2006-01-26  Bruno Haible  <bruno@clisp.org>
80881             Paul Eggert  <eggert@cs.ucla.edu>
80882
80883         * lib/stdbool_.h (_Bool)
80884         [(! (defined __cplusplus || defined __BEOS__)
80885           && !defined __GNUC__
80886           && !(defined __HP_cc || defined __xlc__
80887                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
80888                || defined __sgi))]:
80889         #define to signed char in these cases too; this simplifies
80890         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
80891         etc., separately) and makes it more conservative.
80892
80893 2006-01-25  Simon Josefsson  <jas@extundo.com>
80894
80895         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
80896         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
80897         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80898
80899 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80900
80901         * lib/argp-namefrob.h: Bugfix. Remove stray #
80902
80903 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80904
80905         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80906         so that we test the test.
80907         Check for yet another HP-UX cc bug involving *bool |= bool.
80908
80909 2006-01-25  Karl Berry  <karl@gnu.org>
80910
80911         * config/srclist.txt (vasnprintf.c): sync lost.
80912
80913 2006-01-25  Jim Meyering  <jim@meyering.net>
80914
80915         Sync from the stable (b5) branch of coreutils:
80916
80917         * lib/fts.c (fts_children): Don't let close() clobber errno from
80918         failed fchdir().
80919
80920         * lib/fts.c (fts_stat): When following a symlink-to-directory,
80921         don't necessarily interpret stat-fails+lstat-succeeds as indicating
80922         a dangling symlink.  That can also happen at least for ELOOP.
80923         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
80924         FYI, this bug predates the inclusion of fts.c in coreutils.
80925
80926         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
80927         in their own block, so pre-c99 compilers don't object.
80928
80929         Avoid the double-free (first in fts_read, second in fts_close) that
80930         would occur when an `active' directory is made inaccessible (e.g.,
80931         via chmod a-x) during a traversal.
80932         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80933         before returning.  Reproduce this failure by
80934         mkdir -p a/b; cd a; chmod a-x . b
80935         Reported by Stavros Passas.
80936
80937 2006-01-25  Jim Meyering  <jim@meyering.net>
80938
80939         * lib/fileblocks.c: Remove more useless parentheses.
80940         * lib/readutmp.h: Likewise.
80941
80942 2006-01-25  Bruno Haible  <bruno@clisp.org>
80943
80944         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
80945         warnings.
80946         Reported by Paul Eggert.
80947
80948 2006-01-25  Bruno Haible  <bruno@clisp.org>
80949
80950         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
80951         rid of a trap command. For Solaris sh.
80952         Reported by Mark D. Baushke <mdb@gnu.org>.
80953
80954 2006-01-24  Simon Josefsson  <jas@extundo.com>
80955
80956         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
80957         Bruno.
80958
80959 2006-01-24  Karl Berry  <karl@gnu.org>
80960
80961         * config/srclist.txt (argp-namefrob.h): sync lost.
80962
80963 2006-01-24  Jim Meyering  <jim@meyering.net>
80964
80965         * modules/openat (Files): Add lib/intprops.h.
80966         From Mark D. Baushke.
80967
80968 2006-01-24  Jim Meyering  <jim@meyering.net>
80969
80970         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
80971         Reported by Mark D. Baushke.
80972
80973 2006-01-24  Jim Meyering  <jim@meyering.net>
80974
80975         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80976
80977 2006-01-24  Bruno Haible  <bruno@clisp.org>
80978
80979         * modules/strnlen (Maintainer): Change from glibc to all.
80980
80981 2006-01-24  Bruno Haible  <bruno@clisp.org>
80982
80983         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80984         Patch by Paul Eggert.
80985
80986 2006-01-24  Bruno Haible  <bruno@clisp.org>
80987
80988         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80989         already has it.
80990         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80991         2005-11-26.
80992
80993         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80994         'signed char' to avoid problems with the built-in _Bool type.
80995         Reported by Paul Eggert on 2005-11-26.
80996
80997 2006-01-24  Bruno Haible  <bruno@clisp.org>
80998
80999         * gnulib-tool (func_import): Avoid constructing complicated sed
81000         expressions inside backquote.
81001         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81002
81003 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81004
81005         These changes imported from libc.
81006         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81007         test and two separate function calls.
81008         * lib/strndup.c (__strndup): Add libc_hidden_def.
81009
81010 2006-01-23  Simon Josefsson  <jas@extundo.com>
81011
81012         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81013         Remove the test_*_SOURCES variable: automake infers it by default.
81014         * modules/tls-tests: Likewise.
81015
81016 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81017
81018         Work around porting bugs reported by Dieter in
81019         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81020         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81021         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81022         Include "getopt.h" first, to check interface.
81023         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81024         !HAVE_DECL_GETENV.
81025         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81026         (__strndup): Revert to K&R-style function dfns, the glibc style.
81027         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81028         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81029         Include strnlen.h first, to get prototype properly.
81030         (strnlen): Renamed from __strnlen.
81031         Remove weak alias.
81032
81033 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81034
81035         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81036
81037 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81038
81039         * config/srclist.txt: Adjust to reflect glibc reorganization.
81040         This affects only comments.
81041
81042 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81043
81044          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81045          Reported by Bruce Korb <bkorb@gnu.org>.
81046
81047 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81048
81049         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81050         to pacify gcc -Wswitch-default.
81051
81052 2006-01-22  Bruno Haible  <bruno@clisp.org>
81053
81054         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81055         temporary buffer for sprintf, take into account the precision also
81056         for 'd', 'i', 'u', 'o', 'x', 'X'.
81057
81058 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81059
81060         * modules/argp-tests: New module
81061         * tests/test-argp.c: New file
81062         * tests/test-argp-2.sh: New file
81063
81064 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81065
81066         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81067         (__argp_base_name): Removed
81068         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81069         typo.
81070         (__argp_base_name): Provide macro definition or extern declaration
81071         depending on the configuration
81072
81073 2006-01-20  Simon Josefsson  <jas@extundo.com>
81074
81075         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81076
81077 2006-01-20  Simon Josefsson  <jas@extundo.com>
81078
81079         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81080
81081 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81082
81083         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81084         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81085         Suggested by Bruno Haible.
81086
81087 2006-01-20  Karl Berry  <karl@gnu.org>
81088
81089         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81090         until changes propagate, I guess.
81091
81092 2006-01-19  Simon Josefsson  <jas@extundo.com>
81093
81094         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81095
81096 2006-01-19  Simon Josefsson  <jas@extundo.com>
81097
81098         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81099
81100 2006-01-19  Simon Josefsson  <jas@extundo.com>
81101
81102         * gnulib-tool: Set check_PROGRAMS.
81103
81104         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81105         modules/des-tests, modules/gc-arcfour-tests,
81106         modules/gc-arctwo-tests, modules/gc-des-tests,
81107         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81108         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81109         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81110         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81111         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81112         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81113         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81114         test_*_SOURCES.
81115
81116 2006-01-18  Simon Josefsson  <jas@extundo.com>
81117
81118         * modules/socklen (Depends-on): Depend on sys_socket.
81119
81120 2006-01-18  Simon Josefsson  <jas@extundo.com>
81121
81122         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81123         modules/des-tests, modules/gc-arcfour-tests,
81124         modules/gc-arctwo-tests, modules/gc-des-tests,
81125         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81126         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81127         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81128         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81129         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81130         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81131         $(EXEEXT) to automake TESTS variable, for mingw32.
81132
81133 2006-01-17  Simon Josefsson  <jas@extundo.com>
81134
81135         * modules/socklen (Include): Need sys/socket.h.
81136
81137 2006-01-17  Bruno Haible  <bruno@clisp.org>
81138
81139         * modules/ssize_t (Include): Add <sys/types.h>.
81140
81141 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81142
81143         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81144         it's not portable and it doesn't work with cross-compiles.
81145         Problem reported by Bruno Haible.  Fix missing-$ typo in
81146         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81147         -zignore from being used with Sun's C compiler.
81148
81149 2006-01-12  Simon Josefsson  <jas@extundo.com>
81150
81151         * lib/base64.c: Fix warning, reported by Bruno Haible
81152         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81153
81154 2006-01-12  Bruno Haible  <bruno@clisp.org>
81155
81156         * modules/ldd: New file.
81157         * build-aux/ldd.sh.in: New file.
81158         * MODULES.html.sh (Support for building libraries and executables): Add
81159         ldd.
81160
81161 2006-01-12  Bruno Haible  <bruno@clisp.org>
81162
81163         * m4/ldd.m4: New file.
81164
81165 2006-01-12  Bruno Haible  <bruno@clisp.org>
81166
81167         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81168         endless loop while replacing $auxdir with build-aux.
81169
81170 2006-01-11  Simon Josefsson  <jas@extundo.com>
81171
81172         * lib/stdint_.h (SIZE_MAX): Add missing (.
81173
81174 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81175
81176         Sync from coreutils.
81177         * lib/md5.c: Fix commentary typos.
81178         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81179         * lib/md5.h (__attribute__): Remove; unused.
81180         * lib/sha1.c: Fix commentary to match md5 better.
81181         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81182         so that we don't need to worry about alignment.  All uses changed.
81183         This merges the 2005-10-28 md5 change into sha1.
81184
81185 2006-01-11  Jim Meyering  <jim@meyering.net>
81186
81187         Sync from coreutils.
81188         * lib/md5.c (OP): Fix spacing.
81189
81190 2006-01-11  Bruno Haible  <bruno@clisp.org>
81191
81192         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81193         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81194         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81195
81196 2006-01-11  Bruno Haible  <bruno@clisp.org>
81197
81198         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81199         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81200         the "early" section as well.
81201
81202 2006-01-11  Bruno Haible  <bruno@clisp.org>
81203
81204         Avoid "ar: no archive members specified" error on MacOS X.
81205         * gnulib-tool (func_modules_add_dummy): New function.
81206         (func_import, func_create_testdir): Invoke it.
81207
81208 2006-01-11  Bruno Haible  <bruno@clisp.org>
81209
81210         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81211         with $auxdir in AC_CONFIG_FILES statements.
81212
81213 2006-01-11  Bruno Haible  <bruno@clisp.org>
81214
81215         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81216         Initialize also noinst_HEADERS to empty.
81217
81218 2006-01-11  Bruno Haible  <bruno@clisp.org>
81219
81220         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81221         variables.
81222         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81223         autoreconf.
81224
81225 2006-01-11  Bruno Haible  <bruno@clisp.org>
81226
81227         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81228         overridable by the user.
81229         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81230
81231 2006-01-10  Simon Josefsson  <jas@extundo.com>
81232
81233         * modules/sys_socket: New file.
81234
81235 2006-01-10  Simon Josefsson  <jas@extundo.com>
81236
81237         * m4/sys_socket_h.m4: New file.
81238
81239 2006-01-10  Simon Josefsson  <jas@extundo.com>
81240
81241         * lib/socket_.h: New file.
81242
81243 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81244
81245         * modules/readutmp (Maintainer): Add myself.
81246
81247 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81248
81249         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81250         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81251         People who are still concerned with buggy memcmp implementations
81252         can invoke gl_FUNC_MEMCMP themselves.
81253
81254 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81255
81256         * lib/regex_internal.h (BITSET_WORD_BITS):
81257         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81258         preprocessor mishandles large unsigned values as if they were signed.
81259         Problem reported by Claudio Fontana in
81260         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81261
81262 2006-01-10  Jim Meyering  <jim@meyering.net>
81263
81264         Avoid the double-free (first in fts_read, second in fts_close) that
81265         would occur when an `active' directory is made inaccessible (e.g.,
81266         via chmod a-x) during a traversal.
81267         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81268         before returning.  Reproduce this failure by
81269         mkdir -p a/b; cd a; chmod a-x . b
81270         Reported by Stavros Passas.
81271
81272         Sync from coreutils.
81273         * lib/sha1.c: Tweak grammar in a comment.
81274
81275 2006-01-10  Jim Meyering  <jim@meyering.net>
81276
81277         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81278         Patch by Joerg Sonnenberger.
81279
81280 2006-01-10  Bruno Haible  <bruno@clisp.org>
81281
81282         * modules/readutmp: Depend on module free.
81283         * modules/strtok_r: Depend on module restrict.
81284
81285 2006-01-10  Bruno Haible  <bruno@clisp.org>
81286
81287         * modules/gettext (configure.ac): Add an invocation of
81288         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81289
81290 2006-01-10  Bruno Haible  <bruno@clisp.org>
81291
81292         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81293         Reported by Werner Lemberg <wl@gnu.org>.
81294
81295 2006-01-10  Bruno Haible  <bruno@clisp.org>
81296
81297         * lib/localcharset.c: Update from GNU gettext.
81298
81299 2006-01-10  Bruno Haible  <bruno@clisp.org>
81300
81301         * lib/argp.h (__const): Remove macro. Use const instead.
81302         * lib/argp-fmtstream.h (__const): Likewise.
81303         * lib/glob_.h (__const): Remove macro.
81304         * lib/glob-libc.h: Use const instead of __const.
81305
81306 2006-01-10  Bruno Haible  <bruno@clisp.org>
81307
81308         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81309         variable.
81310         Needed to avoid an automake error regarding the 'gettext' module.
81311
81312 2006-01-09  Simon Josefsson  <jas@extundo.com>
81313
81314         * modules/inet_ntop (Depends-on): Add restrict.
81315
81316 2006-01-09  Simon Josefsson  <jas@extundo.com>
81317
81318         * modules/gc-rijndael-tests (License): Put under LGPL.
81319
81320         * modules/gc-des-tests (License): Likewise.
81321
81322         * modules/gc-arcfour-tests (License): Likewise.
81323
81324         * modules/gc-arctwo-tests (License): Likewise.
81325
81326         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81327
81328         * modules/gc-hmac-sha1-tests (Files): Likewise.
81329
81330         * modules/gc-hmac-md5-tests (License): Likewise.
81331
81332         * modules/gc-sha1-tests (License): Likewise.
81333
81334         * modules/gc-md5-tests (License): Likewise.
81335
81336         * modules/gc-md4-tests (License): Likewise.
81337
81338         * modules/gc-md2-tests (License): Likewise.
81339
81340         * modules/gc-tests (License): Likewise.
81341
81342         * modules/des-tests (License): Likewise.
81343
81344         * modules/md4-tests (License): Likewise.
81345
81346         * modules/md2-tests (License): Likewise.
81347
81348 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81349
81350         Sync from coreutils:
81351
81352         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81353         * modules/lib-ignore: New file.
81354         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81355         chdir-safer.m4, lchmod.m4.
81356         * modules/openat: Add mkdirat.c, openat-priv.h.
81357
81358 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81359
81360         Sync from coreutils.
81361         * m4/lib-ignore.m4: New file.
81362         * m4/lchmod.m4: New file.
81363
81364 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81365
81366         Sync from coreutils.
81367         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81368         for write access: POSIX says that must fail.
81369         * lib/fts.c (diropen): Likewise.
81370         * lib/save-cwd.c (save_cwd): Likewise.
81371         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81372         well, for minor improvements on hosts that lack O_DIRECTORY.
81373         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81374         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81375         Fall back on chown if open failed with EACCES.
81376
81377         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81378         Report an error at compile-time if only a 1-second nominal clock
81379         resolution is found.
81380
81381         * lib/lchmod.h: New file.
81382         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81383         (make_dir_parents): Use lchown rather than chown, and
81384         lchmod rather than chmod.
81385
81386         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81387         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81388         "proc" reported by n0dalus.
81389
81390         * lib/mountlist.c: Include <limits.h>.
81391         (dev_from_mount_options)
81392         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81393         New function.  It no longer assumes "dev=" has the System V meaning
81394         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81395         (read_file_system_list)
81396         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81397         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81398         dev= in that case.
81399
81400         * lib/posixtm.h (PDS_PRE_2000): New macro.
81401         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81402         allow_century.  All usages changed.  Reject dates outside the range
81403         1969-1999 if PDS_PRE_2000 is used.
81404
81405 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81406
81407         Sync from coreutils.
81408         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81409         (Time of day items): Mention the possibility of leap seconds.
81410         Problem reported by Dr. David Alan Gilbert.
81411
81412 2006-01-09  Jim Meyering  <jim@meyering.net>
81413
81414         Sync from coreutils.
81415
81416         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81417
81418         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81419
81420         * lib/modechange.c (mode_compile): Reject an invalid mode string
81421         that starts with an octal digit.  From Andreas Gruenbacher.
81422
81423         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81424         and dup to open_safer and dup_safer, respectively.
81425         (openat_permissive): Fix typo in comment.
81426
81427         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81428         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81429         (_): Remove; no longer needed.
81430         (openat): Renamed from rpl_openat; no need for rpl_openat
81431         since openat.h renames openat for us.
81432         Replace most of the body with a call to openat_permissive,
81433         to avoid duplicate code.
81434         Port to (probably hypothetical) environments were mode_t is
81435         wider than int.
81436         (openat_permissive): Require mode arg, so that we can check
81437         types better.  Put it just after flags.  Change cwd failure
81438         indicator from pointer-to-bool to pointer-to-errno-value.
81439         All callers changed.
81440         Invoke openat_save_fail and/or openat_restore_fail if
81441         cwd_errno is null, so that openat can call us.
81442         (openat_permissive, fdopendir, fstatat, unlinkat):
81443         Simplify errno handling to avoid some duplicate code,
81444         as it's OK to set errno on success.
81445         * lib/openat.h: Revamp code so that function macros depend on
81446         __OPENAT_PREFIX only, not also on AT_FDCWD.
81447         (openat_ro): Remove.  Caller changed to use openat_permissive.
81448         (openat_permissive): Now a macro, if not a function.
81449         (openat_restore_fail, openat_save_fail): Now always functions,
81450         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81451
81452         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81453         and openat.c.
81454         * lib/mkdirat.c: Include openat-priv.h.
81455         Remove definitions of macros defined therein.
81456         * lib/openat.c: Likewise.
81457
81458         * lib/mkdirat.c (mkdirat): New file and function.
81459         * lib/openat.h (mkdirat): Declare.
81460
81461         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81462
81463         * lib/openat.h (openat_permissive): Declare.
81464         (openat_ro): Define.
81465
81466         * lib/openat.c (EXPECTED_ERRNO): New macro.
81467         (openat_permissive): New function -- used in remove.c rewrite.
81468         (all functions): Set errno just before returning, only if there
81469         was an actual failure.
81470         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81471
81472         Emulate openat-family functions using Linux's procfs, if possible.
81473         Idea and some code based on Ulrich Drepper's glibc changes.
81474
81475         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81476         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81477         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81478         before falling back on save_cwd and restore_cwd.
81479         (fdopendir, fstatat, unlinkat): Likewise.
81480
81481         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81482         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81483
81484         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81485         as second argument to va_arg.  Otherwise, some versions of gcc
81486         warn that `if this code is reached, the program will abort'.
81487
81488 2006-01-09  Jim Meyering  <jim@meyering.net>
81489
81490         Sync from coreutils.
81491         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81492         Require openat-priv.h.
81493
81494 2006-01-09  Bruno Haible  <bruno@clisp.org>
81495
81496         * modules/strnlen (Include): Use strnlen.h.
81497
81498 2006-01-09  Bruno Haible  <bruno@clisp.org>
81499
81500         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81501
81502 2006-01-09  Bruno Haible  <bruno@clisp.org>
81503
81504         * lib/sysexit_.h (EX_OK): New macro.
81505         Suggested by Martin Lambers <marlam@marlam.de>.
81506
81507 2006-01-09  Bruno Haible  <bruno@clisp.org>
81508
81509         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
81510         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
81511
81512 2006-01-09  Bruno Haible  <bruno@clisp.org>
81513
81514         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
81515         numbers.
81516
81517 2006-01-09  Bruno Haible  <bruno@clisp.org>
81518
81519         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
81520         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
81521         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
81522         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
81523
81524 2006-01-09  Bruno Haible  <bruno@clisp.org>
81525
81526         * build-aux/javacomp.sh.in: New file, moved from lib/.
81527         * modules/javacomp-script (Files): Update.
81528         (configure.ac): Add AC_CONFIG_FILES invocation.
81529         (EXTRA_DIST): Remove variable.
81530
81531         * build-aux/javaexec.sh.in: New file, moved from lib/.
81532         * modules/javaexec (Files): Update.
81533         (configure.ac): Add AC_CONFIG_FILES invocation.
81534         (EXTRA_DIST): Remove javaexec.sh.in.
81535
81536         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
81537         * modules/csharpcomp-script (Files): Update.
81538         (configure.ac): Add AC_CONFIG_FILES invocation.
81539         (EXTRA_DIST): Remove variable.
81540
81541         * build-aux/csharpexec.sh.in: New file, moved from lib/.
81542         * modules/csharpexec (Files): Update.
81543         (configure.ac): Add AC_CONFIG_FILES invocation.
81544         (EXTRA_DIST): Remove csharpexec.sh.in.
81545
81546 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81547
81548         Sync from coreutils.
81549
81550         Add POSIX ACL support
81551         * lib/acl.h (copy_acl, set_acl): Add declarations.
81552         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
81553         systems other than Linux.
81554         (chmod_or_fchmod): New function: use fchmod when possible,
81555         and chmod otherwise.
81556         (file_has_acl): Add a POSIX ACL implementation, with a
81557         Linux-specific subcase.
81558         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
81559         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
81560         acls are unsupported.
81561         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
81562         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
81563         are unsupported.
81564
81565 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
81566
81567         Sync from coreutils.
81568         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
81569
81570 2006-01-07  Bruno Haible  <bruno@clisp.org>
81571
81572         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
81573         gl_EARLY.
81574
81575 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81576
81577         * lib/strftime.c (tzname): Don't declare if it is already #defined.
81578         Problem reported for Mingw by Mark Junker.
81579
81580 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
81581
81582         * README: Gnulib normally doesn't generate a tarball.
81583
81584 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
81585
81586         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
81587         long int, not int, for nanosecond counts, so that people who are
81588         used to POSIX struct timespec won't be surprised.  Reported by Jim
81589         Meyering.
81590
81591 2005-12-28  Bruno Haible  <bruno@clisp.org>
81592
81593         * build-aux/config.rpath: Update from GNU gettext.
81594
81595 2005-12-16  Jim Meyering  <jim@meyering.net>
81596
81597         * modules/fprintftime: New module.
81598         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
81599
81600 2005-12-16  Jim Meyering  <jim@meyering.net>
81601
81602         * m4/fprintftime.m4: New file.
81603
81604 2005-12-16  Jim Meyering  <jim@meyering.net>
81605
81606         * lib/fprintftime.c, lib/fprintftime.h: New files.
81607
81608 2005-12-15  Simon Josefsson  <jas@extundo.com>
81609
81610         * modules/socklen (configure.ac): Fix M4 macro name, to align with
81611         new m4/socklen.m4.
81612
81613 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81614
81615         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
81616         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
81617
81618 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
81619
81620         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
81621         * lib/argp-help.c (fill_in_uparams): Check if the constructed
81622         struct uparams is valid. Fall back to the default values if it is
81623         not.
81624
81625 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81626
81627         * modules/argp (Files): Add argp-pin.c
81628         (Depends-on): dirname
81629         (lib_SOURCES): Add argp-pin.c
81630
81631 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81632
81633         * m4/argp.m4:  Check if program_invocation_name and
81634         program_invocation_short_name are declared and define appropriate
81635         macros if they are not.
81636
81637 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
81638
81639         * lib/argp-help.c (__argp_base_name): New function
81640         (__argp_short_program_name): Rewrite using __argp_base_name
81641         * lib/argp-namefrob.h: Define program_invocation_name and
81642         program_invocation_short_name if requested
81643         (__argp_base_name): Add prototype
81644         * lib/argp-parse.c (argp_def): Use gettext wrappers
81645         (argp_default_parser): Use __argp_base_name
81646         * lib/argp-pin.c: New file. Defines program_invocation_name and
81647         program_invocation_short_name on systems that lack them.
81648
81649 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81650
81651         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
81652         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81653         porting problem reported by Georg Schwarz in
81654         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81655
81656 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
81657
81658         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
81659         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
81660         porting problem reported by Georg Schwarz in
81661         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
81662
81663 2005-12-05  Bruno Haible  <bruno@clisp.org>
81664
81665         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
81666         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
81667         Reported by Mark Junker <mjscod@gmx.de>.
81668
81669 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
81670
81671         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
81672         Use implementation from Albert Chin, with some
81673         comments/corrections by Stepan Kasal and myself.
81674
81675 2005-12-02  Bruno Haible  <bruno@clisp.org>
81676
81677         * gnulib-tool (func_import): Accept GPLed build tool modules when
81678         --lgpl is given.
81679         * modules/csharpcomp-script: New file.
81680         * modules/csharpcomp: Depend on it.
81681         * modules/javacomp-script: New file.
81682         * modules/javacomp: Depend on it.
81683         Suggested by Simon Josefsson.
81684
81685 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
81686
81687         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
81688         statement, to work around an HP-UX 10.20 compiler bug reported by
81689         Peter O'Gorman.
81690
81691 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81692
81693         * modules/savedir (Depends-on): Add openat.
81694
81695 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
81696
81697         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
81698         (uintmax_t) [defined uintmax_t]: Do not declare.
81699         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
81700         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
81701         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
81702         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
81703         sake of portability to weird hosts that C allows (though we don't
81704         know of any practical examples).
81705
81706         * lib/savedir.h (fdsavedir): New decl.
81707         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
81708         contains most of the former guts of savedir.
81709         (savedir): Use savedirstream.
81710         Include "openat.h".
81711
81712 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
81713
81714         * modules/obstack (Files): Add m4/ulonglong.m4.
81715         Problem reported by Davide Angelocola.
81716
81717 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
81718
81719         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
81720         coreutils no longer futzes with rounding modes.
81721
81722 2005-11-14  Jim Meyering  <jim@meyering.net>
81723
81724         * lib/mkstemp-safer.c: Include <config.h>, required for possible
81725         replacement of mkstemp.
81726
81727 2005-11-10  Simon Josefsson  <jas@extundo.com>
81728
81729         * lib/readline.c: Remove EOL.
81730
81731 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81732
81733         * modules/gethrxtime (Depends-on): Add gettime.
81734
81735 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
81738         or gettimeofday; no longer needed.
81739
81740 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
81743         time business.
81744         (gethrxtime) [! (HAVE_NANOUPTIME
81745         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
81746         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
81747         our own approximation.
81748
81749 2005-11-08  Eric Blake  <ebb9@byu.net>
81750
81751         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81752
81753 2005-11-08  Eric Blake  <ebb9@byu.net>
81754
81755         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
81756
81757 2005-11-04  Bruno Haible  <bruno@clisp.org>
81758
81759         * gnulib-tool: Implement --update mode.
81760
81761 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81762
81763         Fix porting problem reported by Theodoros V. Kalamatianos.
81764         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
81765         Don't assume that futimes failing means we must fail.
81766
81767 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
81768
81769         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
81770         variables to suggest the intended function of the PATH_MAX check.
81771
81772 2005-10-30  Kean Johnston  <jkj@sco.com>
81773
81774         Trivial changes to support SCO systems.
81775         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
81776         as PATH_MAX.
81777         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
81778         where __ptr is null when no I/O is pending.
81779
81780 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81781
81782         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
81783         leave errno alone.  Problem reported by Dmitry V. Levin.
81784
81785 2005-10-28  Simon Josefsson  <jas@extundo.com>
81786
81787         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
81788         Test more.
81789
81790         * tests/test-gc-md2.c, tests/test-md2.c: New files.
81791
81792         * modules/md2, modules/md2-tests: New files.
81793
81794 2005-10-28  Simon Josefsson  <jas@extundo.com>
81795
81796         * m4/inet_ntop.m4: More tests.
81797
81798         * m4/gc-md2.m4, md2.m4: New file.
81799
81800 2005-10-28  Simon Josefsson  <jas@extundo.com>
81801
81802         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
81803         "restrict" keywords, as per POSIX.  Protect the function
81804         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
81805         Don't use K&R prototypes.  Check the sprintf return values.
81806         Re-define EAFNOSUPPORT if not present.  Indent.
81807
81808         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
81809         suggested by Bruno Haible <bruno@clisp.org>.
81810
81811         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
81812
81813         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
81814
81815         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
81816         libgcrypt).
81817
81818         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
81819
81820         * lib/md2.h, lib/md2.c: New files.
81821
81822 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
81823
81824         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
81825         errno alone.  Problem reported by Frederic Jolliton.
81826
81827 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
81828
81829         * modules/verify (License): Change from GPL to LGPL.  This is a
81830         tiny module and there are apparently near-equivalents that are
81831         under the BSD license.
81832
81833 2005-10-24  Simon Josefsson  <jas@extundo.com>
81834
81835         * modules/sha1: Relicense to LGPL.
81836
81837 2005-10-24  Simon Josefsson  <jas@extundo.com>
81838
81839         * lib/md4.h: Shrink buffer size, now that we changed the type.
81840
81841 2005-10-23  Simon Josefsson  <jas@extundo.com>
81842
81843         * gnulib-tool (func_import): Fix --tests-base.
81844
81845 2005-10-22  Simon Josefsson  <jas@extundo.com>
81846
81847         * modules/arcfour (Depends-on): Need stdint.
81848
81849 2005-10-22  Simon Josefsson  <jas@extundo.com>
81850
81851         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
81852         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
81853
81854 2005-10-22  Simon Josefsson  <jas@extundo.com>
81855
81856         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
81857         suggested by Bruno Haible <bruno@clisp.org>.
81858
81859 2005-10-22  Simon Josefsson  <jas@extundo.com>
81860
81861         * lib/crc.h: Include stddef.h, for size_t.
81862
81863 2005-10-22  Simon Josefsson  <jas@extundo.com>
81864
81865         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
81866         arcfour_context struct (simplify test vector testing in GNU
81867         Shishi).
81868
81869 2005-10-21  Simon Josefsson  <jas@extundo.com>
81870
81871         * modules/des, modules/des-tests: New files.
81872
81873         * modules/gc-des, modules/gc-des-tests: New files.
81874
81875         * tests/test-des.c, tests/test-gc-des.c: New file.
81876
81877 2005-10-21  Simon Josefsson  <jas@extundo.com>
81878
81879         * modules/arctwo, modules/arctwo-tests: New files.
81880
81881         * tests/test-arctwo.c: New file.
81882
81883         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
81884
81885         * tests/test-gc-arctwo.c: New file.
81886
81887 2005-10-21  Simon Josefsson  <jas@extundo.com>
81888
81889         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
81890         Bruno Haible <bruno@clisp.org>.
81891
81892         * m4/gc-des.m4: New file.
81893
81894 2005-10-21  Simon Josefsson  <jas@extundo.com>
81895
81896         * m4/arctwo.m4: New file.
81897
81898         * m4/gc-arctwo.m4: New file.
81899
81900 2005-10-21  Simon Josefsson  <jas@extundo.com>
81901
81902         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81903         block.
81904
81905 2005-10-21  Simon Josefsson  <jas@extundo.com>
81906
81907         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81908         <bruno@clisp.org>.
81909
81910         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81911
81912         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81913         Bruno Haible <bruno@clisp.org>.
81914
81915         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81916         <bruno@clisp.org>.
81917
81918 2005-10-21  Simon Josefsson  <jas@extundo.com>
81919
81920         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
81921
81922 2005-10-21  Simon Josefsson  <jas@extundo.com>
81923
81924         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
81925
81926 2005-10-21  Simon Josefsson  <jas@extundo.com>
81927
81928         * lib/des.h, lib/des.c: New files.
81929
81930         * lib/gc-gnulib.c: Support DES.c
81931
81932 2005-10-21  Simon Josefsson  <jas@extundo.com>
81933
81934         * lib/arctwo.h, lib/arctwo.c: New files.
81935
81936         * lib/gc-gnulib.c: Support ARCTWO.
81937
81938 2005-10-21  Simon Josefsson  <jas@extundo.com>
81939
81940         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
81941         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81942
81943 2005-10-21  Simon Josefsson  <jas@extundo.com>
81944
81945         * gnulib-tool (func_import, func_create_testdir): Define automake
81946         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
81947         Makefile.am snippet),
81948         suggested by Bruno Haible <bruno@clisp.org>.
81949
81950         * modules/gc (Makefile.am): Use it.
81951
81952 2005-10-21  Bruno Haible  <bruno@clisp.org>
81953
81954         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
81955         patch.
81956
81957 2005-10-19  Simon Josefsson  <jas@extundo.com>
81958
81959         * tests/test-gc-rijndael.c: New file.
81960
81961         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
81962
81963 2005-10-19  Simon Josefsson  <jas@extundo.com>
81964
81965         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
81966         interface too.
81967
81968 2005-10-19  Simon Josefsson  <jas@extundo.com>
81969
81970         * tests/test-gc-arcfour.c: New file.
81971
81972         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
81973
81974 2005-10-19  Simon Josefsson  <jas@extundo.com>
81975
81976         * modules/gc-md4, modules/gc-md4-tests: New file.
81977
81978         * tests/test-gc-md4.c: New file.
81979
81980 2005-10-19  Simon Josefsson  <jas@extundo.com>
81981
81982         * m4/gc-md4.m4: New file.
81983
81984 2005-10-19  Simon Josefsson  <jas@extundo.com>
81985
81986         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81987         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81988         <kasal@ucw.cz>.
81989
81990 2005-10-19  Simon Josefsson  <jas@extundo.com>
81991
81992         * m4/gc-arcfour.m4: New file.
81993
81994         * m4/gc-rijndael.m4: New file.
81995
81996 2005-10-19  Simon Josefsson  <jas@extundo.com>
81997
81998         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81999
82000 2005-10-19  Simon Josefsson  <jas@extundo.com>
82001
82002         * lib/gc-gnulib.c: Support ARCFOUR.
82003
82004 2005-10-19  Simon Josefsson  <jas@extundo.com>
82005
82006         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82007         support.
82008
82009         * lib/gc.h: Add ECB enum type.
82010
82011         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82012
82013 2005-10-18  Simon Josefsson  <jas@extundo.com>
82014
82015         * tests/test-md5.c: New file.
82016
82017         * modules/md5-tests: New file.
82018
82019 2005-10-18  Simon Josefsson  <jas@extundo.com>
82020
82021         * tests/test-md4.c: New file.
82022
82023         * modules/md4, modules/md4-tests: New files.
82024
82025 2005-10-18  Simon Josefsson  <jas@extundo.com>
82026
82027         * m4/md4.m4: New file.
82028
82029 2005-10-18  Simon Josefsson  <jas@extundo.com>
82030
82031         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82032
82033 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82034
82035         * gnulib-tool (func_create_testdir): Omit the second check whether
82036         BUILT_SOURCES in nonempty.
82037
82038 2005-10-17  Simon Josefsson  <jas@extundo.com>
82039
82040         * tests/test-rijndael.c: New file.
82041
82042 2005-10-17  Simon Josefsson  <jas@extundo.com>
82043
82044         * modules/sha1: Depend on stdint instead of md5.
82045
82046         * modules/md5: Depend on stdint, remove uint32_t.
82047
82048 2005-10-17  Simon Josefsson  <jas@extundo.com>
82049
82050         * modules/gc-sha1-tests: New file.
82051
82052         * tests/test-gc-sha1.c: New file.
82053
82054 2005-10-17  Simon Josefsson  <jas@extundo.com>
82055
82056         * m4/md5.m4: Remove call to uint32_t.m4.
82057
82058 2005-10-17  Simon Josefsson  <jas@extundo.com>
82059
82060         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82061
82062         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82063         md5.h.
82064
82065         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82066
82067         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82068
82069 2005-10-17  Simon Josefsson  <jas@extundo.com>
82070
82071         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82072
82073 2005-10-17  Simon Josefsson  <jas@extundo.com>
82074
82075         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82076
82077 2005-10-17  Simon Josefsson  <jas@extundo.com>
82078
82079         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82080
82081         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82082
82083 2005-10-17  Bruno Haible  <bruno@clisp.org>
82084
82085         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82086         that it can also be used in a test.
82087
82088 2005-10-16  Bruno Haible  <bruno@clisp.org>
82089
82090         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82091         TESTS_ENVIRONMENT, so that individual tests can augment it.
82092
82093         * gnulib-tool (func_create_testdir): Use an intermediate target for
82094         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82095         macros, like $(ALLOCA_H), which cannot be passed through the command
82096         line.
82097
82098 2005-10-15  Simon Josefsson  <jas@extundo.com>
82099
82100         * modules/rijndael-tests: New file.
82101
82102         * modules/rijndael: New file.
82103
82104 2005-10-15  Simon Josefsson  <jas@extundo.com>
82105
82106         * m4/rijndael.m4: New file.
82107
82108 2005-10-15  Simon Josefsson  <jas@extundo.com>
82109
82110         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82111
82112         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82113
82114 2005-10-14  Simon Josefsson  <jas@extundo.com>
82115
82116         * tests/test-arcfour.c: New file.
82117
82118         * modules/arcfour, modules/arcfour-tests: New files.
82119
82120 2005-10-14  Simon Josefsson  <jas@extundo.com>
82121
82122         * m4/arcfour.m4: New file.
82123
82124 2005-10-14  Simon Josefsson  <jas@extundo.com>
82125
82126         * lib/arcfour.h, lib/arcfour.c: New files.
82127
82128 2005-10-14  Roland McGrath  <roland@redhat.com>
82129
82130         Import from libc.  [BZ #1331]
82131         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82132         macro argument.
82133         Reported by Matej Vela <vela@debian.org>.
82134
82135 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82136
82137         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82138         include <wchar.h>; no longer needed.
82139
82140 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82141
82142         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82143
82144 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82145         and  Ulrich Drepper  <drepper@redhat.com>
82146
82147         Import from libc.
82148         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82149         instead of inline stream orientation test and two separate
82150         function calls.  Pay no attention to USE_IN_LIBIO.
82151
82152 2005-10-13  Simon Josefsson  <jas@extundo.com>
82153
82154         * modules/gc-hmac-md5-tests: New file.
82155
82156         * tests/test-gc-hmac-sha1.c: New file.
82157
82158         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82159
82160         * modules/gc-hmac-md5-tests: New file.
82161
82162         * tests/test-gc-md5.c: New file.
82163
82164         * modules/gc-md5-tests: New file.
82165
82166 2005-10-13  Simon Josefsson  <jas@extundo.com>
82167
82168         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82169         Move memory allocation outside of loop.
82170
82171 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82172
82173         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82174         intermediate directory is in a read-only file system.  Problem
82175         reported by Eric Blake.
82176
82177 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82178
82179         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82180
82181 2005-10-12  Simon Josefsson  <jas@extundo.com>
82182
82183         * tests/test-hmac-sha1.c: New file.
82184
82185         * modules/hmac-sha1-tests: New file.
82186
82187         * modules/hmac-sha1: New file.
82188
82189 2005-10-12  Simon Josefsson  <jas@extundo.com>
82190
82191         * modules/gc-sha1: New file.
82192
82193 2005-10-12  Simon Josefsson  <jas@extundo.com>
82194
82195         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82196
82197         * tests/test-gc-pbkdf2-sha1.c: New file.
82198
82199 2005-10-12  Simon Josefsson  <jas@extundo.com>
82200
82201         * modules/gc-md5, modules/gc-hmac-md5: New files.
82202
82203         * modules/gc (Files): Remove md5, memxor and hmac files.
82204
82205 2005-10-12  Simon Josefsson  <jas@extundo.com>
82206
82207         * m4/gc-pbkdf2-sha1.m4: New file.
82208
82209         * m4/gc-hmac-sha1.m4: New file.
82210
82211         * m4/gc-sha1: New file.
82212
82213         * m4/hmac-sha1.m4: New file.
82214
82215 2005-10-12  Simon Josefsson  <jas@extundo.com>
82216
82217         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82218
82219         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82220
82221 2005-10-12  Simon Josefsson  <jas@extundo.com>
82222
82223         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82224         suggested by Bruno Haible <bruno@clisp.org>.
82225
82226 2005-10-12  Simon Josefsson  <jas@extundo.com>
82227
82228         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82229
82230 2005-10-12  Simon Josefsson  <jas@extundo.com>
82231
82232         * lib/gc-pbkdf2-sha1.c: New file.
82233
82234         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82235
82236 2005-10-12  Simon Josefsson  <jas@extundo.com>
82237
82238         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82239
82240         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82241
82242 2005-10-12  Simon Josefsson  <jas@extundo.com>
82243
82244         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82245         GC_USE_HMAC_MD5, respectively.
82246
82247         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82248         (gc_md5): Fix typo.
82249
82250         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82251
82252         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82253
82254         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82255
82256 2005-10-12  Bruno Haible  <bruno@clisp.org>
82257
82258         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82259         Reported by Stepan Kasal <kasal@ucw.cz>.
82260
82261 2005-10-11  Simon Josefsson  <jas@extundo.com>
82262
82263         * tests/test-crc.c: New file.
82264
82265         * modules/crc, modules/crc-tests: New files.
82266
82267 2005-10-11  Simon Josefsson  <jas@extundo.com>
82268
82269         * m4/crc.m4: New file.
82270
82271 2005-10-11  Simon Josefsson  <jas@extundo.com>
82272
82273         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82274
82275         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82276
82277         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82278
82279 2005-10-11  Simon Josefsson  <jas@extundo.com>
82280
82281         * lib/crc.h, lib/crc.c: New files.
82282
82283         * lib/gc.h (gc_hash_buffer): Add doc.
82284
82285 2005-10-11  Bruno Haible  <bruno@clisp.org>
82286
82287         * modules/c-strcasestr: New file.
82288         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82289
82290 2005-10-11  Bruno Haible  <bruno@clisp.org>
82291
82292         * modules/c-strcase: New file.
82293         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82294
82295 2005-10-11  Bruno Haible  <bruno@clisp.org>
82296
82297         * lib/strcasecmp.c: Include limits.h.
82298         (strcasecmp): Avoid integer overflow on exotic platforms.
82299         * lib/strncasecmp.c: Include limits.h.
82300         (strncasecmp): Avoid integer overflow on exotic platforms.
82301         Reported by Paul Eggert.
82302
82303 2005-10-11  Bruno Haible  <bruno@clisp.org>
82304
82305         * lib/c-strcasestr.h: New file, from GNU gettext.
82306         * lib/c-strcasestr.c: New file, from GNU gettext.
82307
82308 2005-10-11  Bruno Haible  <bruno@clisp.org>
82309
82310         * lib/c-strcase.h: New file, from GNU gettext.
82311         * lib/c-strcasecmp.c: New file, from GNU gettext.
82312         * lib/c-strncasecmp.c: New file, from GNU gettext.
82313
82314 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82315
82316         * modules/mempcpy (License): GPL -> LGPL.
82317         * modules/strchrnul (License): Likewise.
82318         * modules/sysexits (License): Likewise.
82319
82320 2005-10-08  Simon Josefsson  <jas@extundo.com>
82321
82322         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82323
82324 2005-10-07  Simon Josefsson  <jas@extundo.com>
82325
82326         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82327
82328 2005-10-06  Simon Josefsson  <jas@extundo.com>
82329
82330         * tests/test-hmac-md5.c: New file.
82331
82332         * modules/hmac-md5-tests: New file.
82333
82334         * modules/hmac-md5: New file.
82335
82336 2005-10-06  Simon Josefsson  <jas@extundo.com>
82337
82338         * m4/hmac-md5.m4: New file.
82339
82340         * m4/memxor.m4: Require gl_C_RESTRICT.
82341
82342 2005-10-06  Simon Josefsson  <jas@extundo.com>
82343
82344         * lib/memxor.c (memxor): Avoid casts and warnings.
82345
82346 2005-10-06  Simon Josefsson  <jas@extundo.com>
82347
82348         * lib/hmac-md5.c: New file.
82349
82350         * lib/hmac.h: New file.
82351
82352 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82355         promotes to int, not unsigned int, to catch the AIX 5.3
82356         compiler bug.
82357
82358 2005-10-05  Simon Josefsson  <jas@extundo.com>
82359
82360         * modules/memxor: New file.
82361
82362         * modules/iconv (Files): Move config.rpath to havelib, it is used
82363         there.
82364
82365         * modules/havelib (Files): Add config.rpath.
82366
82367 2005-10-05  Simon Josefsson  <jas@extundo.com>
82368
82369         * m4/memxor.m4: New file.
82370
82371 2005-10-05  Simon Josefsson  <jas@extundo.com>
82372
82373         * lib/memxor.c (memxor): Fix compiler error.
82374
82375         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82376         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82377
82378         * lib/memxor.h, lib/memxor.c: New files.
82379
82380         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82381         we assume all systems have it, suggested by Jim Meyering
82382         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82383         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82384         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82385         same reasons.
82386
82387 2005-10-05  Simon Josefsson  <jas@extundo.com>
82388
82389         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82390
82391 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82392
82393         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82394         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82395         needed, since the source code now assumes these .h files.
82396
82397 2005-10-05  Derek Price  <derek@ximbiot.com>
82398
82399         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82400
82401 2005-10-05  Bruno Haible  <bruno@clisp.org>
82402
82403         * modules/stdint (License): Change to LGPL.
82404
82405 2005-10-04  Simon Josefsson  <jas@extundo.com>
82406
82407         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82408         D. Baushke" <mdb@gnu.org>.
82409
82410 2005-10-04  Bruno Haible  <bruno@clisp.org>
82411
82412         * lib/verify.h (verify_true): Provide alternative definition for C++.
82413
82414 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82415
82416         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82417         (SSIZE_MAX): New macro, if not already defined.
82418         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82419         than 2 GiB.
82420
82421 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82422
82423         Sync from coreutils.
82424         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82425         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82426         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82427         ULLONG_MAX doesn't work with 2.7.2.1.
82428
82429 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82430
82431         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82432         From Ben Pfaff.
82433
82434         * modules/exclude (Depends-on): Depend on verify.
82435         * modules/strtoimax (Depends-on): Likewise.
82436         * modules/utimecmp (Depends-on): Likewise.
82437
82438 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82439
82440         * lib/exclude.c: Include verify.h.
82441         (verify): Remove.  All callers changed to use verify.h's version.
82442         * lib/strtoimax.c: Likewise.
82443         * lib/utimecmp.c: Likewis.e
82444
82445         Sync from coreutils.
82446         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82447         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82448         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82449         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82450         bother returning ENOSYS if settimeofday or stime fails; just let
82451         them return whatever errno they want to return.
82452         * lib/utimens.c: Include unistd.h, for dup2.
82453         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82454         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82455
82456 2005-10-02  Jim Meyering  <jim@meyering.net>
82457
82458         Sync from coreutils.
82459         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82460         from glibc-2.2.5 that fails for read-only files.
82461
82462 2005-10-02  Jim Meyering  <jim@meyering.net>
82463
82464         Sync from coreutils.
82465         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82466         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82467         `#if HAVE_CONFIG_H'.
82468         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82469         Remove AT_FDCWD test.
82470         Do not consume the fd unless successful.
82471         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82472         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82473         block, so that we don't even try to compile it if settimeofday is
82474         available.  This works around a compilation failure on OSF1 V5.1,
82475         due to stime requiring a `long int*' while tv_sec is `int'.
82476
82477 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82478
82479         Sync from coreutils.
82480         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82481         against `yes', rather than just testing for nonempty.
82482
82483 2005-10-01  Simon Josefsson  <jas@extundo.com>
82484
82485         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82486         and Darwin.
82487
82488         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82489         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82490         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82491         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82492         Check if struct addrinfo is declared.
82493
82494 2005-10-01  Simon Josefsson  <jas@extundo.com>
82495
82496         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82497         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82498         AI_* and EAI_* definitions.  Protect function declarations.
82499
82500 2005-10-01  Jim Meyering  <jim@meyering.net>
82501
82502         Sync from coreutils.
82503
82504         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82505         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82506         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
82507         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82508         in the inet and nsl libraries.  Required on Solaris 5.7.
82509
82510 2005-10-01  Jim Meyering  <jim@meyering.net>
82511
82512         Sync from coreutils.
82513         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
82514         in the inet and nsl libraries.  Required on Solaris 5.7.
82515
82516 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
82517
82518         * lib/getdelim.c (getdelim): Remove unused variables.
82519
82520 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
82521
82522         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
82523         so that the code works even with ancient cpp.  Portability problem
82524         with GCC 2.7.2.1 reported by Thomas M.Ott.
82525
82526 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
82527
82528         * modules/regex (Depends-on): Add strcase.
82529
82530         * modules/gethostname (Licence): Change from GPL to LGPL, since
82531         gethostname.c is a trivial implementation of a standard library
82532         function.
82533         * modules/poll (License): Change from GPL to LGPL, since it's
82534         derived from LGPL code.
82535
82536 2005-09-27  Jim Meyering  <jim@meyering.net>
82537
82538         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
82539         HAVE_CONFIG_H.
82540
82541         * lib/intprops.h (signed_type_or_expr__): Define.
82542         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
82543         for unsigned types.
82544
82545 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
82546
82547         * lib/verify.h (verify_expr): Remove, replacing with:
82548         (verify_true): New macro that returns true instead of void.
82549         (verify_type__): Remove.
82550         (verify): Use verify_true rather than verify_type__.
82551
82552 2005-09-26  Bruno Haible  <bruno@clisp.org>
82553
82554         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
82555         is necessary.
82556         (lib_SOURCES): Remove mbchar.c.
82557         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
82558         (Files): Add m4/mbrtowc.m4.
82559         * modules/mbiter: Likewise.
82560         * modules/mbuiter: Likewise.
82561
82562 2005-09-26  Bruno Haible  <bruno@clisp.org>
82563
82564         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
82565         compile mbchar.c if they are not both present.
82566         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
82567         * m4/mbiter.m4 (gl_MBITER): Likewise.
82568         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
82569         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
82570         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
82571
82572 2005-09-25  Jim Meyering  <jim@meyering.net>
82573
82574         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
82575         also uses socklen_t.
82576
82577 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
82578
82579         * lib/utimens.c (ENOSYS): Define if not already defined.
82580         (futimens): Support having a null PATH if the file descriptor
82581         is nonnegative.
82582
82583         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
82584         Remove.
82585         (__attribute): Define to empty unless GCC 3.1 or later.
82586         This works around a core dump on OpenBSD 3.4, which has GCC
82587         2.95.3, which dumps core when given __attribute__(()).  It also
82588         simplifies other tests, since we really don't want to bother with
82589         worrying about which ancient version of GCC supported what.
82590         Original problem reported by Yoann Vandoorselaere, with part of
82591         the fix suggested by Derek Price.
82592
82593 2005-09-24  Jim Meyering  <jim@meyering.net>
82594
82595         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
82596         so we can once again use a positive bitfield width of 1 -- now we
82597         don't have to explain why we were using a bitfield width of 2.
82598
82599 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82600
82601         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
82602         and similarly for the other external symbols.  Problem reported
82603         by James Gallager.
82604
82605         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
82606         bug reported by Jim Meyering.
82607
82608         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
82609         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
82610         not needed, since socklen is a prerequisite module.
82611
82612 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
82613
82614         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
82615         Problem reported by Eric Blake.
82616         (getaddrinfo): Initialize se so that it's not garbage.
82617         Redo internal storage allocation so that it doesn't make unportable
82618         assumptions about alignment.
82619         Fix a memory leak.
82620
82621         * lib/utimens.c (futimens): Use futimesat if available.
82622         Prefer it to futimes since it doesn't have the futimes bug.
82623
82624         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
82625         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
82626         Instead, declare a function that returns a pointer to an array,
82627         and use verify_type__ to declare the size of the array.
82628         Problem and germ of a solution reported by Bruno Haible.
82629         (verify_type__): Use 2, not 1, for bitfield size, to avoid
82630         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
82631
82632 2005-09-23  Jim Meyering  <jim@meyering.net>
82633
82634         Sync from coreutils.
82635         Correct build failure (socklen_t not defined) on at least
82636         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
82637         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
82638
82639 2005-09-23  Jim Meyering  <jim@meyering.net>
82640
82641         * modules/getaddrinfo (Depends-on): Add socklen.
82642
82643 2005-09-23  Bruno Haible  <bruno@clisp.org>
82644
82645         * tests/test-verify.c: New file.
82646
82647 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82648
82649         Sync from coreutils.
82650
82651         * modules/argmatch (Depends-on): Add verify.
82652         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
82653         unistd-safer.
82654         * modules/save-cwd (Depends-on): Likewise.
82655
82656         * modules/openat (Files): Add lib/openat-die.c.
82657         (Depends-on): Remove error, exitfail.
82658         Add dirname.
82659
82660         * modules/verify: New file.
82661         * MODULES.html.sh (Diagnostics <assert.h>): New section,
82662         with "verify" module.
82663
82664 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82665
82666         Sync from coreutils.
82667
82668         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
82669         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
82670         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
82671         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
82672         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
82673         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
82674         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
82675         Don't bother checking for string.h, stdlib.h, unistd.h.
82676         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
82677         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
82678         module's job.
82679         * m4/jm-macros.m4 (gl_MACROS): Likewise.
82680         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
82681
82682         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
82683         (gl_GETDATE): Use it.
82684
82685         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
82686
82687 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82688
82689         Sync from coreutils.
82690
82691         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
82692         stat-time.h.
82693         * lib/argmatch.h: Include verify.h
82694         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
82695         (ARGMATCH_ASSERT): Remove; unused.
82696         * lib/canonicalize.c: Assume STDC_HEADERS.
82697         * lib/exclude.c: Include "strcase.h".
82698         * lib/regex_internal.h [!defined _LIBC]: Likewise.
82699         * lib/getusershell.c: Include stdio--.h rather than stdio.h
82700         and stdio-safer.h.
82701         (getusershell): Call fopen, not fopen_safer.
82702         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
82703         Do not include unistd-safer.h.
82704         (save_cwd): Don't call fd_safer; no longer needed
82705         now that we include fcntl--.h.
82706
82707         * lib/getdate.y (relative_time): New type.
82708         (RELATIVE_TIME_0): New constant.
82709         (parser_control): Use relative_time instead of doing it ourselves.
82710         (%union): Add new relative_time rel member.
82711         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
82712         Now typeless.
82713         (relunit, relunit_snumber): Now of type rel.
82714         (zone, rel, relunit, get_date): Adjust to above changes.
82715
82716         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
82717         Do not include unistd-safer.h.
82718         (getloadavg): Don't call fd_safer; no longer needed
82719         now that we include fcntl--.h.
82720
82721         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
82722         (make_dir_parents): Treat ENOSYS like EEXIST.
82723
82724         Improve quality of diagnostics on restore_cwd failure.
82725         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
82726         (make_dir_parents): Last arg is now int * (for errno), not bool *.
82727         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
82728         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
82729         each time through the loop.  Do not diagnose restore_cwd failure;
82730         that is the caller's job (and perhaps the caller does not care).
82731
82732         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
82733         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
82734         If the file already exists but is not a directory, don't bother
82735         to try to make its parents.
82736         Close potential file descriptor leak if we can't chdir("/") (!).
82737         Don't always return true if chdir($PWD) fails; return true only
82738         if the requested action was done successfully (except for the
82739         chdir($PWD)).
82740         Don't log final directory unless we actually made it.
82741         Refactor to avoid duplicate code to fix up permissions.
82742         Don't attempt to fix up parent permissions if chdir($PWD) fails.
82743
82744         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
82745         to make it a bit faster and (I hope) clearer.
82746         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
82747         Fix bug in formats like %2N.
82748
82749         * lib/verify.h: New file.
82750
82751 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
82752
82753         Sync from coreutils.
82754         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
82755
82756 2005-09-22  Jim Meyering  <jim@meyering.net>
82757
82758         Sync from coreutils.
82759
82760         * m4/lstat.m4 (gl_FUNC_LSTAT):
82761         Use AC_LIBSOURCES to require lstat.c and lstat.h.
82762         Remove obsolete comment.
82763         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
82764         * m4/xstrtod.m4: Likewise.
82765
82766         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
82767
82768 2005-09-22  Jim Meyering  <jim@meyering.net>
82769
82770         Sync from coreutils.
82771
82772         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
82773
82774         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
82775         the .tm_year member, since otherwise gcc-4.0 would now warn about
82776         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
82777
82778         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
82779         order to avoid an unsuppressible warning from gcc on 64-bit systems.
82780
82781         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
82782         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
82783         when run in a time zone for which daylight savings time is in effect
82784         for the starting date.
82785
82786         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
82787         stop us from restricting permissions of just-created absolute-named
82788         directories.
82789         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
82790         to restore initial working directory.
82791         * lib/mkdir-p.c (make_dir_parents): New parameter:
82792         different_working_dir, to tell caller if/when we change the working
82793         directory and are unable to return to the initial one.
82794         * lib/mkdir-p.h (make_dir_parents): Update prototype.
82795         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
82796         `return false'.  This fixes a bug introduced on 2004-07-30.
82797
82798         * lib/openat.c (fdopendir): Be sure to close the supplied
82799         file descriptor before returning.  This makes our replacement
82800         implementation a little closer to Solaris's, where fdopendir
82801         ties the file descriptor to the returned DIR* pointer.
82802         * lib/openat.c (unlinkat): New function.
82803         * lib/openat.h (unlinkat): Add prototype.
82804         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
82805         (openat_restore_fail): Rename from openat_restore_die.
82806         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
82807
82808         Provide an alternative to exiting immediately upon save_cwd or
82809         restore_cwd failure.  Now, an application can arrange e.g.,
82810         to perform a longjump in that case.
82811         * lib/openat.c: Include dirname.h.
82812         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
82813         (rpl_openat, fdopendir, fstatat): Call openat_save_die
82814         and openat_restore_die rather than calling error directly.
82815         Don't include "error.h" or "exitfail.h"; they're no longer needed.
82816
82817         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
82818         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
82819         define.
82820
82821         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
82822         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
82823                             int utc, int nanoseconds);
82824         Background:
82825         date should not have to allocate a megabyte of virtual memory to
82826         handle a format argument like +%1048575T.  When implemented with
82827         strftime, it must allocate such a buffer, use strftime to fill it
82828         in, print it, then free it.
82829         With fprintftime, it simply prints everything and exits.
82830         With no need for memory allocation, that's one fewer way to fail.
82831         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
82832         optional field width, not before, so we accept %9:z, not %:9z.
82833         (my_strftime): Be sure to use L_('x') for literals.
82834
82835         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
82836         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
82837         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
82838         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
82839         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
82840         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
82841         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
82842         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
82843         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
82844         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
82845         * lib/xgethostname.c, lib/xreadlink.c:
82846         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
82847
82848         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
82849         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
82850         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
82851         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82852         and don't include <sys/file.h>).
82853
82854 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
82855
82856         Sync from coreutils.
82857
82858         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
82859         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
82860         [!LDAV_DONE]: Avoid unused variable warning.
82861
82862 2005-09-21  Bruno Haible  <bruno@clisp.org>
82863
82864         * lib/unicodeio.h (unicode_to_mb): New declaration.
82865
82866 2005-09-20  Derek Price  <derek@ximbiot.com>
82867
82868         * lib/getaddrinfo.c: Don't include <netdb.h> included from
82869         getaddrinfo.h.
82870
82871 2005-09-20  Bruno Haible  <bruno@clisp.org>
82872
82873         * gnulib-tool: Remove trailing slashes from the values specified for
82874         --source-base, --m4-base, --tests-base, --aux-dir.
82875         Suggested by Simon Josefsson <jas@extundo.com>.
82876
82877 2005-09-20  Bruno Haible  <bruno@clisp.org>
82878
82879         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
82880         func_modules_to_filelist, func_import, func_create_testdir): Make all
82881         sorting results locale-independent, so that gnulib-cache.m4 doesn't
82882         change when gnulib-tool is invoked in a different locale.
82883
82884 2005-09-19  Simon Josefsson  <jas@extundo.com>
82885
82886         * m4/socklen.m4: Fix typo.
82887
82888 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82889
82890         Use a consistent style for including <config.h>.
82891         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
82892         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
82893         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
82894         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
82895         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
82896         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
82897         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82898         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82899         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82900         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82901         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82902         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82903         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82904         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82905         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82906         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82907         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82908         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82909         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82910         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82911         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82912         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82913         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82914         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82915         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82916         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82917         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82918         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82919         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82920         lib/xstrtoumax.c, lib/yesno.c:
82921         Standardize inclusion of config.h.
82922         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
82923         lib/inttostr.h:  Removed inclusion of config.h from header files.
82924         * lib/inttostr.c:  Adjusted in-tree users.
82925         * lib/timespec.h: Remove superfluous warning to include config.h.
82926         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
82927         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
82928         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
82929         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
82930         config.h with HAVE_CONFIG_H.
82931
82932 2005-09-19  Jim Meyering  <jim@meyering.net>
82933
82934         * modules/pathmax (License): Change to LGPL.
82935
82936 2005-09-19  Derek Price  <derek@ximbiot.com>
82937
82938         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
82939
82940 2005-09-19  Bruno Haible  <bruno@clisp.org>
82941
82942         * gnulib-tool (import): Provide default for --tests-base.
82943
82944 2005-09-19  Bruno Haible  <bruno@clisp.org>
82945
82946         * doc/quote.texi: New file, extracted from gnulib.texi.
82947         * doc/ctime.texi: New file, extracted from gnulib.texi.
82948         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
82949         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
82950         * doc/gnulib.texi: Include them.
82951
82952 2005-09-18  Bruno Haible  <bruno@clisp.org>
82953
82954         Portability fix.
82955         * gnulib-tool (func_readlink): New function.
82956         (func_ln_if_changed): Use it.
82957
82958 2005-09-18  Bruno Haible  <bruno@clisp.org>
82959
82960         * gnulib-tool: Support --with-tests also with --import.
82961         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
82962         (func_import): Use variables $testsbase and $inctests. Emit a
82963         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
82964         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
82965         SUBDIRS += $testsdir.
82966         (func_create_testdir): Update.
82967
82968 2005-09-18  Bruno Haible  <bruno@clisp.org>
82969
82970         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
82971         instead of $dry_run.
82972         (func_cp_if_changed, func_mv_if_changed): Remove functions.
82973         (func_ln_if_changed): Don't handle dry-run here.
82974         (func_import): In dry-run mode, detect more precisely which actions
82975         would be performed, and don't use "...ing" verbs.
82976
82977 2005-09-18  Bruno Haible  <bruno@clisp.org>
82978
82979         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82980         (func_import): Use join on two temporary files instead of three nested
82981         loops, in order to determine which files are new or old.
82982
82983 2005-09-18  Bruno Haible  <bruno@clisp.org>
82984
82985         * gnulib-tool (func_import): Comment out code that spits out the
82986         new files with --dry-run.
82987
82988 2005-09-18  Bruno Haible  <bruno@clisp.org>
82989
82990         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82991
82992 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82993
82994         * lib/stat-time.h: New file.
82995         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82996         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82997         in a different way.
82998         (timespec_cmp): New function.
82999         * lib/utimecmp.c: Include stat-time.h.
83000         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83001         members exist, not on the obsolescent ST_MTIM_NSEC.
83002         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83003
83004 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83005
83006         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83007
83008 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83009
83010         * MODULES.html.sh (File system functions): Add stat-time.
83011         * modules/stat-time: New file.
83012         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83013         is now done in a different way, by the stat-time module.
83014         * modules/utimecmp (Depends-on): Add stat-time.
83015
83016 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83017
83018         * m4/st_mtim.m4: Remove.  Superseded by...
83019         * m4/stat-time.m4: New file.
83020         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83021         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83022
83023 2005-09-15  Derek Price  <derek@ximbiot.com>
83024
83025         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83026
83027 2005-09-15  Derek Price  <derek@ximbiot.com>
83028
83029         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83030         * lib/regex_internal.c: Ditto, using this...
83031         (__GNUC_PREREQ): ...new macro.
83032         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83033         using...
83034         (__GNUC_PREREQ): ...this new macro.
83035
83036         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83037
83038 2005-09-15  Derek Price  <derek@ximbiot.com>
83039             Paul Eggert  <eggert@cs.ucla.edu>
83040
83041         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83042         changes, consolidating in...
83043         * lib/regex_internal.h: ...this file.
83044
83045 2005-09-13  Jim Meyering  <jim@meyering.net>
83046
83047         * lib/canon-host.c: Filter through gnu indent and reword comments
83048         slightly.
83049         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83050
83051 2005-09-13  Derek Price  <derek@ximbiot.com>
83052
83053         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83054         failure.
83055         Reported by Jim Meyering  <jim@meyering.net>.
83056
83057 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83058
83059         * lib/base64.c: Typo.
83060         (base64_encode): Put b64str in initialized data section.
83061
83062 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83063
83064         Merge glibc and coreutils changes into gnulib, plus a few
83065         extra fixes.
83066         * lib/md5.c: Use #error rather than a string.
83067         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83068         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83069         (__attribute__): Define to empty for non recent-GCC.
83070         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83071         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83072         Renamed from their non-__ counterparts, with new macros replacing
83073         them if not _LIBC.  Add __THROW attribute.
83074         (rol): Remove.
83075         (struct md5_ctx): Align buffer if using GCC.
83076         * lib/sha1.h (struct sha1_ctx): Likewise.
83077         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83078         The old name was backwards.
83079         (NOTSWAP): Remove; not used.
83080         (rol): New macro, moved here from md5.h.
83081         (sha1_process_block): Remove a FIXME that doesn't make sense.
83082
83083 2005-09-12  Derek Price  <derek@ximbiot.com>
83084
83085         Return usable errors from canon-host.
83086         * lib/canon-host.h: New file.
83087         * lib/canon-host.c (canon_host): Wrap...
83088         (canon_host_r): ...this new function, which now relies exclusively on
83089         getaddrinfo.
83090         (ch_strerror): New function.
83091         (last_cherror): New global.
83092         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83093         interface.
83094         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83095         void *.
83096         (freeaddrinfo): Free ai->ai_canonname when set.
83097
83098 2005-09-12  Derek Price  <derek@ximbiot.com>
83099
83100         Make canon-host require getaddrinfo.
83101         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83102         AC_LIBSOURCE canon-host.h.  Call...
83103         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83104         gl_GETADDRINFO.
83105         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83106
83107 2005-09-12  Derek Price  <derek@ximbiot.com>
83108
83109         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83110         LGPL.
83111         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83112
83113 2005-09-12  Derek Price  <derek@ximbiot.com>
83114
83115         * lib/gai_strerror.c: Include config.h when available.  Include
83116         getaddrinfo.h before other headers to test interface.
83117         Reported by Larry Jones <lawrence.jones@ugs.com>.
83118
83119 2005-09-12  Derek Price  <derek@ximbiot.com>
83120             Paul Eggert  <eggert@cs.ucla.edu>
83121
83122         * modules/glob (Files): Add glob-libc.h.
83123
83124 2005-09-12  Derek Price  <derek@ximbiot.com>
83125             Paul Eggert  <eggert@cs.ucla.edu>
83126
83127         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83128         glob_.h, glob-libc.h.
83129         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83130
83131 2005-09-12  Derek Price  <derek@ximbiot.com>
83132             Paul Eggert  <eggert@cs.ucla.edu>
83133
83134         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83135         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83136         protecting things that should be done only in gnulib contexts.
83137         * lib/glob_.h: New file, containing only the glob things needed for
83138         gnulib.
83139         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83140         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83141         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83142         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83143         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83144         and to respect the namespace rules better.
83145
83146 2005-09-08  Simon Josefsson  <jas@extundo.com>
83147
83148         * modules/socklen: New file.
83149
83150 2005-09-08  Simon Josefsson  <jas@extundo.com>
83151
83152         * m4/socklen.m4: New file.
83153
83154 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83155
83156         * modules/utimens (Files): Add m4/utimbuf.m4, since
83157         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83158         Reported by Sergey Poznyakoff.
83159
83160 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83161
83162         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83163         definitions, since that's the preferred style in glibc.
83164         Fix a minor spacing issue, and update copyright notice to match
83165         glibc's.
83166
83167 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83168
83169         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83170
83171 2005-09-06  Simon Josefsson  <jas@extundo.com>
83172
83173         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83174         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83175
83176 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83177
83178         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83179         warning.
83180
83181 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83182
83183         * config/srclist.txt: Add glibc bug 1302.
83184
83185 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83186
83187         Change bitset word type from unsigned int to unsigned long int,
83188         as this has better performance on typical 64-bit hosts.
83189         Port bitset code to hosts with unusual word sizes.
83190         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83191         (build_collating_symbol):
83192         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83193         argument is a bitset.  This is merely a style issue, but it makes
83194         it clearer that an entire array is expected.
83195         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83196         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83197         Port to the case where bitset_word is not the same as unsigned int.
83198         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83199         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83200         Likewise.
83201         * lib/regexec.c (check_dst_limits_calc_pos_1,
83202         check_subexp_matching_top):
83203         (build_trtable, group_nodes_into_DFAstates):
83204         Likewise.
83205         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83206         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83207         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83208         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83209         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83210         * lib/regcomp.c (optimize_subexps, lower_subexp):
83211         Work even if bitset_word has holes in its bitwise representation.
83212         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83213         * lib/regexec.c (check_dst_limits_calc_pos_1,
83214         check_subexp_matching_top):
83215         Likewise.
83216         * lib/regex_internal.c (re_string_reconstruct):
83217         Don't assume UCHAR_MAX == 255.
83218         * lib/regex_internal.h (bitset_set_all): Likewise.
83219         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83220         All uses changed.
83221         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83222         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83223         All uses changed.
83224         (BITSET_WORD_MAX): New macro.
83225         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83226         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83227         (bitset_empty, bitset_copy):
83228         Prefer sizeof (bitset) to multiplying it out ourselves.
83229         (bitset_not_merge): Remove; unused.
83230         (bitset_contain): Return bool, not unsigned int with one bit on.
83231         All callers changed.
83232         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83233         alignment than re_node_set; do this by defining a new internal
83234         type struct dests_alloc and using it to allocate memory.
83235
83236 2005-09-05  Bruno Haible  <bruno@clisp.org>
83237
83238         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83239         links.
83240
83241 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83242
83243         * modules/size_max (Makefile.am): Add size_max.h
83244
83245 2005-09-04  Derek Price  <derek@ximbiot.com>
83246
83247         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83248
83249 2005-09-03  Simon Josefsson  <jas@extundo.com>
83250
83251         * gnulib-tool: Fix typo.
83252
83253 2005-09-03  Simon Josefsson  <jas@extundo.com>
83254
83255         * config/srclist.txt: Add glibc bug 1293.
83256
83257 2005-09-03  Derek Price  <derek@ximbiot.com>
83258
83259         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83260         From Larry Jones <lawrence.jones@ugs.com>.
83261
83262 2005-09-02  Simon Josefsson  <jas@extundo.com>
83263
83264         * modules/socklen: New file.
83265
83266 2005-09-02  Simon Josefsson  <jas@extundo.com>
83267
83268         * modules/havelib: New module.
83269
83270         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83271         Use havelib.
83272
83273 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83274
83275         Check for arithmetic overflow when calculating sizes, to prevent
83276         some buffer-overflow issues.  These patches are conservative, in the
83277         sense that when I couldn't determine whether an overflow was possible,
83278         I inserted a run-time check.
83279         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83280         macros.
83281         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83282         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83283         (re_xnrealloc, re_x2nrealloc): New inline functions.
83284         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83285         parse_bracket_exp):
83286         (build_equiv_class, build_charclass): Check for arithmetic overflow
83287         in size expression calculations.
83288         * lib/regex_internal.c (re_string_realloc_buffers):
83289         (build_wcs_upper_buffer, re_node_set_add_intersect):
83290         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83291         (re_dfa_add_node, register_state): Likewise.
83292         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83293         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83294         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83295         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83296
83297 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83298
83299         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83300         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83301
83302 2005-09-02  Bruno Haible  <bruno@clisp.org>
83303
83304         Support for lib vs. lib64 distinction on biarch platforms.
83305         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83306         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83307         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83308
83309 2005-09-02  Bruno Haible  <bruno@clisp.org>
83310
83311         * gnulib-tool (import): In the other first-use case, provide defaults
83312         as well.
83313
83314 2005-09-02  Bruno Haible  <bruno@clisp.org>
83315
83316         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83317         patches not yet found in the latest gettext release.
83318
83319 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83320
83321         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83322         to avoid a collision with bits/local_lim.h in glibc.
83323         All uses changed.  Problem reported by Dmitry V. Levin in
83324         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83325
83326         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83327         bugs in int versus size_t comparisons.
83328         (re_string_context_at): Fix bug where the code assumed that
83329         Idx is signed.
83330
83331         Use bool where appropriate.
83332         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83333         All callers changed.
83334         (calc_eclosure_iter): Likewise, for ROOT arg.
83335         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83336         (build_charclass_op): Likewise, for NON_MATCH arg.
83337         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83338         (re_string_construct_common): Likewise, for ICASE arg.
83339         * lib/regexec.c (re_search_2_stub, re_search_stub):
83340         Likewise, for RET_LEN arg.
83341         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83342         (set_regs): Likewise, for FL_BACKTRACK arg.
83343         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83344         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83345         (calc_eclosure_iter, parse_bracket_exp):
83346         Use bool for internal variables that are booleans.
83347         * lib/regexec.c (re_search_internal, check_matching,
83348         proceed_next_node):
83349         (set_regs, build_sifted_states, sift_states_bkref):
83350         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83351         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83352         (find_collation_sequence_value):
83353         Likewise.
83354         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83355         (re_node_set_compare):
83356         Return bool, not int. All callers changed.
83357         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83358         (build_trtable, check_node_accept): Likewise.
83359         * lib/regex_internal.h: Include stdbool.h.
83360
83361         Fix bugs uncovered when converting to bool.
83362         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83363         failure instead of charging ahead blindly.
83364         * lib/regex_internal.c (register_state): Likewise.
83365         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83366         for freeing internal storage.
83367         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83368         bitset pieces used as boolean, to avoid undefined behavior
83369         on hosts that do int overflow checking.
83370
83371 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83372
83373         * config/srclist.txt: Add glibc bugs 1285-1287.
83374
83375 2005-09-01  Jim Meyering  <jim@meyering.net>
83376
83377         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83378         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83379         Require gl_STAT_MACROS, too.
83380
83381 2005-09-01  Bruno Haible  <bruno@clisp.org>
83382
83383         * gnulib-tool (import): In the first-use case, provide defaults.
83384
83385 2005-09-01  Bruno Haible  <bruno@clisp.org>
83386
83387         * gnulib-tool (func_import): Remove the .tmp files.
83388
83389 2005-09-01  Bruno Haible  <bruno@clisp.org>
83390
83391         * gnulib-tool (func_import): Fix handling of symbolic links.
83392
83393 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83394
83395         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83396         old glibc regex code mishandles strings longer than 2**31 bytes.
83397         This patch fixes this when the regex code is used in gnulib
83398         (i.e., outside glibc).
83399
83400         This patch should not affect the use of the regex code inside
83401         glibc.  No doubt this problem also needs to be handled for glibc
83402         as well, but the result will be an incompatible change to the
83403         glibc ABI, and the old ABI will have to be supported too.  That
83404         can be the the subject for another patch.
83405
83406         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83407         governing whether the rest of this patch is active.  By default,
83408         the macro is disabled and the patch has no effect.
83409         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83410         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83411         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83412         (re_match_2, re_set_registers): Use the new types.
83413         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83414         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83415         New macros.
83416         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83417         (re_string_context_at, bin_tree_t, re_dfastate_t):
83418         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83419         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83420         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83421         (re_string_char_size_at, re_string_wchar_at):
83422         (re_string_elem_size_at):
83423         Use the new types and macros to port to 64-bit hosts.
83424         Use unsigned types for internal values, so that the code
83425         mostly works even for arrays larger than SSIZE_MAX.
83426         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83427         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83428         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83429         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83430         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83431         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83432         (calc_inveclosure, parse_dup_op, build_range_exp):
83433         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83434         (fetch_number, create_token_tree, mark_opt_subexp):
83435         Likewise.
83436         * lib/regex_internal.c (re_string_construct_common,
83437         create_ci_newstate):
83438         (create_cd_newstate, re_string_allocate, re_string_construct):
83439         (re_string_realloc_buffers, build_wcs_upper_buffer):
83440         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83441         (re_string_reconstruct, re_string_peek_byte_case):
83442         (re_string_fetch_byte_case, re_string_context_at):
83443         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83444         (re_node_set_init_copy, re_node_set_add_intersect):
83445         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83446         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83447         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83448         (re_acquire_state, re_acquire_state_context, register_state):
83449         Likewise.
83450         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83451         search_cur_bkref_entry):
83452         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83453         (re_search_internal, re_search_2_stub, re_search_stub)
83454         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83455         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83456         (update_cur_sifted_state, check_dst_limits):
83457         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83458         (check_subexp_limits, sift_states_bkref, merge_state_array):
83459         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83460         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83461         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83462         (expand_bkref_cache, check_node_accept_bytes):
83463         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83464         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83465         (acquire_init_state_context, check_halt_node_context):
83466         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83467         (sift_states_backward, clean_state_log_if_needed):
83468         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83469         (find_recover_state, transit_state_sb, transit_state_mb):
83470         (transit_state_bkref, build_trtable, match_ctx_clean):
83471         Likewise.
83472         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83473         to work around an assumption that REG_MISSING is negative.
83474
83475         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83476         (seek_collating_symbol_entry) [defined _LIBC]:
83477         (lookup_collation_sequence_value) [defined _LIBC]:
83478         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83479         Use prototypes rather than old-style function definitions.
83480         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83481         (transit_state_sb) [0]:
83482         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83483
83484         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83485         rm_eo.
83486
83487         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83488         (optimize_subexps, lower_subexp):
83489         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83490         since the signed shift might overflow.  Use 1u<<31 instead.
83491         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83492         Likewise.
83493         * lib/regexec.c (check_dst_limits_calc_pos_1,
83494         check_subexp_matching_top): Likewise.
83495
83496         * lib/regcomp.c (optimize_subexps, lower_subexp):
83497         Use CHAR_BIT rather than 8, for clarity.
83498         * lib/regexec.c (check_dst_limits_calc_pos_1):
83499         (check_subexp_matching_top): Likewise.
83500         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83501         have to worry about portability issues when shifting it left.
83502         Remove no-longer-needed test for table_size > 0.
83503         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83504         in a word, as the resulting behavior is undefined.
83505         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83506         in one case, a <= should have been an <, and in another case the
83507         whole test was missing.
83508         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
83509         the standard name CHAR_BIT.
83510         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
83511         this is not true on one's complement and signed-magnitude hosts.
83512
83513         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
83514         next_last_offset.
83515         (struct re_dfa_t): Remove unused member states_alloc.
83516         * lib/regcomp.c (init_dfa): Don't initialize unused members.
83517
83518 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83519
83520         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
83521         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
83522         and large-file glibc and in 32-bit large-file Solaris.
83523
83524 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83525
83526         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
83527         lengths fit in regoff_t; this isn't true if regoff_t is the same
83528         width as size_t.
83529         * lib/regex.c (re_search_internal): 5th arg is LAST_START
83530         (= START + RANGE) instead of RANGE.  This avoids overflow
83531         problems when regoff_t is the same width as size_t.
83532         All callers changed.
83533         (re_search_2_stub): Check for overflow when adding the
83534         sizes of the two strings.
83535         (re_search_stub): Check for overflow when adding START
83536         to RANGE; if it occurs, substitute the extreme value.
83537
83538 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83539
83540         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
83541
83542 2005-08-31  Jim Meyering  <jim@meyering.net>
83543
83544         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
83545         a pointer-to-const.
83546         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
83547         (register_state): Likewise.
83548         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
83549         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83550         (group_nodes_into_DFAstates): Likewise.
83551
83552 2005-08-31  Jim Meyering  <jim@meyering.net>
83553
83554         * check-module: Add a FIXME comment.
83555
83556 2005-08-31  Eric Blake  <ebb9@byu.net>
83557
83558         * modules/unistd-safer (Files): Add unistd--.h.
83559         * modules/stdio-safer (Files): Add stdio--.h.
83560
83561 2005-08-31  Derek Price  <derek@ximbiot.com>
83562
83563         * lib/getdelim.c (getdelim): Return EOF on EOF.
83564         Reported by Larry Jones <lawrence.jones@ugs.com>.
83565
83566 2005-08-31  Bruno Haible  <bruno@clisp.org>
83567
83568         Avoid unnecessary diffs in the generated lib/Makefile.am.
83569         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
83570         the generated files.
83571         (func_import): Don't set cmd.
83572
83573 2005-08-31  Bruno Haible  <bruno@clisp.org>
83574
83575         * lib/strstr.c: Include <stddef.h>, for NULL.
83576         * lib/strcasestr.c: Likewise.
83577         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
83578
83579 2005-08-31  Bruno Haible  <bruno@clisp.org>
83580
83581         * gnulib-tool: New option --macro-prefix.
83582         (func_import): Use macro_prefix.
83583         (import): Handle option --macro-prefix.
83584
83585 2005-08-31  Bruno Haible  <bruno@clisp.org>
83586
83587         * gnulib-tool (import): Rename most ac_* variables to cached_*.
83588         Also use new variables cached_lgpl, cached_libtool.
83589
83590 2005-08-31  Bruno Haible  <bruno@clisp.org>
83591
83592         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
83593         always instantiating them.
83594
83595 2005-08-31  Bruno Haible  <bruno@clisp.org>
83596
83597         * gnulib-tool (func_import): Read the previous cached settings
83598         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
83599         earlier added by gnulib but are now dropped. Warn when a gnulib file
83600         overwrites a non-gnulib file.
83601
83602 2005-08-31  Bruno Haible  <bruno@clisp.org>
83603
83604         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
83605         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
83606         projects that don't keep autogenerated files in CVS. Put into
83607         actioncmd only the specified modules, not the transitive closure.
83608
83609 2005-08-31  Bruno Haible  <bruno@clisp.org>
83610
83611         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
83612         Create directories that shall be filled.
83613         (import): Don't look for gl_* macros in configure.ac. Recurse across
83614         all directories containing a gnulib-cache.m4 files, if meaningful.
83615
83616 2005-08-31  Bruno Haible  <bruno@clisp.org>
83617
83618         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
83619         (import): Set seen_libtool when we see gl_LIBTOOL.
83620
83621 2005-08-31  Bruno Haible  <bruno@clisp.org>
83622
83623         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
83624         declaration macro definitions from generated gnulib.m4.
83625
83626 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
83627
83628         * lib/iconvme.h: Add prototype for iconv_alloc.
83629
83630 2005-08-29  Simon Josefsson  <jas@extundo.com>
83631
83632         * lib/iconvme.c: Fix errno.
83633
83634 2005-08-29  Bruno Haible  <bruno@clisp.org>
83635
83636         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
83637         that it works when the directory contains spaces.
83638
83639 2005-08-29  Bruno Haible  <bruno@clisp.org>
83640
83641         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
83642
83643 2005-08-29  Bruno Haible  <bruno@clisp.org>
83644
83645         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
83646         Emit more advice.
83647
83648 2005-08-29  Bruno Haible  <bruno@clisp.org>
83649         and Stepan Kasal  <kasal@ucw.cz>
83650
83651         * check-module: If more parameters are given, check each of them
83652         separately; add more exceptions, as noted by Jim Meyering.
83653         (check_module): New procedure.
83654         (%exempt_header): Now contains all exceptions.
83655
83656 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
83657
83658         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
83659
83660 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
83661
83662         * lib/iconvme.c: Split iconv_string into iconv_alloc.
83663
83664 2005-08-28  Bruno Haible  <bruno@clisp.org>
83665
83666         * m4/gnulib-tool.m4: New file.
83667
83668 2005-08-27  Jim Meyering  <jim@meyering.net>
83669
83670         * modules/unistd-safer (Files): Add pipe-safer.c.
83671         * modules/fcntl-safer (Files): Add creat-safer.c.
83672
83673 2005-08-27  Jim Meyering  <jim@meyering.net>
83674
83675         * m4/stdlib-safer.m4: New file.  From coreutils.
83676         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
83677         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
83678         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
83679         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
83680         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
83681
83682 2005-08-27  Jim Meyering  <jim@meyering.net>
83683
83684         * lib/fopen-safer.c: Merge minor changes from coreutils.
83685         * lib/dup-safer.c: Likewise.
83686         * lib/fd-safer.c: Likewise.
83687
83688         Merge from coreutils.
83689         * lib/stdio--.h: New file.
83690         * lib/stdlib--.h: New file.
83691         * lib/mkstemp-safer.c: New file.
83692
83693         GNU tar needs these.
83694         * lib/pipe-safer.c: New file.
83695         * lib/creat-safer.c: New file.
83696         * lib/fcntl--.h (creat): Define to creat_safer.
83697         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
83698         * lib/unistd--.h (pipe): Define to pipe_safer.
83699         * lib/unistd-safer.h: Declare pipe_safer.
83700
83701 2005-08-26  Simon Josefsson  <jas@extundo.com>
83702
83703         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
83704         Haible <bruno@clisp.org>.
83705
83706 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
83707
83708         * lib/regex_internal.h: Remove all references to
83709         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
83710         or better.
83711         (bitset_not, bitset_merge, bitset_not_merge):
83712         (bitset_mask, re_string_allocate, re_string_construct):
83713         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
83714         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
83715         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
83716         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
83717         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83718         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83719         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
83720         (re_acquire_state_context):
83721         Remove unnecessary forward decls.
83722         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
83723         Put __attribute at function definition,
83724         now that the function decl has been removed.
83725         * lib/regex_internal.c (re_string_peek_byte_case):
83726         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
83727         Likewise.
83728
83729 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
83730
83731         * m4/regex.m4: Add AC_PREREQ(2.50).
83732         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
83733
83734 2005-08-25  Simon Josefsson  <jas@extundo.com>
83735
83736         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
83737         __fsetlocking.
83738
83739 2005-08-25  Simon Josefsson  <jas@extundo.com>
83740
83741         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
83742         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
83743         GLIBC specific code.
83744
83745 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83746
83747         Make regex safe for g++.  This fixes one real bug (an "err"
83748         that should have been "*err").  g++ problem reported by
83749         Sam Steingold.
83750         * lib/regex_internal.h (re_calloc): New macro, consistent with
83751         re_malloc etc.  All callers of calloc changed to use re_calloc.
83752         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
83753         not int.  All callers changed.
83754         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
83755         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
83756         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
83757         (find_recover_state): Change "err" to "*err"; this fixes what
83758         appears to be a real bug.
83759         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
83760         versus int.
83761
83762 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83763
83764         * modules/regex (Depends-on): Add malloc, since the code
83765         assumes that !malloc(0) means failure.
83766
83767 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83768
83769         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
83770
83771         alloca modernization/simplification for regex.
83772         * lib/regex.c: Remove portability cruft for alloca.  This no longer
83773         needs to be at the start of the file, and can be moved into
83774         regex_internal.h and simplified.
83775         * lib/regex_internal.h: Include <alloca.h>.
83776         (__libc_use_alloca) [!defined _LIBC]: New macro.
83777         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
83778         now works outside glibc.
83779
83780 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
83781
83782         * config/srclist.txt: Add glibc bugs 1241, 1245.
83783
83784 2005-08-25  Jim Meyering  <jim@meyering.net>
83785
83786         * lib/open-safer.c: Include <config.h>.
83787         Otherwise, we'd lose LARGEFILE support in any file using
83788         e.g. "fcntl--.h"
83789
83790 2005-08-25  Bruno Haible  <bruno@clisp.org>
83791
83792         * m4/minmax.m4: Require autoconf 2.52.
83793         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
83794         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
83795         alternatives of translit over the alphabet.
83796         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
83797
83798 2005-08-24  Simon Josefsson  <jas@extundo.com>
83799
83800         * tests/test-getpass.c: New file.
83801
83802 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83803
83804         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
83805         for GNU regex features.
83806
83807 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83808
83809         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
83810         * lib/regex.h (regerror): Likewise.
83811
83812         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
83813         requires this.  (The code never needed it.)
83814
83815         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
83816         All uses of recently-renamed identifiers changed to use the new,
83817         POSIX-compliant names.  The code will build and run just fine
83818         without these changes, but it's better to eat our own dog food
83819         and use the standard-conforming names.
83820
83821         * lib/regex.h: Fix a multitude of POSIX name space violations.
83822         These changes have an effect only for programs that define
83823         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
83824         do not change anything for programs compiled in the normal way.
83825         Also, there is no effect on the ABI.
83826
83827         (_REGEX_SOURCE): New macro.
83828         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
83829         defined and _GNU_SOURCE is not; this fixes a name space violation.
83830
83831         Rename the following macros to obey POSIX requirements.
83832         The old names are still visible as macros if _REGEX_SOURCE is defined.
83833         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
83834         RE_BACKSLASH_ESCAPE_IN_LISTS.
83835         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
83836         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
83837         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
83838         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
83839         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
83840         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
83841         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
83842         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
83843         (REG_INTERVALS): renamed from RE_INTERVALS.
83844         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
83845         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
83846         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
83847         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
83848         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
83849         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
83850         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
83851         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
83852         RE_UNMATCHED_RIGHT_PAREN_ORD.
83853         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
83854         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
83855         (REG_DEBUG): renamed from RE_DEBUG.
83856         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
83857         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
83858         unusual, since we can't clash with the POSIX REG_ICASE.
83859         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
83860         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
83861         (REG_NO_SUB): renamed from RE_NO_SUB.
83862         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
83863         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
83864         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
83865         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
83866         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
83867         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
83868         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
83869         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
83870         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
83871         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
83872         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
83873         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
83874         RE_SYNTAX_POSIX_MINIMAL_BASIC.
83875         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
83876         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
83877         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
83878         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
83879         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
83880         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
83881         (REG_FIXED): Renamed from REGS_FIXED.
83882         (REG_NREGS): Renamed from RE_NREGS.
83883
83884         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
83885         of other REG_* macros, since POSIX says the user is allowed to
83886         #undef these macros selectively.
83887
83888         (reg_errcode_t): Update comment stating what other tables need
83889         to be consistent.
83890
83891         Rename the following enum values to obey POSIX requirements.
83892         The old names are still visible as macros.
83893         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
83894         is not defined, since GNU is supposed to be a superset of POSIX as
83895         much as possible, and since we want reg_errcode_t to be a signed
83896         type for implementation consistency.
83897         (_REG_NOERROR): Renamed from REG_NOERROR.
83898         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83899         (_REG_BADPAT): Renamed from REG_BADPAT.
83900         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83901         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83902         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83903         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83904         (_REG_EBRACK): Renamed from REG_EBRACK.
83905         (_REG_EPAREN): Renamed from REG_EPAREN.
83906         (_REG_EBRACE): Renamed from REG_EBRACE.
83907         (_REG_BADBR): Renamed from REG_BADBR.
83908         (_REG_ERANGE): Renamed from REG_ERANGE.
83909         (_REG_ESPACE): Renamed from REG_ESPACE.
83910         (_REG_BADRPT): Renamed from REG_BADRPT.
83911         (_REG_EEND): Renamed from REG_EEND.
83912         (_REG_ESIZE): Renamed from REG_ESIZE.
83913         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83914         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83915         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83916         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83917         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83918
83919         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83920         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
83921         changed.  But support the old name if the new one is not defined
83922         and if _REGEX_SOURCE.
83923
83924         Change the following member names in struct re_pattern_buffer.
83925         The old names are still supported if !_REGEX_SOURCE.
83926         The new names are always supported, regardless of _REGEX_SOURCE.
83927         (re_buffer): Renamed from buffer.
83928         (re_allocated): Renamed from allocated.
83929         (re_used): Renamed from used.
83930         (re_syntax): Renamed from syntax.
83931         (re_fastmap): Renamed from fastmap.
83932         (re_translate): Renamed from translate.
83933         (re_can_be_null): Renamed from can_be_null.
83934         (re_regs_allocated): Renamed from regs_allocated.
83935         (re_fastmap_accurate): Renamed from fastmap_accurate.
83936         (re_no_sub): Renamed from no_sub.
83937         (re_not_bol): Renamed from not_bol.
83938         (re_not_eol): Renamed from not_eol.
83939         (re_newline_anchor): Renamed from newline_anchor.
83940
83941         Change the following member names in struct re_registers.
83942         The old names are still supported if !_REGEX_SOURCE.
83943         The new names are always supported, regardless of _REGEX_SOURCE.
83944         (rm_num_regs): Renamed from num_regs.
83945         (rm_start): Renamed from start.
83946         (rm_end): Renamed from end.
83947
83948         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
83949         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
83950         Prepend __ to parameter names.
83951
83952         Undo yesterday's changes.
83953
83954 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83955
83956         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
83957         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
83958         lib/regex.c.
83959
83960 2005-08-24  Jim Meyering  <jim@meyering.net>
83961
83962         Sync from coreutils.
83963         * m4/fcntl-safer.m4: New file.
83964
83965         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
83966         and object files for this module.
83967
83968 2005-08-24  Jim Meyering  <jim@meyering.net>
83969
83970         Sync from coreutils.
83971         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
83972
83973 2005-08-24  Jim Meyering  <jim@meyering.net>
83974
83975         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83976         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83977
83978 2005-08-24  Jim Meyering  <jim@meyering.net>
83979
83980         * modules/fcntl-safer: New module.
83981         * modules/fts (Depends-on): Add fcntl-safer.
83982         * MODULES.html.sh (File descriptor based Input/Output):
83983         Add fcntl-safer.
83984
83985 2005-08-24  Bruno Haible  <bruno@clisp.org>
83986
83987         Support for unit test modules.
83988         * modules/README: Mention tests modules.
83989         * modules/TEMPLATE-TESTS: New file.
83990         * gnulib-tool: New options --extract-tests-module, --with-tests and
83991         --tests-base (unused for the moment).
83992         (testsbase, inctests): New variables.
83993         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83994         (func_verify_module): Exclude TEMPLATE-TESTS.
83995         (func_verify_nontests_module, func_verify_tests_module): New functions.
83996         (func_get_dependencies): Add implicit dependency for tests modules.
83997         (func_get_tests_module): New function.
83998         (func_modules_transitive_closure): When --with-tests was specified,
83999         include the unit tests as well, unless explicitly avoided.
84000         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84001         (func_emit_tests_Makefile_am): New function.
84002         (func_create_testdir): When --with-tests was specified, emit a
84003         tests/ directory.
84004         * MODULES.html.sh (Future developments): Update.
84005
84006 2005-08-24  Bruno Haible  <bruno@clisp.org>
84007
84008         * modules/tls-tests: New file.
84009         * tests/test-tls.c: New file, from GNU gettext.
84010
84011 2005-08-24  Bruno Haible  <bruno@clisp.org>
84012
84013         * modules/lock-tests: New file.
84014         * tests/test-lock.c: New file, from GNU gettext.
84015
84016 2005-08-24  Bruno Haible  <bruno@clisp.org>
84017
84018         * lib/lock.h: Add multiple inclusion guard.
84019         * lib/tls.h: Add multiple inclusion guard.
84020
84021 2005-08-24  Bruno Haible  <bruno@clisp.org>
84022
84023         * gnulib-tool: Add support for the --aux-dir option to
84024         --create-testdir, --create-megatestdir, --test, --megatest.
84025         (func_create_testdir, func_create_megatestdir): Optionally emit a
84026         AC_CONFIG_AUX_DIR directive.
84027         (create-testdir, create-megatestdir, test, megatest): Provide a
84028         default value for $auxdir.
84029
84030 2005-08-24  Bruno Haible  <bruno@clisp.org>
84031
84032         * gnulib-tool (import): Use compound statement instead of subshell
84033         where possible.
84034
84035 2005-08-24  Bruno Haible  <bruno@clisp.org>
84036
84037         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84038
84039 2005-08-24  Bruno Haible  <bruno@clisp.org>
84040
84041         * gnulib-tool (func_version): Update.
84042
84043 2005-08-24  Bruno Haible  <bruno@clisp.org>
84044
84045         * gnulib-tool (func_import, func_create_testdir,
84046         func_create_megatestdir): Quote all autoconf macro arguments.
84047
84048 2005-08-24  Bruno Haible  <bruno@clisp.org>
84049
84050         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84051         option --force, because --force causes the aclocal.m4 of each
84052         subdirectory to be newer than the corresponding config.h.in.
84053
84054 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84055
84056         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84057         All contents moved to gl_REGEX.
84058         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84059         assume that it does.
84060
84061 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84062
84063         * lib/regex.h (REG_NOSYS)
84064         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84065         Define, since POSIX requires it as of 2001.
84066         (_REG_ENOSYS)
84067         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84068         New private symbol, used to keep the enum signed in all cases.
84069         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84070         Youngman in
84071         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84072
84073         * lib/regex_internal.c (re_string_skip_chars, register_state):
84074         (calc_state_hash):
84075         Remove forward decls; no longer needed now that we use prototypes.
84076         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84077         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84078         (clean_state_log_if_needed): Likewise.
84079
84080 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84081
84082         * config/srclist.txt: Add glibc bugs 1231-1233.
84083
84084 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84085
84086         Fix problems reported by Sam Steingold in
84087         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84088         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84089         assumed that reg_errcode_t is a signed type, which is not
84090         necessarily true if _XOPEN_SOURCE is not defined.
84091         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84092         since some compilers warn about it otherwise.
84093
84094 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84095
84096         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84097         (init_word_char, create_initial_state, duplicate_node_closure):
84098         (fetch_token, peek_token_bracket, build_range_exp):
84099         (build_collating_symbol): Remove forward decls; no longer needed
84100         now that we use prototypes.
84101
84102         * lib/regcomp.c:
84103         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84104         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84105         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84106         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84107         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84108         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84109         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84110         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84111         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84112         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84113         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84114         (build_charclass, build_charclass_op, fetch_number, create_tree):
84115         (create_token_tree, mark_opt_subexp, duplicate_tree):
84116         Use prototypes rather than old-style definitions.
84117
84118         * lib/regex_internal.c:
84119         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84120         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84121         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84122         (re_string_reconstruct, re_string_peek_byte_case):
84123         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84124         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84125         (re_node_set_init_copy, re_node_set_add_intersect):
84126         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84127         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84128         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84129         (re_acquire_state, re_acquire_state_context, register_state):
84130         (create_ci_newstate, create_cd_newstate, free_state):
84131         Likewise.
84132         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84133         re_search_2):
84134         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84135         (re_search_internal, prune_impossible_nodes):
84136         (acquire_init_state_context, check_matching, static):
84137         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84138         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84139         (update_regs, sift_states_backward, build_sifted_states):
84140         (clean_state_log_if_needed, merge_state_array):
84141         (update_cur_sifted_state, add_epsilon_src_nodes):
84142         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84143         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84144         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84145         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84146         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84147         (check_arrival, check_arrival_add_next_nodes):
84148         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84149         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84150         (check_node_accept_bytes, check_node_accept, extend_buffers):
84151         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84152         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84153         (sift_ctx_init):
84154         Likewise.
84155
84156         * lib/regex_internal.h:
84157         (re_string_allocate, re_string_construct, re_string_reconstruct):
84158         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84159         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84160         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84161         (re_string_context_at, re_string_peek_byte_case):
84162         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84163         is defined, since we now use prototypes always.
84164
84165         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84166         C89 or better.  All uses removed.
84167
84168 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84169
84170         * config/srclist.txt: Add glibc bugs 1220-1227.
84171
84172 2005-08-20  Jim Meyering  <jim@meyering.net>
84173
84174         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84175         of unused local, dfa.
84176
84177 2005-08-20  Bruno Haible  <bruno@clisp.org>
84178
84179         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84180
84181 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84182
84183         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84184         (re_node_set_insert_last, re_dfa_add_node):
84185         Rename local variables to avoid GCC shadowing warnings.
84186
84187 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84188
84189         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84190         [defined lint]: Suppress bogus uninitialized-variable warnings.
84191
84192         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84193         and let the caller return REG_ESPACE if out of space.  This
84194         removes an uninitialied-variable warning with GCC 4.0.1, and also
84195         avoids taking the address of a local variable.  All callers
84196         changed.
84197
84198 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84199
84200         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84201         $LIBCSRC/posix/regexec.c.
84202         Add glibc bug 1217 for regcomp.c.
84203
84204 2005-08-19  Jim Meyering  <jim@meyering.net>
84205
84206         * lib/regexec.c (proceed_next_node): Redo local variables to
84207         avoid GCC shadowing warnings.
84208
84209 2005-08-18  Bruno Haible  <bruno@clisp.org>
84210
84211         * lib/strstr.c (strstr): Fix return value in multibyte case.
84212         * lib/strcasestr.c (strcasestr): Likewise.
84213
84214 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84215
84216         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84217
84218 2005-08-17  Jim Meyering  <jim@meyering.net>
84219
84220         Make the %s format (seconds since the epoch) work for a negative
84221         number and when used with a zero-padded field width, e.g. %015s.
84222
84223         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84224         label so that it precedes the code to set `digits'.  Otherwise,
84225         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84226         print `00-22'.  Now, it prints `-0022', as it should.
84227
84228 2005-08-17  Bruno Haible  <bruno@clisp.org>
84229
84230         * modules/strstr (Files): Add m4/mbrtowc.m4.
84231         (Depends-on): Add mbuiter.
84232
84233 2005-08-17  Bruno Haible  <bruno@clisp.org>
84234
84235         * modules/strcasestr: New file.
84236         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84237         strcasestr.
84238
84239 2005-08-17  Bruno Haible  <bruno@clisp.org>
84240
84241         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84242
84243 2005-08-17  Bruno Haible  <bruno@clisp.org>
84244
84245         * modules/mbuiter: New file.
84246         * MODULES.html.sh (Extended multibyte and wide character utilities):
84247         Add mbuiter.
84248
84249 2005-08-17  Bruno Haible  <bruno@clisp.org>
84250
84251         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84252         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84253
84254 2005-08-17  Bruno Haible  <bruno@clisp.org>
84255
84256         * m4/strcasestr.m4: New file.
84257
84258 2005-08-17  Bruno Haible  <bruno@clisp.org>
84259
84260         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84261         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84262
84263 2005-08-17  Bruno Haible  <bruno@clisp.org>
84264
84265         * lib/strcasestr.h: New file.
84266         * lib/strcasestr.c: New file.
84267
84268 2005-08-17  Bruno Haible  <bruno@clisp.org>
84269
84270         * lib/strcasecmp.c: Use mbuiter.h.
84271
84272 2005-08-17  Bruno Haible  <bruno@clisp.org>
84273
84274         * lib/mbuiter.h: New file.
84275
84276 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84277
84278         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84279         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84280         and gl_GETOPT are both invoked via different paths (as happens
84281         with GNU tar CVS because it uses both argp and getopt), the former
84282         wins.
84283
84284 2005-08-16  Bruno Haible  <bruno@clisp.org>
84285
84286         * modules/tls: New file.
84287         * MODULES.html.sh (Multithreading): Add tls.
84288
84289 2005-08-16  Bruno Haible  <bruno@clisp.org>
84290
84291         * modules/strnlen1: New file.
84292         * MODULES.html.sh (String handling): Add strnlen1.
84293
84294 2005-08-16  Bruno Haible  <bruno@clisp.org>
84295
84296         * modules/strcase (Files): Add m4/mbrtowc.m4.
84297         (Depends-on): Add strnlen1, mbchar.
84298
84299 2005-08-16  Bruno Haible  <bruno@clisp.org>
84300
84301         * modules/mbiter: New file.
84302         * MODULES.html.sh (Extended multibyte and wide character utilities):
84303         Add mbiter.
84304
84305 2005-08-16  Bruno Haible  <bruno@clisp.org>
84306
84307         * modules/mbfile: New file.
84308         * MODULES.html.sh (Extended multibyte and wide character utilities):
84309         Add mbfile.
84310
84311 2005-08-16  Bruno Haible  <bruno@clisp.org>
84312
84313         * modules/mbchar: New file.
84314         * MODULES.html.sh (Extended multibyte and wide character utilities):
84315         New section.
84316
84317 2005-08-16  Bruno Haible  <bruno@clisp.org>
84318
84319         * m4/tls.m4: New file, from GNU gettext.
84320
84321 2005-08-16  Bruno Haible  <bruno@clisp.org>
84322
84323         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84324         always.
84325         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84326
84327 2005-08-16  Bruno Haible  <bruno@clisp.org>
84328
84329         * m4/mbiter.m4: New file.
84330
84331 2005-08-16  Bruno Haible  <bruno@clisp.org>
84332
84333         * m4/mbfile.m4: New file.
84334
84335 2005-08-16  Bruno Haible  <bruno@clisp.org>
84336
84337         * m4/mbchar.m4: New file.
84338
84339 2005-08-16  Bruno Haible  <bruno@clisp.org>
84340
84341         * lib/tls.h: New file, from GNU gettext.
84342         * lib/tls.c: New file, from GNU gettext.
84343
84344 2005-08-16  Bruno Haible  <bruno@clisp.org>
84345
84346         * lib/strnlen1.h: New file.
84347         * lib/strnlen1.c: New file.
84348
84349 2005-08-16  Bruno Haible  <bruno@clisp.org>
84350
84351         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84352         (mbi_init): Update.
84353         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84354         NUL byte, not after it.
84355
84356 2005-08-16  Bruno Haible  <bruno@clisp.org>
84357
84358         * lib/strcase.h (strcasecmp): Add note in comments.
84359         * lib/strncasecmp.c: Use code from strcasecmp.c.
84360         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84361         (strcasecmp): Work correctly in multibyte locales.
84362
84363 2005-08-16  Bruno Haible  <bruno@clisp.org>
84364
84365         * lib/mbiter.h: New file.
84366
84367 2005-08-16  Bruno Haible  <bruno@clisp.org>
84368
84369         * lib/mbfile.h: New file.
84370
84371 2005-08-16  Bruno Haible  <bruno@clisp.org>
84372
84373         * lib/mbchar.h: New file.
84374         * lib/mbchar.c: New file.
84375
84376 2005-08-16  Bruno Haible  <bruno@clisp.org>
84377
84378         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84379         the valid ones. Makes the comparison operations transitive:
84380         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84381         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84382
84383 2005-08-15  Simon Josefsson  <jas@extundo.com>
84384
84385         * modules/ssize_t (License): Change to 'unlimited'.
84386
84387         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84388
84389 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84390
84391         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84392         Add comments for each pending glibc patch.
84393
84394 2005-08-15  Bruno Haible  <bruno@clisp.org>
84395
84396         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84397         __cplusplus is defined.
84398
84399 2005-08-14  Jim Meyering  <jim@meyering.net>
84400
84401         Sync from coreutils.
84402
84403         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84404         Use the hash-table-based cycle-detection code not just when
84405         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84406         Reported by James Youngman in
84407         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84408         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84409         FTS_TIGHT_CYCLE_CHECK.
84410         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84411         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84412         once again.
84413         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84414         * lib/fts.c (fd_safer): Remove decl.
84415         Include fcntl--.h rather than unistd-safer.h
84416         (fts_safe_changedir): Don't call fd_safer; no longer needed
84417         now that we include fcntl--.h.
84418
84419 2005-08-12  Simon Josefsson  <jas@extundo.com>
84420
84421         * modules/getndelim2: Use ssize_t module.
84422         * modules/getnline: Likewise.
84423         * modules/safe-read: Likewise.
84424         * modules/xreadlink: Likewise.
84425
84426         * modules/ssize_t: New file.
84427
84428 2005-08-12  Simon Josefsson  <jas@extundo.com>
84429
84430         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84431
84432 2005-08-12  Simon Josefsson  <jas@extundo.com>
84433
84434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84435         ssize_t.
84436
84437 2005-08-12  Simon Josefsson  <jas@extundo.com>
84438
84439         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84440         readline, getdelim and check_version.
84441         (Support for systems lacking ISO C 99: Sizes of integer types):
84442         Add size_max.
84443
84444 2005-08-12  Bruno Haible  <bruno@clisp.org>
84445
84446         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84447
84448 2005-08-11  Simon Josefsson  <jas@extundo.com>
84449
84450         * modules/readline: New file.
84451
84452         * modules/strnlen (Files): Add strnlen.h.
84453
84454 2005-08-11  Simon Josefsson  <jas@extundo.com>
84455
84456         * m4/readline.m4: New file.
84457
84458 2005-08-11  Simon Josefsson  <jas@extundo.com>
84459
84460         * lib/readline.h, readline.c: New file.
84461
84462 2005-08-11  Simon Josefsson  <jas@extundo.com>
84463
84464         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84465         gl_AVOID.
84466
84467 2005-08-11  Bruno Haible  <bruno@clisp.org>
84468
84469         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84470
84471 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84472
84473         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84474
84475 2005-08-10  Simon Josefsson  <jas@extundo.com>
84476
84477         * tests/test-iconvme.c: New file.
84478
84479 2005-08-10  Simon Josefsson  <jas@extundo.com>
84480
84481         * m4/strnlen.m4: New file.
84482
84483         * m4/strndup.m4: Don't check for strnlen declaration, done in
84484         strnlen.m4.
84485
84486 2005-08-10  Simon Josefsson  <jas@extundo.com>
84487
84488         * lib/strndup.c: Use strnlen.h.
84489
84490         * lib/strnlen.h: New file.
84491
84492 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84493
84494         * README: Typos.
84495
84496 2005-08-02  Simon Josefsson  <jas@extundo.com>
84497
84498         * modules/readline: New file.
84499
84500 2005-08-02  Simon Josefsson  <jas@extundo.com>
84501
84502         * modules/getdelim: New file.
84503
84504         * modules/getline: Rewrite, don't use getndelim2.
84505
84506 2005-08-02  Simon Josefsson  <jas@extundo.com>
84507
84508         * m4/getline.m4: Separate out getdelim stuff into separate module.
84509
84510         * m4/getdelim.m4: New file.
84511
84512 2005-08-02  Simon Josefsson  <jas@extundo.com>
84513
84514         * lib/getline.h, getline.c: Rewrite.
84515
84516         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
84517
84518 2005-07-31  Bruno Haible  <bruno@clisp.org>
84519
84520         * lib/lock.h (gl_lock_initializer): New macro.
84521         (gl_lock_define_initialized): Use it.
84522         (gl_rwlock_initializer): New macro.
84523         (gl_rwlock_define_initialized): Use it.
84524         (gl_recursive_lock_initializer): New macro.
84525         (gl_recursive_lock_define_initialized): Use it.
84526
84527 2005-07-30  Karl Berry  <karl@gnu.org>
84528
84529         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
84530         Report from Ben Pfaff, regarding getopt.
84531
84532 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
84533
84534         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
84535         normal way.
84536         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
84537         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
84538         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
84539         (gl_GETOPT): Use the new macros.  Most of the implementation
84540         is moved to the new macros.  This is for programs like Emacs
84541         that don't want all the functionality of gl_GETOPT.
84542
84543 2005-07-26  Bruno Haible  <bruno@clisp.org>
84544
84545         * m4/lock.m4: Update from GNU gettext.
84546
84547 2005-07-26  Bruno Haible  <bruno@clisp.org>
84548
84549         * lib/lock.h: Update from GNU gettext.
84550         * lib/lock.c: Update from GNU gettext.
84551
84552 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
84553
84554         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
84555         obsolescent AC_TRY_RUN.  Include the default includes files, for
84556         'exit'.
84557
84558 2005-07-24  Bruno Haible  <bruno@clisp.org>
84559
84560         * modules/visibility: New file.
84561         * MODULES.html.sh (Misc): Add visibility.
84562
84563 2005-07-24  Bruno Haible  <bruno@clisp.org>
84564
84565         * m4/visibility.m4: New file.
84566
84567 2005-07-24  Bruno Haible  <bruno@clisp.org>
84568
84569         * doc/visibility.texi: New file.
84570
84571 2005-07-22  Bruno Haible  <bruno@clisp.org>
84572
84573         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
84574         $(ALLOCA_H), redundant through BUILT_SOURCES.
84575         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
84576         redundant through BUILT_SOURCES.
84577         * modules/byteswap (Makefile.am): Remove explicit dependency on
84578         $(BYTESWAP_H), redundant through BUILT_SOURCES.
84579         * modules/fnmatch (Makefile.am): Remove explicit dependency on
84580         $(FNMATCH_H), redundant through BUILT_SOURCES.
84581         * modules/getopt (Makefile.am): Remove explicit dependency on
84582         $(GETOPT_H), redundant through BUILT_SOURCES.
84583         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
84584         redundant through BUILT_SOURCES.
84585         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
84586         redundant through BUILT_SOURCES.
84587         * modules/stdbool (Makefile.am): Remove explicit dependency on
84588         $(STDBOOL_H), redundant through BUILT_SOURCES.
84589         * modules/stdint (Makefile.am): Remove explicit dependency on
84590         $(STDINT_H), redundant through BUILT_SOURCES.
84591         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
84592         Remove explicit dependency on $(SYSEXITS_H).
84593         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
84594
84595 2005-07-18  Simon Josefsson  <jas@extundo.com>
84596
84597         * lib/check-version.c (check_version): Accept identical versions too.
84598
84599 2005-07-18  Bruno Haible  <bruno@clisp.org>
84600
84601         * modules/lock: New file.
84602         * MODULES.html.sh (Multithreading): New section.
84603
84604 2005-07-18  Bruno Haible  <bruno@clisp.org>
84605
84606         * m4/lock.m4: New file, from GNU gettext.
84607
84608 2005-07-18  Bruno Haible  <bruno@clisp.org>
84609
84610         * lib/lock.h: New file, from GNU gettext.
84611         * lib/lock.c: New file, from GNU gettext.
84612
84613 2005-07-18  Bruno Haible  <bruno@clisp.org>
84614
84615         * lib/lock.h (gl_once_t): New type.
84616         (gl_once_define, gl_once): New macros.
84617         * lib/lock.c (fresh_once): New variable.
84618         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
84619         functions.
84620
84621 2005-07-16  Simon Josefsson  <jas@extundo.com>
84622
84623         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
84624         workaround, suggested by Bruno.
84625
84626 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84627
84628         * modules/xalloc (Depends-on): Add xalloc-die.
84629         * modules/xvasprintf (Depends-on): Add xalloc-die.
84630
84631 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
84632
84633         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
84634         with a minor change.
84635
84636 2005-07-15  Bruno Haible  <bruno@clisp.org>
84637
84638         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
84639         When using lib/poll.c, define poll as rpl_poll.
84640
84641 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
84642
84643         * modules/argp (Depends-on): Remove unlocked-io.
84644
84645 2005-07-14  Derek Price  <derek@ximbiot.com>
84646
84647         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
84648         for glob symlink bug.
84649
84650 2005-07-14  Bruno Haible  <bruno@clisp.org>
84651
84652         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
84653         Instead, test for *_unlocked function declarations directly.
84654
84655 2005-07-11  Simon Josefsson  <jas@extundo.com>
84656
84657         * modules/size_max: New file.
84658
84659         * modules/xsize: Depend on size_max module for size_max.m4.
84660
84661 2005-07-11  Simon Josefsson  <jas@extundo.com>
84662
84663         * lib/size_max.h: New file.
84664
84665 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
84666
84667         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
84668         copyright symbol and the year.
84669         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
84670         (version_etc_va): Use parameterized copyright notice.
84671         Reword to conform to the current GNU coding standards.
84672
84673 2005-07-11  Karl Berry  <karl@gnu.org>
84674
84675         * doc/gnulib.texi (Quoting): new node.
84676         (Initial import): more info, from Patrice.
84677
84678 2005-07-11  Bruno Haible  <bruno@clisp.org>
84679
84680         * gnulib-tool (func_usage): Document option --avoid.
84681         (Command line options): Handle --avoid.
84682         (func_acceptable): New function.
84683         (func_modules_transitive_closure): Use it.
84684
84685 2005-07-11  Bruno Haible  <bruno@clisp.org>
84686
84687         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
84688         Reported by Jim Meyering.
84689
84690 2005-07-10  Bruno Haible  <bruno@clisp.org>
84691
84692         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
84693         Needed when size_t is smaller than 'unsigned int'.
84694         Reported by Paul Eggert.
84695
84696 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84697
84698         * modules/argp (Depends-on): Add unlocked-io
84699
84700 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
84701
84702         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
84703         block of defines.
84704
84705 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
84706
84707         * config/srclist.txt: Comment out regcomp.c, since we have a porting
84708         fix now.
84709
84710 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
84711         and Paul Eggert  <eggert@cs.ucla.edu>
84712
84713         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
84714         in wint_t, not wchar_t.  Remove now-unnecessary cast.
84715
84716 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84717
84718         * modules/regex (Files): Add lib/regex_internal.c,
84719         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
84720         (Depends-on): Add extensions.
84721         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
84722
84723 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84724
84725         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
84726         pathconf.
84727         * m4/same.m4 (gl_SAME): Likewise.
84728         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
84729
84730         * m4/regex.m4: Adjust to new libc regex implementation.
84731         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
84732         all the .c and .h parts of (the new) regex.
84733         Quote the m4 stuff better.
84734         Check for RE_ICASE bug of old gnulib.
84735         Check for REG_STARTEND of recent libc.
84736         Rename local variables from jm_* to gl_*.
84737         Quote operand of "test -f".
84738         Say "recent enough" version of libc, not "version 2".
84739         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
84740         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
84741         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
84742         Remove check for btowc, isascii.
84743         Require AM_LANGINFO_CODESET.
84744
84745 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84746
84747         * lib/regex.c, regex.h: Sync from libc.
84748         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
84749         * lib/regexec.c:
84750         New files, synced from libc, except that regex_internal.h
84751         currently has a small porting fix.
84752
84753 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
84754
84755         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
84756         regex_internal.c, regexec.c.
84757         Add regex_internal.h too, but as a comment, since the libc version
84758         is currently broken in gnulib mode.
84759
84760 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
84761
84762         Support programs like Emacs that use gnulib but not gettext.
84763         * MODULES.html.sh (Internationalization functions): Add gettext-h.
84764         * modules/gettext-h: New file.
84765         * modules/gettext (Files): Remove lib/gettext.h.
84766         (Depends-on): Add gettext-h.
84767         (Makefile.am): Remove lib_SOURCES.
84768         * modules/argmatch, modules/c-stack, modules/closeout:
84769         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
84770         * modules/execute, modules/file-type, modules/getaddrinfo:
84771         * modules/getopt, modules/human, modules/javacomp:
84772         * modules/javaexec, modules/mkdir-p, modules/obstack:
84773         * modules/openat, modules/pagealign_alloc, modules/pipe:
84774         * modules/quotearg, modules/regex, modules/rpmatch:
84775         * modules/unicodeio, modules/userspec, modules/version-etc:
84776         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
84777         * modules/xsetenv:
84778         Depend on gettext-h, not gettext.
84779
84780 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
84781
84782         * gnulib-tool (func_import): Add support for 'public domain' license.
84783         * modules/alloca, modules/atexit, modules/memmove:
84784         Now public domain, not GPL.
84785         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
84786         * modules/realloc, modules/strerror, modules/strtod:
84787         Now LGPL, not GPL.
84788
84789 2005-07-05  Bruno Haible  <bruno@clisp.org>
84790
84791         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
84792         autoconf CVS. Needed for mingw.
84793
84794 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84795
84796         Remove the dependency of the strftime module on the tzset module.
84797         * modules/strftime (Depends-on): Remove dependency on tzset.
84798
84799 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84800
84801         Remove the dependency of the strftime module on the tzset module.
84802         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
84803         gl_FUNC_TZSET_CLOBBER.
84804
84805 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
84806
84807         Remove the dependency of the strftime module on the tzset module.
84808         * lib/strftime.c (my_strftime)
84809         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
84810         Copy the input structure, to work around some of the bug with
84811         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
84812         Solaris releases, you should also use the tzset module, but we won't
84813         require it as a dependency any more since we don't want LGPLed code
84814         to depend on GPLed code.
84815
84816 2005-07-02  Jim Meyering  <jim@meyering.net>
84817
84818         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
84819         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
84820         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
84821         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
84822
84823 2005-07-02  Jim Meyering  <jim@meyering.net>
84824
84825         * lib/backupfile.c (backup_args): Change a `0' to NULL.
84826
84827 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
84828
84829         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
84830         declares only 'struct timespec;' (!).
84831
84832 2005-07-01  Jim Meyering  <jim@meyering.net>
84833
84834         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
84835         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
84836         * lib/save-cwd.c, tempname.c:
84837         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84838         and don't include <sys/file.h>).
84839
84840 2005-06-29  Jim Meyering  <jim@meyering.net>
84841
84842         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
84843         type name.  Use the variable name instead.
84844         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
84845         Likewise.
84846
84847 2005-06-28  Simon Josefsson  <jas@extundo.com>
84848
84849         * modules/check-version (Files): Add check-version.m4.
84850
84851 2005-06-28  Simon Josefsson  <jas@extundo.com>
84852
84853         * m4/check-version.m4: New file, suggested by Jim Meyering
84854         <jim@meyering.net>.
84855
84856 2005-06-28  Simon Josefsson  <jas@extundo.com>
84857
84858         * lib/check-version.h, lib/check-version.c: New files.
84859
84860 2005-06-28  Simon Josefsson  <jas@extundo.com>
84861
84862         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
84863         collision with global variable.  Better indentation.  Don't
84864         increment buffer pointer beyond buffer end.  Based on comments
84865         from Paul Eggert <eggert@cs.ucla.edu>.
84866
84867         * lib/base64.h: Indent.
84868
84869 2005-06-28  Simon Josefsson  <jas@extundo.com>
84870
84871         * doc/gnulib.texi (Library version handling): New section.
84872
84873 2005-06-28  Jim Meyering  <jim@meyering.net>
84874
84875         * check-module (find_included_lib_files): Hard-code another
84876         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
84877         but modules/fts-lgpl (correctly) does not list those files.
84878
84879         * modules/canonicalize (Files): Add lib/pathmax.h.
84880
84881 2005-06-25  Simon Josefsson  <jas@extundo.com>
84882
84883         * modules/check-version: New file.
84884
84885 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
84886
84887         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
84888         initializer of struct addrinfo, as an indication that we don't
84889         care how many members the structure has.
84890
84891 2005-06-24  Derek Price  <derek@ximbiot.com>
84892         and Bruno Haible  <bruno@clisp.org>
84893
84894         Remove stat module & update lstat.
84895         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
84896         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84897         * m4/stat.m4: Remove this file.
84898
84899 2005-06-24  Derek Price  <derek@ximbiot.com>
84900         and Bruno Haible  <bruno@clisp.org>
84901
84902         Remove stat module & update lstat.
84903         * lib/stat.c: Remove this file...
84904         (slash_aware_lstat): ...moving this content and its support...
84905         * lib/lstat.c (rpl_lstat): ...into here.
84906         * lib/lstat.h: New file.
84907
84908 2005-06-24  Derek Price  <derek@ximbiot.com>
84909         and Bruno Haible  <bruno@clisp.org>
84910
84911         Remove stat module & update lstat.
84912         * config/srclist.txt (libc sources): Remove stat.
84913
84914 2005-06-24  Derek Price  <derek@ximbiot.com>
84915         and Bruno Haible  <bruno@clisp.org>
84916
84917         Remove stat module & update lstat.
84918         * MODULES.html.sh (stat): Remove.
84919         * MODULES.html: Regenerated.
84920         * modules/lstat (Description): Correct function name.
84921         (Files): Add "lstat.h".
84922         (Depends-on): Remove stat, add xalloc, stat-macros.
84923         * modules/stat: Remove this file.
84924         (Include): Add "lstat.h", remove <sys/stat.h>.
84925
84926 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84927
84928         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
84929         (ranged_convert): Don't save conversion in a temporary struct.
84930         This causes a warning with GCC 4.0.0, and anyway in the typical
84931         case it's not worth the extra 100 bytes or so of code.
84932         (ranged_convert, __mktime_internal): When calling a function via a
84933         pointer P, use P () rather than (*P) (), as we now assume C89 or
84934         better.
84935
84936 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84937
84938         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
84939         "who -r" failed to give output.  Problem reported by Tim Waugh.
84940
84941         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
84942         (xcalloc): Use it to avoid needless tests.
84943         Problem reported by Jim Meyering.
84944
84945 2005-06-20  Derek Price  <derek@ximbiot.com>
84946
84947         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
84948         unnecessary for Autoconfs > 2.59c.
84949
84950 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84951
84952         * lib/argp.h (__option_is_short): Check upper limit of
84953         __key. Isprint() requires its argument to have the value
84954         of an unsigned char or EOF.
84955
84956 2005-06-16  Jim Meyering  <jim@meyering.net>
84957
84958         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
84959         when either N or S is zero.
84960
84961 2005-06-16  Derek Price  <derek@ximbiot.com>
84962
84963         * m4/bison.m4: Declare YACC & YFLAGS precious.
84964
84965 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
84966
84967         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
84968         multibyte string or pattern, fall back on unibyte matching.
84969         Problem reported by James Youngman.
84970
84971 2005-06-08  Bruno Haible  <bruno@clisp.org>
84972
84973         * modules/csharpcomp: New file.
84974         * MODULES.html.sh (C#): Add csharpcomp.
84975
84976 2005-06-08  Bruno Haible  <bruno@clisp.org>
84977
84978         * m4/csharpcomp.m4: New file, from GNU gettext.
84979
84980 2005-06-08  Bruno Haible  <bruno@clisp.org>
84981
84982         * lib/csharpcomp.h: New file, from GNU gettext.
84983         * lib/csharpcomp.c: New file, from GNU gettext.
84984         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84985
84986 2005-06-08  Bruno Haible  <bruno@clisp.org>
84987
84988         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84989         warning on mingw.
84990
84991 2005-06-07  Derek Price  <derek@ximbiot.com>
84992
84993         Sync from CVS.
84994         * lib/glob_.h: Indent nested #ifdef.
84995
84996 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84997
84998         Sync from coreutils.
84999         Use "file name" when talking about file names, instead of "filename"
85000         or "path", as per the GNU coding standards.
85001         * lib/mkdir-p.c: Renamed from makepath.c.
85002         (make_dir_parents): Renamed from make_path.  All callers changed.
85003         * lib/mkdir-p.h: Likewise.  All includers changed.
85004         * lib/filenamecat.c: Renamed from path-concat.c.
85005         (file_name_concat): Renamed from path_concat.  All callers changed.
85006         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85007         * lib/filenamecat.h: Likewise.  All includers changed.
85008         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85009         in comments or local variable names.
85010         * lib/basename.c: Likewise.
85011         * lib/canonicalize.c, canonicalize.h: Likewise.
85012         * lib/dirname.c, dirname.h: Likewise.
85013         * lib/euidaccess.c: Likewise.
85014         * lib/exclude.c: Likewise
85015         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85016         * lib/fsusage.c, fsuage.h: Likewise.
85017         * lib/fts.c, fts_.h: Likewise.
85018         * lib/getcwd.c: Likewise.
85019         * lib/getloadavg.c: Likewise.
85020         * lib/mkstemp.c: Likewise.
85021         * lib/mountlist.c, mountlist.h: Likewise.
85022         * lib/openat.c, openat.h: Likewise.
85023         * lib/readlink-stub.c: Likewise.
85024         * lib/readutmp.c, readutmp.h: Likewise.
85025         * lib/rename.c: Likewise.
85026         * lib/rmdir.c: Likewise.
85027         * lib/same.c: Likewise.
85028         * lib/savedir.c: Likewise.
85029         * lib/stripslash.c: Likewise.
85030         * lib/tempname.c: Likewise.
85031         * lib/xreadlink.c: Likewise.
85032         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85033         All uses changed.
85034         * lib/exclude.h: Likewise.
85035
85036         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85037         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85038         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85039         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85040         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85041         files have been getting away with it for years (MORE/BSD 4.3
85042         is extinct now).
85043         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85044         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85045
85046         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85047         Define to 256, not 255, as per modern POSIX.
85048
85049 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85050
85051         Sync from coreutils.
85052         Use "file name" when talking about file names, instead of "filename"
85053         or "path", as per the GNU coding standards.
85054         * MODULES.html.sh: mkdir-p renamed from makepath.
85055         filenamecat renamed from path-concat.
85056         * modules/filenamecat: Renamed from modules/path-concat.
85057         (Files): filenamecat.h and filenamecat.c renamed from
85058         path-concat.h and path-concat.c.
85059         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85060         (Include): filenamecat.h, not path-concat.h.
85061         * modules/mkdir-p: Renamed from modules/makepath.
85062         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85063         makepath.c.
85064         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85065         (Include): mkdir-p.h, not makepath.h.
85066
85067 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85068
85069         Sync from coreutils.
85070         * m4/mkdir-p.m4: Renamed from makepath.m4.
85071         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85072         Rename files from makepath.c to mkdir-p.c, and from
85073         makepath.h to mkdir-p.h.
85074         * m4/filenamecat.m4: Renamed from path-concat.m4.
85075         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85076         Rename files from path-concat.c to filenamecat.c,
85077         and from path-concat.h to filenamecat.h.
85078         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85079         "file name" in local variables or comments.
85080         * m4/rename.m4: Likewise.
85081
85082 2005-06-01  Bruno Haible  <bruno@clisp.org>
85083
85084         * modules/csharpexec: New file.
85085         * MODULES.html.sh (C#): New section.
85086
85087 2005-06-01  Bruno Haible  <bruno@clisp.org>
85088
85089         * m4/csharp.m4: New file, from GNU gettext.
85090         * m4/csharpexec.m4: New file, from GNU gettext.
85091
85092 2005-06-01  Bruno Haible  <bruno@clisp.org>
85093
85094         * lib/csharpexec.h: New file, from GNU gettext.
85095         * lib/csharpexec.c: New file, from GNU gettext.
85096         * lib/csharpexec.sh.in: New file, from GNU gettext.
85097
85098 2005-05-31  Derek Price  <derek@ximbiot.com>
85099             Paul Eggert  <eggert@cs.ucla.edu>
85100
85101         Sync from cvs.
85102         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85103
85104 2005-05-31  Derek Price  <derek@ximbiot.com>
85105             Paul Eggert  <eggert@cs.ucla.edu>
85106
85107         Sync from cvs.
85108         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85109
85110 2005-05-29  Derek Price  <derek@ximbiot.com>
85111
85112         * config/srclist.txt (glob_.h, glob.c): Add these files.
85113
85114 2005-05-29  Derek Price  <derek@ximbiot.com>
85115
85116         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85117         * modules/glob: New file.
85118         * modules/getlogin_r: Add link to POSIX spec in description.
85119
85120 2005-05-29  Derek Price  <derek@ximbiot.com>
85121             Paul Eggert  <eggert@cs.ucla.edu>
85122
85123         * m4/glob.m4: New file.
85124
85125 2005-05-29  Derek Price  <derek@ximbiot.com>
85126             Paul Eggert  <eggert@cs.ucla.edu>
85127
85128         * lib/glob_.h, lib/glob.c: New files.
85129
85130 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85131
85132         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85133         * modules/fts-lgpl (Depends-on): Remove gettext.
85134
85135 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85136
85137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85138         and don't require gt_INTTYPES_PRI.
85139
85140 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85141
85142         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85143
85144         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85145         the configuration hassle isn't worth it.
85146         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85147         (LONGEST_MODIFIER, PRIuMAX): Remove.
85148
85149 2005-05-27  Bruno Haible  <bruno@clisp.org>
85150
85151         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85152
85153 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85154
85155         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85156         _POSIX_PTHREAD_SEMANTICS for Solaris.
85157
85158 2005-05-25  Derek Price  <derek@ximbiot.com>
85159
85160         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85161
85162 2005-05-25  Derek Price  <derek@ximbiot.com>
85163             Paul Eggert  <eggert@cs.ucla.edu>
85164
85165         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85166         * lib/getlogin_r.c, getlogin_r.h: New files.
85167
85168 2005-05-25  Bruno Haible  <bruno@clisp.org>
85169             Derek Price  <derek@ximbiot.com>
85170
85171         * lib/getlogin_r.h: Simplify API documentation.
85172
85173 2005-05-23  Derek Price  <derek@ximbiot.com>
85174
85175         * modules/minmax (Files): Add m4/minmax.m4.
85176         (configure.ac): Add gl_MINMAX.
85177
85178 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85179
85180         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85181         so that unistd-safer.h (GPL'ed code) need not be included.
85182
85183 2005-05-22  Bruno Haible  <bruno@clisp.org>
85184
85185         * m4/minmax.m4: New file.
85186         Based on a patch by Derek Price <derek@ximbiot.com>.
85187
85188 2005-05-22  Bruno Haible  <bruno@clisp.org>
85189
85190         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85191         (INT64_MIN): Fix definition.
85192         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85193
85194         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85195         NEED_SIGNED_INT_TYPES.
85196
85197         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85198         HAVE_SYSTEM_INTTYPES.
85199
85200 2005-05-22  Bruno Haible  <bruno@clisp.org>
85201
85202         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85203         Also include <sys/param.h> if it defines MIN, MAX.
85204         Based on a patch by Derek Price <derek@ximbiot.com>.
85205
85206 2005-05-21  Jim Meyering  <jim@meyering.net>
85207
85208         * modules/fts (Files): Add m4/inttypes-pri.m4.
85209         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85210
85211 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85212
85213         New fts module.
85214         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85215         (setup_dir, free_dir): New functions.
85216         (enter_dir, leave_dir): Define trivial
85217         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85218         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85219         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85220         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85221         Move to fts-cycle.c.
85222         (fts_open): Use setup_dir.
85223         (fts_close): Use free_dir.
85224         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85225         This adds a label and some gotos, but the alternatives were messier.
85226         Check for memory allocation failure when entering a dir.
85227         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85228         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85229         (FTS): New member fts_cycle, that is a union that contains the
85230         old active_dir_ht and cycle_state.  All uses changed to mention
85231         fts_cycle.ht and fts_cycle.state.
85232         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85233         fts.c, with the following changes:
85234         (setup_dir, free_dir): New functions.
85235         (enter_dir): Now returns bool.  Return true if successful, false
85236         if memory exhausted.  All callers changed.
85237         Do not bother partly cleaning up on
85238         memory allocation failure; that is free_dir's job.
85239         However, free ad if hash_insert fails, to avoid memory leak.
85240         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85241         fts->fts_options to see which union member to use.
85242
85243 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85244
85245         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85246         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85247
85248 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85249
85250         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85251
85252 2005-05-20  Jim Meyering  <jim@meyering.net>
85253
85254         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85255         Now a macro, to pacify GCC.
85256
85257 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85258
85259         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85260         of -1.
85261
85262 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85263
85264         * lib/chown.c (rpl_chown): Return -1 on failure.
85265
85266 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85267
85268         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85269         Don't check for stddef.h.
85270         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85271         don't use its results.
85272         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85273         since we include them unconditionally.  Don't require
85274         AM_STDBOOL_H, since stdbool is a prerequisite.
85275         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85276         since we assume C89 or better.
85277         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85278         as we don't use their results.
85279         Don't check for fchdir, memmove, memset, strrchr, as we use
85280         them unconditionally.
85281         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85282         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85283
85284 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85285
85286         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85287         Include <stddef.h> unconditionally, since we assume C89 now.
85288         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85289         * lib/fts.c: Include fts_.h first, to check interface.
85290         Do not include intprops.h; no longer needed.
85291         Include cycle-check.h and hash.h, since fts_.h no longer does.
85292         Remove unnecessary casts of closedir to void.
85293         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85294         decide whether to decrement nlinks.
85295         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85296         (FTS): Use struct hash_table * instead of Hash_table, so that
85297         we no longer need to include hash.h here.
85298
85299 2005-05-18  Jim Meyering  <jim@meyering.net>
85300
85301         * modules/dirfd (License): Change to LGPL.  Most of the code
85302         is already in the public domain.
85303
85304 2005-05-18  Jim Meyering  <jim@meyering.net>
85305
85306         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85307         Reported by Yoann Vandoorselaere.
85308
85309 2005-05-17  Jim Meyering  <jim@meyering.net>
85310
85311         * m4/fts.m4: New file, from coreutils.
85312
85313 2005-05-17  Jim Meyering  <jim@meyering.net>
85314
85315         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85316
85317 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85318
85319         Sync from coreutils.
85320         * m4/unlinkdir.m4: New file.
85321
85322 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85323
85324         Sync from coreutils.
85325         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85326         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85327         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85328         White space changes only.
85329         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85330         special.
85331         * lib/yesno.c: Include getline.h, not ctype.h.
85332         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85333         Use getline to remove arbitrary restriction on response length.
85334
85335 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85336
85337         * config/srclist-update: Spell out "Street" in FSF postal
85338         mail address; this is the style the FSF seems to prefer.
85339
85340         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85341         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85342         this updates FSF postal mail address.
85343
85344         Sync from coreutils.
85345         * modules/unlinkdir: New file.
85346         * modules/yesno (Depends-on): Add getline.
85347         * MODULES.html.sh (File system functions): Add unlinkdir.
85348
85349 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85350
85351         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85352         lib/strsep.h:
85353         Change the initial comment to refer to GPL, not LGPL.
85354         gnulib-tool will change it to LGPL as needed.
85355
85356         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85357         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85358         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85359         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85360         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85361         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85362         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85363         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85364         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85365         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85366         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85367         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85368         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85369         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85370         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85371         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85372         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85373         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85374         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85375         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85376         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85377         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85378         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85379         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85380         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85381         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85382         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85383         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85384         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85385         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85386         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85387         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85388         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85389         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85390         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85391         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85392         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85393         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85394         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85395         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85396         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85397         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85398         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85399         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85400         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85401         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85402         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85403         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85404         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85405         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85406         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85407         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85408         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85409         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85410         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85411         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85412         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85413         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85414         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85415         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85416         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85417         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85418         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85419         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85420         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85421         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85422         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85423         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85424         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85425         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85426         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85427         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85428         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85429         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85430         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85431         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85432         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85433         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85434         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85435         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85436         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85437         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85438         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85439         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85440         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85441         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85442         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85443         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85444         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85445         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85446         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85447         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85448         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85449         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85450         lib/yesno.c, lib/yesno.h:
85451         Update FSF postal mail address.
85452
85453 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85454
85455         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85456         tests/test-memmem.c, tests/test-stpncpy.c:
85457         Update FSF postal mail address.
85458
85459 2005-05-13  Bruno Haible  <bruno@clisp.org>
85460
85461         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85462         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85463         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85464         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85465         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85466         Add support for 64-bit integers in the MSVC compiler.
85467
85468 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85469
85470         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85471
85472 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85473
85474         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85475
85476 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85477
85478         * doc/getdate.texi (General date syntax): Don't say that date
85479         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85480         Problem reported by Nic Ferrier.
85481
85482 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85483
85484         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85485         specified in ai_socktype. Fix invalid ai_protocol
85486         check. ai_protocol is usually set to 0 or depending on
85487         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85488         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85489         ai_socktype / ai_protocol in the returned addrinfo structure.
85490
85491 2005-05-10  Simon Josefsson  <jas@extundo.com>
85492
85493         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85494         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85495
85496 2005-05-10  Karl Berry  <karl@gnu.org>
85497
85498         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85499         (from http://www.gnu.org/licenses).
85500         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85501         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85502         fdl.texi suffices.
85503
85504 2005-05-10  Karl Berry  <karl@gnu.org>
85505
85506         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
85507         (COPYING.DOC): remove.
85508
85509         * config/srclist-update: new FSF address.
85510
85511 2005-05-10  Derek Price  <derek@ximbiot.com>
85512
85513         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
85514         possible.
85515
85516 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85517             Bruno Haible  <bruno@clisp.org>
85518
85519         * modules/inet_ntop: New file.
85520         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
85521         inet_ntop.
85522
85523 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85524             Bruno Haible  <bruno@clisp.org>
85525
85526         * m4/inet_ntop.m4: New file.
85527
85528 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85529             Bruno Haible  <bruno@clisp.org>
85530
85531         * lib/inet_ntop.h: New file.
85532         * lib/inet_ntop.c: New file, from glibc with modifications.
85533
85534 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
85535
85536         * modules/time_r (License): Change to LGPL.
85537         * modules/extensions (License): Change to LGPL.  Actually,
85538         the license is more permissive than that, but currently gnulib-tool
85539         doesn't know how to handle more-permissive licenses.
85540
85541         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
85542         Problem reported by Dave Love.
85543
85544 2005-05-08  Jim Meyering  <jim@meyering.net>
85545
85546         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
85547         blank.
85548
85549 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
85550
85551         * modules/argmatch (Depends-on): Add stdbool.
85552         * modules/backupfile (Depends-on): Likewise.
85553         * modules/chdir-long (Depends-on): Likewise.
85554         * modules/closeout (Depends-on): Likewise.
85555         * modules/cycle-check (Depends-on): Likewise.
85556         * modules/dirname (Depends-on): Likewise.
85557         * modules/fnmatch (Depends-on): Likewise.
85558         * modules/fsusage (Depends-on): Likewise.
85559         * modules/fwriteerror (Depends-on): Likewise.
85560         * modules/getcwd (Depends-on): Likewise.
85561         * modules/getloadavg (Depends-on): Likewise.
85562         * modules/hard-locale (Depends-on): Likewise.
85563         * modules/makepath (Depends-on): Likewise.
85564         * modules/mountlist (Depends-on): Likewise.
85565         * modules/nanosleep (Depends-on): Likewise.
85566         * modules/posixtm (Depends-on): Likewise.
85567         * modules/quotearg (Depends-on): Likewise.
85568         * modules/readtokens (Depends-on): Likewise.
85569         * modules/readtokens0 (Depends-on): Likewise.
85570         * modules/readutmp (Depends-on): Likewise.
85571         * modules/save-cwd (Depends-on): Likewise.
85572         * modules/strftime (Depends-on): Likewise.
85573         * modules/userspec (Depends-on): Likewise.
85574         * modules/utimecmp (Depends-on): Likewise.
85575         * modules/xgetcwd (Depends-on): Likewise.
85576         * modules/xnanosleep (Depends-on): Likewise.
85577         * modules/xstrtod (Depends-on): Likewise.
85578         * modules/yesno (Depends-on): Likewise.
85579
85580 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
85581
85582         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
85583         needless checks.
85584
85585 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85586
85587         Merge from coreutils.  Among other things,
85588         add bulletproofing for cases where stdin, stdout, or stderr are closed.
85589         * lib/fd-safer.c: New file.
85590         * lib/fcntl-safer.h, open-safer.c: Remove.
85591         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
85592         * lib/dup-safer.c: Include unistd-safer.h first.
85593         Don't include errno.h.
85594         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
85595         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
85596         * lib/file-type.c: Rely on file-type.h change.
85597         * lib/getloadavg.c: Include unistd-safer.h.
85598         (getloadavg): Use safer open.
85599         * lib/getusershell.c: Include "stdio-safer.h".
85600         (getusershell): Use safer fopen.
85601         * lib/long-options.c (long_options): Use NULL rather than 0.
85602         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
85603         'free'.
85604         * lib/modechange.c: Likewise.
85605         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
85606         (MODE_DONE): New constant.
85607         (struct mode_change): Remove 'next' member.
85608         (make_node_op_equals): New function; like the old one of the
85609         same name, except it allocates an array.
85610         (mode_compile, mode_create_from_ref): Use it.
85611         (mode_compile): Allocate result as an array, not a linked list.
85612         Parse octal string ourself, so that we catch mistakes like "+0".
85613         (mode_adjust): Arg is an array, not a linked list.
85614         * lib/modechange.c: Include stat-macros.h, xalloc.h.
85615         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
85616         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
85617         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
85618         Remove.  This is now stat-macros.h's job.
85619         (talloc): Remove.  All callers replaced by xalloc, so that
85620         our invokers don't have to worry about reporting memory failures.
85621         (make_node_op_equals): Remove.
85622         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85623         New constants.
85624         (struct mode_change): Moved here from modechange.h.
85625         (mode_append_entry): Remove.
85626         (mode_compile): Remove MASKED_OPS arg, since it encouraged
85627         apps to have incorrect behavior.  Use simpler algorithm for head
85628         and tail.  Don't futz with umask; that's now the job of mode_adjust.
85629         Detect more invalid usages rather than having somewhat-random behavior.
85630         Don't insert an "a=" action, as that leads to incorrect behavior.
85631         (mode_compile, mode_create_from_ref): Return NULL on error instead
85632         of an enum, since now there's only one way to have an error.  All
85633         callers changed.
85634         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
85635         at the correct time.  Simplify calculation of "+u" and its ilk.
85636         Don't mishandle "+X".
85637         (mode_free): Remove "register" and localize decls.
85638         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
85639         (struct mode_change): Move to modechange.c; callers don't
85640         need to see this stuff.
85641         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
85642         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
85643         (mode_change, mode_adjust): Reflect the new signatures noted above.
85644         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
85645         that might redefine system include files.
85646         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
85647         (my_usleep): Use NULL rather than (void *) 0.
85648         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
85649         Use siginterrupt to specify that system calls should be interrupted.
85650         (rpl_nanosleep): Move initialization of suspended closer to call of
85651         my_usleep.
85652         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
85653         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
85654         (desirable_utmp_entry): New function.
85655         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
85656         using x2nrealloc, to simplify logic.
85657         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
85658         size calculation.  Do not assume utmp file is a regular file.
85659         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
85660         (READ_UTMP_CHECK_PIDS): New constant.
85661         * lib/save-cwd.c: Include unistd-safer.h.
85662         (save_cwd): Use fd_safer.
85663         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
85664         [!_LIBC] Include "stat-macros.h" instead.
85665         * lib/unistd-safer.h (fd_safer): New decl.
85666
85667 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85668
85669         * modules/getloadavg (Depends-on): Add unistd-safer.
85670         * modules/getusershell (Depends-on): Add stdio-safer.
85671         * modules/lstat (Depends-on): Remove xalloc.
85672         * modules/mkstemp (Depends-on): Add stat-macros.
85673         * modules/modechange (Depends-on): Remove xstrtol.
85674         Add stat-macros, xalloc.
85675         * modules/save-cwd (Depends-on): Add unistd-safer.
85676         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
85677         * modules/unistd-safer (Files): Add lib/fd-safer.c
85678         (Makefile.am): Remove lib_SOURCES.
85679
85680         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
85681         Remove fcntl-safer; unistd-safer supersedes it.
85682
85683 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85684
85685         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
85686         AC_HEADER_STAT.
85687         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
85688         (gl_PREREQ_CHOWN): Remove.
85689         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
85690         it.  Don't require AC_HEADER_STAT.
85691         (gl_PREREQ_LSTAT): Remove.
85692         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
85693         Don't require AC_HEADER_STAT.
85694         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
85695         (gl_PREREQ_RMDIR): Remove.
85696         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
85697         mention stat-macros.h or AC_HEADER_STAT, since we'll make
85698         the stat-macros module a prerequisite.
85699         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
85700         * m4/filemode.m4 (gl_FILEMODE): Likewise.
85701         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
85702         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
85703         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
85704         variable names.
85705         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
85706         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
85707         variable prefixes.
85708         * m4/fcntl-safer.m4: Remove.
85709         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
85710         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
85711         Invoke gl_PREREQ_FD_SAFER.
85712         (gl_PREREQ_FD_SAFER): New macro.
85713         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
85714         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
85715         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
85716         Remove duplicate call to AC_LIBOBJ(readutmp).
85717         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
85718
85719         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
85720         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
85721
85722 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
85723
85724         * MODULES.html.sh (Misc): Add byteswap.
85725
85726 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85727
85728         * modules/getcwd (Depends-on): Add extensions.
85729         * modules/openat (Depends-on): Likewise.
85730
85731 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85732
85733         * modules/byteswap: New file.
85734
85735 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85736
85737         * m4/byteswap.m4: New file.
85738
85739 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
85740
85741         * lib/byteswap_.h: New file.
85742
85743 2005-04-25  Karl Berry  <karl@gnu.org>
85744
85745         * m4/gettext.m4: Update from GNU gettext 0.14.4.
85746
85747 2005-04-25  Albert Chin  <china@thewrittenword.com>
85748
85749         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
85750         Toolkit C bug.
85751
85752 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
85753
85754         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
85755         (func_ln_if_changed): Remove forcibly for no error message
85756         in case file does not exist.
85757
85758 2005-04-19  Simon Josefsson  <jas@extundo.com>
85759
85760         * gnulib-tool (Options): Make --symlink mean --symbolic.
85761
85762 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
85763
85764         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
85765
85766 2005-04-16  Simon Josefsson  <jas@extundo.com>
85767
85768         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
85769
85770 2005-04-15  Simon Josefsson  <jas@extundo.com>
85771
85772         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
85773
85774 2005-04-15  Simon Josefsson  <jas@extundo.com>
85775
85776         * gnulib-tool: Rename --symlink to --symbolic.
85777
85778 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
85779
85780         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
85781         symbolic links to files instead of copying/moving.  Add --aux-dir,
85782         specifying directory relative --dir where auxiliary build tools
85783         are placed.
85784
85785 2005-04-14  Bruno Haible  <bruno@clisp.org>
85786
85787         * modules/allocsa (License): Change to LGPL.
85788         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
85789
85790 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
85791
85792         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
85793         that "UTC +1 second" continues to work.  Problem reported
85794         by Dmitry V. Levin.
85795         (relunit_snumber): New rule.
85796         (relunit): Use it.
85797
85798 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
85799
85800         * lib/getdate.y (universal_time_zone_table): New constant.
85801         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
85802         universal_time_zone_table.
85803         (lookup_zone): Prefer universal_time_zone_table to
85804         local_time_zone_table, so that "GMT" time stamps are allowed in
85805         London during the summer.  Problem reported by Ian Abbott.
85806
85807 2005-04-12  Jim Meyering  <jim@meyering.net>
85808
85809         * lib/human.c (humblock): Set *options even when returning due to
85810         xstrtoumax conversion failure.  Thanks to a used-uninitialized
85811         warning from gcc-4.
85812
85813 2005-04-09  Jim Meyering  <jim@meyering.net>
85814
85815         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
85816         -Wuninitialized: initialize tm0.tm_year.
85817
85818 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
85819
85820         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
85821         count, since there's no maximum.  All uses changed.
85822         Add member dsts_seen.
85823         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
85824         not being INT_MAX.
85825         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
85826         Use pc_rels_seen to decide whether a date is absolute.
85827
85828         * lib/getdate.y (number): Don't overwrite year.
85829         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
85830         check.
85831
85832 2005-04-02  Simon Josefsson  <jas@extundo.com>
85833
85834         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
85835         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
85836
85837 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
85838
85839         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
85840         where no absolute path name can be longer than PATH_MAX.
85841
85842 2005-03-27  Jim Meyering  <jim@meyering.net>
85843
85844         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
85845
85846 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
85847
85848         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
85849         "one's complement" -> "ones' complement" in comment, as per Knuth.
85850         "value of type" -> "type or expression" in comment.
85851         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
85852
85853 2005-03-26  Jim Meyering  <jim@meyering.net>
85854
85855         Comment nits.
85856         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
85857         Correct typos: s/or/of/.
85858
85859 2005-03-26  Jim Meyering  <jim@meyering.net>
85860
85861         * modules/check-include-files: Move to ../ and rename to...
85862         * check-module: ...this.
85863
85864 2005-03-25  Jim Meyering  <jim@meyering.net>
85865
85866         * modules/xvasprintf (Files): Add xalloc.h.
85867
85868 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85869
85870         * modules/gettext (Files): config/config.rpath ->
85871         build-aux/config.rpath
85872         * modules/iconv (Files): Likewise.
85873         Problem reported by Oskar Liljeblad.
85874
85875 2005-03-23  Jim Meyering  <jim@meyering.net>
85876
85877         * modules/check-include-files: New script to check for
85878         missing dependencies, multiple includes, etc.
85879
85880         * modules/c-strtold (Depends-on): Add xalloc.
85881         * modules/c-strtod (Depends-on): Add xalloc.
85882         * modules/hash (Depends-on): Add xalloc.
85883         (Files): Remove lib/xalloc.h.
85884
85885         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
85886         * modules/userspec (Files): Add lib/inttostr.h.
85887
85888 2005-03-23  Jim Meyering  <jim@meyering.net>
85889
85890         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
85891
85892 2005-03-22  Jim Meyering  <jim@meyering.net>
85893
85894         * modules/stat-macros: New module.
85895         * modules/canonicalize, modules/euidaccess, modules/file-type,
85896         * modules/filemode, modules/lchown, modules/makepath,
85897         * modules/rmdir, modules/stat: Depend on new stat-macros module
85898         rather than listing lib/stat-macros.h manually.
85899         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85900
85901 2005-03-22  Jim Meyering  <jim@meyering.net>
85902
85903         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85904
85905 2005-03-22  Bruno Haible  <bruno@clisp.org>
85906
85907         * config/srclist.txt: Replace target directory 'config' with
85908         'build-aux'.
85909         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85910         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85911         ../build-aux/.
85912
85913 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85914
85915         * modules/chdir-long (Depends-on): Add mempcpy.
85916
85917         * modules/acl, modules/backupfile, modules/c-strtod,
85918         modules/c-strtold, modules/canon-host, modules/canonicalize,
85919         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85920         modules/exclude, modules/exitfail, modules/file-type,
85921         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
85922         modules/getdate, modules/getline, modules/getpagesize,
85923         modules/getpass, modules/getugroups, modules/group-member,
85924         modules/hard-locale, modules/hash, modules/human, modules/idcache,
85925         modules/inttostr, modules/long-options, modules/makepath,
85926         modules/md5, modules/memcasecmp, modules/memcoll,
85927         modules/modechange, modules/mountlist, modules/path-concat,
85928         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
85929         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
85930         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
85931         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
85932         modules/strftime, modules/strndup, modules/strverscmp,
85933         modules/timespec, modules/unlocked-io, modules/userspec,
85934         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
85935         modules/yesno:
85936         Remove lib_SOURCES line from Makefile.am section, as this is now
85937         done automatically by the corresponding Autoconf macro.
85938
85939 2005-03-21  Jim Meyering  <jim@meyering.net>
85940
85941         Changes imported from coreutils.
85942
85943         * lib/cycle-check.c: Don't include xalloc.h.
85944
85945         * lib/path-concat.c: Don't include assert.h.
85946         (path_concat): Remove assertion that would have triggered
85947         for ABASE starting with more than one slash.
85948         Reported by Andreas Schwab.
85949
85950         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
85951         properly when ABASE is an absolute file name.
85952         Correct the description of this function.
85953         Include <assert.h>.
85954         Add an assertion and a test driver.
85955         This fixes a bug introduced on 2004-07-02.
85956         Andreas Schwab reported the resulting failure of cp --parents:
85957         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
85958
85959 2005-03-21  Jim Meyering  <jim@meyering.net>
85960
85961         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
85962         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
85963
85964 2005-03-21  Jim Meyering  <jim@meyering.net>
85965         and  Paul Eggert  <eggert@cs.ucla.edu>
85966
85967         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
85968         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
85969         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
85970         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
85971         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
85972         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
85973         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
85974         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85975         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85976         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85977         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85978         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85979         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85980         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85981         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85982         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85983         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85984         for these modules.
85985
85986 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85987
85988         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85989         (which shouldn't happen), generate nothing instead of returning 0
85990         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85991
85992 2005-03-16  Bruno Haible  <bruno@clisp.org>
85993
85994         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85995         HAVE_LONGLONG_64BIT.
85996
85997 2005-03-16  Bruno Haible  <bruno@clisp.org>
85998
85999         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86000         HAVE_LONGLONG_64BIT.
86001
86002 2005-03-16  Bruno Haible  <bruno@clisp.org>
86003
86004         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86005         HAVE_LONGLONG_64BIT.
86006
86007 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86008
86009         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86010         reliably distinguish strftime failure from empty output on POSIX
86011         hosts.
86012
86013 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86014
86015         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86016         (iconv_string): Don't guess a size-zero buffer, as that might cause
86017         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86018         result would be 'too large', where 'too large' is (heuristically)
86019         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86020         overflow concerns.  This will prevent some unwanted malloc failures
86021         when the inputs are very large.
86022
86023 2005-03-15  Karl Berry  <karl@gnu.org>
86024
86025         * config/srclist.txt (config.rpath): from gettext.
86026         * config/config.rpath: update.
86027
86028 2005-03-15  Bruno Haible  <bruno@clisp.org>
86029
86030         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86031         to 'negate'.
86032
86033         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86034         variable.
86035
86036         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86037         results.
86038
86039 2005-03-14  Simon Josefsson  <jas@extundo.com>
86040
86041         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86042         <fx@gnu.org>.
86043
86044 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86045
86046         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86047         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86048         intprops.h.
86049         * lib/strtol.c: Likewise.
86050
86051 2005-03-14  Jim Meyering  <jim@meyering.net>
86052
86053         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86054         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86055         to be nonzero so that we (and caller) can detect the difference
86056         between a valid zero-length expansion and an error return, even
86057         when the underlying strftime fails before writing anything into
86058         that location.
86059
86060 2005-03-14  Bruno Haible  <bruno@clisp.org>
86061
86062         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86063         Update from GNU gettext 0.14.3.
86064
86065 2005-03-10  Jim Meyering  <jim@meyering.net>
86066
86067         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86068
86069 2005-03-10  Jim Meyering  <jim@meyering.net>
86070
86071         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86072         so that this module works on systems without fchdir.
86073
86074 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86075
86076         Factor int-properties macros into a single file, except for
86077         glibc-related files.
86078         * lib/intprops.h: New file.
86079         * lib/getloadavg.c: Include it instead of limits.h.
86080         (INT_STRLEN_BOUND): Remove.
86081         * lib/human.c: Include intprops.h.
86082         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86083         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86084         302/1000.
86085         * lib/inttostr.h: Include intprops.h instead of limits.h.
86086         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86087         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86088         for consistency with intprops.h.
86089         (time_t_is_integer, twos_complement_arithmetic): Use them.
86090         * lib/sig2str.h: Include <signal.h>, intprops.h.
86091         (INT_STRLEN_BOUND): Remove.
86092         * lib/strftime.c (TYPE_SIGNED): Remove.
86093         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86094         * lib/strtol.c: Adjust comments to match intprops.h.
86095         * lib/userspec.c: Include intprops.h.
86096         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86097         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86098         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86099         instead of rolling our own expressions.
86100         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86101
86102         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86103         instead of int.
86104         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86105         the right thing even if adding 1900 would overflow.  Similarly
86106         for tm_mon + 1 and tm_yday + 1.
86107         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86108         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86109         (DO_SIGNED_NUMBER): New macro.
86110         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86111
86112 2005-03-07  Bruno Haible  <bruno@clisp.org>
86113
86114         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86115
86116 2005-03-07  Bruno Haible  <bruno@clisp.org>
86117
86118         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86119
86120 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86121
86122         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86123         (func_import): Only replace files via --import when they have actually
86124         changed.
86125
86126 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86127
86128         * m4/mmap-anon.m4: New file.
86129         * m4/pagealign_alloc.m4: New file.
86130
86131 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86132             Bruno Haible  <bruno@clisp.org>
86133
86134         * modules/pagealign_alloc: New file.
86135         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86136
86137 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86138             Bruno Haible  <bruno@clisp.org>
86139
86140         * lib/pagealign_alloc.h: New file.
86141         * lib/pagealign_alloc.c: New file.
86142
86143 2005-03-03  Bruno Haible  <bruno@clisp.org>
86144
86145         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86146         Use an all-permissive copyright notice, recommended by RMS.
86147
86148 2005-03-02  Bruno Haible  <bruno@clisp.org>
86149
86150         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86151         of AIX, the replacement has to be done only after <string.h> is
86152         included, therefore not in config.h. stpncpy.h does the replacement,
86153         and stpncpy.c uses it.
86154
86155 2005-03-02  Bruno Haible  <bruno@clisp.org>
86156
86157         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86158         stpncpy.c uses it.
86159
86160 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86163         The workaround isn't strictly needed for POSIX conformance, and
86164         it's too much of a pain to configure and maintain.  We'll ask
86165         people to fix their kernels instead.
86166         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86167         (NANOSLEEP_BUG_WORKAROUND): Remove.
86168         (xnanosleep): Remove the workaround.
86169
86170 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86171
86172         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86173         Reported by Derek Price.
86174         (Include): Add "timespec.h".
86175
86176         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86177
86178 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86179
86180         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86181         to detect nanosleep bug.
86182
86183 2005-03-01  Bruno Haible  <bruno@clisp.org>
86184
86185         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86186
86187 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86188
86189         * modules/gethrxtime: New file.
86190         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86191         (Depends-on): Add gethrxtime.
86192         (configure.ac): Add gl_XNANOSLEEP.
86193         (Makefile.am): Remove lib_SOURCES line.
86194
86195 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86196
86197         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86198         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86199
86200 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86201
86202         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86203         * lib/timespec.h (gettime): Return void, since it always
86204         succeeds now.  All uses changed.
86205         * lib/gettime.c (gettime): Likewise.
86206         [HAVE_NANOTIME]: Prefer nanotime.
86207         Assume gettimeofday succeeds, as POSIX requires.
86208         Assime time () succeeds, since other code already does.
86209         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86210         (timespec_subtract): Remove.
86211         (NANOSLEEP_BUG_WORKAROUND): New constant.
86212         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86213         things considerably.  Use it only on GNU/Linux hosts, since the
86214         workaround shouldn't be needed elsewhere.
86215
86216 2005-02-24  Bruno Haible  <bruno@clisp.org>
86217
86218         * modules/gettext (Files): Add m4/glibc2.m4.
86219
86220 2005-02-24  Bruno Haible  <bruno@clisp.org>
86221
86222         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86223         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86224         * m4/progtest.m4:
86225         Update from GNU gettext 0.14.2.
86226         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86227
86228 2005-02-24  Bruno Haible  <bruno@clisp.org>
86229
86230         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86231         * lib/config.charset: Update from GNU gettext 0.14.2.
86232
86233 2005-02-24  Bruno Haible  <bruno@clisp.org>
86234
86235         * lib/gettext.h: Update from GNU gettext 0.14.2.
86236
86237 2005-02-23  Simon Josefsson  <jas@extundo.com>
86238
86239         * m4/iconvme.m4: New file.
86240
86241 2005-02-23  Jim Meyering  <jim@meyering.net>
86242
86243         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86244         change.
86245         Thanks to Bruno Haible for catching it.
86246
86247 2005-02-22  Simon Josefsson  <jas@extundo.com>
86248
86249         * modules/iconvme: New file.
86250
86251         * MODULES.html.sh: Add iconvme.
86252
86253 2005-02-22  Simon Josefsson  <jas@extundo.com>
86254
86255         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86256
86257 2005-02-22  Simon Josefsson  <jas@extundo.com>
86258
86259         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86260
86261 2005-02-22  Jim Meyering  <jim@meyering.net>
86262
86263         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86264         s/ifndef/ifdef/.
86265
86266 2005-02-20  Neil Conway  <neilc@samurai.com>
86267
86268         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86269         returned by OSX/Darwin if the specified buffer is not large
86270         enough for the hostname.
86271
86272 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86273
86274         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86275         pass it to _help, otherwise the latter coredumps trying to
86276         dereference state.root_argp.
86277
86278 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86279
86280         * modules/chdir-long (Depends-on): Add memrchr.
86281         * modules/memrchr (Files): Add lib/memrchr.h.
86282         (Include): "memrchr.h".
86283
86284 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86285
86286         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86287
86288 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86289
86290         * lib/memrchr.h: New file.
86291         * lib/chdir-long.c: Include it.
86292         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86293         Don't bother including stddef.h.
86294
86295 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86296
86297         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86298         inclusion.
86299         Include <sys/types.h>, for dev_t.
86300         (ME_DUMMY, ME_REMOTE): Move from here....
86301         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86302         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86303         Dmitry V. Levin.
86304         Include mountlist.h first, to test the interface.
86305
86306 2005-01-29  Bruno Haible  <bruno@clisp.org>
86307
86308         * lib/progname.c (program_name): Initialize.
86309         Needed when linking statically on MacOS X.
86310
86311 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86312
86313         Sync from coreutils.
86314         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86315         (Depends-on): Add c-strtod.
86316         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86317
86318 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86319
86320         Sync from coreutils.
86321         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86322
86323         Remove files that are specific to coreutils.
86324         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86325
86326 2005-01-28  Bruno Haible  <bruno@clisp.org>
86327
86328         * modules/javacomp: New file.
86329         * MODULES.html.sh (Java): Add javacomp.
86330
86331 2005-01-28  Bruno Haible  <bruno@clisp.org>
86332
86333         * m4/javacomp.m4: New file, from GNU gettext.
86334
86335 2005-01-28  Bruno Haible  <bruno@clisp.org>
86336
86337         * lib/javacomp.sh.in: New file, from GNU gettext.
86338         * lib/javacomp.h: New file, from GNU gettext.
86339         * lib/javacomp.c: New file, from GNU gettext.
86340
86341 2005-01-26  Simon Josefsson  <jas@extundo.com>
86342
86343         * lib/gai_strerror.c: Use GPL in header.
86344
86345 2005-01-26  Bruno Haible  <bruno@clisp.org>
86346
86347         * modules/javaexec: New file.
86348         * MODULES.html.sh (Java): Add javaexec.
86349
86350 2005-01-26  Bruno Haible  <bruno@clisp.org>
86351
86352         * m4/javaexec.m4: New file, from GNU gettext.
86353
86354 2005-01-26  Bruno Haible  <bruno@clisp.org>
86355
86356         * lib/javaexec.sh.in: New file, from GNU gettext.
86357         * lib/javaexec.h: New file, from GNU gettext.
86358         * lib/javaexec.c: New file, from GNU gettext.
86359
86360 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86361
86362         * modules/lchown (Depends-on): Remove lchown.h
86363
86364 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86365
86366         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86367         must be defined if the header file was not found, in order
86368         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86369
86370 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86371
86372         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86373         initializers for struct pentry_state.
86374         (__argp_error): Check return value of __asprintf
86375         (__argp_failure): Translate error message
86376
86377         * lib/argp-parse.c: Removed braces around the expansion of N_()
86378
86379 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86380
86381         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86382         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86383         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86384         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86385         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86386         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86387         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86388         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86389         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86390         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86391         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86392         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86393         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86394         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86395         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86396         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86397         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86398         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86399         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86400         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86401         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86402         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86403         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86404         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86405         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86406         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86407         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86408         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86409         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86410         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86411         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86412         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86413         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86414         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86415         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86416         Use an all-permissive copyright notice, recommended by RMS.
86417
86418 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86419
86420         * modules/chdir-long (Depends-on): Remove mempcpy.
86421
86422 2005-01-21  Jim Meyering  <jim@meyering.net>
86423
86424         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86425         same value as for Solaris 9.
86426
86427         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86428         component length.  This included changing the parameter to be
86429         of type `char *' rather than `char const *'.
86430         * lib/chdir-long.h (chdir_long): Update prototype.
86431
86432         * lib/openat.c (fdopendir, fstatat): New functions.
86433         * lib/openat.h: Include headers required for use of DIR and struct
86434         stat.
86435         [AT_SYMLINK_NOFOLLOW]: Define.
86436         (fdopendir, fstatat): Add prototypes.
86437
86438 2005-01-21  Bruno Haible  <bruno@clisp.org>
86439
86440         * modules/classpath: New file.
86441         * MODULES.html.sh (Java): Add classpath.
86442
86443 2005-01-21  Bruno Haible  <bruno@clisp.org>
86444
86445         * lib/classpath.h: New file, from GNU gettext.
86446         * lib/classpath.c: New file, from GNU gettext.
86447
86448 2005-01-20  Simon Josefsson  <jas@extundo.com>
86449
86450         * modules/version-etc-fsf: New file.
86451
86452 2005-01-20  Simon Josefsson  <jas@extundo.com>
86453
86454         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86455         * lib/version-etc.c: Remove version_etc_copyright.
86456         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86457         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86458
86459 2005-01-20  Simon Josefsson  <jas@extundo.com>
86460
86461         * lib/base64.h (isbase64): Add.
86462
86463         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86464         using a unsigned prototype, don't inline.
86465         (base64_decode): Use it.
86466
86467 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86468
86469         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86470         it.
86471
86472 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86473
86474         * lib/save-cwd.c (save_cwd): Remove code to support the case
86475         where fchdir is missing or flaky.
86476
86477 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86478
86479         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86480
86481 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86482
86483         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86484         AC_LIBSOURCES now does this.
86485         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86486         with new ullong_max module.
86487
86488 2005-01-19  Bruno Haible  <bruno@clisp.org>
86489
86490         * modules/sh-quote: New file.
86491         * MODULES.html.sh (Executing programs): Add sh-quote.
86492
86493 2005-01-19  Bruno Haible  <bruno@clisp.org>
86494
86495         * lib/sh-quote.h: New file, from GNU gettext.
86496         * lib/sh-quote.c: New file, from GNU gettext.
86497
86498 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86499
86500         Merge from coreutils.
86501         * m4/ullong_max.m4: New file.
86502         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86503         (gl_MACROS): Assume localeconv exists.
86504
86505 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86506
86507         Merge changes from coreutils, as described below in several
86508         changelogs dated today.
86509
86510         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
86511         (O_DIRECTORY): Remove; not needed here, since "." must be
86512         a directory.  All uses removed.
86513         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
86514         universal on Suns, and we also need to test for IRIX.
86515         Revamp code to use 'if' rather than '#if'.
86516         Avoid unnecessary comparison of cwd->desc to 0.
86517
86518         * lib/utimens.c (futimens): Robustify the previous patch, by checking
86519         for known valid error numbers rather than observed invalid ones.
86520
86521 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86522
86523         * modules/ullong_max: New file.
86524
86525         * modules/chdir-long, modules/openat: New files.
86526         * modules/save-cwd (Depends-on): Depend on chdir-long.
86527         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
86528
86529 2005-01-18  Jim Meyering  <jim@meyering.net>
86530
86531         Merge from coreutils.
86532         * m4/chdir-long.m4, m4/openat.m4: New files.
86533         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
86534         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
86535         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
86536         is sane and DOES follow symlinks.  Besides, testing 20 different
86537         systems found no broken chown implementations.
86538         Prompted by a change in rsync's copy of this macro.
86539         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
86540
86541         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
86542
86543         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
86544         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
86545         NULL-means-set-to-current-time semantics.
86546         Remove temporary file immediately, rather than waiting
86547         for configure's at-exit trap code to do it.
86548
86549 2005-01-18  Jim Meyering  <jim@meyering.net>
86550
86551         * lib/version-etc.c (version_etc_copyright): Update copyright date.
86552
86553         * lib/utimens.c (futimens): Account for the fact that futimes
86554         can also fail with errno == ENOSYS or errno == ENOENT.
86555         Patch from Dmitry V. Levin.
86556
86557         Change the name of the robust chdir function from chdir to chdir_long.
86558         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
86559         (restore_cwd): Use chdir_long, not chdir.
86560         * lib/chdir-long.c: Renamed from chdir.c.
86561         * lib/chdir-long.h: Renamed from chdir.h.
86562         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
86563         Hurd.
86564
86565 2005-01-18  Bruno Haible  <bruno@clisp.org>
86566
86567         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
86568         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
86569         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
86570         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
86571         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
86572         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
86573         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
86574         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
86575         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
86576         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
86577         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
86578         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
86579         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
86580         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
86581         Use an all-permissive copyright notice, recommended by RMS.
86582
86583 2005-01-18  Bob Proulx  <bob@proulx.com>
86584
86585         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
86586         simplify offsetof() macro construct to avoid compile failure with
86587         native HP-UX 11.0 ANSI C compiler.
86588
86589 2005-01-17  Bruno Haible  <bruno@clisp.org>
86590
86591         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
86592         redundant because stpncpy.m4 takes care of it.
86593
86594 2005-01-17  Bruno Haible  <bruno@clisp.org>
86595
86596         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
86597
86598 2005-01-17  Bruno Haible  <bruno@clisp.org>
86599
86600         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
86601         used.
86602
86603 2005-01-17  Bruno Haible  <bruno@clisp.org>
86604
86605         * lib/fwriteerror.h (fwriteerror): Change specification to include
86606         fclose.
86607         * lib/fwriteerror.c: Include <stdbool.h>.
86608         (fwriteerror): At the end, close the file stream. Record whether
86609         stdout was already closed.
86610
86611 2005-01-17  Bruno Haible  <bruno@clisp.org>
86612
86613         * lib/execute.c (environ): Declare if needed.
86614         * lib/pipe.c (environ): Likewise.
86615         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
86616
86617 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86618
86619         * modules/argp: Depend on vsnprintf
86620
86621 2005-01-10  Jim Meyering  <jim@meyering.net>
86622
86623         * modules/closeout (Depends-on): Add atexit.
86624
86625 2005-01-06  Bruno Haible  <bruno@clisp.org>
86626
86627         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
86628
86629 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
86630
86631         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
86632         definitions to be after all include files, to avoid collisions.
86633         Problem reported by Bob Proulx.
86634
86635 2005-01-04  Jim Meyering  <jim@meyering.net>
86636
86637         Changes imported from coreutils.
86638         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
86639         as the mkstemp template, use a temporary directory and an
86640         8.3-friendly template to avoid trouble on systems like DJGPP.
86641         Reported by Juan M. Guerrero via Stepan Kasal.
86642         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
86643         close. Remove the temporary directory right away, rather than waiting
86644         for configure's at-exit trap code to do it.
86645         Suggestion from Stepan Kasal.
86646
86647 2005-01-01  Simon Josefsson  <jas@extundo.com>
86648
86649         * gnulib-tool: Print #include directives when --import'ing.
86650
86651 2004-12-28  Simon Josefsson  <jas@extundo.com>
86652
86653         * tests/test-base64.c: Include required header files.  Remove
86654         unused variables.
86655
86656 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86657
86658         * modules/error (Depends-on): Remove gettext.
86659
86660 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
86661
86662         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
86663         not needed.  This removes a dependency on the gettext module.
86664         [defined _LIBC]: Do not include <libintl.h>; not needed.
86665
86666 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86667
86668         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
86669         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
86670
86671 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
86672
86673         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
86674         HAVE_DECL_STRTOLD.
86675
86676 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86677
86678         * modules/getdate (Depends-on): Remove alloca-opt.
86679
86680 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86681
86682         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
86683
86684 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
86685
86686         * lib/argp-parse.c: Include <stddef.h>.
86687         (alignof, alignto): New macros.
86688         (parser_init): Don't assume that void * is aligned sufficiently
86689         for struct option.
86690
86691         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
86692         need to extend the stack.
86693         (YYINITDEPTH): New macro, so that the initial stack isn't overly
86694         large.
86695
86696 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86697
86698         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
86699
86700 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86701
86702         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
86703         (2004-10-24) change.  Apparently this was a false alarm.
86704
86705         * modules/getdate: Depend on alloca-opt, not alloca.
86706
86707 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
86708
86709         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
86710         Remove now-obsolete comment about AIX.
86711         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
86712         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
86713         (YYMAXDEPTH): New macro.
86714
86715 2004-12-18  Simon Josefsson  <jas@extundo.com>
86716
86717         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
86718
86719 2004-12-18  Bruno Haible  <bruno@clisp.org>
86720
86721         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
86722
86723 2004-12-18  Bruno Haible  <bruno@clisp.org>
86724
86725         * lib/fatal-signal.c (fatal_signals): Make non-const.
86726         (init_fatal_signals): New function.
86727         (uninstall_handlers, install_handlers): Ignore signals that were set to
86728         SIG_IGN.
86729         (at_fatal_signal): Call init_fatal_signals.
86730         (init_fatal_signal_set): Likewise. Ignore signals that were set to
86731         SIG_IGN.
86732         Reported by Paul Eggert.
86733
86734 2004-12-18  Bruno Haible  <bruno@clisp.org>
86735
86736         * doc/alloca.texi: New file.
86737         * doc/alloca-opt.texi: New file.
86738
86739 2004-12-17  Jim Meyering  <jim@meyering.net>
86740
86741         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
86742         Otherwise, install-sh could exit with improper exit status when
86743         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
86744
86745 2004-12-16  Simon Josefsson  <jas@extundo.com>
86746
86747         * tests/test-base64.c: Add license.
86748
86749 2004-12-15  Stepan Kasal  <address@hidden>
86750
86751         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
86752
86753 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
86754
86755         * modules/getcwd (Files): Add m4/d-ino.m4.
86756         Suggested by Mark D. Baushke.
86757
86758 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86759
86760         * lib/getdate.y (textint): New member "negative".
86761         (time_zone_hhmm): New function.
86762         Expect 14 shift-reduce conflicts, not 13.
86763         (o_colon_minutes): New rule.
86764         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
86765         (yylex): Set the "negative" member of signed numbers.
86766
86767 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
86768
86769         * doc/getdate.texi (Time of day items, Time zone items):
86770         Describe new formats +00:00, UTC+00:00.
86771
86772 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
86773
86774         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
86775         spurious "-l"s.  Problem reported by Stepan Kasal.
86776
86777 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
86778
86779         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
86780         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
86781
86782 2004-12-04  Simon Josefsson  <jas@extundo.com>
86783
86784         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
86785         Vandoorselaere <yoann@prelude-ids.org>.
86786
86787 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86788
86789         Changes imported from coreutils.
86790         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
86791         exist.
86792         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
86793
86794 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86795
86796         Changes imported from coreutils.
86797         * lib/hard-locale.c: Assume <locale.h> exists.
86798         Include "strdup.h".
86799         (GLIBC_VERSION): New macro.
86800         (hard_locale): Assume setlocale exists.
86801         Rewrite to avoid #ifdef.
86802         Use strdup rather than malloc + strcpy.
86803         * lib/human.c: Assume <locale.h> exists.
86804         (human_readable): Assume localeconv exists.
86805
86806 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
86807
86808         * modules/hard-locale (Depends-on): Add strdup.
86809
86810 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
86811
86812         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
86813         convert T2, not T.  (Imported from libc.)
86814
86815 2004-11-30  Simon Josefsson  <jas@extundo.com>
86816
86817         * modules/restrict (License): Change to LGPL.
86818
86819 2004-11-30  Simon Josefsson  <jas@extundo.com>
86820
86821         * m4/restrict.m4: Add copyright and copying conditions.
86822
86823 2004-11-30  Simon Josefsson  <jas@extundo.com>
86824
86825         * m4/base64.m4: New file.
86826
86827 2004-11-30  Simon Josefsson  <jas@extundo.com>
86828
86829         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
86830         base64.
86831
86832         * tests/test-base64.c: New file.
86833
86834         * modules/base64: New file.
86835
86836 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86837
86838         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
86839         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
86840
86841         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
86842
86843 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86844
86845         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
86846         (__getcwd.c): Don't restore errno; glibc doesn't.
86847         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
86848         first, falling back to our code only if its results look suspicious.
86849         Ensure that the resulting buffer is only as large as necessary.
86850
86851         * lib/readutmp.c: Include readutmp.h first.
86852         Include <errno.h>, since readutmp.h no longer does that.
86853         * lib/readutmp.h: Don't include <errno.h>,
86854         <sys/param.h>, <time.h>; not needed to establish interface.
86855         (errno): Remove decl.
86856         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
86857         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
86858         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
86859
86860 2004-11-28  Simon Josefsson  <jas@extundo.com>
86861
86862         * lib/base64.h, base64.c: New file.
86863
86864 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
86865
86866         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
86867
86868 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
86869
86870         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
86871         (Depends-on): Remove pathmax, same.  Add mempcpy.
86872         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
86873         (Makefile.am): Append getcwd.h to lib_SOURCES.
86874         (Include): Add getcwd.h.
86875         (Maintainer): Change from Jim Meyering to "all, glibc",
86876         since getdate now uses intended-for-glibc code.
86877         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
86878         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
86879
86880 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86881
86882         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
86883         HP's ANSI C compiler.
86884         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
86885         Declaring int functions causes warnings on some modern systems and
86886         shouldn't be needed to compile on ancient ones.
86887         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
86888         defined.
86889
86890         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
86891         with the following changes.
86892         (__set_errno): Parenthesize properly.
86893         Include <stdbool.h>.
86894         (MIN, MAX, MATCHING_INO): New macros.
86895         (__getcwd): Define with prototype, not K&R form.
86896         Use heuristics to allocate default buffer on stack if possible.
86897         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86898         behavior, and to avoid the PATH_MAX limit when computing
86899         ../../../../...
86900         Use MATCHING_INO to compare inode number to file.
86901         Check for arithmetic overflow in size calculations.
86902         Fix bug in reallocation of dot array that caused getcwd to fail
86903         on directories nested deeper than 75.
86904         Be more careful about saving errno on error.
86905         Do not use realloc; use only free+malloc, as this is a bit
86906         more flexible and avoids a needless copy operation.
86907         Do not inspect st_dev and st_ino for symbolic links; POSIX
86908         doesn't specify the latter.
86909         Check for closedir errors.
86910         Avoid needless casts.
86911         Use "#ifdef weak_alias" around weak_alias, to be like other
86912         glibc code.
86913         The following changes to getcwd.c have effect only when used in
86914         gnulib; they have no effect inside glibc proper.
86915         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86916         as alloca isn't used.
86917         (alloca, __alloca): Likewise.
86918         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86919         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86920         unconditionally, as gnulib assumes C89 or better.
86921         Do not include <sys/param.h>.
86922         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
86923         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
86924         better.
86925         (NULL) [!defined NULL]: Remove; we assume C89 or better.
86926         Include <dirent.h> in a way that is compatible with modern Autoconf.
86927         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
86928         New macros, if not already defined.
86929         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
86930         Use "_LIBC", not "defined _LIBC", for consistency.
86931         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
86932         a mempcpy module.
86933         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
86934         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
86935         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
86936         credit only to Jim Meyering and adjust the copyright dates.
86937         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
86938         <stdlib.h>, <unistd.h>, "pathmax.h".
86939         Instead, include "xgetcwd.h" (first) and "getcwd.h".
86940         (INITIAL_BUFFER_SIZE): Remove.
86941         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
86942
86943 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86944
86945         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
86946         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
86947         Use the _ONCE methods, for efficiency.
86948         Check for fcntl.h.  In test program, include <errno.h>
86949         and <fcntl.h> if available.  Remove old K&R cruft from
86950         test program.  Check for common errors in GNU/Linux,
86951         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
86952         don't do AC_LIBOBJ, as that's getcwd.m4's job.
86953         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
86954         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
86955         name accordingly.
86956         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
86957         accommodate new getcwd.c.
86958         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
86959         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
86960         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
86961         that's all we need now.
86962
86963 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86964
86965         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
86966         argp-parse.c depends on getopt internals, that means we should
86967         always use our getopt, to be on the safe side.
86968         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
86969         order not to spoil the result of an eventual previous invocation
86970         of gl_GETOPT_SUBSTITUTE.
86971
86972 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86973
86974         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86975         redefinition warnings. To avoid them, include the defines
86976         in `#if !defined __need_getopt ... #endif'. The only place
86977         where __getopt_argv_const is used is in definitions
86978         of getopt_long and getopt_long_only below, which are as well
86979         protected by `#ifndef __need_getopt'.
86980         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86981         __need_getopt after including <stdio.h> and <unistd.h> These
86982         headers might have defined it.
86983
86984 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86985
86986         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86987
86988 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86989
86990         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86991         (futimens): New function, which uses futimes if available.
86992         (futimens, utimens): Support timespec==NULL, with same semantics
86993         as utime and utimens.
86994         * lib/utimens.h (futimens): New decl.
86995
86996 2004-11-23  Jim Meyering  <jim@meyering.net>
86997
86998         * lib/getopt_.h: Remove trailing blanks.
86999
87000 2004-11-23  Jim Meyering  <jim@meyering.net>
87001
87002         * lib/__fpending.c: Add comment.
87003
87004 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87005
87006         * modules/canonicalize (Depends-on): Add xreadlink.
87007         Problem reported by James Youngman.
87008
87009 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87010
87011         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87012         New macros.
87013         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87014         optopt): Use them instead of invoking ## directly; otherwise, the
87015         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87016
87017 2004-11-19  Bruno Haible  <bruno@clisp.org>
87018
87019         * lib/strtok_r.c: Move comments from here...
87020         * lib/strtok_r.h: ... to here.
87021
87022 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87023
87024         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87025         implementations that mishandle size_t overflow.
87026
87027 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87028
87029         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87030         might fail.  Problem reported by Yoann Vandoorselaere.
87031         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87032         implementations that mishandle size_t overflow.
87033
87034 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87035
87036         * modules/canon-host (Depends-on): Add strdup.
87037
87038 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87039
87040         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87041
87042 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87043
87044         * lib/canon-host.c: Include "strdup.h".
87045         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87046         Use strdup instead of malloc/strcpy to duplicate strings.
87047
87048         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87049         (human_space_before_unit): New constant.
87050         * lib/human.c (human_readable): Support it.
87051
87052         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87053         (xgetcwd): Set errno correctly when failing.
87054         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87055         the failure is actually due to a PATH_MAX problem.
87056
87057         Further getopt changes to make it more likely that glibc will
87058         buy the changes back.
87059         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87060         (getopt): Use it, so to preserve glibc semantic
87061         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87062         when compiling for libc.
87063         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87064         (getopt_long, getopt_long_only): Use it.
87065
87066         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87067         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87068         (getopt): Argv is now char * const *, as per standard.
87069         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87070         not char *__getopt_argv_const *.
87071         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87072         _getopt_long_only_r): Likewise.
87073         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87074         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87075         _getopt_long_r, _getopt_long_only_r): Likewise.
87076         * lib/getopt_.h (__getopt_argv_const): Remove.
87077         (getopt): Argv is now char * const *, as per standard.
87078
87079         * lib/getdate.y (tORDINAL): New token.
87080         (day, relunit): Allow it for relative times.
87081         (relative_time_table): Use tORDINAL for ordinals.
87082
87083 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87084
87085         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87086         Document that "second" isn't allowed as an ordinal number.
87087
87088 2004-11-16  Jim Meyering  <jim@meyering.net>
87089
87090         * modules/closeout (Depends-on): Add fpending.
87091
87092 2004-11-15  Jim Meyering  <jim@meyering.net>
87093
87094         * lib/closeout.c: Include "__fpending.h" once again.
87095         Include <stdbool.h>.
87096         (close_stdout): Don't fail just because stdout was closed initially,
87097         since some programs don't write to stdout in the normal course of
87098         operation (other than --version and --help), and we don't want this
87099         function to make e.g. `touch file >&-' fail.
87100         But do fail if it was closed and someone has tried to write to it.
87101         E.g., `printf foo >&-' must fail.
87102
87103 2004-11-13  Jim Meyering  <jim@meyering.net>
87104
87105         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87106
87107 2004-11-12  Simon Josefsson  <jas@extundo.com>
87108
87109         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87110         small doc fix is still pending.
87111
87112 2004-11-11  Simon Josefsson  <jas@extundo.com>
87113
87114         * modules/strtok_r: New file.
87115
87116         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87117         strtok_r.
87118
87119 2004-11-11  Simon Josefsson  <jas@extundo.com>
87120
87121         * m4/strtok_r.m4: New file.
87122
87123         * m4/getopt.m4: Replace opterr.
87124
87125 2004-11-11  Simon Josefsson  <jas@extundo.com>
87126
87127         * lib/strtok_r.h, strtok_r.c: New file.
87128
87129 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87130
87131         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87132         of replacing opterr, getopt, etc.  This should handle the
87133         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87134
87135 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87136
87137         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87138         we can stop lying to compilers about the constness of argv when we
87139         are compiled outside glibc.
87140         (getopt, getopt_long, getopt_long_only): Use it.
87141         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87142         _getopt_internal, getopt): Likewise.
87143         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87144         _getopt_long_only_r): Likewise.
87145         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87146         _getopt_long_r, _getopt_long_only_r): Likewise.
87147
87148         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87149         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87150         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87151         the other external symbols.
87152         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87153         declaration, since the above renaming now works around collisions.
87154
87155 2004-11-11  Jim Meyering  <jim@meyering.net>
87156
87157         * lib/linebreak.c: Remove trailing blanks.
87158         * lib/alloca_.h: Likewise.
87159         * lib/acosl.c: Likewise.
87160         * lib/euidaccess.c: Likewise.
87161         * lib/allocsa.h: Likewise.
87162
87163 2004-11-10  Simon Josefsson  <jas@extundo.com>
87164
87165         * m4/getaddrinfo.m4: New file.
87166
87167 2004-11-10  Simon Josefsson  <jas@extundo.com>
87168
87169         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87170
87171 2004-11-10  Simon Josefsson  <jas@extundo.com>
87172
87173         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87174         getaddrinfo.
87175
87176         * modules/getaddrinfo: New file.
87177
87178 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87179
87180         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87181
87182 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87183
87184         * lib/mktime.c (SHR): New macro, which is a portable
87185         substitute for >> that should work even on Crays.
87186         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87187         Problem reported by Mark D. Baushke in
87188         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87189         * lib/getdate.y (SHR): Likewise.
87190         (tm_diff): Use it.
87191         * lib/strftime.c (SHR): Likewise.
87192         (tm_diff): Use it.
87193         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87194         quote_these_too, so that right shifts are well defined.  All uses
87195         changed.
87196
87197 2004-11-10  Jim Meyering  <jim@meyering.net>
87198
87199         Ensure that no close failure goes unreported.
87200         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87201         return early when it seems there's nothing to flush.
87202         Don't include __fpending.h.
87203
87204 2004-11-10  Jim Meyering  <jim@meyering.net>
87205
87206         * modules/closeout (Depends-on): Remove fpending.
87207
87208 2004-11-10  Jim Meyering  <jim@meyering.net>
87209
87210         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87211
87212 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87213
87214         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87215         gl_FUNC_STRFTIME.
87216         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87217         and AC_REQUIRE when possible, to avoid duplicate checks.
87218         Check for <wchar.h>.
87219
87220 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87221
87222         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87223
87224 2004-11-09  Bruno Haible  <bruno@clisp.org>
87225
87226         * m4/sockpfaf.m4: New file.
87227
87228 2004-11-05  Bruno Haible  <bruno@clisp.org>
87229
87230         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87231         Reported by Mark D. Baushke <mdb@cvshome.org>.
87232
87233 2004-11-04  Bruno Haible  <bruno@clisp.org>
87234
87235         2004-09-11  Bruno Haible  <bruno@clisp.org>
87236                 * allocsa.valgrind: New file.
87237         2004-02-06  Bruno Haible  <bruno@clisp.org>
87238                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87239                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87240                 Reported by Christopher Seip <chris.seip@hp.com>.
87241
87242 2004-11-04  Bruno Haible  <bruno@clisp.org>
87243
87244         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87245         (Makefile.am): Distribute it.
87246
87247 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87248
87249         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87250         with errno == ERANGE if the buffer is too small.
87251         Problem reported by Mark D. Baushke.
87252
87253 2004-11-03  Albert Chin  <china@thewrittenword.com>
87254             Paul Eggert  <eggert@cs.ucla.edu>
87255
87256         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87257         equivalent, substitute $ac_type for equivalent type rather than
87258         blindly using uint32_t *always* which won't work if uint32_t is not
87259         available.  Define _UINT32_T to work around typedef of uint32_t if
87260         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87261         2.5.1.
87262
87263 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87264
87265         * m4/jm-macros.m4: Sync from coreutils.
87266         (gl_MACROS): Check for mbrlen, for pathchk.
87267         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87268
87269 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87270
87271         * lib/xreadlink.c (MAXSIZE): New macro.
87272         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87273         size does not exceed MAXSIZE.  Avoid cast.
87274         As suggested by Mark D. Baushke in
87275         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87276         if readlink fails with buffer size just under MAXSIZE, try again
87277         with MAXSIZE.
87278
87279 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87280
87281         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87282
87283 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87284         and  Paul Eggert  <eggert@cs.ucla.edu>
87285
87286         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87287         (get_date): Overparenthesize to avoid GCC warning.
87288
87289 2004-11-02  Bruno Haible  <bruno@clisp.org>
87290
87291         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87292         returns void.
87293
87294 2004-11-02  Bruno Haible  <bruno@clisp.org>
87295
87296         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87297         function returns void.
87298
87299 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87300
87301         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87302         fflush_unlocked, flockfile, funlockfile, funlockfile,
87303         fputs_unlocked, putc_unlocked.
87304
87305 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87306
87307         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87308         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87309         already declared.
87310
87311 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87312
87313         * modules/getdate (Files): Add doc/getdate.texi.
87314         (Depends-on): Add setenv, xalloc.
87315
87316 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87317
87318         * lib/getdate.y: Add support for TZ="foo" within a date string.
87319         Fix some bugs near time_t boundaries.  Reject dates with
87320         out-of-range components, e.g., "Sept 31".
87321         Include <stdlib.h>, "setenv.h", "xalloc.h".
87322         (ISDIGIT_LOCALE): Remove; unused.
87323         Note that the TZ and time functions used here are not reentrant.
87324         (mktime_ok, get_tz): New functions.
87325         (TZBUFSIZE): New constant.
87326         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87327         This requires that we sometimes generate our own TZ="XXX..." setting.
87328
87329 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87330
87331         * doc/getdate.texi: New file, from coreutils with modifications for
87332         the new TZ parsing.
87333
87334 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87335
87336         * lib/mktime.c (not_equal_tm): Remove redundant check.
87337
87338 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87339
87340         * modules/regex (lib_SOURCES): Add regex.c.
87341         Reported by James Youngman in
87342         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87343
87344 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87345
87346         * lib/getdate.y: Use Bison 1.875 features, and some minor
87347         code cleanups.  This change does not affect semantics.
87348         Don't include <stdlib.h>; no longer needed.
87349         Don't include unlocked-io.h; only the "#if TEST" code uses
87350         stdio, and performance isn't crucial there.
87351         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87352         Bison 1.875 features as described below.
87353         All uses of "PC." replaced by "pc->".
87354         (YYSTYPE): Add a forward declaration.
87355         (yylex, yyerror): Use full prototypes in forward decls.
87356         Use "%pure-parser" rather than obsolescent "%pure_parser".
87357         Use %parse-param and %lex-param instead of obsolescent
87358         YYPARSE_PARAM and YYLEX_PARAM.
87359         (meridian_table, month_and_day_table, time_units_table,
87360         relative_time_table, time_zone_table, military_table,
87361         lookup_zone, lookup_word, get_date):
87362         Use NULL instead of 0 where appropriate.
87363         (to_hour): Avoid abort (), to avoid a dependency on
87364         stdlib.h.
87365         (yyerror, yylex): Now accepts parser_control * arg.
87366         (main) [TEST]: Use '\0' rather than 0 for char.
87367
87368 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87369
87370         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87371
87372 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87373
87374         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87375         It's now the caller's responsibility to handle the case where
87376         !HAVE_GETPAGESIZE && !defined getpagesize.
87377
87378         * lib/mktime.c (leapyear): Arg is long int, not int.
87379
87380 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87381
87382         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87383
87384 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87385
87386         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87387         missing.  Problem reported by James Youngman.
87388
87389 2004-10-16  Simon Josefsson  <jas@extundo.com>
87390
87391         * gnulib-tool: Fix comments.  Fix parse problem.
87392         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87393
87394 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87395
87396         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87397         implementation of getopt_long.  Problem reported by Alexander Taler in:
87398         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87399
87400 2004-10-15  Bruno Haible  <bruno@clisp.org>
87401
87402         * gnulib-tool: Untabify. Initialize supplied_libname.
87403         (func_usage): More homogenous output.
87404         (func_modules_transitive_closure, func_modules_to_filelist,
87405         func_emit_lib_Makefile_am): New functions.
87406         (func_import): New function, extracted from big case statement. Use
87407         func_get_license, func_modules_transitive_closure,
87408         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87409         opt_lgpl. Don't use test -a, as it's not portable.
87410         (func_create_testdir): Use func_modules_transitive_closure,
87411         func_modules_to_filelist, func_emit_lib_Makefile_am.
87412
87413 2004-10-15  Bruno Haible  <bruno@clisp.org>
87414
87415         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87416
87417 2004-10-15  Bruno Haible  <bruno@clisp.org>
87418
87419         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87420         the portions belonging to each module.
87421         Suggested by Derek Robert Price <derek@ximbiot.com>.
87422
87423 2004-10-12  Simon Josefsson  <jas@extundo.com>
87424
87425         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87426         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87427         to real functions.
87428
87429 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87430
87431         * modules/vsnprintf: New file.
87432
87433 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87434
87435         * m4/vsnprintf.m4: New file.
87436
87437 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87438
87439         * lib/vsnprintf.h: New file.
87440         * lib/vsnprintf.c: New file.
87441
87442 2004-10-11  Bruno Haible  <bruno@clisp.org>
87443
87444         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87445         vsnprintf.
87446
87447 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87448
87449         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87450
87451 2004-10-07  Bruno Haible  <bruno@clisp.org>
87452
87453         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87454         fits into the provided buffer.
87455
87456 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87457
87458         * lib/diacrit.c, diacrit.h: Add GPL notice.
87459
87460         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87461         notice.
87462         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87463         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87464         This avoids a potential constant-folding bug.
87465
87466 2004-10-05  Bruno Haible  <bruno@clisp.org>
87467
87468         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87469         for the declaration of strsep.
87470
87471 2004-10-05  Bruno Haible  <bruno@clisp.org>
87472
87473         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87474
87475 2004-10-04  Simon Josefsson  <jas@extundo.com>
87476
87477         * modules/memmem: New file.
87478         * tests/test-memmem.c: New file.
87479         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87480
87481 2004-10-04  Simon Josefsson  <jas@extundo.com>
87482
87483         * m4/memmem.m4: New file.
87484
87485 2004-10-04  Simon Josefsson  <jas@extundo.com>
87486
87487         * lib/memmem.h: New file.
87488         * lib/memmem.c: New file, taken from glibc.
87489
87490 2004-10-04  Simon Josefsson  <jas@extundo.com>
87491
87492         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87493         '#ifdef USE_UNLOCKED_IO'.
87494
87495 2004-10-04  Simon Josefsson  <jas@extundo.com>
87496
87497         * config/srclist.txt: Add memmem from glibc.
87498
87499 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87500
87501         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87502
87503         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87504         modules/exclude, modules/getdate, modules/getline,
87505         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87506         modules/getusershell, modules/linebuffer, modules/md5,
87507         modules/mountlist, modules/posixtm, modules/readtokens,
87508         modules/readutmp, modules/regex, modules/sha1,
87509         modules/version-etc, modules/yesno:
87510         Remove dependency on unlocked-io.
87511
87512 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87513
87514         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
87515
87516         * m4/unlocked-io.m4: Add copyright notice.
87517         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
87518
87519 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87520
87521         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
87522         * lib/xmalloc.c (xmemdup): Likewise.
87523         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
87524         XFREE): Remove these long-obsolescent macros.
87525         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
87526         * lib/xstrdup.c: Remove.
87527
87528         * lib/regex.c (re_comp): Cast gettext return value to char *,
87529         Problem reported by Martin Neitzel via Mark D. Baushke.
87530
87531 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
87534         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
87535         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
87536         regex.c, sha1.c, version-etc.c, yesno.c:
87537         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
87538         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
87539         the includer's responsibility.
87540
87541         Sync from coreutils.
87542
87543         * lib/modechange.c (mode_compile): Don't decrement a pointer that
87544         points to the start of a string, as the C Standard says the
87545         resulting behavior is undefined.
87546
87547         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
87548         simple -> simple_backups, numbered_existing ->
87549         numbered_existing_backups, numbered -> numbered_backups
87550         to avoid shadowing problems.  All uses changed.
87551         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
87552         * lib/backupfile.c (check_extension, numbered_backup):
87553         Rename locals to avoid shadowing 'basename'.
87554         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
87555         once.
87556
87557         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
87558         * lib/.cvsignore: Add getopt.h.
87559
87560 2004-10-04  Bruno Haible  <bruno@clisp.org>
87561
87562         * modules/README: New file.
87563         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
87564         not a module.
87565
87566 2004-10-02  Jim Meyering  <jim@meyering.net>
87567
87568         * lib/dirfd.h, getpagesize.h: Add copyright notice.
87569
87570 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87571
87572         * modules/strsep: New file.
87573
87574 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87575
87576         * m4/strsep.m4: New file.
87577
87578 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87579
87580         * lib/strsep.h: New file.
87581         * lib/strsep.c: New file.
87582
87583 2004-10-01  Simon Josefsson  <jas@extundo.com>
87584
87585         * lib/snprintf.c (snprintf): Handle size==0.
87586
87587 2004-10-01  Simon Josefsson  <jas@extundo.com>
87588             Bruno Haible  <bruno@clisp.org>
87589
87590         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
87591         (snprintf): Declare 'args'.
87592
87593 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
87594
87595         * lib/snprintf.c: Remove comments as to why each header is needed.
87596
87597 2004-10-01  Bruno Haible  <bruno@clisp.org>
87598
87599         * MODULES.html.sh: Add strsep.
87600
87601 2004-09-30  Simon Josefsson  <jas@extundo.com>
87602
87603         * modules/snprintf: New file.
87604
87605 2004-09-30  Simon Josefsson  <jas@extundo.com>
87606
87607         * m4/snprintf.m4: New file.
87608
87609 2004-09-30  Simon Josefsson  <jas@extundo.com>
87610
87611         * lib/snprintf.h, lib/snprintf.c: New files.
87612
87613 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87614
87615         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
87616         (hol_entry_help): Never translate an empty string.
87617         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
87618         * lib/argp.h (OPTION_NO_TRANS): New option.
87619
87620 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87621
87622         * modules/argp (Maintainer): Replace Simon Josefsson
87623         by Sergey Poznyakoff.
87624
87625 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87626
87627         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
87628         changes merged back into glibc.
87629
87630 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
87631
87632         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
87633
87634 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
87635
87636         * lib/xvasprintf.c: Include xalloc.h.
87637         (xvasprintf): Use xalloc_die, not xmalloc_die.
87638
87639 2004-09-29  Bruno Haible  <bruno@clisp.org>
87640
87641         * modules/alloca-opt: New file, derived from modules/alloca.
87642         * modules/allocsa: Depend on alloca-opt instead of alloca.
87643         * modules/setenv: Likewise.
87644         * modules/vasnprintf: Likewise.
87645         * MODULES.html.sh: Add alloca-opt.
87646
87647 2004-09-28  Simon Josefsson  <jas@extundo.com>
87648
87649         * gnulib-tool: New parameter --lgpl, to asseert that modules are
87650         LGPL, and to replace license template from GPL to LGPL.
87651
87652 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87653
87654         * modules/dummy: Change license to LGPL.
87655
87656 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
87657
87658         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
87659
87660 2004-09-24  Simon Josefsson  <jas@extundo.com>
87661
87662         * modules/minmax (License): Change from GPL to LGPL.
87663
87664 2004-09-23  Simon Josefsson  <jas@extundo.com>
87665
87666         * gnulib-tool (--import): Typo.
87667
87668 2004-09-23  Simon Josefsson  <jas@extundo.com>
87669
87670         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
87671
87672 2004-09-22  Bruno Haible  <bruno@clisp.org>
87673
87674         * modules/*: Add 'License' field.
87675         * gnulib-tool: Accept --extract-license option.
87676         (func_get_license): New function.
87677
87678 2004-09-21  Bruno Haible  <bruno@clisp.org>
87679
87680         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
87681         Reported by Simon Josefsson.
87682
87683 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87684
87685         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
87686         gl_AC_TYPE_LONG_LONG.
87687
87688 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
87689
87690         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
87691
87692 2004-09-18  Simon Josefsson  <jas@extundo.com>
87693         and  Paul Eggert  <eggert@cs.ucla.edu>
87694
87695         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
87696         calls with autoreconf.  Define GL_LIB.
87697
87698 2004-09-14  Karl Berry  <karl@gnu.org>
87699
87700         * config/srclist.txt: unsync setenv.c, sigh.
87701
87702 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87703
87704         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
87705         Problem reported by Bruno Haible in:
87706         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
87707
87708 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
87709
87710         * config/srclist.txt: Comment out argp-pvh.c.
87711
87712 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
87713
87714         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
87715         in case some system header has #define'd it.  Problem reported by
87716         Soeren D. Schulze in
87717         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
87718
87719 2004-09-09  Karl Berry  <karl@gnu.org>
87720
87721         * regex.[ch]: delete from the root.  These were supposed to be
87722                 synced with emacs cvs, but this has not happened for about
87723                 a year, and anyway nothing else uses emacs regex.[ch].
87724                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
87725                 lib/regex[.ch] is untouched.
87726
87727 2004-09-09  Bruno Haible  <bruno@clisp.org>
87728
87729         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
87730
87731 2004-09-09  Bruno Haible  <bruno@clisp.org>
87732
87733         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
87734         modifications.
87735         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
87736
87737 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87738
87739         * modules/xvasprintf: New file.
87740         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
87741
87742 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
87743
87744         * lib/xvasprintf.h: New file.
87745         * lib/xvasprintf.c: New file.
87746         * lib/xasprintf.c: New file.
87747
87748 2004-09-08  Bruno Haible  <bruno@clisp.org>
87749
87750         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
87751
87752 2004-09-08  Bruno Haible  <bruno@clisp.org>
87753
87754         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
87755         length is > INT_MAX.
87756         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
87757         more.
87758
87759 2004-09-08  Bruno Haible  <bruno@clisp.org>
87760
87761         * lib/stdint_.h: New file, taken from GNU clisp.
87762
87763 2004-09-08  Bruno Haible  <bruno@clisp.org>
87764             Oskar Liljeblad  <oskar@osk.mine.nu>
87765
87766         * modules/stdint: New file.
87767         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
87768
87769 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87770
87771         Import from coreutils.
87772         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
87773         strings on unbounded length.  alloca's performance benefits aren't
87774         that important here.
87775         (V_STRDUP): Remove.
87776         (parse_with_separator): New function, with most of the internals
87777         of the old parse_user_spec.  Allow user to omit both user and group,
87778         for compatibility with FreeBSD.
87779         Clone only the user name, not the entire spec.
87780         Do not set *uid, *gid unless entirely successful.
87781         Avoid memory leak in some failing cases.
87782         Fix regression for USER.GROUP reported by Dmitry V. Levin in
87783         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
87784         (parse_user_spec): Rewrite to use parse_with_separator.
87785
87786 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87787
87788         * modules/userspec: Don't depend on alloca.
87789
87790 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
87791
87792         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
87793
87794 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
87795
87796         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
87797         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
87798         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
87799
87800 2004-08-16  Simon Josefsson  <jas@extundo.com>
87801
87802         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
87803         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
87804         Add --dry-run for --import.
87805         Let user provided command line parameters override configure.ac
87806         settings.
87807
87808 2004-08-12  Simon Josefsson  <jas@extundo.com>
87809
87810         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
87811         as discussed with Paul Eggert in threads rooted at
87812         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
87813         and
87814         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
87815         Before, the test was empty, and relied on ELIDE_CODE in source
87816         code.)
87817         (gl_PREREQ_GETOPT): New macro.
87818         (gl_GETOPT): Use them.
87819
87820 2004-08-12  Simon Josefsson  <jas@extundo.com>
87821
87822         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
87823         * lib/getopt_.h: Renamed from getopt.h.
87824
87825 2004-08-12  Simon Josefsson  <jas@extundo.com>
87826
87827         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
87828         Change default library name from libfoo to libgnu.
87829         Now, if you have a configure.ac that says:
87830                 gl_SOURCE_BASE(gl)
87831                 gl_M4_BASE(gl/m4)
87832                 gl_MODULES(error getopt etcetera)
87833                 gl_INIT
87834         you can import all you need by running:
87835                 ../gnulib/gnulib-tool --import
87836
87837         * modules/getopt (Files): Rename getopt.h to getopt_.h.
87838         (Makefile.am): Rewrite, use logic from argz.
87839         (Include): Use <getopt.h> instead of "getopt.h".
87840
87841 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87842
87843         * modules/argp (Files): Add m4/unlocked-io.m4.
87844         (Depends-on): Add extensions.
87845
87846 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87847
87848         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
87849         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
87850         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
87851         Check for program_invocation_name, program_invocation_short_name,
87852         flockfile, funlockfile, features.h, _getopt_long_only_r.
87853
87854 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87855
87856         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
87857         its complicated substitute.
87858         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
87859         and program_invocation_name.
87860         (__argp_basename) [!_LIBC]: Remove; the only use was
87861         replaced by its body.
87862         (__argp_short_program_name): Change condition from
87863         !defined __argp_short_program_name to
87864         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
87865         to match argp-namefrob.h.
87866         (__argp_failure): Don't assume strerror_r returns char *.
87867         * lib/argp-parse.c (N_): Define unconditionally.
87868         (argp_default_options): Fill out initializers with 0 to avoid
87869         gcc warnings.
87870
87871 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87872
87873         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
87874         getopt1.c.
87875
87876 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87877
87878         Merge from coreutils.
87879
87880         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
87881
87882         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
87883         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
87884
87885 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87886
87887         Merge from coreutils.
87888
87889         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
87890         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
87891         for Reliant Unix 5.43.
87892
87893         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
87894         (union fooround): Use uintmax_t, not long int.
87895         The rest is a merge from libc:
87896         [defined _LIBC]: Include <shlib-compat.h>.
87897         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87898
87899         * lib/settime.c (settime): Recode to avoid warning with
87900         Sun Forte C 6U2.
87901
87902         * lib/strverscmp.c: Convert to UTF-8.
87903
87904 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87905
87906         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87907         m4/uintmax_t.m4.
87908
87909 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87910
87911         * modules/xalloc-die: New file.
87912         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87913
87914         * modules/md5 (Files): Add m4/uint32_t.m4.
87915         * modules/sha1: Renamed from modules/sha.
87916         (Files):
87917         Rename lib/sha.h to lib/sha1.h.
87918         Rename lib/sha.c to lib/sha1.c.
87919         Rename m4/sha.m4 to m4/sha1.m4.
87920         (lib_SOURCES): Likewise.
87921         (configure.ac): Rename gl_SHA to gl_SHA1.
87922         (Include): sha.h -> sha1.h.
87923
87924 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87925
87926         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
87927         * m4/sha1.m4: Renamed from sha.m4.
87928         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
87929
87930 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87931
87932         * lib/obstack.h (obstack_empty_p):
87933         Don't assume that chunk->contents is suitably aligned.
87934         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
87935         Likewise. Problem reported by Benno in
87936         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
87937
87938         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
87939         readable.  This could be improved further but it'd take some work.
87940
87941 2004-08-08  Simon Josefsson  <jas@extundo.com>
87942
87943         * modules/xgethostname (Depends-on): Remove exit and error (not
87944         used).
87945
87946         * modules/getpass-gnu: Add getpass.h.
87947         (Depends-on): Add stdbool.
87948         * modules/getpass: Add getpass.h.
87949
87950 2004-08-08  Simon Josefsson  <jas@extundo.com>
87951
87952         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
87953         Check getpass declaration.
87954
87955 2004-08-08  Simon Josefsson  <jas@extundo.com>
87956
87957         * lib/xgethostname.c: Don't include error.h (not used).
87958
87959         * lib/getpass.h: Add.
87960         * lib/getpass.c: Include getpass.h first.
87961
87962 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
87963
87964         * lib/xalloc-die.c: New file.
87965         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
87966         All uses removed.
87967         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
87968         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
87969         xalloc-die.c.
87970         (_, N_, xalloc_die): Move to xalloc-die.c.
87971         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
87972         so that we needn't mess with xalloc_msg_memory_exhausted.
87973
87974         * lib/sha1.h: Renamed from sha.h.
87975         (SHA1_H): Renamed from _SHA_H.
87976         (sha1_ctx): Renamed from sha_ctx.
87977         (sha1_init_ctx): Renamed from sha_init_ctx.
87978         (sha1_process_block): Renamed from sha_process_block.
87979         (sha1_process_bytes): Renamed from sha_process_bytes.
87980         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87981         (sha1_read_ctx): Renamed from sha_read_ctx.
87982         (sha1_stream): Renamed from sha_stream.
87983         (sha1_buffer): Renamed from sha_buffer.
87984         * lib/sha1.c: Likewise; renamed from sha.c.
87985         Do not include <sys/types.h>.
87986         Include <stddef.h> rather than <stdlib.h>.
87987
87988 2004-08-08  Bruno Haible  <bruno@clisp.org>
87989
87990         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87991         FILESYSTEM_PREFIX_LEN.
87992         * lib/progreloc.c: Likewise.
87993         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87994
87995 2004-08-06  Simon Josefsson  <jas@extundo.com>
87996
87997         * modules/progname (Depends-on): Don't depend on stdbool.
87998
87999 2004-08-06  Simon Josefsson  <jas@extundo.com>
88000
88001         * modules/getsubopt: New file.
88002         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88003         getsubopt.
88004
88005 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88006
88007         More merge from coreutils.
88008
88009         * m4/utimens.m4, m4/utimecmp.m4: New files.
88010         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88011         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88012         prereq.m4, sha.m4: Import changes from coreutils.
88013
88014 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88015
88016         More merge from coreutils.
88017         * modules/raise, modules/readtokens0, modules/utimens:
88018         * modules/utimecmp, module/xnanosleep: New files.
88019         * modules/strftime: Add lib/strftime.h.
88020         Change include from <time.h> to "strftime.h".
88021         * modules/yesno: Add lib/yesno.h.
88022         * modules/backupfile: Remove lib/addext.c.
88023         * modules/euidaccess: Add stat-macros.h.
88024         * modules/canonicalize, modules/euidaccess,
88025         modules/filemode, modules/lchown, modules/makepath,
88026         modules/rmdir, modules/stat: Likewise.
88027
88028 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88029
88030         Merge from tar.
88031         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88032         SIZE_MAX is a valid preprocessor constant.
88033         (__argp_basename): Change from "#ifndef _LIBC"
88034         to "#ifndef __argp_short_program_name", so that
88035         we don't compile these functions for tar.
88036
88037         More merges from coreutils.
88038         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88039         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88040         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88041         * lib/addext.c: Remove; no longer needed.
88042         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88043         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88044         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88045         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88046         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88047         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88048         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88049         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88050         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88051         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88052         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88053         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88054         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88055         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88056         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88057         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88058         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88059         Import changes from coreutils.
88060
88061 2004-08-05  Simon Josefsson  <jas@extundo.com>
88062
88063         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88064
88065 2004-08-05  Simon Josefsson  <jas@extundo.com>
88066
88067         * m4/getsubopt.m4: New file.
88068
88069 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88070
88071         Merge from coreutils.
88072
88073         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88074         * m4/getcwd-path-max.m4: New files.
88075
88076         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88077         FILESYSTEM_PREFIX_LEN ->
88078         FILE_SYSTEM_PREFIX_LEN.
88079         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88080         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88081         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88082         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88083
88084         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88085         prerequisite modules now handle the DOS stuff.
88086         Don't check for unistd.h.
88087
88088 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88089
88090         Merge from coreutils.
88091
88092         * lib/.gdb-history: Remove; this doesn't belong here.
88093
88094         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88095         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88096         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88097         * lib/getcwd.c: New files.
88098
88099         * lib/dirname.h: Include <stdbool.h>.
88100         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88101         for consistency with POSIX terminology.  All uses changed.
88102         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88103         (strip_trailing_slashes): Use bool for booleans.
88104         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88105
88106         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88107         sometimes returns a positive errno value even when it succeeds.
88108         (print_errno_message) [!LIBC]: Fall back on strerror if
88109         __strerror_r fails.
88110
88111         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88112         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88113         (longest_relative_suffix): New function.
88114         (path_concat): Use it.  Assume first argument is not NULL.
88115         Port to DOS.  Omit redundant separators.
88116         Report an error instead of returning NULL.
88117         Use mempcpy instead of memcpy.
88118         (xpath_concat): Remove: not declared or used.
88119
88120         * lib/same.h: Include <stdbool.h>
88121         (same_name): Return bool, not int.
88122         * lib/same.c (same_name): Likewise.
88123         (errno): Don't declare; we assume C89 or better now.
88124
88125         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88126         if not already defined.
88127
88128         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88129         * lib/dup-safer.c (errno): Likewise.
88130
88131 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88132
88133         Merge from coreutils.
88134         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88135         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88136         * modules/path-concat: Don't depend on strdup.
88137
88138 2004-08-03  Simon Josefsson  <jas@extundo.com>
88139
88140         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88141         * lib/progname.h: Don't include stdbool.h.
88142
88143 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88144
88145         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88146         * MODULES.html.sh (func_all_modules): Remove fatal.
88147
88148 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88149
88150         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88151
88152 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88153
88154         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88155         working.
88156
88157 2004-08-02  Simon Josefsson  <jas@extundo.com>
88158
88159         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88160         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88161         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88162
88163 2004-08-01  Simon Josefsson  <jas@extundo.com>
88164
88165         * lib/xgetdomainname.c: Include stdlib.h, for free().
88166
88167 2004-07-19  Bruno Haible  <bruno@clisp.org>
88168
88169         * MODULES.html.sh (func_all_modules): Add dummy.
88170
88171 2004-07-16  Simon Josefsson  <jas@extundo.com>
88172
88173         * modules/dummy: New file.
88174
88175 2004-07-16  Simon Josefsson  <jas@extundo.com>
88176
88177         * lib/dummy.c: New file.
88178
88179 2004-07-16  Bruno Haible  <bruno@clisp.org>
88180
88181         * lib/backupfile.h: Add extern "C" for C++.
88182         * lib/closeout.h: Likewise.
88183         * lib/copy-file.h: Likewise.
88184         * lib/findprog.h: Likewise.
88185         * lib/full-write.h: Likewise.
88186         * lib/pathname.h: Likewise.
88187         * lib/progname.h: Likewise.
88188         * lib/stpcpy.h: Likewise.
88189         * lib/stpncpy.h: Likewise.
88190         * lib/strcase.h: Likewise.
88191         * lib/strstr.h: Likewise.
88192         * lib/xalloc.h: Likewise.
88193
88194         * lib/mbswidth.h: Add extern "C" for C++.
88195         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88196
88197 2004-07-13  Robert Millan  <robertmh@gnu.org>
88198
88199         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88200
88201 2004-07-09  Simon Josefsson  <jas@extundo.com>
88202
88203         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88204         failed without this.)
88205
88206 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88207
88208         * modules/chown (Files): Add lib/fchown-stub.c, since
88209         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88210
88211 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88212
88213         * lib/fchown-stub.c: New file.
88214
88215 2004-06-24  Jim Meyering  <jim@meyering.net>
88216
88217         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88218
88219 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88220
88221         * modules/argz: Omit "#include".
88222
88223         * MODULES.html.sh (func_all_modules): Add calloc, to match
88224         2004-06-01 addition of calloc module.
88225
88226 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88227
88228         * m4/argz.m4: New file, which is autoupdated from libtool.
88229
88230 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88231
88232         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88233         libtool.
88234
88235 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88236
88237         * config/srclist-update: Don't insist on "USA." before the
88238         close-comment, as libtool omits the period and puts the */ on a
88239         separate line.
88240         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88241         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88242
88243 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88244
88245         * modules/argz: New file.
88246         * MODULES.html.sh (func_all_modules): Add argz.
88247
88248 2004-06-12  Jim Meyering  <jim@meyering.net>
88249         and  Paul Eggert  <eggert@cs.ucla.edu>
88250
88251         * modules/hash (Files): Add lib/xalloc.h.
88252         * modules/pipe (Depends-on): Add wait-process.
88253         * modules/stat (Depends-on): Add xalloc.
88254         * modules/userspec (Files): Add lib/userspec.h.
88255         * modules/xstrto
88256
88257         Upgrade from gettext-0.13.
88258         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88259         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88260         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88261
88262 2004-06-10  Jim Meyering  <jim@meyering.net>
88263
88264         * lib/calloc.c: New file.
88265
88266 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88267
88268         * lib/getdate.y (yylex): Allow space between sign and number.
88269         Problem reported by Dan Jacobson.
88270
88271 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88272
88273         Merge from coreutils CVS.
88274
88275         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88276         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88277         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88278         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88279         xstrtol.m4: Fix copyright date and/or serial number.
88280
88281         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88282         See if we need an fchown replacement.
88283         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88284         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88285         and use the replacement function if we detect either defect.
88286
88287         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88288         gl_UTIMECMP.
88289
88290 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88291         and  Jim Meyering  <jim@meyering.net>
88292
88293         Merge from coreutils CVS.
88294
88295         * lib/stat-macros.h: New file, with contents from file-type.h
88296         and coreutils' system.h.
88297         * lib/file-type.c: Include "stat-macros.h".
88298         * lib/file-type.h (file_type): Move all macro definitions to new file,
88299         stat-macros.h.
88300
88301         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88302         Wrap old code with this conditional.
88303         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88304         function that does not dereference symlinks.
88305         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88306
88307         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88308         dependency problems.
88309         (xreadlink): Accept new arg SIZE, for efficiency.
88310         All decls and uses changed.
88311         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88312
88313         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88314         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88315
88316         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88317         sysexits.h.
88318
88319 2004-06-01  Jim Meyering  <jim@meyering.net>
88320
88321         * m4/calloc.m4: New file.
88322
88323 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88324
88325         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88326         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88327         Also, fix a typo in a diagnostic.
88328
88329 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88330
88331         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88332         or AC_FUNC_REALLOC.
88333
88334 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88335
88336         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88337         macros to be defined.
88338         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88339         the allocator returns NULL because the requested size is zero.
88340
88341 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88342
88343         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88344         var.  Add comment explaining why libc still defines it.  This
88345         merges the following patch from glibc:
88346         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88347
88348 2004-05-20  Andreas Schwab  <schwab@suse.de>
88349
88350         * m4/free.m4: Replace free if it not known to work, not the other
88351         way round.
88352
88353 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88354
88355         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88356         present in glibc since revision 1.1 of this file.
88357         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88358         obstack_alignment_mask, obstack_alloc, obstack_base,
88359         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88360         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88361         obstack_grow0, obstack_init, obstack_int_grow,
88362         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88363         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88364         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88365         nonexistent functions.
88366
88367 2004-05-18  Karl Berry  <karl@gnu.org>
88368
88369         * config/srclist.txt: break link for vasnprintf.c.
88370
88371 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88372
88373         Port obstack to the AS/400, where pointers are 16 bytes wide and
88374         you cannot cast an integer to a valid pointer.  This patch is
88375         currently waiting to be integrated into glibc; see
88376         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88377
88378         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88379         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88380         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88381         (struct obstack): temp member is now a union of a pointer and
88382         an integer, instead of an integer.  All integer uses changed.
88383         This does not affect the physical layout of struct obstack,
88384         except on hosts (like the AS/400) where the size or alignment of
88385         void * is greater than that of ptrdiff_t.
88386         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88387         __STDC__)]: Store temporary in pointer member of union, not
88388         integer member.
88389         * lib/obstack.c: Include <stddef.h>, for offsetof.
88390         (struct fooalign): Remove; it doesn't need a name.
88391         (union fooround): Change double to long double, and add void *.
88392         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88393         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88394         not a macro.  Hence the values are always int; so remove all
88395         casts-to-int in uses.
88396
88397 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88398
88399         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88400         we can get this patch merged into glibc.
88401
88402 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88403             Paul Eggert  <eggert@cs.ucla.edu>
88404
88405         * m4/argp: Depend on alloca.
88406
88407 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88408             Paul Eggert  <eggert@cs.ucla.edu>
88409
88410         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88411         freecoding.
88412
88413 2004-05-17  Bruno Haible  <bruno@clisp.org>
88414
88415         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88416         precision that consists of a '.' followed by an empty digit string.
88417         Patch by Tor Lillqvist <tml@iki.fi>.
88418
88419 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88420
88421         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88422         for backward compatibility with older code.  We need our own
88423         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88424         it under some other name, and our alloca.h will define it.
88425
88426 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88427             Derek Price  <derek@ximbiot.com>
88428
88429         * lib/alloca.c: Include <alloca.h>, to get our interface.
88430         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88431         include <alloca.h> first.  Use C89 prototype for alloca; this
88432         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88433         Use #elif for simplicity, since we can assume C89 now.
88434         Don't try to source the system alloca.h since it will not be found
88435         and to prevent recursively including its replacement.
88436         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88437         * lib/regex.c: Likewise.
88438
88439 2004-05-16  Derek Price  <derek@ximbiot.com>
88440             Paul Eggert  <eggert@cs.ucla.edu>
88441
88442         getline cleanup.  This changes the getndelim2 API: both order of
88443         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88444         no delimiter).
88445
88446         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88447         interface does that.
88448         (getline): Always use getdelim, so that we don't have two
88449         copies of this code.
88450         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88451         if available.
88452         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88453         (GETNDELIM2_MAXIMUM): New macro.
88454         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88455         instead of the old practice of delim2==0.  All callers changed.
88456         Return -1 on overflow, instead of returning junk.
88457         Do not set *linesize unless allocation succeeds.
88458         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88459         that we include sys/types.h.
88460         * lib/getnline.h: Likewise.
88461         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88462         (getndelim2): Reorder arguments.
88463         * lib/getnline.c (getnline, getndelim):
88464         Don't discard the NMAX argument.
88465         (getnline): Invoke getndelim, to avoid code duplication.
88466         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88467         of (size_t) -1 by callers of the getnline family.
88468
88469 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88470
88471         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88472         Check for gettimeofday.
88473         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88474         Check for settimeofday, stime.
88475
88476 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88477
88478         * lib/nanosleep.c (suspended): Change its type from int to
88479         sig_atomic_t volatile.
88480         (first_call): Make it private to rpl_nanosleep, and have it
88481         be zero initially as that's a bit faster.
88482         (my_usleep): Round up fractional times instead of truncating them,
88483         as this is the usual meaning for 'sleep'.
88484
88485         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88486         doesn't work.
88487         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88488         (ENOSYS): Define if not defined.
88489         (settime): Fall back on stime if it exists and settimeofday fails.
88490         But don't bother with fallbacks if a method fails with errno == EPERM.
88491
88492 2004-05-11  Jim Meyering  <jim@meyering.net>
88493
88494         Prior to this change, the save_cwd caller required read access to the
88495         current directory on most systems (ones with the fchdir function).
88496
88497         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88498         fails, try write-only, and finally, resort to using xgetcwd.
88499
88500 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88501
88502         * lib/obstack.c, obstack.h: Import changes from libc.
88503
88504 2004-04-28  Bruno Haible  <bruno@clisp.org>
88505
88506         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
88507         also implicitly appends .exe to executables.
88508         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
88509         accepts Windows pathnames.
88510         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88511         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88512         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
88513         Treat Cygwin like Windows, since it now accepts Windows pathnames.
88514         Reported by Derek Robert Price <derek@ximbiot.com>.
88515
88516 2004-04-21  Karl Berry  <karl@gnu.org>
88517
88518         * config/srclist.txt (localcharset.c): break sync.
88519
88520 2004-04-20  Paul Eggert  <eggert@twinsun.com>
88521
88522         * m4/host-os.m4: Add a copyright notice.
88523
88524 2004-04-20  Jim Meyering  <jim@meyering.net>
88525
88526         Change UTILS_ to gl_ in AC_DEFINE'd names.
88527         Change utils_- and jm_-prefixed variables, too.
88528         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
88529         UTILS_FUNC_MKDIR_TRAILING_SLASH.
88530         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
88531
88532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
88533         Don't emit trailing blanks.
88534         Also rename jm_-prefixed variables to have gl_ prefix.
88535
88536         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
88537         Also rename jm_-prefixed variables to have gl_ prefix.
88538
88539         * m4/jm-macros.m4: Reflect the renamings.
88540         * m4/prereq.m4: Likewise.
88541
88542 2004-04-20  Jim Meyering  <jim@meyering.net>
88543
88544         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
88545         memory.
88546
88547 2004-04-20  Jim Meyering  <jim@meyering.net>
88548             Bruno Haible  <bruno@clisp.org>
88549
88550         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
88551         memory when realloc fails.
88552
88553 2004-04-19  Jim Meyering  <jim@meyering.net>
88554
88555         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
88556         now that readutmp.c may call `free (0)'.
88557
88558 2004-04-19  Bruno Haible  <bruno@clisp.org>
88559
88560         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
88561         * m4/inttypes_h.m4: Likewise.
88562         * m4/stdint_h.m4: Likewise.
88563         * m4/intmax_t.m4: Likewise.
88564         * m4/uintmax_t.m4: Likewise.
88565
88566 2004-04-18  Jim Meyering  <jim@meyering.net>
88567
88568         * m4/prereq.m4: Don't forbid jm_ prefix.
88569
88570         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
88571         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
88572         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
88573         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
88574         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
88575         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
88576         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
88577         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
88578         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
88579         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
88580         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
88581         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
88582         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
88583         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
88584         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
88585         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
88586         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
88587         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
88588         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
88589
88590 2004-04-18  Jim Meyering  <jim@meyering.net>
88591
88592         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
88593         failure, don't leak memory and do call END_UTMP_ENT.
88594
88595 2004-04-16  Jim Meyering  <jim@meyering.net>
88596
88597         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
88598         coreutils' stat program.
88599         (gl_PREREQ): Don't require jm_PREREQ_STAT.
88600
88601 2004-04-11  Paul Eggert  <eggert@twinsun.com>
88602
88603         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
88604         C89.
88605         (CHAR_BIT): Remove, since we assume C89.
88606         Include <stdint.h> if available, as per current Autoconf CVS advice.
88607
88608 2004-03-31  Jim Meyering  <jim@meyering.net>
88609
88610         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
88611         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
88612         * m4/xalloc.m4: Likewise.
88613
88614 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88615
88616         Merge from coreutils.
88617
88618         * m4/inttostr.m4: New file.
88619         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
88620         Require AM_STDBOOL_H and gl_TIMESPEC instead.
88621         Require gl_CLOCK_TIME.
88622         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
88623
88624 2004-03-30  Paul Eggert  <eggert@twinsun.com>
88625
88626         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
88627         not bool, to be more consistent with Unix conventions.
88628         Suggested by Bruno Haible.
88629
88630         Merge from coreutils.
88631
88632         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
88633         * lib/umaxtostr.c: New files.
88634
88635         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
88636         the usual <time.h> dance.
88637         (get_date): Change signature to support fractional time stamps.
88638         All callers changed.
88639         * lib/getdate.y: Include "getdate.h" first, as we can now
88640         assume C89 and don't need to worry about 'const'.
88641         Similarly, include "unlocked-io.h" near start, not in middle.
88642         Include <limits.h>.
88643         (textint.value): Use long int rather than int.
88644         (textint.digits): Use size_t rather than int.
88645         (BILLION, LOG10_BILLION): New constants.
88646         (parser_control): New member rel_ns.  Members day_ordinal,
88647         time_zone, month, day, hour, minutes, rel_year, rel_month,
88648         rel_day, rel_hour, rel_minutes, rel_seconds
88649         are now long int, not int.  Member seconds is now struct timespec,
88650         not int.  New member timespec_seen.  Members dates_seen, days_seen,
88651         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
88652         not int.
88653         (%union.intval): Now long int, not int.
88654         New member timespec.
88655         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
88656         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
88657         (spec): Now is a timespec or an item list.
88658         (timespec, items): New nonterminals.
88659         (time, rel, relunit, number, get_date):
88660         Add support for fractional seconds.
88661         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
88662         (gmtime, localtime, mktime): Remove decls; not needed with C89.
88663         (to_hour): First arg is now long int, not int.
88664         (to_year): Returns long int, not int.
88665         Don't treat year -70 like 70.
88666         (tm_diff): Returns long int, not int.
88667         (lookup_word): Use bool instead of int when appropriate.
88668         (yylex): Use size_t for count, not int.
88669         Detect overflow when parsing large integer constants.
88670         Add support for fractions.
88671         (get_date): Make pointers 'const' if possible.
88672         Use more-portable code to detect integer overflow.
88673         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
88674         Don't use ctime; it's not reliable if the year has >4 digits.
88675
88676         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
88677         This is for compatibility with BSD.
88678
88679         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
88680         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
88681         From coreutils' system.h.
88682
88683         * lib/userspec.c: Don't include "posixver.h".
88684         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
88685         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
88686         compatible extension.  Simplify code by removing a boolean int
88687         that was always nonzero if a string was nonnull.
88688
88689 2004-03-30  Jim Meyering  <jim@meyering.net>
88690
88691         Merge from coreutils.
88692
88693         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
88694         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
88695         on some systems one must include <grp.h> before it.
88696         Reported by Christian Krackowizer.
88697
88698 2004-03-30  Jim Meyering  <jim@meyering.net>
88699
88700         Merge from coreutils.
88701
88702         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
88703
88704         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
88705         an empty input stream.
88706
88707         * lib/readtokens.c: Include <stdbool.h>.
88708         (readtoken): Use `size_t' rather than int/long.
88709         All callers adjusted.
88710         Use `bool' rather than `int' where appropriate.
88711         Use memset rather than an explicit loop.
88712         Use x2nrealloc rather than xrealloc.
88713         Allow the use of `\0' as a delimiter.
88714         (readtokens): Likewise.
88715         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
88716
88717 2004-03-30  Jim Meyering  <jim@meyering.net>
88718
88719         * m4/realloc.m4: Remove file, since now it does no more than
88720         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
88721         the `configure.ac' section of module/realloc.
88722         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
88723
88724 2004-03-30  Bruno Haible  <bruno@clisp.org>
88725
88726         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
88727         nonnull.
88728
88729 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88730
88731         Merge changes to getloadavg.c from coreutils and Emacs.
88732
88733         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
88734         Define to an expression, not to the empty string.
88735         Include cloexec.h and xalloc.h.
88736         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
88737         Use set_cloexec_flag rather than rolling our own.
88738         * lib/cloexec.c, lib/cloexec.h: New files.
88739
88740 2004-03-29  Paul Eggert  <eggert@twinsun.com>
88741
88742         * m4/cloexec.m4: New file.
88743
88744 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88745
88746         * lib/getopt.h: Sync with libc CVS.
88747
88748 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88749             Bruno Haible  <bruno@clisp.org>
88750
88751         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
88752         mbswidth.
88753
88754 2004-03-18  Paul Eggert  <eggert@twinsun.com>
88755             Bruno Haible  <bruno@clisp.org>
88756
88757         * lib/mbswidth.h: Include <wchar.h> only if
88758         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
88759         <wchar.h>.
88760         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
88761
88762 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88763
88764         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
88765         Sync with libc CVS.
88766         * lib/getopt_int.h: New file, also synced from libc.
88767
88768 2004-03-09  Paul Eggert  <eggert@twinsun.com>
88769
88770         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
88771         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
88772         Bring back getopt.c, getopt.h, getopt1.c.
88773
88774 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88775
88776         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
88777         All uses changed.  Check for sa_sigaction member; this fixes
88778         a bug first reported by Jason Andrade in
88779         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88780
88781 2004-03-07  Paul Eggert  <eggert@twinsun.com>
88782
88783         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
88784         '#if' expressions.  Unlike the code it replaces, it does not
88785         depend on (defined _SC_PAGESIZE).  However, it does depend on
88786         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
88787         first reported by Jason Andrade in
88788         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
88789
88790 2004-02-25  Simon Josefsson  <jas@extundo.com>
88791
88792         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
88793
88794 2004-02-25  Simon Josefsson  <jas@extundo.com>
88795
88796         * lib/strdup.h: New file.
88797         * lib/strdup.c: Include it.
88798         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
88799         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
88800
88801 2004-02-23  Karl Berry  <karl@gnu.org>
88802
88803         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
88804         (from fencepost.gnu.org:/gd/gnuorg).
88805
88806 2004-02-23  Karl Berry  <karl@gnu.org>
88807
88808         * config/srclistvars.sh (GNUORG) [karl]: redefine.
88809         * config/srclist.txt: add maintain/standards documents.
88810
88811 2004-02-18  Bruno Haible  <bruno@clisp.org>
88812
88813         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
88814         Reported by Derek Robert Price <derek@ximbiot.com>.
88815
88816 2004-02-16  Karl Berry  <karl@gnu.org>
88817
88818         * config/mkinstalldirs, install-sh: update from automake.
88819
88820 2004-02-06  Karl Berry  <karl@gnu.org>
88821
88822         * m4/po.m4: update from gettext 0.14.1.
88823
88824 2004-02-06  Karl Berry  <karl@gnu.org>
88825
88826         * lib/config.charset: update from gettext 0.14.1.
88827
88828 2004-02-05  Paul Eggert  <eggert@twinsun.com>
88829
88830         Add comments and code, prompted by suggestions from Bruno Haible
88831         for sh-quote.
88832         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
88833         describing the enum quoting_style values.
88834         * lib/quotearg.c (quotearg_alloc): New function.
88835         (quotearg_buffer_restyled): Treat lone { and } as special.
88836         Treat = as special.  Work around bug with older shells
88837         that "see" a '\' that is really the 2nd byte of a multibyte char.
88838         Quote empty string with shell_quoting_style.
88839
88840 2004-02-03  Bruno Haible  <bruno@clisp.org>
88841
88842         * m4/pipe.m4: New file, from GNU gettext.
88843
88844 2004-02-03  Bruno Haible  <bruno@clisp.org>
88845
88846         * lib/pipe.h: New file, from GNU gettext.
88847         * lib/pipe.c: New file, from GNU gettext.
88848
88849 2004-01-27  Bruno Haible  <bruno@clisp.org>
88850
88851         * m4/execute.m4: New file, from GNU gettext.
88852
88853 2004-01-27  Bruno Haible  <bruno@clisp.org>
88854
88855         * lib/execute.h: New file, from GNU gettext.
88856         * lib/execute.c: New file, from GNU gettext.
88857         * lib/w32spawn.h: New file, from GNU gettext.
88858
88859 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88860
88861         Merge from diffutils.
88862
88863         * lib/file-type.c (file_type): Add typed memory objects.
88864         * lib/file-type.h (S_TYPEISTMO): New macro.
88865
88866         * lib/c-stack.h (c_stack_action): Remove argv argument.
88867         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
88868         (die): Don't calculate message unless segv_action returns.
88869         (get_stack_location, min_address_from_argv, max_address_from_argv,
88870         volatile stack_base, volatile_stack_size): Remove.
88871         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
88872         that every segmentation violation is a stack overflow.  (Ouch!)
88873         See Debian bug 136249 (still outstanding) for more info about why
88874         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
88875
88876 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88877
88878         Exit-status fix from coreutils.
88879
88880         Use exit_failure consistently in place of EXIT_FAILURE,
88881         so that program exit statuses are consistent on failure.
88882
88883         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
88884         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
88885         * lib/argmatch.h: Comment fix to match the above.
88886         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
88887         Now a macro referring to exit_failure, instead of a separate
88888         variable.  Include "exitfail.h" to get it.
88889         * lib/xstrtol.h: Include "exitfail.h".
88890         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
88891
88892         * lib/long-options.c (parse_long_options): Use prototype
88893         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
88894         for clarity.
88895
88896 2004-01-21  Jim Meyering  <jim@meyering.net>
88897
88898         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88899         so as not to conflict with a different-sized __mktime_internal
88900         function in GNU libc.
88901         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88902         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88903
88904 2004-01-20  Karl Berry  <karl@gnu.org>
88905
88906         * config/config.guess: update from config.
88907
88908         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88909
88910 2004-01-20  Bruno Haible  <bruno@clisp.org>
88911
88912         Safer stack allocation.
88913         * lib/setenv.c: Include allocsa.h.
88914         (alloca): Remove fallback definition.
88915         (freea): Remove macro.
88916         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88917         instead of freea.
88918
88919 2004-01-20  Bruno Haible  <bruno@clisp.org>
88920
88921         * m4/eealloc.m4: New file, from GNU gettext.
88922
88923 2004-01-20  Bruno Haible  <bruno@clisp.org>
88924
88925         * m4/allocsa.m4: New file, from GNU gettext.
88926
88927 2004-01-20  Bruno Haible  <bruno@clisp.org>
88928
88929         * lib/xallocsa.h: New file, from GNU gettext.
88930         * lib/xallocsa.c: New file, from GNU gettext.
88931
88932 2004-01-20  Bruno Haible  <bruno@clisp.org>
88933
88934         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
88935
88936 2004-01-20  Bruno Haible  <bruno@clisp.org>
88937
88938         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
88939         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
88940         specially.
88941
88942 2004-01-20  Bruno Haible  <bruno@clisp.org>
88943
88944         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
88945         patch.
88946
88947 2004-01-20  Bruno Haible  <bruno@clisp.org>
88948
88949         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
88950
88951 2004-01-20  Bruno Haible  <bruno@clisp.org>
88952
88953         * lib/eealloc.h: New file.
88954
88955 2004-01-20  Bruno Haible  <bruno@clisp.org>
88956
88957         * lib/binary-io.h: Avoid warnings on Cygwin.
88958
88959 2004-01-20  Bruno Haible  <bruno@clisp.org>
88960
88961         * lib/allocsa.h: New file, from GNU gettext.
88962         * lib/allocsa.c: New file, from GNU gettext.
88963
88964 2004-01-18  Karl Berry  <karl@gnu.org>
88965
88966         * doc/gpl.texi, doc/lgpl.texi: new files.
88967
88968 2004-01-18  Karl Berry  <karl@gnu.org>
88969
88970         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
88971         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
88972
88973 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88974
88975         Merge from coreutils.
88976
88977         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88978         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88979         (gl_DEFAULT_POSIX2_VERSION): Move
88980         the documentation from 'configure' into 'config.hin',
88981         so that 'configure --help' isn't burdened by it and
88982         we don't have to worry about its formatting there.
88983         Reword the documentation so that it's more succinct
88984         and can be run together into a single paragraph.
88985         * m4/same.m4 (gl_SAME): Check for pathconf.
88986
88987 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88988
88989         Merge from coreutils.
88990
88991         * lib/posixver.c: Include posixver.h.
88992
88993         * lib/same.c: Include <stdbool.h>, <limits.h>.
88994         (_POSIX_NAME_MAX): Define if not defined.
88995         (MIN): New macro.
88996         (same_name): If file names are silently truncated, report
88997         that the file names are the same if they are the same after
88998         the silent truncation.
88999
89000         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89001         conversion function.
89002         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89003         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89004         longer needed.
89005
89006 2004-01-15  Jim Meyering  <jim@meyering.net>
89007
89008         Merge from coreutils.
89009
89010         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89011         if no library is required.
89012         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89013         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89014         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89015         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89016         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89017         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89018         value, $ac_cv_search_crypt, if it's "none required".
89019         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89020         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89021         not gl_FUNC_GETLOADAVG.
89022         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89023         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89024
89025 2004-01-15  Jim Meyering  <jim@meyering.net>
89026
89027         Merge from coreutils.
89028
89029         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89030         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89031         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89032
89033         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89034         optional configure-time default.
89035
89036         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89037
89038         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89039
89040 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89041
89042         Merge from coreutils.
89043
89044         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89045         value, $ac_cv_search_nanosleep, if it's "none required".
89046
89047 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89048
89049         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89050         with like-named macro in fnmatch.c.
89051         (EXT): Use an internal constant instead.
89052
89053         Merge fnmatch patches from glibc.
89054         * lib/fnmatch.c (mbsinit): Remove define.
89055         Add libc_hidden_ver (__fnmatch, fnmatch).
89056         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89057         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89058
89059 2004-01-14  Karl Berry  <karl@gnu.org>
89060
89061         * config/install-sh: update from automake.
89062
89063 2004-01-13  Karl Berry  <karl@gnu.org>
89064
89065         * config/install-sh: update from automake.
89066
89067 2004-01-09  Karl Berry  <karl@gnu.org>
89068
89069         * config/install-sh: update from automake.
89070
89071 2004-01-05  Karl Berry  <karl@gnu.org>
89072
89073         * config/config.{sub,guess}: update from config.
89074
89075 2003-12-31  Karl Berry  <karl@gnu.org>
89076
89077         * config/depcomp: update from automake.
89078
89079 2003-12-14  Karl Berry  <karl@gnu.org>
89080
89081         * lib/config.charset: update from gettext-runtime.
89082
89083 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89084
89085         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89086         Bug reported by Alfred M. Szmidt.
89087
89088 2003-12-03  Bruno Haible  <bruno@clisp.org>
89089
89090         * m4/gettext.m4: Upgrade from gettext-0.13.
89091         * m4/po.m4: Upgrade from gettext-0.13.
89092         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89093         * m4/intmax.m4: New file, from gettext-0.13.
89094         * m4/printf-posix.m4: New file, from gettext-0.13.
89095
89096 2003-11-29  Karl Berry  <karl@gnu.org>
89097
89098         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89099
89100 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89101             Bruno Haible  <bruno@clisp.org>
89102
89103         * lib/printf-parse.h: Don't include sys/types.h.
89104         (ARG_NONE): New macro.
89105         (char_directive): Change type of *arg_index fields to size_t.
89106         * lib/printf-parse.c: Don't include sys/types.h.
89107         (SSIZE_MAX): Remove macro.
89108         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89109         Remove unnecessary overflow check.
89110         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89111         fields.
89112
89113 2003-11-25  Bruno Haible  <bruno@clisp.org>
89114
89115         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89116
89117 2003-11-25  Bruno Haible  <bruno@clisp.org>
89118
89119         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89120         gt_TYPE_SSIZE_T.
89121
89122 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89123
89124         * modules/alloca: Remove dependency on xalloc.
89125
89126 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89127
89128         * lib/alloca.c: Remove dependency on xalloc module.
89129         (xalloc_die): Remove.
89130         (memory_full) [!defined emacs]: New macro.
89131         [!defined emacs]: Don't include xalloc.h.
89132         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89133         address arithmetic overflows.  Change datatypes a bit to avoid
89134         unnecessary casts.
89135
89136 2003-11-22  Jim Meyering  <jim@meyering.net>
89137
89138         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89139         s/size/size_t/.
89140
89141 2003-11-21  Karl Berry  <karl@gnu.org>
89142
89143         * config/config.{sub,guess}: update from config.
89144
89145 2003-11-18  Karl Berry  <karl@gnu.org>
89146
89147         * config/config.{sub,guess}: update from config.
89148
89149         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89150
89151 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89152
89153         * README: Mention that S+T cannot overflow if S is the size of
89154         an existing object and T is sufficiently small.
89155
89156 2003-11-17  Jim Meyering  <jim@meyering.net>
89157
89158         On systems without utime and without a utimes function capable of
89159         dealing with a NULL struct utimbuf* argument, this utime replacement
89160         could -- in unusual circumstances -- leak a file descriptor.
89161         * lib/utime.c: Include <unistd.h> and <errno.h>.
89162         (utime_null): Be sure to close `fd' and to preserve errno.
89163         Reported by Geoff Collyer via Arnold Robbins.
89164
89165 2003-11-17  Bruno Haible  <bruno@clisp.org>
89166
89167         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89168         (Depends-on): Add xsize.
89169
89170 2003-11-17  Bruno Haible  <bruno@clisp.org>
89171
89172         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89173
89174 2003-11-17  Bruno Haible  <bruno@clisp.org>
89175
89176         * lib/vasnprintf.c (alloca): Remove fallback definition.
89177         (freea): Remove definition.
89178         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89179         Reported by Paul Eggert.
89180
89181 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89182             Bruno Haible  <bruno@clisp.org>
89183
89184         Protect against address arithmetic overflow.
89185         * lib/printf-args.h: Include stddef.h.
89186         (arguments): Change type of field 'count' to size_t.
89187         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89188         'unsigned int' where appropriate.
89189         * lib/printf-parse.h: Include sys/types.h.
89190         (char_directive): Change type of *arg_index fields to ssize_t.
89191         (char_directives): Change type of fields 'count', max_*_length to
89192         size_t.
89193         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89194         (SSIZE_MAX): Define fallback value.
89195         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89196         instead of 'int' where appropriate. Check a_allocated, d_allocated
89197         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89198         * lib/vasnprintf.c: Include xsize.h.
89199         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89200         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89201         overflow. Avoid wraparound when converting a width or precision from
89202         decimal to binary.
89203
89204 2003-11-16  Bruno Haible  <bruno@clisp.org>
89205
89206         Update from GNU gettext.
89207         * lib/printf-parse.c: Generalize to it can be compiled for wide
89208         strings.
89209         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89210         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89211         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89212         SNPRINTF): New macros.
89213         Don't include <alloca.h> if the file is used inside libintl.
89214         (local_wcslen): New function, for Solaris 2.5.1.
89215         (VASNPRINTF): Use it instead of wcslen.
89216
89217 2003-11-16  Bruno Haible  <bruno@clisp.org>
89218
89219         * lib/xsize.h (xmax): New function.
89220         (xsum, xsum3, xsum4): Declare as "pure" functions.
89221
89222 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89223
89224         * modules/xalloc (Files): Undo latest change, since xalloc.h
89225         no longer needs SIZE_MAX or PTRDIFF_MAX.
89226
89227 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89228
89229         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89230         gl_PTRDIFF_MAX.
89231
89232 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89233
89234         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89235         "return", to pacify some unknown compiler.  Problem reported
89236         by Joerg Schilling.
89237
89238 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89239
89240         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89241         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89242         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89243         heuristic is just as accurate as far as we know, and it removes a
89244         dependency on size_max.m4 and ptrdiff_max.m4.
89245
89246 2003-11-11  Bruno Haible  <bruno@clisp.org>
89247
89248         * modules/xsize (Files): Add m4/size_max.m4.
89249         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89250
89251 2003-11-11  Bruno Haible  <bruno@clisp.org>
89252
89253         * m4/size_max.m4: New file.
89254         * m4/ptrdiff_max.m4: New file.
89255         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89256         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89257         (gl_XALLOC): Invoke it.
89258
89259 2003-11-11  Bruno Haible  <bruno@clisp.org>
89260
89261         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89262         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89263         defined.
89264
89265 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89266
89267         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89268         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89269         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89270         From Bruno Haible.
89271         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89272         not (size_t) -1, since it's defined here.
89273
89274 2003-11-09  Karl Berry  <karl@gnu.org>
89275
89276         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89277
89278 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89279
89280         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89281         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89282         Reject sizes of exactly SIZE_MAX bytes.
89283         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89284         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89285
89286 2003-11-05  Bruno Haible  <bruno@clisp.org>
89287
89288         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89289         SIZE_MAX defined in <limits.h> on Solaris.
89290
89291 2003-11-04  Jim Meyering  <jim@meyering.net>
89292
89293         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89294         variable names, rather than @VAR@.
89295         * modules/poll: Likewise.
89296
89297 2003-11-04  Bruno Haible  <bruno@clisp.org>
89298
89299         * modules/xsize: New file.
89300         * modules/linebreak: Depend on xsize.
89301         * MODULES.html.sh (func_all_modules): Add xsize.
89302
89303 2003-11-04  Bruno Haible  <bruno@clisp.org>
89304
89305         * m4/xsize.m4: New file.
89306
89307 2003-11-04  Bruno Haible  <bruno@clisp.org>
89308
89309         * lib/xsize.h: New file.
89310         * lib/linebreak.c: Include xsize.h.
89311         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89312         argument for overflow.
89313         Suggested by Paul Eggert.
89314
89315 2003-11-03  Karl Berry  <karl@gnu.org>
89316
89317         * config/config.{guess,sub}: update from config.
89318
89319 2003-11-03  Jim Meyering  <jim@meyering.net>
89320
89321         * modules/userspec (lib_SOURCES): Add userspec.h.
89322         (Include): Add "userspec.h".
89323         Improve description.
89324
89325 2003-11-03  Jim Meyering  <jim@meyering.net>
89326
89327         * lib/userspec.c: Include "userspec.h".
89328         * lib/userspec.h: New file.
89329
89330 2003-11-03  Bruno Haible  <bruno@clisp.org>
89331
89332         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89333
89334 2003-11-03  Bruno Haible  <bruno@clisp.org>
89335
89336         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89337         available, to avoid (extremely rare) race condition.
89338         Suggested by Paul Eggert.
89339
89340 2003-11-02  Karl Berry  <karl@gnu.org>
89341
89342         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89343
89344 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89345
89346         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89347         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89348         (read_filesystem_list): Set and use me_type_malloced.
89349         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89350         whatever the type happens to be), for brevity and consistency.
89351         Check for size calculation overflow on Alphas running OSF/1.
89352
89353 2003-10-31  Jim Meyering  <jim@meyering.net>
89354
89355         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89356
89357         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89358
89359 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89360             Bruno Haible  <bruno@clisp.org>
89361
89362         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89363         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89364
89365 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89366
89367         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89368         netbsd*-gnu*.  Suggested by Robert Millan.
89369
89370 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89371
89372         * modules/group-member: Depend on stdbool.
89373
89374 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89375
89376         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89377
89378 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89379
89380         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89381         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89382         after the 'gnu' in these cases.  This fixes some bugs in the
89383         previous change, and is based on suggestions by Robert Millan.
89384
89385 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89386
89387         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89388         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89389         no longer needed.
89390         * lib/quotearg.c (quotearg_n_options): Use it.
89391         * lib/group-member.c: Include <stdbool.h>.
89392         (free_group_info): Arg is now const *; don't free arg.
89393         (get_group_info): Now returns bool and accepts struct group_info *,
89394         rather than returning a malloc'ed struct group_info *.
89395         All uses changed.  Check for overflow in internal size calculation.
89396
89397         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89398         rather than xmalloc/xrealloc.
89399         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89400         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89401         conformance bug: the old code used a pointer after freeing the
89402         storage that it addressed.
89403         * lib/hash.c (hash_initialize): Simplify the code by using
89404         xalloc_oversized rather than doing it by hand.
89405         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89406         the buffer preserved.  Use free and xmalloc instead.
89407         * lib/quotearg.c (quotearg_n_options): Likewise.
89408         Use a simpler test for size overflow.  Don't use xalloc_oversized
89409         because unsigned int might be wider than size_t (!); this suggests
89410         that we should switch from unsigned int to size_t for slot numbers.
89411
89412 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89413
89414         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89415         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89416         NetBSD kernels.  Requested by Richard Stallman.
89417
89418 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89419
89420         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89421         to allocate the returned structure.  Do not allocate a subarray,
89422         as x2nrealloc will do that.
89423         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89424         instead of xnrealloc.
89425         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89426
89427 2003-10-27  Bruno Haible  <bruno@clisp.org>
89428
89429         * lib/stdbool_.h: Better support for BeOS.
89430
89431 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89432
89433         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89434         now uses inline.
89435
89436 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89437
89438         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89439         callers that want to do their own size-overflow checking.  Include
89440         <stdbool.h>, since xalloc_oversized returns bool.
89441         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89442         to use xalloc_oversized.
89443
89444         Add two functions x2realloc, x2nrealloc, for programs that grow
89445         arrays dynamically by doubling their sizes.
89446         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89447         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89448         New functions.
89449
89450         Port to C99 semantics for 'inline' of external functions.
89451         Bug reported by Bruno Haible.
89452         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89453         with the old contents of xnmalloc.
89454         (xnmalloc, xmalloc): Use it.
89455         (xnrealloc_inline): New static inline function,
89456         with the old contents of xnrealloc.
89457         (xnrealloc, xrealloc): Use it.
89458
89459         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89460         that.
89461
89462 2003-10-26  Karl Berry  <karl@gnu.org>
89463
89464         * config/srclist.txt (COPYING.DOC): no longer available from
89465         /gd/gnuorg; don't know where the ultimate source is.
89466
89467 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89468
89469         Fix several address-calculation bugs in the hash modules,
89470         plus some minor code cleanup.
89471
89472         * lib/hash.h: Include <stdbool.h>, for bool.
89473         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89474         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89475         hash_get_n_entries, hash_get_max_bucket_length,
89476         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89477         hash_rehash): Use size_t rather than unsigned.
89478         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89479         hash_get_n_buckets_used, hash_get_n_entries,
89480         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89481         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89482         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89483         Likewise.
89484         (SIZE_MAX): Define if not defined.
89485         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89486         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89487         hash_print):
89488         Use const * when possible.
89489         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89490         (check_tuning): Fix bug: if tuning parameters were very close to
89491         0 or 1, rounding errors could have caused subscript violations.
89492         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89493         (hash_initialize): Add 'fail:' label
89494         to free table and return NULL, and use it to simplify code.
89495         Use calloc rather than clearing the storage ourself.
89496         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89497         buffer size calculations.
89498         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89499         Include <stddef.h>, for size_t.
89500         * lib/hash-pjw.c (hash_pjw): Likewise.
89501         Switch to method described by Bruno Haible.
89502         Include <limits.h>, for CHAR_BIT.
89503         (SIZE_BITS): New macro.
89504
89505 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89506
89507         * m4/getline.m4 (AM_FUNC_GETLINE):
89508         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
89509         hosts.  Problem reported by Derek Robert Price in
89510         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
89511         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
89512         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
89513
89514 2003-10-21  Paul Eggert  <eggert@twinsun.com>
89515
89516         * lib/getndelim2.c (getndelim2): When size calculation overflows,
89517         ceiling the allocation at NMAX bytes rather than silently
89518         discarding input bytes before NMAX is reached.  This makes
89519         a difference only if NMAX exceeds SIZE_MAX / 2.
89520
89521         * lib/obstack.c: Merge from glibc.
89522         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
89523         Add libc_hidden_def (_obstack_newchunk).
89524         (_obstack_free) [! defined _LIBC]: Remove.
89525         [defined _LIBC]: Make a strong alias from obstack_free, rather than
89526         a clone of the function body.
89527         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
89528         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
89529
89530         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
89531         glibc.
89532         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
89533         arg to memcpy.
89534
89535         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
89536         (obstack_ptr_grow_fast, obstack_int_grow_fast):
89537         Don't use lvalue casts, as GCC plans to remove support for them
89538         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
89539         was also present in the non-GCC version, indicating that this
89540         code had always been buggy and had never been widely used.
89541         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
89542         Use the fast variant of each macro, rather than copying the
89543         definiens of the fast variant; that way, we'll be more likely to
89544         catch future bugs in the fast variants.
89545
89546 2003-10-20  Bruno Haible  <bruno@clisp.org>
89547
89548         * modules/wait-process: New file.
89549         * MODULES.html.sh (func_all_modules): Add wait-process.
89550
89551 2003-10-20  Bruno Haible  <bruno@clisp.org>
89552
89553         * m4/wait-process.m4: New file.
89554
89555 2003-10-20  Bruno Haible  <bruno@clisp.org>
89556
89557         * lib/wait-process.h: New file, from GNU gettext.
89558         * lib/wait-process.c: New file, from GNU gettext.
89559
89560 2003-10-19  Jim Meyering  <jim@meyering.net>
89561
89562         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
89563         HPUX 10.20.
89564
89565 2003-10-18  Karl Berry  <karl@gnu.org>
89566
89567         * config/config.guess: update from config.
89568
89569 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89570
89571         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
89572         (getgroups): First arg is int, not size_t.
89573         Don't let 'free' mangle errno.
89574
89575 2003-10-16  Paul Eggert  <eggert@twinsun.com>
89576
89577         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
89578
89579 2003-10-16  Karl Berry  <karl@gnu.org>
89580
89581         * config/config.{guess,sub}: update from config.
89582
89583 2003-10-16  Jim Meyering  <jim@meyering.net>
89584
89585         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
89586         memcpy.
89587
89588 2003-10-15  Paul Eggert  <eggert@twinsun.com>
89589
89590         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
89591         (SIZE_MAX): Remove.
89592         (new_exclude, add_exclude_file): Initial size no longer needs to
89593         be a power of 2.
89594         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
89595         our own address arithmetic overflow checking.
89596
89597         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
89598         (fnmatch): Do not alloca more than 2000 wide characters;
89599         instead, use malloc for large buffers.
89600         Check for address arithmetic overflow, and return -1
89601         with errno set to ENOMEM in that case.
89602         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
89603         (NEW_PATTERN): Do not alloca more than 8000 bytes;
89604         instead, return -1.  Check for address arithmetic overflow.
89605
89606 2003-10-14  Paul Eggert  <eggert@twinsun.com>
89607
89608         Handle invalid suffixes and overflow independently, so that
89609         callers can treat them independently as needed.  Fix some bugs in
89610         suffix handling, e.g., "100k@" was not diagnosed as an invalid
89611         suffix for a human-readable blocksize.  The major caller-visible
89612         change is the addition of a new
89613         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
89614         that both overflow and suffix chars were found.
89615
89616         * lib/human.c (humblock): Don't check separately for invalid suffix
89617         char; that is xstrtoumax's job (now that its bug is fixed).
89618         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
89619         INTMAX_MAX]: New macros.
89620         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
89621         TYPE_MAXIMUM): New macros.
89622         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
89623         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
89624         if overflow occurs, as it's what __strtol does and it's more useful
89625         in practice.
89626         (__xstrtol): If __strtol reports some error other than ERANGE,
89627         reflect it to the caller as LONGINT_INVALID.  If it reports
89628         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
89629         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
89630         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
89631         value.
89632         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
89633         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
89634         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
89635         [defined UINTMAX_MAX]: New macros.
89636
89637 2003-10-14  Bruno Haible  <bruno@clisp.org>
89638
89639         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
89640
89641 2003-10-14  Bruno Haible  <bruno@clisp.org>
89642
89643         * m4/sig_atomic_t: New file, from GNU gettext.
89644         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
89645
89646 2003-10-14  Bruno Haible  <bruno@clisp.org>
89647
89648         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
89649         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
89650         Also use volatile where needed.
89651
89652 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89653
89654         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
89655         Change maintainer from Bruno Haible to 'all'.
89656
89657 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89658
89659         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
89660
89661 2003-10-12  Paul Eggert  <eggert@twinsun.com>
89662
89663         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
89664         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
89665         and define in terms of the other primitives.
89666         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
89667         (SIZE_MAX): Define if not already defined.
89668         (array_size_overflow): New function.
89669         (xalloc_die): Abort instead of exiting if 'error' returns.
89670         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
89671         (xmalloc, xrealloc): Use them.
89672         (xcalloc): Check for address arithmetic overflow.
89673         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
89674         a bit faster than strcpy.
89675
89676 2003-10-10  Simon Josefsson  <jas@extundo.com>
89677
89678         * modules/argp (Depends-on): Add restrict and strcase.
89679
89680 2003-10-10  Simon Josefsson  <jas@extundo.com>
89681
89682         * m4/argp.m4: Add AC_C_INLINE.
89683
89684 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89685
89686         Merge getpass from libc, plus a few fixes.
89687
89688         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
89689         Include <stdbool.h>.
89690         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
89691         __fsetlocking to empty.
89692         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
89693         do include <bits/libc-lock.h>.
89694         Do not include <fcntl.h>; not needed.
89695         [_LIBC]: Include <wchar.h>.
89696         (NOTCANCEL_MODE): New macro.
89697         (flockfile, funlockfile) [_LIBC]: New macros.
89698         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
89699         [!_LIBC]: New macros.
89700         (call_fclose): New function.
89701         (getpass): Use it.  Save tty stream separately; this simplifies the
89702         code and makes it more reliable if stdin happens to equal stdout.
89703         Invoke __fsetlocking on tty.
89704         Handle thread cancellation if needed.
89705         Namespace cleanup (use __tcgetattr, __getline).
89706         Use bool for Booleans.
89707         [USE_IN_LIBIO]: Handle wide streams.
89708         [!_LIBC]: Unconditionally do the fseek, since we don't know what
89709         stream might go where.
89710
89711         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
89712         doesn't have to include <stdio.h> before us.
89713         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
89714         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
89715         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
89716         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
89717         if not declared, so that we can use getpass.c code from libc without
89718         rewriting it.
89719         (flockfile, ftrylockfile, funlockfile): New macros.
89720
89721 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89722
89723         * modules/getpass: Depend on stdbool.
89724
89725 2003-10-08  Paul Eggert  <eggert@twinsun.com>
89726
89727         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
89728
89729 2003-10-07  Karl Berry  <karl@gnu.org>
89730
89731         * config/config.{guess,sub}: update from config.
89732
89733 2003-10-06  Jim Meyering  <jim@meyering.net>
89734             Bruno Haible  <bruno@clisp.org>
89735
89736         This lets translators provide better translations for the
89737         "Written by ..." part of --version output.
89738         * lib/version-etc.h: Include stdarg.h.
89739         (version_etc_copyright): Declare as readonly.
89740         (version_etc): Make this function variadic with a NULL-terminated list
89741         of author name strings.
89742         (version_etc_va): New declaration.
89743         * lib/version-etc.c: Include stdarg.h, stdlib.h.
89744         (version_etc_copyright): Declare as readonly.
89745         (version_etc_va): New function. Provide a different translatable string
89746         for each possible number of authors < 10. Abbreviate when there are 10
89747         authors or more.
89748         (version_etc): Make this function variadic. Call version_etc_va.
89749         Suggestion from Gary V. Vaughan.
89750
89751         * lib/long-options.h (parse_long_options): Change prototype: the
89752         authors string is moved to the end and becomes variadic.
89753         * lib/long-options.c: Include stdarg.h.
89754         (parse_long_options): Make this function variadic, too.
89755         Call version_etc_va, not version_etc.
89756
89757 2003-10-06  Bruno Haible  <bruno@clisp.org>
89758
89759         * modules/version-etc-2: Remove file.
89760         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
89761
89762 2003-10-06  Bruno Haible  <bruno@clisp.org>
89763
89764         * modules/fatal-signal: New file.
89765         * MODULES.html.sh (func_all_modules): Add fatal-signal.
89766
89767 2003-10-06  Bruno Haible  <bruno@clisp.org>
89768
89769         * m4/fatal-signal.m4: New file.
89770         * m4/signalblocking.m4: New file, from GNU gettext.
89771
89772 2003-10-06  Bruno Haible  <bruno@clisp.org>
89773
89774         * lib/version-etc-2.h: Remove file.
89775         * lib/version-etc-2.c: Remove file.
89776
89777 2003-10-06  Bruno Haible  <bruno@clisp.org>
89778
89779         * lib/fatal-signal.h: New file, from GNU gettext.
89780         * lib/fatal-signal.c: New file, from GNU gettext.
89781
89782 2003-10-05  Paul Eggert  <eggert@twinsun.com>
89783
89784         * README: Rework advice for preventing empty .o files.
89785         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
89786         not <sys/types.h>.
89787
89788 2003-10-04  Karl Berry  <karl@gnu.org>
89789
89790         * lib/argp*: update from libc.
89791
89792 2003-10-04  Karl Berry  <karl@gnu.org>
89793
89794         * config/config.{guess,sub}: update from config.
89795
89796 2003-10-02  Bruno Haible  <bruno@clisp.org>
89797
89798         * modules/lchown (Include): Add lchown.h.
89799         * modules/time_r (Include): Use "..." syntax.
89800         * modules/xgetdomainname (Include): Add xgetdomainname.h.
89801
89802 2003-10-01  Simon Josefsson  <jas@extundo.com>
89803
89804         * MODULES.html.sh (func_all_modules): Move gethostname from section
89805         'based on' to section 'lacking' POSIX:2001.
89806
89807 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
89808
89809         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
89810         to output mode on the same stream.
89811
89812 2003-09-29  Paul Eggert  <eggert@twinsun.com>
89813
89814         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
89815         Fix arg typo in previous patch.
89816
89817 2003-09-28  Jim Meyering  <jim@meyering.net>
89818
89819         * lib/error.c: Correct cpp indentation.
89820
89821 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89822
89823         * modules/free: New file.
89824
89825 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89826
89827         * m4/free.m4: New file.
89828
89829 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89830
89831         * lib/minmax.h (MIN, MAX)
89832         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
89833         Omit the special code that used __typeof__, since we worry that
89834         it could be more trouble than it's worth.  See:
89835         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
89836         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
89837
89838         * lib/free.c: New file.
89839
89840 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
89841
89842         Trivial fixes to Makefile.am parts of module listings.
89843         * modules/strstr: Append strstr.h to lib_SOURCES.
89844         * modules/strcase: Likewise, for strcase.h.
89845
89846 2003-09-27  Karl Berry  <karl@gnu.org>
89847
89848         * config/mkinstalldirs: update from automake.
89849
89850 2003-09-26  Paul Eggert  <eggert@twinsun.com>
89851
89852         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
89853         (error_tail): Do not loop, reallocating temporary buffer, since
89854         the output cannot contain more wide characters than the input
89855         contains bytes, the size must be big enough already.  This avoids
89856         one potential size overflow calculation.  Check for size overflow
89857         when calculating temporary buffer size.  Free temporary buffer
89858         when done, if it was allocated with malloc; this plugs a memory
89859         leak.  Remove casts from void * to pointers, that are no longer
89860         needed now that we're assuming C89 or better.
89861
89862         Merge error changes from glibc.
89863
89864         * lib/error.c, error.h: Update copyright notice header to match glibc.
89865         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
89866         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
89867         Disable cancellation while printing error.
89868         * lib/error.h: Prepend __ to parameter names.
89869
89870 2003-09-26  Jim Meyering  <jim@meyering.net>
89871
89872         * lib/error.c (error_tail): Move some declarations
89873         into inner scope where the local variables are used.
89874
89875 2003-09-26  Bruno Haible  <bruno@clisp.org>
89876
89877         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
89878         stpncpy().
89879         Don't define stpncpy through config.h; it's now done through stpncpy.h.
89880
89881 2003-09-26  Bruno Haible  <bruno@clisp.org>
89882
89883         * lib/stpncpy.h (gnu_stpncpy): New declaration.
89884         (stpncpy): Define as alias for gnu_stpncpy.
89885         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
89886
89887 2003-09-25  Simon Josefsson  <jas@extundo.com>
89888
89889         * lib/xgetdomainname.h: New file.
89890         * lib/xgetdomainname.c: New file.
89891
89892 2003-09-25  Simon Josefsson  <jas@extundo.com>
89893             Bruno Haible  <bruno@clisp.org>
89894
89895         * modules/getdomainname: New file.
89896         * modules/xgetdomainname: New file.
89897         * MODULES.html.sh (func_all_modules): Add getdomainname,
89898         xgetdomainname.
89899
89900 2003-09-25  Simon Josefsson  <jas@extundo.com>
89901             Bruno Haible  <bruno@clisp.org>
89902
89903         * m4/getdomainname.m4: New file.
89904
89905 2003-09-25  Simon Josefsson  <jas@extundo.com>
89906             Bruno Haible  <bruno@clisp.org>
89907
89908         * lib/getdomainname.h: New file.
89909         * lib/getdomainname.c: New file.
89910
89911 2003-09-25  Karl Berry  <karl@gnu.org>
89912
89913         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89914
89915 2003-09-25  Karl Berry  <karl@gnu.org>
89916
89917         * config/install-sh: update from automake.
89918
89919 2003-09-25  Bruno Haible  <bruno@clisp.org>
89920
89921         * modules/version-etc-2: New file, from modules/version-etc with
89922         modifications.
89923         * MODULES.html.sh (func_all_modules): Add version-etc-2.
89924
89925 2003-09-25  Bruno Haible  <bruno@clisp.org>
89926
89927         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
89928         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
89929
89930 2003-09-24  Simon Josefsson  <jas@extundo.com>
89931
89932         * modules/xgethostname: Add xgethostname.h.
89933
89934 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89935
89936         * lib/linebuffer.c (freebuffer): Don't free the argument, just
89937         the buffer associated with the argument.  Bug reported by
89938         Simon Josefsson.
89939
89940 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89941
89942         * README: Document assumptions that 'int' is at least 32 bits
89943         wide, that integer arithmetic is 2's complement without overflow,
89944         that there are no holes in integer values, that adding sizes of
89945         two nonoverlapping objects can't overflow, and that all-bits-zero
89946         yields scalar zero.  Fix spelling and capitalization typos.
89947
89948 2003-09-19  Karl Berry  <karl@gnu.org>
89949
89950         * lib/argp.h: update from libc.
89951
89952 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89953
89954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
89955         to avoid spurious warnings like "AC_RUN_IFELSE was called before
89956         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
89957
89958 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89959
89960         * gnulib-tool: Use "test -h", not "test -L", for portability
89961         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
89962         (tags_regexp): Remove, since \| doesn't conform to POSIX.
89963         (sed_extract_prog): Issue s commands one-by-one, rather than
89964         using \| in one s command.
89965
89966 2003-09-16  Paul Eggert  <eggert@twinsun.com>
89967
89968         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
89969         input error, instead of returning NULL the next time we are called
89970         (and therefore losing track of errno).
89971
89972 2003-09-16  Bruno Haible  <bruno@clisp.org>
89973
89974         * gnulib-tool (func_create_testdir): Warn about duplicated
89975         dependencies.
89976
89977 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89978
89979         * modules/argmatch, modules/fatal, modules/obstack,
89980         modules/xalloc, modules/xgethostname: Sort dependencies by
89981         importance, not alphabetically.
89982
89983 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89984
89985         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89986         fails, so that the caller gets the proper errno.
89987
89988         * lib/readutmp.c (read_utmp): Likewise.
89989         Check for fstat error.  Close stream and free storage
89990         when failing.
89991
89992 2003-09-14  Karl Berry  <karl@gnu.org>
89993
89994         * config/srclist.txt (strdup.c): disable for c89 changes.
89995
89996 2003-09-14  Jim Meyering  <jim@meyering.net>
89997
89998         * lib/getloadavg.c: Correct cpp indentation.
89999         * lib/strdup.c: Likewise.
90000         * lib/vasnprintf.c: Likewise.
90001
90002 2003-09-14  Bruno Haible  <bruno@clisp.org>
90003
90004         * modules/fwriteerror: New file.
90005         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90006
90007 2003-09-14  Bruno Haible  <bruno@clisp.org>
90008
90009         * lib/fwriteerror.h: New file.
90010         * lib/fwriteerror.c: New file.
90011
90012 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90013
90014         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90015         modules/xgethostname, modules/xalloc: Depend on exit.
90016
90017 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90018
90019         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90020
90021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90022         and AC_MINIX, too, so that their extensions are available.
90023
90024         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90025         This macro has been superseded by gl_BACKUPFILE.
90026
90027         More patches to assume C89 or better.
90028
90029         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90030
90031         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90032         unconditionally.
90033         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90034         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90035         Include <string.h>, <stdlib.h> unconditionally.
90036         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90037         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90038         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90039         headers or for string.h.
90040         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90041         or strtoul.
90042
90043         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90044         headers.
90045         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90046         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90047         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90048         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90049         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90050         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90051         memcpy, memset.
90052         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90053         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90054         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90055         strtol.
90056         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90057         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90058         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90059         strtoul.
90060
90061 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90062
90063         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90064         * lib/obstack.c [!defined _LIBC]: Likewise.
90065         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90066         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90067         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90068
90069         More changes to assume C89 or better.
90070
90071         * lib/error.c (error_tail): Assume vprintf.
90072
90073         * lib/argmatch.c (getenv): Remove decl.
90074         * lib/progreloc.c (get_full_program_name): Define via prototype.
90075         * lib/setenv.c (clearenv): Likewise.
90076         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90077         needed.
90078         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90079         (malloc, memcpy): Remove decls.
90080         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90081         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90082         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90083         (memcpy): Remove macro.
90084         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90085         (__P): Remove.  All uses removed.
90086         (PTR): Remove.  All uses changed to void *.
90087         (CHAR_BIT, NULL): Remove.
90088         (spaces, zeros, memset_space, memset_zero)
90089         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90090         Remove.
90091         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90092         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90093         Define with prototype.
90094         Remove now-unnecessary prototype decl.
90095         (extra_args_spec): Assume ANSI C.  All uses changed.
90096         (extra_args_spec_iso): Remove.
90097         (my_strftime, emacs_strftimeu): Define via prototype.
90098         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90099         unconditionally.
90100         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90101         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90102         (strtoul, strtol): Remove decls.
90103         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90104         LONG_MAX): Remove.
90105         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90106         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90107         (LOCALE_PARAM_PROTO): New macro.
90108         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90109         (INTERNAL (strtol), strtol): Define with a prototype.
90110         (PARAMS): Remove.  All uses removed.
90111         * lib/tempname.c: Include <string.h> unconditionally.
90112         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90113         * lib/xgethostname.c (main): Define with a prototype.
90114         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90115         Include <stdlib.h> unconditionally.
90116         (calloc, malloc, realloc, free): Remove decls.
90117         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90118         Include <stdlib.h> unconditionally.  Sort include file names.
90119         (strtod): Remove.
90120         (xstrtod): Define with a prototype.
90121         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90122         (strtol, strtoul): Remove decls.
90123
90124 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90125
90126         More patches to assume C89 or better.
90127         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90128         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90129         string.h, memchr, STDC_HEADERS.
90130
90131 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90132
90133         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90134         Include <stdlib.h>, <string.h> unconditionally.
90135         Remove now-unnecessary cast to char *.
90136         * lib/strnlen.c: Include <string.h> unconditionally.
90137         * lib/yesno.c (yesno): Define with a prototype.
90138
90139 2003-09-11  Bruno Haible  <bruno@clisp.org>
90140
90141         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90142
90143 2003-09-10  Jim Meyering  <jim@meyering.net>
90144
90145         * lib/error.c: Correct indentation of cpp directives.
90146
90147 2003-09-10  Bruno Haible  <bruno@clisp.org>
90148
90149         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90150         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90151         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90152         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90153         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90154         <stdlib.h> and <string.h> checks.
90155         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90156         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90157
90158 2003-09-10  Bruno Haible  <bruno@clisp.org>
90159
90160         * lib/strcspn.c: Include <string.h> unconditionally.
90161         * lib/strpbrk.c: Include <string.h> unconditionally.
90162         * lib/strstr.c: Include <string.h> unconditionally.
90163         * lib/unicodeio.c: Include <string.h> unconditionally.
90164         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90165         * lib/unsetenv.c: Likewise.
90166         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90167         * lib/yesno.c: Include <stdlib.h> unconditionally.
90168         (rpmatch): Add prototype.
90169
90170 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90171
90172         More patches to assume C89 or better.
90173         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90174         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90175         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90176         or for string.h.
90177         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90178         stdlib.h.
90179         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90180         C headers.
90181         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90182         string.h.
90183         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90184         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90185         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90186         or for string.h.
90187         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90188         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90189         C headers.
90190         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90191         memcpy.
90192         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90193         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90194         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90195         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90196         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90197         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90198         string.h, free.
90199         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90200         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90201         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90202         C headers, or for string.h.
90203         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90204         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90205         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90206         headers, memory.h, stdlib.h, string.h, strings.h.
90207         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90208         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90209         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90210         strchr.
90211         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90212         headers, memory.h, string.h.
90213         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90214         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90215         free.
90216         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90217         headers.
90218         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90219         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90220         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90221         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90222         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90223
90224 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90225
90226         More K&R removal.
90227
90228         * lib/acosl.c (main): Use a prototype.
90229         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90230         tanl.c: Likewise.
90231
90232         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90233
90234         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90235         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90236         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90237         with a prototype.
90238         * lib/getopt.c (const): Remove macro.
90239         Include <string.h> unconditionally.
90240         (my_index): Remove; all uses changed to strchr.
90241         (strlen): Remove decl.
90242         (exchange): Remove forward decl; no longer needed.
90243         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90244         Define with prototype.
90245         * lib/getopt1.c (const): Remove macro.
90246         (getopt_long, getopt_long_only, main): Define with prototype.
90247
90248         * lib/getugroups.c: Include <string.h> unconditionally.
90249
90250         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90251         (getusershell, setusershell, endusershell, readname, main):
90252         Define with prototypes.
90253
90254         * lib/group-member.c: Include group-member.h first.
90255         Include <stdlib.h> unconditionally.
90256
90257         * lib/hard-locale.c: Include hard-locale.h first.
90258         Include <stdlib.h>, <string.h> unconditionally.
90259
90260         * lib/hash.c (free, malloc): Remove decls.
90261         Include <stdlib.h> unconditionally.
90262
90263         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90264         (getenv): Do not declare.
90265
90266         * lib/idcache.c: Include <string.h> unconditionally.
90267
90268         * lib/long-options.c: Include long-options.h first, to test interface.
90269         Include <stdlib.h> unconditionally.
90270
90271         * lib/makepath.c: Include makepath.h first, to test interface.
90272         Include <stdlib.h> and <string.h> unconditionally.
90273
90274         * lib/linebuffer.c: Include <stdlib.h>.
90275         (free): Remove decl.
90276
90277         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90278         stddef.h. rpl_malloc returns void *, not char *.
90279         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90280         prototype.
90281
90282         * lib/md5.h: Include <limits.h> unconditionally.
90283         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90284         (__P): Remove; all uses removed.
90285         * lib/md5.c: Include "md5.h" first.
90286         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90287         md5_buffer, md5_process_bytes, md5_process_block):
90288         Define with prototypes.
90289         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90290         * lib/sha.c: Include "sha.h" first.
90291         Include <stdlib.h>, <string.h> unconditionally.
90292
90293         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90294         * lib/memcmp.c (__ptr_t): Likewise.
90295         * lib/memrchr.c (__ptr_t): Likewise.
90296         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90297         Include <string.h> unconditionally.
90298         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90299         * lib/memchr.c: Include <stdlib.h> unconditionally.
90300         * lib/memchr.c (LONG_MAX): Remove.
90301         * lib/memrchr.c (LONG_MAX): Likewise.
90302         * lib/memchr.c (__memchr): Define via a prototype.
90303         * lib/memrchr.c (__memrchr): Likewise.
90304         * lib/memcmp.c (__P): Remove, and remove all uses.
90305         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90306         Remove forward decls; no longer needed.
90307         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90308         Use types required by C89 in prototype.
90309
90310         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90311         * lib/savedir.c: Likewise.
90312         * lib/mkdir.c (free): Remove decl.
90313         * lib/rmdir.c (rmdir): Define with a prototype.
90314         * lib/savedir.c: Include savedir.h first, to test interface.
90315
90316         * lib/mktime.c (STDC_HEADERS): Remove.
90317         Include <stdlib.h>, <string.h> unconditionally.
90318
90319         * lib/modechange.c: Include <stdlib.h> unconditionally.
90320         (malloc): Remove decl.
90321
90322         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90323         (free): Remove decl.
90324
90325         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90326         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90327         (This type really should be intptr_t, but that's a C99ism.)
90328         (_obstack_memcpy): Remove: all uses changed to memcpy.
90329         Include <string.h> unconditionally.
90330         (struct obstack): Assume __STDC__ for types of members
90331         chunkfun, freefun, extra_arg.
90332         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90333         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90334         obstack_begin, obstack_specify_allocation,
90335         obstack_specify_allocation_with_arg, obstack_chunkfun,
90336         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90337         Remove unprototyped decls and the macros that use them.
90338         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90339         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90340         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90341         (defined __STDC__ && __STDC__)]:
90342         Remove nonprototyped code.
90343         Include <stdlib.h> unconditionally.
90344         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90345         _obstack_allocated_p, _obstack_free, obstack_free,
90346         _obstack_memory_used, print_and_abort):
90347         Define using prototypes.
90348         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90349         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90350         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90351         obstack_next_free, obstack_object_size, obstack_room) [0]:
90352         Remove unused, unprototyped code.
90353
90354         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90355
90356         * lib/physmem.c (physmem_total, physmem_available, main): Define
90357         with prototypes.
90358
90359         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90360         (main): Define with a prototype.
90361
90362         * lib/posixver.c (getenv): Remove decl.
90363
90364         * lib/putenv.c (malloc): Returns void *, not char *.
90365         Include <string.h> unconditionally.
90366         (strchr, memcpy, NULL): Do not define.
90367
90368         * lib/readtokens.c: Include readtokens.h first, to test interface.
90369         Include <stdlib.h>, <string.h> unconditionally.
90370         (init_tokenbuffer): Define with a prototype.
90371
90372         * lib/regex.c (PARAMS): Remove.  All uses removed.
90373         All uses of _RE_ARGS removed, too.
90374         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90375         unconditionally.
90376         (bzero): Assume memset exists.
90377         (memcmp, memcpy, NULL): Remove.
90378         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90379         char, or assignments to local vars of type signed char.
90380         (init_syntax_once, PREFIX(extract_number_and_incr),
90381         PREFIX(print_partial_compiled_pattern),
90382         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90383         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90384         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90385         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90386         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90387         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90388         wcs_compile_range, byte_compile_range, truncate_wchar,
90389         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90390         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90391         count_mbs_length, wcs_re_match_2_internal,
90392         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90393         PREFIX(alt_match_null_string_p),
90394         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90395         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90396         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90397         now-unnecessary declaration, if any.
90398         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90399         regcomp, regexec):
90400         Remove now-unnecessary casts among pointer types.
90401         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90402
90403         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90404         (free): Remove decl.
90405
90406         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90407
90408         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90409         (free): Remove decl.
90410
90411         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90412         * lib/xgetcwd.c: Likewise.
90413
90414         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90415         (free): Remove decl.
90416
90417         * lib/strchrnul.c (strchrnul): Define with a prototype.
90418         Fix bug: c_in was not converted to char before searching.
90419
90420         The following changes are not K&R related:
90421
90422         * lib/group-member.h: Include <sys/types.h>, so that this file is
90423         self-contained.
90424         * lib/makepath.h: Likewise.
90425
90426         * lib/getusershell.c (readname, default_index, line_size, readname):
90427         Use size_t, not int, for sizes.
90428         (readname): If the size overflows, report an error instead of
90429         looping forever.
90430
90431 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90432
90433         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90434         libc.
90435
90436 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90437
90438         * README: New section: portability guidelines.
90439
90440 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90441
90442         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90443         C89 spec.
90444
90445 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90446
90447         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90448
90449 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90450
90451         Assume C89 or better; remove K&R cruft.
90452         A few of these changes were first proposed by Derek Robert Price
90453         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90454
90455         * lib/addext.c: Include <string.h> unconditionally.
90456         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90457         Don't declare getenv or malloc.
90458
90459         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90460         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90461         (NULL): Remove.
90462         (find_stack_direction, alloca): Use prototypes.
90463
90464         * lib/atexit.c (atexit): Define using a prototype.
90465
90466         * lib/basename.c, dirname.c, stripslash.c:
90467         Include <string.h> unconditionally.
90468
90469         * lib/bcopy.c: Include <stddef.h>.
90470         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90471
90472         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90473
90474         * lib/error.h (error, error_at_line, error_print_progname)
90475         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90476         * lib/error.c: Include error.h first, to check interface.
90477         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90478         (VA_START): Remove; all uses changeed to va_start.
90479         (exit, strerror): Remove decls.
90480         (error_print_progname): Prototype uncondionally.
90481         Don't include <errno.h>; no longer needed.
90482         (private_strerror): Remove.
90483         (error_tail): Always define.
90484         (error, error_at_line): Assume C89 or better; always use prototypes.
90485         * lib/fatal.c: Include "fatal.h" first, to test interface.
90486         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90487         (VA_START): Remove; all uses changed to va_start.
90488         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90489         this case.
90490         (exit): Remove decl.
90491         (fatal): Prototype unconditionally.  Assume va_start works.
90492         Abort at end, to pacify gcc.
90493
90494         * lib/euidaccess.c (main): Define with a prototype.
90495
90496         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90497
90498         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90499
90500         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90501         prototypes.
90502         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90503         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90504         (getenv): Remove decl.
90505         (fnmatch): Define using a prototype.
90506         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
90507         (FCT): Define using a prototype.
90508
90509         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
90510
90511         * lib/gethostname.c: Include <stddef.h>.
90512         (gethostname): Define with prototype.  Length is size_t, not int.
90513
90514 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90515
90516         Assume C89 or better; remove K&R cruft.
90517         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
90518         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
90519         string.h, getenv, malloc.
90520         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
90521         headers.
90522         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
90523         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
90524         do not check for strerror.
90525         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
90526         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
90527         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
90528         do not check for doprnt or vprintf.
90529         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
90530         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
90531
90532 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90533
90534         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
90535         getversion.c should have been removed then, but was accidentally
90536         preserved.
90537
90538         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
90539         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
90540
90541 2003-09-08  Karl Berry  <karl@gnu.org>
90542
90543         * config/config.sub, config.guess, srclistvars.sh: update from savannah
90544                 config, forget about prep.
90545
90546         * config/depcomp, missing: update from automake.
90547
90548 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90549
90550         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
90551         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90552
90553 2003-09-07  Paul Eggert  <eggert@twinsun.com>
90554
90555         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
90556         copy_tm_result.  Bug reported by Simon Josefsson in
90557         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
90558
90559 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90560
90561         * m4/time_r.m4: New file.
90562         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
90563         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
90564         is. Check for timegm declaration.
90565         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
90566         Do not check for gmtime_r.
90567         Replace mktime if __mktime_internal does not exist and if mktime
90568         hasn't been replaced already.
90569
90570 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90571
90572         * lib/time_r.c, lib/time_r.h: New files.
90573
90574         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
90575         __localtime_r.
90576         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
90577         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
90578
90579         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
90580         __gmtime_r.
90581         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
90582         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
90583         Include <time_r.h>.
90584
90585         * lib/timegm.c: Switch to glibc implementation, with the following
90586         changes:
90587         [defined HAVE_CONFIG_H]: Include <config.h>.
90588         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
90589         (__mktime_internal) [!defined _LIBC]: New decl.
90590         (__gmtime_r) [!defined _LIBC]: New macro and function.
90591         (timegm): Use a prototype, since gnulib assumes C89.
90592         Do not bother declaring tmp to be const, as it's not really usefu.
90593         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
90594         (timegm): Declare only if HAVE_DECL_TIMEGM.
90595
90596 2003-09-06  Paul Eggert  <eggert@twinsun.com>
90597
90598         * MODULES.html.sh (func_all_modules): Add time_r.
90599         * modules/time_r: New file.
90600         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
90601         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
90602
90603 2003-09-03  Paul Eggert  <eggert@twinsun.com>
90604
90605         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
90606         Bug reported by Lute Kamstra in
90607         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
90608
90609         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
90610         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
90611         course with correspondingly smaller numbers for tomorrow and
90612         yesterday.  From Tadayoshi Funaba.  Originally installed into
90613         sh-utils on 1999-08-07, but the patch got lost (I guess during the
90614         coreutils merge?).
90615
90616 2003-08-31  Simon Josefsson  <jas@extundo.com>
90617
90618         * modules/timegm: New file.
90619         * MODULES.html.sh (func_all_modules): Add timegm.
90620
90621 2003-08-31  Simon Josefsson  <jas@extundo.com>
90622
90623         * m4/timegm.m4: New file.
90624
90625 2003-08-31  Simon Josefsson  <jas@extundo.com>
90626
90627         * lib/timegm.h: New file.
90628         * lib/timegm.c: New file.  Based on
90629         wget-1.8.2/src/http.c:mktime_from_utc.
90630
90631 2003-08-31  Karl Berry  <karl@gnu.org>
90632
90633         * lib/argp.h: update from libc.
90634
90635 2003-08-28  Bruno Haible  <bruno@clisp.org>
90636
90637         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
90638         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
90639         followed by '#define fnmatch fnmatch_posix' gives an error.
90640
90641 2003-08-28  Bruno Haible  <bruno@clisp.org>
90642
90643         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
90644         warning on QNX, which defines O_BINARY to 000000.
90645
90646 2003-08-27  Jim Meyering  <jim@meyering.net>
90647
90648         * m4/mkstemp.m4: Require that the system mkstemp be able to create
90649         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
90650         would fail after 32.  Reported by Danny Levinson.  Details here:
90651         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
90652
90653 2003-08-24  Bruno Haible  <bruno@clisp.org>
90654
90655         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
90656         MSVC7 <stdio.h> is included later.
90657
90658 2003-08-22  Simon Josefsson  <jas@extundo.com>
90659
90660         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
90661
90662 2003-08-20  Karl Berry  <karl@gnu.org>
90663
90664         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
90665
90666 2003-08-20  Bruno Haible  <bruno@clisp.org>
90667
90668         * modules/progname: New file.
90669         * MODULES.html.sh (func_all_modules): Add progname.
90670
90671 2003-08-20  Bruno Haible  <bruno@clisp.org>
90672
90673         * lib/progname.h: New file, from GNU gettext.
90674         * lib/progname.c: New file, from GNU gettext.
90675         * lib/progreloc.c: New file, from GNU gettext.
90676
90677 2003-08-19  Jim Meyering  <jim@meyering.net>
90678
90679         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
90680         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
90681
90682 2003-08-19  Bruno Haible  <bruno@clisp.org>
90683
90684         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
90685         more.
90686
90687 2003-08-19  Bruno Haible  <bruno@clisp.org>
90688
90689         * lib/xstrdup.c: Assume <string.h> exists.
90690
90691 2003-08-18  Paul Eggert  <eggert@twinsun.com>
90692
90693         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
90694         in makefile rules.
90695
90696 2003-08-18  Jim Meyering  <jim@meyering.net>
90697
90698         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
90699         * m4/lib-ld.m4: Likewise.
90700
90701 2003-08-18  Jim Meyering  <jim@meyering.net>
90702
90703         * lib/setenv.h: Indent nested cpp directive.
90704         * lib/vasnprintf.c: Remove trailing blanks.
90705
90706 2003-08-17  Simon Josefsson  <jas@extundo.com>
90707
90708         * modules/xstrndup: New file.
90709         * MODULES.html.sh (func_all_modules): Add xstrndup.
90710
90711 2003-08-17  Simon Josefsson  <jas@extundo.com>
90712
90713         * modules/argp: Fix autoconf macro name. Add more dependencies.
90714
90715 2003-08-17  Simon Josefsson  <jas@extundo.com>
90716
90717         * m4/xstrndup.m4: New file.
90718
90719 2003-08-17  Simon Josefsson  <jas@extundo.com>
90720
90721         * m4/argp.m4: New file.
90722
90723 2003-08-17  Simon Josefsson  <jas@extundo.com>
90724             Bruno Haible  <bruno@clisp.org>
90725
90726         * lib/xstrndup.h: New file.
90727         * lib/xstrndup.c: New file.
90728
90729 2003-08-17  Bruno Haible  <bruno@clisp.org>
90730
90731         * modules/strndup (Files, Include): Add lib/strndup.h.
90732
90733 2003-08-17  Bruno Haible  <bruno@clisp.org>
90734
90735         * modules/euidaccess (Files): Add lib/euidaccess.h.
90736
90737 2003-08-17  Bruno Haible  <bruno@clisp.org>
90738
90739         * lib/strndup.h: New file.
90740
90741 2003-08-17  Bruno Haible  <bruno@clisp.org>
90742
90743         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
90744         like AC_GNU_SOURCE.
90745         * modules/extensions (configure.ac): Comment out the invocation of
90746         gl_USE_SYSTEM_EXTENSIONS.
90747
90748 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90749
90750         Merges from coreutils, etc.
90751         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
90752         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
90753         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
90754         fixing a typo.
90755         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
90756         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
90757
90758 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90759
90760         Document merge from coreutils.
90761         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
90762         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
90763         * modules/utime: Add m4/utimes-null.m4.
90764
90765 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90766
90767         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
90768         space, undoing this 2003-08-12 change:
90769         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90770
90771 2003-08-16  Paul Eggert  <eggert@twinsun.com>
90772
90773         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
90774         strtoul.c from libc, undoing this 2003-08-12 change:
90775         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
90776
90777 2003-08-16  Jim Meyering  <jim@meyering.net>
90778
90779         Merges from coreutils.
90780         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
90781         prefix.  Adjust cache variables similarly.  Create 500 rather than
90782         just 300 files, to exercise bug on Darwin6.5, too.
90783         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
90784         $missing_dir.
90785         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
90786         AM_SYS_POSIX_TERMIOS.
90787         Reported by mkc@mathdogs.com.
90788         Also change use of $am_cv_sys_posix_termios
90789         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
90790         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
90791         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
90792         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
90793         in /proc/mounts until it finds one with matching device number.  This
90794         is unnecessary when the FILE argument *is* a mount point.  No stat call
90795         is necessary in that case.  So, disable the statvfs-testing code on
90796         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
90797         as RedHat bug# 84846.
90798         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90799         to 1MB, so as not to render systems with no stack size limit (e.g.,
90800         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90801         Include <unistd.h>.  On some systems,
90802         it is required for the definition of _SC_PAGESIZE.
90803
90804 2003-08-16  Jim Meyering  <jim@meyering.net>
90805
90806         Merge from coreutils.
90807         * lib/xstrtoimax.c: #else #if -> #elif.
90808         * lib/xstrtoumax.c: Likewise.
90809
90810 2003-08-16  Jim Meyering  <jim@meyering.net>
90811
90812         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
90813         * m4/utimes.m4: Removed.
90814         * m4/utimes-null.m4: Renamed from utimes.m4.
90815
90816         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
90817         to 1MB, so as not to render systems with no stack size limit (e.g.,
90818         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
90819         Include <unistd.h>.  On some systems,
90820         it is required for the definition of _SC_PAGESIZE.
90821
90822 2003-08-16  Jim Meyering  <jim@meyering.net>
90823         and Paul Eggert  <eggert@cs.ucla.edu>
90824
90825         Merges from coreutils, etc.
90826
90827         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
90828         using the latest version from cvs.  This avoids problems with #line
90829         directives using a vendor (Sun) compiler.
90830         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
90831         Don't set GETGROUPS_LIB here; now it's
90832         done via getgroups.m4's wrapper function.
90833         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
90834         rather than just in sh-util/configure.in, so that the
90835         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
90836         same.
90837         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
90838         AC_FUNC_GETLOADAVG where to find getloadavg.c.
90839         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
90840         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
90841         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
90842         Remove code that is now done by the newly-required macros.
90843         Append $(EXEEXT) to DF_PROG.
90844         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
90845         Do not invoke or require the following here,
90846         since prereq.m4 or some gnulib .m4 now does this for us:
90847         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
90848         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
90849         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
90850         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
90851         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
90852         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
90853         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
90854         AC_FUNC_OBSTACK.
90855         Do not replace the following functions, as this is now the job
90856         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
90857         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
90858         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
90859         atexit getpass, strdup, getpagesize.
90860         Replace 'raise'.
90861         Do not check for the following functions, as this is now the job
90862         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
90863         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
90864         setregid.
90865         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
90866         Check for sys/sysctl.h.
90867         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
90868         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
90869         of checking for ssize_t ourselves.
90870
90871         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
90872         Require every macro that gnulib/modules/* suggests for us.
90873         (jm_PREREQ_ADDEXT): New macro.
90874         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
90875         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
90876
90877         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
90878         (gl_PHYSMEM): Use it.
90879         Also check for `table' function.
90880         Check for new headers and functions.
90881         Add check for sys/sysmp.h.
90882         With suggestions from Kaveh Ghazi.
90883         Ignore headers that are present but cannot be compiled.  This
90884         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
90885         C 5.4.
90886
90887 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90888
90889         Document merge from coreutils.
90890         * modules/userspec: Depend on posixver.
90891         * modules/strftime: Depend on tzset.
90892
90893 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90894
90895         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
90896         rather than tab, after '#' in shell-script copyright notices.
90897         Suggested by Bruno Haible.
90898
90899 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90900
90901         * config/srclist-update: Use three spaces, rather than tab, after '#'
90902         in shell-script copyright notices.  Suggested by Bruno Haible.
90903         Remove unnecessary parenthesization in regular expression.
90904
90905 2003-08-15  Jim Meyering  <jim@meyering.net>
90906
90907         Merge from coreutils.
90908         * lib/xgethostname.c: Include <stdlib.h>.
90909         (xghostname): Don't exit for anything other than memory-related
90910         failure; just return NULL.
90911         * lib/userspec.c: Include "posixver.h".
90912         (parse_user_spec): Accept `.' as a separator only
90913         in pre-POSIX-200112 mode.
90914         * lib/strtoimax.c: Use #elif rather than #else #if.
90915         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90916         Remove function, now that we can rely on a working tzset function.
90917         [!_LIBC]: Ensure that the required autoconf test has been run.
90918         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90919         Use underlying_strftime for %r.
90920         * lib/sha.c: Merge in some clean-up and optimization changes from
90921         glibc.
90922         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
90923         Ensure that it is a multiple of 64.
90924         Rearrange loop exit tests so as to avoid performing an
90925         additional fread after encountering an error or EOF.
90926         * lib/realloc.c: Update copyright date.
90927
90928 2003-08-15  Jim Meyering  <jim@meyering.net>
90929         and Paul Eggert  <eggert@twinsun.com>
90930
90931         Merge from coreutils.
90932         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
90933         member but strut utmpx does not.  Needed for AIX 4.3.3.
90934         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
90935
90936 2003-08-15  Jim Meyering  <jim@meyering.net>
90937         and Paul Eggert  <eggert@cs.ucla.edu>
90938
90939         Merges from coreutils, etc.
90940         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
90941         Require gl_FUNC_TZSET_CLOBBER.
90942         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
90943         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
90944         members.
90945
90946 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90947
90948         Help the merge from coreutils.
90949         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
90950         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
90951         * m4/tzset.m4: Use it too.
90952
90953 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90954
90955         * modules/tzset: New file.
90956
90957 2003-08-14  Jim Meyering  <jim@meyering.net>
90958
90959         Merges from coreutils.
90960         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
90961         variable names, rather than @FNMATCH_H@.
90962         * modules/alloca: Likewise for $(ALLOCA_H).
90963
90964         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
90965         the three copies of the literal target, `fnmatch.h'.
90966         * modules/alloca (alloca.h): Likewise.
90967
90968 2003-08-14  Jim Meyering  <jim@meyering.net>
90969
90970         Merge from coreutils.
90971         * m4/tzset.m4: New file.
90972         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
90973         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
90974         otherwise, AIX 5.1 systems would end up using the latter.
90975         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90976         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90977         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90978         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90979
90980 2003-08-14  Jim Meyering  <jim@meyering.net>
90981
90982         Merge from coreutils.
90983         * lib/obstack.h: Whitespace changes.
90984         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90985         and xcalloc return values.
90986         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90987         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90988         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90989         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90990         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90991         error from mntctl.
90992         Use mntctl's return value to drive the entry-processing loop, since
90993         we can't rely on the value of the vmt_length member in the last
90994         entry.  On some systems doing so could result in exhausting
90995         virtual memory.  Based in part on a patch from Mike Jetzer.
90996
90997 2003-08-14  Jim Meyering  <jim@meyering.net>
90998         and Paul Eggert  <eggert@twinsun.com>
90999
91000         Merges from coreutils, plus other fixes.
91001         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91002         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91003         for credits and details.  Thanks to Kaveh Ghazi for helping
91004         to keep these files in sync.
91005         (ARRAY_SIZE): Define it.
91006         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91007         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91008         (memcasecmp): Don't assume size_t fits in unsigned int.
91009         Remove casts and duplicate code.
91010         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91011         (memcpy): Remove definition.
91012         Merge in some clean-up and optimization changes from glibc.
91013         [BLOCKSIZE]: Move definition to top of file.
91014         Ensure that it is a multiple of 64.
91015         Rearrange loop exit tests so as to avoid performing an
91016         additional fread after encountering an error or EOF.
91017         * lib/md5.h (md5_uintptr): Define.
91018         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91019         return to the initial working directory.  Preserve errno
91020         for caller.
91021         * lib/idcache.c: Include "xalloc.h".
91022         (xmalloc, xrealloc): Remove decls.
91023         (getuser): Remove casts no longer required in C89.
91024         * lib/human.c: Include stdio.h, for sprintf.
91025         * lib/group-member.c: Include "xalloc.h".
91026         (xmalloc, xrealloc): Remove decls.
91027         (get_group_info): Remove casts no longer required in C89.
91028         * lib/getusershell.c (readname): Remove casts no longer required in
91029         C89.
91030         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91031         * lib/getline.c: Whitespace fix, from coreutils.
91032
91033 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91034
91035         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91036         Check for isascii.
91037
91038         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91039         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91040         Undo previous (whitespace-only) change.
91041
91042 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91043
91044         * lib/exclude.c: Include <ctype.h>
91045         (IN_CTYPE_DOMAIN): New macro.
91046         (is_space): New fn.
91047         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91048         and empty lines.
91049
91050         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91051         Undo previous (whitespace-only) change.
91052
91053 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91054
91055         * config/srclist-update: Change update back to the old behavior,
91056         leaving whitespace alone.  Use one 'sed' command rather than a
91057         pipeline.
91058         (fixlicense): Now a variable, not a function.
91059         (remove_trailing_blanks): Remove.
91060         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91061         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91062         Undo previous (whitespace-only) change.
91063
91064 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91065
91066         Merge from coreutils.
91067         * modules/euidaccess: Add lib_SOURCES, include for new
91068         file euidaccess.h
91069
91070 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91071
91072         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91073         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91074         Normalize leading white space and remove trailing white space.
91075
91076         Merge from coreutils
91077         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91078
91079         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91080         0.12.1.  These files are now being upgraded automatically by
91081         ../config/srclist-update.
91082
91083 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91084
91085         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91086         Normalize leading white space and remove trailing white space.
91087         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91088         notice, as per ../config/srclist-update.
91089
91090         Merge from coreutils.
91091         * lib/euidaccess.h: New file.
91092         * lib/euidaccess.c: Include it.
91093         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91094         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91095         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91096
91097 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91098
91099         * config/srclist-update: Add copyright notice.
91100         (remove_id_lines, remove_trailing_blanks): New constants.
91101         (fixfile): Use them to normalize spacing a bit in copied files.
91102         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91103         Normalize leading white space and remove trailing white space.
91104
91105         * config/texinfo.tex: Sync with texinfo.
91106
91107         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91108         strtoul.c from libc, to merge coreutils whitespace changes.
91109
91110         * config/srclist.txt: Get the following m4 files from gettext:
91111         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91112         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91113         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91114         wint_t.m4.
91115
91116 2003-08-12  Karl Berry  <karl@gnu.org>
91117
91118         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91119         been made.
91120
91121 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91122
91123         * modules/gnu-source, m4/gnu-source.m4:
91124         Remove; we're assuming Autoconf 2.54 or later now.
91125         Suggested by Bruno Haible.
91126         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91127
91128 2003-08-11  Bruno Haible  <bruno@clisp.org>
91129
91130         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91131
91132 2003-08-11  Bruno Haible  <bruno@clisp.org>
91133
91134         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91135         (vasnprintf): Use it instead of wcslen.
91136
91137 2003-08-11  Bruno Haible  <bruno@clisp.org>
91138
91139         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91140         value to ensure that _Bool promotes to int. Use #define for _Bool when
91141         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91142
91143 2003-08-10  Karl Berry  <karl@gnu.org>
91144
91145         * lib/regex.h: update from libc (whitespace fix).
91146
91147 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91148
91149         Merge some files from coreutils.  These changes were
91150         originally made by Jim Meyering.
91151         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91152         many older Unixes require this.
91153         * lib/alloca.c (alloca): Remove cast to argument of free;
91154         no longer needed in C89.
91155         * lib/alloca_.h, regex.h: Fix white space to match
91156         what GNU indent does.
91157
91158 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91159
91160         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91161         apparently Emacs's Unicode mode got confused before my 2003-08-05
91162         checkin.
91163
91164 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91165
91166         * m4/extensions.m4: New file.
91167         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91168         Require gl_USE_SYSTEM_EXTENSIONS.
91169         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91170         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91171
91172 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91173
91174         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91175         * modules/extensions, modules/gnu-source: New files.
91176         * modules/timespec, modules/unlocked-io: Depend on extensions.
91177
91178 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91179
91180         * modules/restrict: New file.
91181         * MODULES.html.sh (func_all_modules): Add restrict.
91182         * modules/regex: Depend on restrict.
91183
91184 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91185
91186         * m4/restrict.m4: New file.
91187         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91188
91189 2003-08-07  Bruno Haible  <bruno@clisp.org>
91190
91191         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91192         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91193
91194 2003-08-07  Bruno Haible  <bruno@clisp.org>
91195
91196         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91197         makes the module 'getndelim2' compatible with the module 'getline'.
91198
91199 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91200
91201         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91202         byte with "\201" to avoid glitches when editing that source file
91203         with multi-gnome-terminal.
91204
91205 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91206
91207         * lib/bumpalloc.h: Remove.
91208
91209 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91210
91211         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91212         * modules/bumpalloc: Remove.
91213
91214 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91215
91216         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91217         GNU coding style.
91218
91219         Merge from coreutils.
91220         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91221         1. From glibc.
91222         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91223         from Karl Berry, implemented by Jim Meyering.
91224         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91225         from Dmitry V. Levin.
91226         Remove anachronistic cast of xrealloc.
91227         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91228         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91229         type. Otherwise, it wouldn't compile with at least /bin/cc on
91230         ymp-cray-unicos9.0.2.X.
91231         Combine two mostly-identical uses of alloca into one.
91232         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91233
91234 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91235
91236         [From Emacs.]
91237
91238         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91239         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91240         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91241         obsolete NLIST_NAME_UNION.
91242         [__GNU__]: Undef BSD and FSCALE.
91243         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91244
91245 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91246
91247         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91248         an enum type, so that it's guaranteed to promote to int.  See:
91249         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91250
91251 2003-08-03  Karl Berry  <karl@gnu.org>
91252
91253         * config/depcomp: update from automake.
91254
91255 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91256
91257         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91258         (strerror): Don't assume that a printable int fits in 14 bytes.
91259
91260 2003-07-31  Bruno Haible  <bruno@clisp.org>
91261
91262         * modules/getpass-gnu: New file.
91263         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91264
91265 2003-07-31  Bruno Haible  <bruno@clisp.org>
91266
91267         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91268
91269 2003-07-24  Karl Berry  <karl@gnu.org>
91270
91271         * config/missing: update from automake.
91272
91273 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91274             Bruno Haible  <bruno@clisp.org>
91275
91276         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91277         * lib/getline.c (getline, getdelim): Likewise.
91278         Remove _GNU_SOURCE define; now it's defined in config.h through
91279         m4/getline.m4.
91280
91281 2003-07-23  Karl Berry  <karl@gnu.org>
91282
91283         * config/config.sub: update from prep.
91284
91285 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91286
91287         * modules/xalloc (Depends-on): Add exitfail.
91288         * modules/xmemcoll: Likewise.
91289
91290 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91291
91292         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91293         over-parenthesization in macros.
91294
91295         Sync with coreutils.
91296
91297         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91298         required by C99.
91299
91300         Use `exit_failure' for xalloc and xmemcoll instead of their own
91301         private exit-failure variables.
91302         * lib/xalloc.h (xalloc_exit_failure): Remove.
91303         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91304         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91305         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91306         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91307         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91308
91309 2003-07-20  Jim Meyering  <jim@meyering.net>
91310
91311         * modules/closeout (Depends-on): Add exitfail.
91312         Suggestion from Bruno Haible.
91313
91314 2003-07-19  Karl Berry  <karl@gnu.org>
91315
91316         * config/config.sub: update from prep.
91317
91318 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91319
91320         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91321         Remove.
91322         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91323         to test that it can stand by itself.  Include "exitfail.h".
91324         Clients should set exit_failure instead.
91325         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91326
91327 2003-07-18  Bruno Haible  <bruno@clisp.org>
91328
91329         * modules/getndelim2: New file.
91330         * modules/getline: Share files with module getndelim2.
91331         * modules/getnline: Depend on getndelim2 instead of sharing files with
91332         it. Add getnline.c to lib_SOURCES.
91333         * MODULES.html.sh (func_all_modules): Add getndelim2.
91334
91335 2003-07-18  Bruno Haible  <bruno@clisp.org>
91336
91337         * m4/getndelim2.m4: New file.
91338         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91339         invoke gl_PREREQ_GETNDELIM2.
91340         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91341         gl_PREREQ_GETNDELIM2.
91342         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91343         gl_GETNDELIM2.
91344
91345 2003-07-18  Bruno Haible  <bruno@clisp.org>
91346
91347         * lib/getndelim2.h: New file.
91348         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91349         getndelim2.h.
91350         (getndelim2): Make non-static. Change return type to ssize_t.
91351         * lib/getline.h: Change argument names.
91352         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91353         * lib/getnline.c: Include getndelim2.h.
91354
91355 2003-07-18  Andreas Schwab  <schwab@suse.de>
91356
91357         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91358
91359 2003-07-17  Karl Berry  <karl@gnu.org>
91360
91361         * config/config.sub: update from prep.
91362
91363 2003-07-17  Bruno Haible  <bruno@clisp.org>
91364
91365         * modules/getnline: New file.
91366         * modules/getline: Add lib/getndelim2.c to source file list.
91367         * MODULES.html.sh (func_all_modules): Add getnline.
91368
91369 2003-07-17  Bruno Haible  <bruno@clisp.org>
91370
91371         * m4/getnline.m4: New file.
91372
91373 2003-07-17  Bruno Haible  <bruno@clisp.org>
91374
91375         * m4/Makefile.am.in: Remove file.
91376         * m4/Makefile.am: Remove file.
91377         * m4/Makefile.in: Remove file.
91378
91379 2003-07-17  Bruno Haible  <bruno@clisp.org>
91380
91381         * lib/getnline.h: New file.
91382         * lib/getnline.c: New file.
91383         * lib/getndelim2.c: New file, extracted from getline.c.
91384         (getndelim2): Renamed from getdelim2, with added nmax argument.
91385         * lib/getline.c: Include getndelim2.c.
91386         (getdelim2): Moved out to getndelim2.c.
91387         (getline, getdelim): Update.
91388
91389 2003-07-17  Bruno Haible  <bruno@clisp.org>
91390
91391         * lib/Makefile.am: Remove file.
91392         * lib/Makefile.in: Remove file.
91393
91394 2003-07-17  Bruno Haible  <bruno@clisp.org>
91395
91396         * configure.in: Remove file.
91397         * Makefile.in: Remove file.
91398
91399 2003-07-17  Bruno Haible  <bruno@clisp.org>
91400
91401         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91402
91403 2003-07-16  Karl Berry  <karl@gnu.org>
91404
91405         * config/srclist-update: was running fixlicense twice, which caused
91406                 texinfo.tex to be nullified for some reason.  Simplify,
91407                 $gplsrc is no longer needed as far as I can see?
91408
91409 2003-07-16  Jim Meyering  <jim@meyering.net>
91410
91411         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91412
91413 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91414
91415         * config/srclist.txt: Get the following files from gettext-runtime/intl
91416         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91417         ref-del.sin.  From Bruno Haible.
91418         * config/srclist-update (fixfile): Change grep pattern again, since the
91419         previous fix didn't work (there was another trailing $).  Use
91420         '[$]' to escape the $s.
91421
91422 2003-07-15  Karl Berry  <karl@gnu.org>
91423
91424         * lib/vasnprintf.c: update from gettext.
91425
91426 2003-07-15  Karl Berry  <karl@gnu.org>
91427
91428         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91429         gets expanded when surrounded by '$'.
91430
91431 2003-07-15  Jim Meyering  <jim@meyering.net>
91432
91433         * modules/save-cwd: Don't depend on error.  From Derek Price.
91434
91435 2003-07-15  Jim Meyering  <jim@meyering.net>
91436
91437         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91438
91439 2003-07-14  Simon Josefsson  <jas@extundo.com>
91440
91441         * modules/mempcpy: New file.
91442         * MODULES.html.sh (func_all_modules): Add mempcpy.
91443
91444 2003-07-14  Simon Josefsson  <jas@extundo.com>
91445
91446         * m4/mempcpy.m4: New file.
91447
91448 2003-07-14  Simon Josefsson  <jas@extundo.com>
91449
91450         * lib/mempcpy.h: New file.
91451         * lib/mempcpy.c: New file.
91452
91453 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91454
91455         * modules/getdate, modules/posixtm: Depend on mktime.
91456
91457 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91458
91459         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91460         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91461         unicodeio.c, unicodeio.h, unlocked-io.h:
91462         Switch from LGPL to GPL.
91463
91464 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91465
91466         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91467         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91468         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91469         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91470         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91471         updated automatically by ../config/srclist-update.  This changes
91472         their license from LPGL to GPL.
91473
91474 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91475
91476         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91477         assumed to refer to the root of the most recent stable gettext version.
91478         * config/srclistvars.sh: Add defaults for eggert.
91479         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91480         Match "This program" as well as "The program".  This is needed
91481         for gettext.
91482
91483 2003-07-14  Jim Meyering  <jim@meyering.net>
91484
91485         Don't emit diagnostics.  Let callers do that.
91486         * lib/save-cwd.c: Don't include "error.h".
91487         (save_cwd): Don't call error.  Ensure that errno is valid
91488         when returning nonzero.
91489
91490         * lib/save-cwd.h (restore_cwd): Update prototype.
91491         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91492         Simplify.  Don't call error upon failure.  Let callers do that.
91493         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91494         when auditing is enabled.  But don't bother updating the #if.
91495
91496 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91497
91498         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91499         it breaks C++ compilation.
91500         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91501
91502 2003-07-10  Simon Josefsson  <jas@extundo.com>
91503
91504         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91505
91506 2003-07-10  Jim Meyering  <jim@meyering.net>
91507
91508         * m4/clock_time.m4: Remove trailing blank.
91509         * m4/intmax_t.m4: Likewise.
91510
91511 2003-07-10  Jim Meyering  <jim@meyering.net>
91512
91513         * lib/vasnprintf.c: Remove trailing blanks.
91514         Make cpp indentation consistent.
91515
91516 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91517
91518         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
91519         posixver.c, strftime.c, strnlen.c, strverscmp.c:
91520         Switch from LGPL to GPL.
91521
91522 2003-07-09  Paul Eggert  <eggert@twinsun.com>
91523
91524         * config/srclist.txt: Sort sublists.  Add
91525         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
91526         that differ from gnulib for one reason or another; we'd like this list
91527         to be smaller but for now let's document what we have.
91528
91529 2003-07-08  Paul Eggert  <eggert@twinsun.com>
91530
91531         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
91532         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
91533         and sweeter "eval x=$x".
91534         * config/srclist.txt: Get lib/argp* from glibc.
91535
91536 2003-07-07  Paul Eggert  <eggert@twinsun.com>
91537
91538         * lib/mktime.c: Fix some boundary cases and remove need for floating
91539         point.
91540
91541         Issue a compile-time diagnostic if time_t is floating point, or if
91542         two's complement arithmetic is not in effect, or if arithmetic
91543         right shift does not propagate the sign.  These assumptions were
91544         all in the original code but they weren't checked.
91545
91546         (TIME_T_MIDPOINT, verify): New macros.
91547         (__isleap): Remove; it has integer overflow problems.
91548         (leapyear): New function, without those problems.
91549         (ydhms_tm_diff): Remove; splitting into two parts.
91550         (ydhms_diff): New function, containing the arithmetic part of
91551         the old ydhms_tm_diff function.  Issue a compile-time
91552         diagnostic if we are not using C99 integer division.
91553         Avoid casts when possible.
91554         (guess_time_tm): New function, containing the checking part of
91555         the old ydhms_tm_diff function.  Return the new value, rather than
91556         the difference between it and the old.  Accept a new argument T
91557         so that *T specifies the old value.  Check for overflow in the result.
91558
91559         (__mktime_internal): Use a time_t offset, not a long int offset.
91560         This undoes the 2003-06-04 change, which is no longer needed now
91561         that we have better overflow checking.
91562         (localtime_offset): Likewise.
91563
91564         (__mktime_internal): Avoid harmful overflow on hosts where time_t
91565         and long are 64-bit but int is only 32-bit.
91566         (ydhms_diff): Use long int to store year1 and yday1.
91567         Issue a compile-time diagnostic if long int is not wide enough.
91568
91569         (__mktime_internal): Use long int to store adjusted year and yday.
91570         Use plain C rather than preprocessor commands, if that doesn't
91571         affect efficiency.
91572         Check for overflow (and try to repair) after each probe
91573         rather than checking only at the very end.  This avoids some bugs
91574         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
91575         does not equal GMT offset at maximum time).
91576         Use integer to check for overflow rather than floating point; this
91577         is more portable to non-IEEE hosts, and is a tad faster.
91578         When we detect that we are oscillating between two values,
91579         don't check whether tm_isdst has the requested value, since
91580         we already know the answer.  When tm_isdst has the wrong value,
91581         use a different heuristic to find the right one, based on the
91582         extreme values actually observed in practice in tz2003a,
91583         rather than the (overly optimistic) "previous 3 calendar quarters".
91584
91585         (not_equal_tm, print_tm, check_result): Use "const T" rather than
91586         "T const" to accommodate glibc style.
91587         (check_result): Use less-confusing report format.  "long" -> "long int.
91588         (main): Likewise.
91589         Don't loop if the iteration overflows time_t.
91590         Allow a negative step in the iteration.
91591
91592 2003-07-06  Karl Berry  <karl@gnu.org>
91593
91594         * config/depcomp: update from automake.
91595         * config/config.sub: update from prep.
91596
91597 2003-07-03  Karl Berry  <karl@gnu.org>
91598
91599         * config/config.guess: update from prep.
91600
91601 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91602
91603         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
91604         xreadlink.c now includes it unconditionally.
91605
91606 2003-07-01  Paul Eggert  <eggert@twinsun.com>
91607
91608         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
91609         having it depend on HAVE_SYS_TYPES_H.
91610
91611 2003-07-01  Bruno Haible  <bruno@clisp.org>
91612
91613         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
91614         <sys/types.h> should be sufficient.
91615         Reported by Paul Eggert.
91616
91617 2003-06-26  Karl Berry  <karl@gnu.org>
91618
91619         * config/depcomp: update from automake.
91620
91621 2003-06-26  Bruno Haible  <bruno@clisp.org>
91622
91623         * modules/human: Depend on module stdbool.
91624
91625 2003-06-25  Bruno Haible  <bruno@clisp.org>
91626
91627         * modules/readlink: New file.
91628         * modules/xreadlink: Depend on it.
91629         * MODULES.html.sh (func_all_modules): Add readlink.
91630
91631 2003-06-25  Bruno Haible  <bruno@clisp.org>
91632
91633         * m4/readlink.m4: New file.
91634
91635 2003-06-25  Bruno Haible  <bruno@clisp.org>
91636
91637         * lib/readlink.c: New file.
91638
91639 2003-06-22  Karl Berry  <karl@gnu.org>
91640
91641         * config/srclist.txt: update mkinstalldirs from automake.
91642         * config/mkinstalldirs: update.
91643
91644 2003-06-22  Bruno Haible  <bruno@clisp.org>
91645
91646         Portability to mingw32.
91647         * m4/ssize_t.m4: New file, from GNU gettext.
91648         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
91649         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
91650
91651 2003-06-22  Bruno Haible  <bruno@clisp.org>
91652
91653         * modules/safe-read: Add m4/ssize_t.m4.
91654         * modules/xreadlink: Add m4/ssize_t.m4.
91655
91656 2003-06-20  Bruno Haible  <bruno@clisp.org>
91657
91658         Assume C89, so PARAMS isn't needed.
91659         * lib/unicodeio.h (PARAMS): Remove.
91660         * lib/unicodeio.c: Don't use PARAMS.
91661
91662 2003-06-18  Karl Berry  <karl@gnu.org>
91663
91664         * config/config.{guess,sub}: update from prep.
91665
91666 2003-06-18  Jim Meyering  <jim@meyering.net>
91667
91668         Merge changes from coreutils.
91669         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
91670         Remove explicit declarations of xmalloc and realloc.
91671         Include xalloc.h.
91672         (read_utmp): Remove anachronistic cast of xmalloc.
91673
91674 2003-06-17  Paul Eggert  <eggert@twinsun.com>
91675
91676         Assume C89, so PARAMS isn't needed.
91677         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
91678         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
91679         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
91680         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
91681         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
91682         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
91683         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
91684         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
91685         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
91686         lib/xstrtod.h, lib/xstrtol.h: Likewise.
91687         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
91688         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
91689         no longer needed. Anyway, config.h should always be included before any
91690         other file.
91691
91692 2003-06-11  Simon Josefsson  <jas@extundo.com>
91693
91694         * modules/sysexits: New file.
91695         * MODULES.html.sh (func_all_modules): Add sysexits.
91696
91697 2003-06-11  Simon Josefsson  <jas@extundo.com>
91698
91699         * lib/sysexit_.h: New file.
91700
91701 2003-06-11  Derek Price  <derek@ximbiot.com>
91702
91703         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
91704         necessary.
91705
91706 2003-06-11  Bruno Haible  <bruno@clisp.org>
91707
91708         * m4/sysexits.m4: New file.
91709
91710 2003-06-10  Simon Josefsson  <jas@extundo.com>
91711
91712         * lib/argp.h: New file, from glibc.
91713         * lib/argp-ba.c: New file, from glibc.
91714         * lib/argp-eexst.c: New file, from glibc.
91715         * lib/argp-fmtstream.c: New file, from glibc.
91716         * lib/argp-fmtstream.h: New file, from glibc.
91717         * lib/argp-fs-xinl.c: New file, from glibc.
91718         * lib/argp-help.c: New file, from glibc.
91719         * lib/argp-namefrob.h: New file, from glibc.
91720         * lib/argp-parse.c: New file, from glibc.
91721         * lib/argp-pv.c: New file, from glibc.
91722         * lib/argp-pvh.c: New file, from glibc.
91723         * lib/argp-xinl.c: New file, from glibc.
91724
91725 2003-06-10  Simon Josefsson  <jas@extundo.com>
91726
91727         * modules/strchrnul: New file.
91728
91729 2003-06-10  Simon Josefsson  <jas@extundo.com>
91730
91731         * modules/argp: New file.
91732
91733 2003-06-10  Simon Josefsson  <jas@extundo.com>
91734
91735         * m4/strchrnul.m4: New file.
91736
91737 2003-06-10  Simon Josefsson  <jas@extundo.com>
91738
91739         * lib/strchrnul.h: New file.
91740         * lib/strchrnul.c: New file.
91741
91742 2003-06-10  Bruno Haible  <bruno@clisp.org>
91743
91744         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
91745
91746 2003-06-07  Karl Berry  <karl@gnu.org>
91747
91748         * config/config.{guess,sub}: update from prep.
91749
91750 2003-06-07  Jim Meyering  <jim@meyering.net>
91751
91752         * modules/strtod: Use $(...) notation, not @...@ for
91753         AC_REPLACE'd variables.
91754         * modules/localcharset: Likewise.
91755
91756 2003-06-07  Jim Meyering  <jim@meyering.net>
91757
91758         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
91759         in place of my name in the copyright comment.
91760         Remove definition and uses of __P.
91761
91762         From coreutils.
91763         * lib/stat.c: Don't declare xmalloc explicitly.
91764         Instead, include "xalloc.h".
91765         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
91766         xrealloc, and xcalloc return values.
91767         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
91768         Improve comment.
91769         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
91770
91771 2003-06-07  Bruno Haible  <bruno@clisp.org>
91772
91773         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
91774         avoid AC_CONFIG_LINKS.
91775         * modules/fnmatch (Makefile.am): Use explicit creation rule for
91776         fnmatch.h, to avoid AC_CONFIG_LINKS.
91777         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
91778
91779 2003-06-07  Bruno Haible  <bruno@clisp.org>
91780
91781         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
91782         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
91783         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91784         directory.
91785         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
91786         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
91787         directory.
91788
91789 2003-06-06  Jim Meyering  <jim@meyering.net>
91790
91791         Merge from coreutils.
91792         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
91793         Consolidate declarations and initializations of *_base* locals.
91794
91795         Merge from coreutils.
91796         This avoids a core dump on systems without GNU putenv,
91797         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
91798         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
91799         (unsetenv): New static function, from GNU libc.
91800         (rpl_putenv): Use it.
91801
91802         * lib/modechange.c: Remove trailing blanks.
91803
91804         Merge from coreutils.
91805         * lib/fsusage.c: Remove declaration of statfs.
91806         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
91807
91808         * lib/posixtm.c: Include <stdbool.h> unconditionally.
91809
91810 2003-06-06  Jim Meyering  <jim@meyering.net>
91811
91812         * lib/stdbool_.h: Renamed from stdbool.h.in.
91813
91814 2003-06-06  Jim Meyering  <jim@meyering.net>
91815             Bruno Haible  <bruno@clisp.org>
91816
91817         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
91818         Adjust Makefile.am snippet not to redirect directly to target.
91819         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
91820
91821 2003-06-05  Paul Eggert  <eggert@twinsun.com>
91822
91823         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
91824         mismatch, look in future quarters as well as past.  This fixes a
91825         bug when processing fall-backwards gaps immediately after a long
91826         period of daylight-saving time.
91827
91828         * lib/mktime.c: Assume freestanding C89 or better.
91829         (HAVE_LIMITS_H): Remove.  Assume it's 1.
91830         (__P): Remove; not used.
91831         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
91832         (mktime, not_equal_tm, print_tm, check_result,
91833         main): Use prototypes.  Use const * where appropriate.
91834         (main): Fix typo in testing code that uncovered by above changes.
91835         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
91836
91837 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91838
91839         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
91840         locale.h, localeconv.  This merges changes from coreutils.
91841
91842         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
91843         It can be removed after the next Autoconf is released.
91844         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
91845         needed.
91846
91847 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91848
91849         * lib/mktime.c: Fix Debian bug 177940
91850         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
91851         (localtime_offset): Now long int, not time_t, because we want it
91852         to be guaranteed to be signed.  All uses changed.
91853         (__mktime_internal): If overflow would occur when adding offset,
91854         don't add it.
91855
91856         Merge 'human' changes from coreutils.  Rewrite to support
91857         locale-specific notations like thousands separators.
91858         * lib/human.c: Simplify authorship notice.
91859         Include human.h immediately after config.h.
91860         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
91861         <limits.h>: Do not include, since human.h does.
91862         (SIZE_MAX, UINTMAX_MAX): New macros.
91863         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
91864         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
91865         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
91866         (power_letter): Renamed from suffixes.
91867         (generate_suffix_backwards): Remove.
91868         (adjust_value): Now takes int style (because of human.h changes)
91869         and long double value (for greater precision on some platforms).
91870         (group_number): New function.
91871         (human_readable): Use it.  Use integer options, not enum.
91872         Put the options before the sizes in the arg list.
91873         Support all the new options.
91874         The old human_readable function has been removed;
91875         use inttostr.h instead.
91876         (human_readable, default_block_size, humblock):
91877         Use uintmax_t, not int, for block sizes.
91878         (human_readable_inexact, block_size_types): Remove.
91879         (block_size_opts): New constant.
91880         (human_options): Renamed from human_block_size, with new signature
91881         that allows block sizes up to UINTMAX_MAX.  All callers changed.
91882         * lib/human.h: Add copyright and authorship notice.
91883         Include <limits.h> and <stdbool.h> unconditionally.
91884         (PARAMS): Remove.  All uses removed.
91885         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
91886         (enum human_inexact_style): Remove tag; now a nameless enum.
91887         (human_floor, human_ceiling, human_round_to_even): Now have
91888         values 2, 0, 1 rather than -1, 1, 0.
91889         (human_group_digits, human_suppress_point_zero, human_autoscale,
91890         human_base_1024, human_SI, human_B): New constants.
91891         (human_readable_inexact, human_block_size): Remove.
91892         (human_readable): Size args are now uintmax_t, not int.
91893         (human_options): New decl.
91894
91895         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
91896         unnecessary now that we assume C89 or better.  This change
91897         imported from coreutils.
91898
91899         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91900         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91901         in the 2003-05-30 sync from glibc.
91902
91903         .h files should stand alone, but we shouldn't include <sys/types.h>
91904         if we can get away with just <stddef.h>.
91905
91906         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91907         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91908         rather than <sys/types.h>, as we merely need size_t.
91909         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91910         to get size_t.
91911         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91912         Include <stdio.h>, to get FILE.
91913         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91914         memcasecmp.h has included <stddef.h> and all we need is size_t.
91915         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91916         our interface, instead of including <sys/types.h>
91917
91918 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91919
91920         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
91921         now, as glibc mktime is buggy on non-glibc systems.
91922
91923 2003-06-03  Karl Berry  <karl@gnu.org>
91924
91925         * config/config.sub: update from prep.
91926
91927 2003-06-02  Paul Eggert  <eggert@twinsun.com>
91928
91929         [from coreutils]
91930         Fix some minor time-related bugs with POSIX time arguments.
91931         Some valid time stamps were being rejected (notably -1, and
91932         time stamps before 1900 on 64-bit hosts).  And some invalid
91933         time stamps were being accepted, e.g. September 31.
91934
91935         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
91936         that we can return (time_t) -1 successfully.
91937         * lib/posixtm.c: Likewise.
91938         [HAVE_STDBOOL_H]: Include <stdbool.h>.
91939         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
91940         (t): Remove static var.
91941         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
91942         of static var.  All uses changed.
91943         (year): Do not reject years before 1900; they can occur with
91944         64-bit time_t.
91945         (posix_time_parse): Do not check for out-of-range components;
91946         that is now the caller's responsibility, since our checks were
91947         only approximations.
91948         (posixtime): Use mktime to check for out-of-range components,
91949         since it knows them exactly.
91950         If mktime returns (time_t) -1, check whether an error actually occurred
91951         by invoking localtime on -1.
91952         (main) [TEST_POSIXTIME]: Check for input data errors, and report
91953         posixtime failures better.
91954         Improve the test data (in comments only).
91955
91956 2003-06-02  Karl Berry  <karl@gnu.org>
91957
91958         * config/mkinstalldirs (version): new variable.
91959         (--version): new option.
91960         (usage): improve message.
91961
91962 2003-05-30  Karl Berry  <karl@gnu.org>
91963
91964         * lib/mktime.c: update from libc.
91965
91966 2003-05-30  Bruno Haible  <bruno@clisp.org>
91967
91968         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
91969         * config/config.rpath: Upgrade to gettext-0.12.1.
91970
91971 2003-05-30  Bruno Haible  <bruno@clisp.org>
91972
91973         * m4/gettext.m4: Upgrade to gettext-0.12.1.
91974         * m4/nls.m4: New file, from gettext-0.12.1.
91975         * m4/po.m4: New file, from gettext-0.12.1.
91976         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91977
91978 2003-05-30  Bruno Haible  <bruno@clisp.org>
91979
91980         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91981         * lib/localcharset.h: Likewise.
91982         * lib/localcharset.c: Likewise.
91983
91984 2003-05-29  Karl Berry  <karl@gnu.org>
91985
91986         * config/config.rpath: update from gettext.
91987
91988 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91989
91990         Assume the headers required for C89 freestanding compilers.
91991         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91992         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91993         * m4/human.m4 (gl_HUMAN): Likewise.
91994         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91995         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91996         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91997         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91998         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91999         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92000
92001 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92002
92003         Assume the headers required for C89 freestanding compilers.
92004         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92005         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92006         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92007         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92008         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92009         define, since <limits.h> is guaranteed to do that.
92010         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92011         * lib/exclude.c: Include <stdbool.h> unconditionally.
92012         * lib/tempname.c: Include <stddef.h> unconditionally.
92013         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92014         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92015         <stddef.h> does that.
92016         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92017         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92018         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92019         needed.
92020         * lib/xstrtol.c: Likewise.
92021         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92022         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92023
92024         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92025         warnings on some platforms.
92026
92027         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92028         arbitrarily.
92029
92030 2003-05-26  Jim Meyering  <jim@meyering.net>
92031
92032         Merge in a change from coreutils:
92033         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92034         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92035         that condition, rather than `-1' which is slightly misleading.
92036         Change the name of the cache variable to have the gl_ prefix.
92037         Prompted by a patch from Richard Dawe for DJGPP.
92038
92039 2003-05-24  Karl Berry  <karl@gnu.org>
92040
92041         * config/config.guess: update from prep.
92042
92043 2003-05-22  Karl Berry  <karl@gnu.org>
92044
92045         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92046
92047 2003-05-20  Karl Berry  <karl@gnu.org>
92048
92049         * config/config.guess: update from prep.
92050
92051 2003-05-18  Karl Berry  <karl@gnu.org>
92052
92053         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92054         might actually be set by the user.
92055
92056         * config/depcomp, install-sh, mdate-sh: update from automake.
92057
92058 2003-05-17  Bruno Haible  <bruno@clisp.org>
92059
92060         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92061         invalid expansion for AC_EGREP_CPP.
92062         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92063         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92064         Suggested by Akim Demaille <akim@epita.fr> in
92065         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92066
92067 2003-05-12  Jim Meyering  <jim@meyering.net>
92068
92069         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92070         the space-padded-by-default conversion specifiers, %e, %k, %l.
92071
92072 2003-05-12  Bruno Haible  <bruno@clisp.org>
92073
92074         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92075         the string is longer than 4 KB.
92076
92077 2003-05-11  Karl Berry  <karl@gnu.org>
92078
92079         * config/config.{guess,sub}: update from prep.
92080
92081 2003-05-09  Bruno Haible  <bruno@clisp.org>
92082
92083         * modules/error: Add m4/strerror_r.m4 to file list.
92084
92085 2003-05-03  Bruno Haible  <bruno@clisp.org>
92086
92087         Upgrade to Unicode-4.0.
92088         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92089         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92090         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92091         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92092         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92093         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92094         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92095         Change width of U+E0100..U+E01EF from 1 to 0.
92096
92097 2003-04-25  Jim Meyering  <jim@meyering.net>
92098
92099         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92100         of type size_t, not int.
92101
92102 2003-04-25  Bruno Haible  <bruno@clisp.org>
92103
92104         * lib/copy-file.c: Include <stddef.h>, for size_t.
92105
92106 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92107
92108         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92109         code which expansion is under static control.  Patch imported from
92110         Akim Demaille's patch to Bison; see
92111         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92112
92113 2003-04-14  Bruno Haible  <bruno@clisp.org>
92114
92115         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92116
92117 2003-04-11  Jim Meyering  <jim@meyering.net>
92118
92119         Merge changes from Coreutils.
92120
92121         2003-03-22  Jim Meyering  <jim@meyering.net>
92122
92123         * lib/strftime.c (widen): Cast alloca return value to proper type.
92124
92125         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92126
92127         From GNU libc.
92128         * lib/strftime.c (my_strftime): Handle very large width
92129         specifications for numeric values correctly.  Improve checks for
92130         overflow.
92131
92132         2003-01-19  Jim Meyering  <jim@meyering.net>
92133
92134         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92135         definitions.
92136         (nl_get_alt_digit) [! defined my_strftime]: Define.
92137         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92138         _nl_get_alt_digit and _nl_get_walt_digit.
92139
92140         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92141         libc. These changes have no effect outside of _LIBC.
92142
92143 2003-04-10  Bruno Haible  <bruno@clisp.org>
92144
92145         * modules/findprog: New file.
92146         * MODULES.html.sh (func_all_modules): Add it.
92147
92148 2003-04-10  Bruno Haible  <bruno@clisp.org>
92149
92150         * m4/findprog.m4: New file.
92151         * m4/eaccess.m4: New file.
92152
92153 2003-04-10  Bruno Haible  <bruno@clisp.org>
92154
92155         * lib/findprog.h: New file, from GNU gettext.
92156         * lib/findprog.c: New file, from GNU gettext.
92157
92158 2003-04-05  Jim Meyering  <jim@meyering.net>
92159
92160         Merge changes from Coreutils.
92161
92162         * lib/exclude.h (PARAMS): Remove definition and uses.
92163         * lib/exclude.c: Remove uses of `PARAMS'.
92164
92165         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92166         Add test-cases for DOS filenames. Declare program_name.
92167         (main): Set up program_name.  Patch by Rich Dawe.
92168
92169         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92170         error from mntctl.
92171         Use mntctl's return value to drive the entry-processing loop, since
92172         we can't rely on the value of the vmt_length member in the last
92173         entry.  On some systems doing so could result in exhausting
92174         virtual memory.  Based in part on a patch from Mike Jetzer.
92175
92176 2003-04-04  Bruno Haible  <bruno@clisp.org>
92177
92178         * modules/linebreak: New file.
92179         * MODULES.html.sh (func_all_modules): Add it.
92180
92181 2003-04-04  Bruno Haible  <bruno@clisp.org>
92182
92183         * m4/linebreak.m4: New file.
92184
92185 2003-04-04  Bruno Haible  <bruno@clisp.org>
92186
92187         * lib/linebreak.h: New file, from GNU gettext.
92188         * lib/linebreak.c: New file, from GNU gettext with slight
92189         modifications.
92190         * lib/lbrkprop.h: New file, from GNU gettext.
92191
92192 2003-04-03  Bruno Haible  <bruno@clisp.org>
92193
92194         * modules/utf8-ucs4: New file.
92195         * modules/utf16-ucs4: New file.
92196         * modules/ucs4-utf8: New file.
92197         * modules/ucs4-utf16: New file.
92198         * MODULES.html.sh (func_all_modules): Add them.
92199
92200 2003-04-03  Bruno Haible  <bruno@clisp.org>
92201
92202         * m4/utf-ucs4.m4: New file.
92203         * m4/ucs4-utf.m4: New file.
92204
92205 2003-04-03  Bruno Haible  <bruno@clisp.org>
92206
92207         * lib/utf8-ucs4.h: New file, from GNU gettext.
92208         * lib/utf16-ucs4.h: New file, from GNU gettext.
92209         * lib/ucs4-utf8.h: New file, from GNU gettext.
92210         * lib/ucs4-utf16.h: New file, from GNU gettext.
92211
92212 2003-04-02  Bruno Haible  <bruno@clisp.org>
92213
92214         * modules/binary-io: New file.
92215         * MODULES.html.sh (func_all_modules): Add it.
92216
92217 2003-04-02  Bruno Haible  <bruno@clisp.org>
92218
92219         * lib/binary-io.h: New file, from GNU gettext.
92220
92221 2003-04-01  Bruno Haible  <bruno@clisp.org>
92222
92223         * modules/pathname: New file.
92224         * MODULES.html.sh (func_all_modules): Add it.
92225
92226 2003-04-01  Bruno Haible  <bruno@clisp.org>
92227
92228         * lib/pathname.h: New file, from GNU gettext.
92229         * lib/concatpath.c: New file, from GNU gettext.
92230
92231 2003-03-30  Bruno Haible  <bruno@clisp.org>
92232
92233         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92234
92235 2003-03-30  Bruno Haible  <bruno@clisp.org>
92236
92237         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92238         function chown() doesn't exist.
92239
92240 2003-03-28  Bruno Haible  <bruno@clisp.org>
92241
92242         * modules/copy-file: New file.
92243         * MODULES.html.sh (func_all_modules): Add it.
92244
92245 2003-03-28  Bruno Haible  <bruno@clisp.org>
92246
92247         * m4/copy-file.m4: New file.
92248
92249 2003-03-28  Bruno Haible  <bruno@clisp.org>
92250
92251         * lib/copy-file.h: New file, from GNU gettext.
92252         * lib/copy-file.c: New file, from GNU gettext.
92253
92254 2003-03-18  Jim Meyering  <jim@meyering.net>
92255
92256         * lib/quote.c (quote_n): Fix typo in comment.
92257
92258 2003-03-18  Bruno Haible  <bruno@clisp.org>
92259
92260         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92261         checking.
92262         * m4/onceonly_2_57.m4: Likewise.
92263
92264 2003-03-17  Bruno Haible  <bruno@clisp.org>
92265
92266         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92267         (m4_quote): Remove macro.
92268         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92269
92270 2003-03-14  Jim Meyering  <jim@meyering.net>
92271
92272         Merge changes from Coreutils.
92273         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92274         to be const, in order to avoid warnings.
92275         (obstack_room): Likewise.
92276         (obstack_empty_p): Likewise.
92277
92278 2003-03-14  Bruno Haible  <bruno@clisp.org>
92279
92280         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92281         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92282
92283 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92284
92285         Merge changes from Bison.
92286         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92287         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92288         when compiling Bison 1.875's `bitset bset = obstack_alloc
92289         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92290         * lib/hash.c: Include <stdbool.h> unconditionally.
92291
92292 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92293
92294         * m4/onceonly.m4 (m4_quote): New macro.
92295         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92296         Quote AC_FOREACH variable-expansions properly.
92297
92298 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92299
92300         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92301
92302 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92303
92304         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92305         Reported by Bruce Becker; see:
92306         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92307
92308 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92309             Bruno Haible  <bruno@clisp.org>
92310
92311         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92312         Reported by John Hughes, see
92313         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92314
92315 2003-02-20  Bruno Haible  <bruno@clisp.org>
92316
92317         * MODULES.html.sh (func_all_modules): Add poll.
92318
92319 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92320
92321         * modules/poll: New file.
92322
92323 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92324
92325         * lib/poll_.h: New file.
92326         * lib/poll.c: New file.
92327
92328 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92329
92330         * m4/poll.m4: New file.
92331
92332 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92333
92334         * modules/mathl: New file.
92335
92336 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92337
92338         * lib/mathl.h: New file.
92339         * lib/acosl.c: New file.
92340         * lib/asinl.c: New file.
92341         * lib/atanl.c: New file.
92342         * lib/ceill.c: New file.
92343         * lib/cosl.c: New file.
92344         * lib/expl.c: New file.
92345         * lib/floorl.c: New file.
92346         * lib/frexpl.c: New file.
92347         * lib/ldexpl.c: New file.
92348         * lib/logl.c: New file.
92349         * lib/sincosl.c: New file.
92350         * lib/sinl.c: New file.
92351         * lib/sqrtl.c: New file.
92352         * lib/tanl.c: New file.
92353         * lib/trigl.c: New file.
92354         * lib/trigl.h: New file.
92355
92356 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92357
92358         * m4/mathl.m4: New file.
92359
92360 2003-02-18  Bruno Haible  <bruno@clisp.org>
92361
92362         * MODULES.html.sh (func_all_modules): Add mathl.
92363
92364 2003-02-17  Bruno Haible  <bruno@clisp.org>
92365
92366         * modules/mkdtemp: New module.
92367         * MODULES.html.sh (func_all_modules): Add it.
92368
92369 2003-02-17  Bruno Haible  <bruno@clisp.org>
92370
92371         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92372
92373 2003-02-17  Bruno Haible  <bruno@clisp.org>
92374
92375         * lib/mkdtemp.h: New file, from GNU gettext.
92376         * lib/mkdtemp.c: New file, from GNU gettext.
92377
92378 2003-02-02  Jim Meyering  <jim@meyering.net>
92379
92380         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92381         e.g. glibc-2.2.93.
92382
92383 2003-01-31  Bruno Haible  <bruno@clisp.org>
92384
92385         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92386         'rpl_rename'.
92387         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92388         'rpl_strnlen'.
92389         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92390         'rpl_strtod'.
92391         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92392         'rpl_utime'.
92393
92394 2003-01-31  Bruno Haible  <bruno@clisp.org>
92395
92396         * lib/rename.c: #undef rename before defining rpl_rename.
92397         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92398
92399 2003-01-30  Bruno Haible  <bruno@clisp.org>
92400
92401         * modules/vasnprintf, modules/vasprintf: New modules.
92402         * MODULES.html.sh (func_all_modules): Add them.
92403
92404 2003-01-30  Bruno Haible  <bruno@clisp.org>
92405
92406         * m4/signed.m4: New file, from GNU gettext.
92407         * m4/longdouble.m4: New file, from GNU gettext.
92408         * m4/wchar_t.m4: New file, from GNU gettext.
92409         * m4/wint_t.m4: New file, from GNU gettext.
92410         * m4/vasnprintf.m4: New file.
92411         * m4/vasprintf.m4: New file.
92412
92413 2003-01-30  Bruno Haible  <bruno@clisp.org>
92414
92415         * lib/printf-args.h: New file, from GNU gettext.
92416         * lib/printf-args.c: New file, from GNU gettext.
92417         * lib/printf-parse.h: New file, from GNU gettext.
92418         * lib/printf-parse.c: New file, from GNU gettext.
92419         * lib/vasnprintf.h: New file, from GNU gettext.
92420         * lib/vasnprintf.c: New file, from GNU gettext.
92421         * lib/asnprintf.c: New file, from GNU gettext.
92422         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92423         * lib/vasprintf.c: New file, from GNU gettext.
92424         * lib/asprintf.c: New file, from GNU gettext.
92425
92426 2003-01-29  Bruno Haible  <bruno@clisp.org>
92427
92428         * modules/stpncpy: New module.
92429         * MODULES.html.sh (func_all_modules): Add it.
92430
92431 2003-01-29  Bruno Haible  <bruno@clisp.org>
92432
92433         * m4/stpncpy.m4: New file.
92434
92435 2003-01-29  Bruno Haible  <bruno@clisp.org>
92436
92437         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92438         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92439
92440 2003-01-28  Bruno Haible  <bruno@clisp.org>
92441
92442         * modules/c-ctype: New module.
92443         * MODULES.html.sh (func_all_modules): Add it.
92444
92445 2003-01-28  Bruno Haible  <bruno@clisp.org>
92446
92447         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92448         Paul Eggert.
92449         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92450         Paul Eggert.
92451
92452 2003-01-27  Bruno Haible  <bruno@clisp.org>
92453
92454         * modules/xsetenv: New module.
92455         * MODULES.html.sh (func_all_modules): Add it.
92456
92457 2003-01-27  Bruno Haible  <bruno@clisp.org>
92458
92459         * lib/xsetenv.h: New file, from GNU gettext.
92460         * lib/xsetenv.c: New file, from GNU gettext.
92461
92462 2003-01-23  Jim Meyering  <jim@meyering.net>
92463
92464         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92465         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92466
92467 2003-01-23  Bruno Haible  <bruno@clisp.org>
92468
92469         * modules/minmax: New module.
92470         * MODULES.html.sh (func_all_modules): Add it.
92471
92472 2003-01-23  Bruno Haible  <bruno@clisp.org>
92473
92474         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92475         Eggert.
92476
92477 2003-01-22  Bruno Haible  <bruno@clisp.org>
92478
92479         * modules/exit: New module.
92480         * MODULES.html.sh (func_all_modules): Add it.
92481
92482 2003-01-22  Bruno Haible  <bruno@clisp.org>
92483
92484         * lib/exit.h: New file, from GNU gettext.
92485
92486 2003-01-19  Bruno Haible  <bruno@clisp.org>
92487
92488         * gnulib-tool: Recognize option --extract-maintainer.
92489         (func_get_maintainer): New function.
92490         * modules/*: Add Maintainer entry.
92491
92492 2003-01-16  Jim Meyering  <jim@meyering.net>
92493
92494         * m4/regex.m4: The `regex' struct is both input and output.
92495         Initialize it before each use.  Patch by Tim Waugh.
92496
92497 2003-01-16  Bruno Haible  <bruno@clisp.org>
92498
92499         * MODULES.html.sh: Add a table of contents. Add the module name as
92500         leftmost column. Add hyperlinks.
92501
92502 2003-01-15  Bruno Haible  <bruno@clisp.org>
92503
92504         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92505
92506 2003-01-15  Bruno Haible  <bruno@clisp.org>
92507
92508         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
92509         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
92510         suffix.
92511
92512 2003-01-15  Bruno Haible  <bruno@clisp.org>
92513
92514         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
92515
92516 2003-01-15  Bruno Haible  <bruno@clisp.org>
92517
92518         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
92519         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
92520
92521 2003-01-14  Jim Meyering  <jim@meyering.net>
92522
92523         * lib/same.c (same_name): Tweak a comment.
92524
92525 2003-01-14  Bruno Haible  <bruno@clisp.org>
92526
92527         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
92528         when a string comparison is sufficient.
92529
92530 2003-01-14  Bruno Haible  <bruno@clisp.org>
92531
92532         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
92533         'unsigned int'.
92534
92535 2003-01-14  Bruno Haible  <bruno@clisp.org>
92536
92537         * lib/hash-pjw.c: Add comment about low quality of this function.
92538
92539 2003-01-13  Bruno Haible  <bruno@clisp.org>
92540
92541         * modules/stpcpy: Distribute lib/stpcpy.h.
92542         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
92543
92544 2003-01-13  Bruno Haible  <bruno@clisp.org>
92545
92546         * modules/*: Add a description.
92547         * modules/strpbrk: Fix Makefile.am snippet.
92548         * modules/strtoimax: Fix dependencies.
92549         * modules/strtoumax: Likewise.
92550
92551 2003-01-13  Bruno Haible  <bruno@clisp.org>
92552
92553         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
92554         * modules/alloca (Makefile.am): All object files depend on alloca.h.
92555         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
92556
92557 2003-01-13  Bruno Haible  <bruno@clisp.org>
92558
92559         * gnulib-tool (func_create_testdir): Store config/* files in the main
92560         directory.
92561         * config.rpath: Move to ...
92562         * config/config.rpath: ... here.
92563         * modules/gettext: Contains config/config.rpath, not config.rpath.
92564         * modules/iconv: Likewise.
92565
92566 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92567
92568         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92569         to avoid collisions with libcurses and libreadline.
92570
92571         * m4/getstr.m4: Remove.
92572         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
92573
92574 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92575
92576         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92577         to avoid collisions with libcurses and libreadline.
92578
92579         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
92580         * lib/getstr.h, getstr.c: Remove.
92581         * lib/getline.c: Include "getline.h", to check interface.
92582         Move body of old getstr.c here: this defines MIN_CHUNK and
92583         declares getdelim2, which is renamed from getstr.
92584         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
92585
92586         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
92587         All uses changed.
92588         * lib/linebuffer.h: Likewise.
92589         (readline): Remove backward-compatibility macro.
92590
92591 2003-01-12  Paul Eggert  <eggert@twinsun.com>
92592
92593         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
92594         to avoid collisions with libcurses and libreadline.
92595         * getstr: Remove.
92596         * MODULES.html.sh: Remove getstr.
92597         * modules/getline: Depend on unlocked-io, not getstr.
92598
92599 2003-01-12  Jim Meyering  <jim@meyering.net>
92600
92601         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
92602
92603 2003-01-10  Bruno Haible  <bruno@clisp.org>
92604
92605         * modules/alloca: Change Makefile.am requirements. Simplify Include
92606         requirements. Add lib/alloca_.h to file list.
92607
92608 2003-01-10  Bruno Haible  <bruno@clisp.org>
92609
92610         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
92611
92612 2003-01-10  Bruno Haible  <bruno@clisp.org>
92613
92614         * lib/alloca_.h: New file.
92615         * lib/getdate.y: Unconditionally include alloca.h.
92616         * lib/makepath.c: Likewise.
92617         * lib/setenv.c: Likewise.
92618         * lib/userspec.c: Likewise.
92619
92620 2003-01-09  Karl Berry  <karl@gnu.org>
92621
92622         * MODULES.html.sh: include `dirname $0` in PATH, to find
92623         gnulib-tool.
92624
92625 2003-01-09  Bruno Haible  <bruno@clisp.org>
92626
92627         * modules/stdbool: Change configure.ac, Makefile.am requirements.
92628         Simplify Include requirements. Add lib/stdbool.h.in to file list.
92629
92630 2003-01-09  Bruno Haible  <bruno@clisp.org>
92631
92632         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
92633
92634 2003-01-09  Bruno Haible  <bruno@clisp.org>
92635
92636         * lib/stdbool.h.in: New file.
92637
92638 2003-01-09  Bruno Haible  <bruno@clisp.org>
92639
92640         * gnulib-tool (func_all_modules): Ignore files ending in ~.
92641         * MODULES.html.sh: Likewise.
92642
92643 2003-01-08  Jim Meyering  <jim@meyering.net>
92644
92645         * lib/full-write.c: Undefine and define-away `const' after inclusion
92646         of errno.h, not before.  Suggestion from Bruno Haible.
92647
92648 2003-01-08  Bruno Haible  <bruno@clisp.org>
92649
92650         * modules/full-read: Depend on full-write.
92651
92652 2003-01-08  Bruno Haible  <bruno@clisp.org>
92653
92654         * lib/safe-read.c: Include specification header first, to ensure its
92655         selfcontainedness.
92656         * lib/full-write.c: Likewise.
92657
92658 2003-01-07  Jim Meyering  <jim@meyering.net>
92659
92660         * lib/full-write.c: Rework so that it may serve to define full_read,
92661         too.
92662         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
92663
92664 2003-01-07  Bruno Haible  <bruno@clisp.org>
92665
92666         * lib/strtoimax.c: Include <stdint.h> as an alternative to
92667         <inttypes.h>.
92668         * lib/xstrtol.h: Likewise.
92669         * lib/xstrtoimax.c: Likewise.
92670         * lib/xstrtoumax.c: Likewise.
92671         * lib/human.h: Likewise.
92672
92673         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
92674         on systems that have <inttypes.h> but not <stdint.h>.
92675
92676 2003-01-07  Bruno Haible  <bruno@clisp.org>
92677
92678         * MODULES.html.sh: Add copyright notice.
92679         (missed_files): Omit CVS directory entries.
92680         (func_module): Make it work with sed-3.02.
92681         * MODULES.txt: Remove file.
92682
92683 2003-01-06  Jim Meyering  <jim@meyering.net>
92684
92685         * lib/version-etc.c: Update year in translatable copyright string.
92686
92687 2003-01-03  Karl Berry  <karl@gnu.org>
92688
92689         * config/config.{guess,sub}: update from prep.
92690
92691 2003-01-02  Karl Berry  <karl@gnu.org>
92692
92693         * doc/COPYING.DOC: belatedly updated to 1.2.
92694
92695 2003-01-01  Karl Berry  <karl@gnu.org>
92696
92697         * gnulib-tool (func_verify_module): report module name $module in
92698         error message, not $1.
92699         * gnulib-tool (create-testdir): don't complain if destdir couldn't
92700         be created, only if it doesn't exist.
92701         * gnulib-tool (last_checkin_date): don't expand the $Date here.
92702
92703 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92704
92705         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
92706
92707 2002-12-31  Paul Eggert  <eggert@twinsun.com>
92708
92709         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
92710         memcmp if strcoll doesn't work.
92711
92712 2002-12-31  Bruno Haible  <bruno@clisp.org>
92713
92714         * lib/utime.c (utime_null): No need to call ftruncate if the file was
92715         nonempty.
92716
92717 2002-12-31  Bruno Haible  <bruno@clisp.org>
92718
92719         * lib/memcoll.c (STRCOLL): New macro.
92720         (memcoll): Use it.
92721
92722 2002-12-31  Bruno Haible  <bruno@clisp.org>
92723
92724         * lib/localcharset.h: New file.
92725         * lib/localcharset.c: Include it.
92726         * lib/unicodeio.c: Likewise.
92727
92728 2002-12-31  Bruno Haible  <bruno@clisp.org>
92729
92730         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
92731         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
92732
92733 2002-12-31  Bruno Haible  <bruno@clisp.org>
92734
92735         * lib/getline.h: Include <stddef.h>, for size_t.
92736
92737         * lib/unicodeio.h: Include <stddef.h>, for size_t.
92738         * lib/unicodeio.c: Don't include <stddef.h>.
92739
92740 2002-12-31  Bruno Haible  <bruno@clisp.org>
92741
92742         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
92743         HAVE_TM_ZONE.
92744
92745 2002-12-24  Karl Berry  <karl@gnu.org>
92746
92747         * config/config.guess: update from prep.
92748
92749 2002-12-24  Bruno Haible  <bruno@clisp.org>
92750
92751         General infrasructure.
92752         * m4/README: Rewritten.
92753         * m4/onceonly.m4: New file.
92754         * m4/onceonly_2_57.m4: New file.
92755
92756         Module atexit.
92757         * m4/atexit.m4: New file.
92758
92759         Module strtod.
92760         * m4/strtod.m4: New file.
92761
92762         Module strtol.
92763         * m4/strtol.m4: New file.
92764
92765         Module strtoul.
92766         * m4/strtoul.m4: New file.
92767
92768         Module memchr.
92769         * m4/memchr.m4: New file.
92770
92771         Module memcmp.
92772         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
92773         (jm_FUNC_MEMCMP): Invoke it.
92774
92775         Module memcpy.
92776         * m4/memcpy.m4: New file.
92777
92778         Module memmove.
92779         * m4/memmove.m4: New file.
92780
92781         Module memset.
92782         * m4/memset.m4: New file.
92783
92784         Module strcspn.
92785         * m4/strcspn.m4: New file.
92786
92787         Module strpbrk.
92788         * m4/strpbrk.m4: New file.
92789
92790         Module strstr.
92791         * m4/strstr.m4: New file.
92792
92793         Module strerror.
92794         * m4/strerror.m4: New file.
92795
92796         Module mktime.
92797         * m4/mktime.m4: Renamed from jm-mktime.m4.
92798         (gl_PREREQ_MKTIME): New macro.
92799         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
92800
92801         Module malloc.
92802         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
92803         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
92804         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
92805
92806         Module realloc.
92807         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
92808         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
92809         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
92810
92811         Module strftime.
92812         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
92813         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
92814         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
92815         gl_TM_GMTOFF.
92816         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
92817
92818         Module xalloc.
92819         * m4/xalloc.m4: New file.
92820
92821         Module alloca.
92822         * m4/alloca.m4: New file.
92823
92824         Module putenv.
92825         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
92826         (jm_FUNC_PUTENV): Invoke it.
92827
92828         Module setenv.
92829         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
92830         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
92831         when invoked twice.
92832         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
92833         gt_FUNC_SETENV.
92834
92835         Module memrchr.
92836         * m4/memrchr.m4: New file.
92837
92838         Module stpcpy.
92839         * m4/stpcpy.m4: New file.
92840
92841         Module strcase.
92842         * m4/strcase.m4: New file.
92843
92844         Module strdup.
92845         * m4/strdup.m4: New file.
92846
92847         Module strnlen.
92848         * m4/strnlen.m4: New file.
92849
92850         Module strndup.
92851         * m4/strndup.m4: New file.
92852
92853         Module xstrtod.
92854         * m4/xstrtod.m4: New file.
92855
92856         Module xstrtol.
92857         * m4/xstrtol.m4: New file.
92858
92859         Module getdate.
92860         * m4/getdate.m4: New file.
92861
92862         Module unlocked-io.
92863         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
92864         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
92865         * m4/jm-glibc-io.m4n: Remove file.
92866
92867         Module long-options.
92868         * m4/long-options.m4: New file.
92869
92870         Module md5.
92871         * m4/md5.m4: New file.
92872
92873         Module sha.
92874         * m4/sha.m4: New file.
92875
92876         Module getstr.
92877         * m4/getstr.m4: New file.
92878
92879         Module getline.
92880         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
92881         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
92882         <sys/types.h>, for size_t. Use the function name gnu_getline, not
92883         simply getline. Infoke gl_PREREQ_GETLINE.
92884
92885         Module obstack.
92886         * m4/obstack.m4: New file.
92887
92888         Module hash.
92889         * m4/hash.m4: New file.
92890
92891         Module readtokens.
92892         * m4/readtokens.m4: New file.
92893
92894         Module strverscmp.
92895         * m4/strverscmp.m4: New file.
92896
92897         Module stdbool.
92898         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92899         OSF/1.
92900
92901         Module strtoll.
92902         * m4/strtoll.m4: New file.
92903
92904         Module strtoull.
92905         * m4/strtoull.m4: New file.
92906
92907         Module strtoimax.
92908         * m4/strtoimax.m4: New file.
92909
92910         Module strtoumax.
92911         * m4/strtoumax.m4: New file.
92912
92913         Module xstrtoimax.
92914         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92915         jm_AC_PREREQ_XSTRTOIMAX.
92916         Moved the strtol prerequisites to strtol.m4.
92917         Moved the strtoll prerequisites to strtoll.m4.
92918         Moved the strtoimax prerequisites to strtoimax.m4.
92919
92920         Module xstrtoumax.
92921         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
92922         jm_AC_PREREQ_XSTRTOUMAX.
92923         Moved the strtoul prerequisites to strtoul.m4.
92924         Moved the strtoull prerequisites to strtoull.m4.
92925         Moved the strtoumax prerequisites to strtoumax.m4.
92926
92927         Module chown.
92928         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
92929         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
92930
92931         Module dup2.
92932         * m4/dup2.m4: New file.
92933
92934         Module ftruncate.
92935         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
92936         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
92937
92938         Module getgroups.
92939         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
92940         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
92941
92942         Module gettimeofday.
92943         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
92944         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
92945         gl_PREREQ_GETTIMEOFDAY.
92946
92947         Module mkdir.
92948         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
92949         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
92950
92951         Module mkstemp.
92952         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
92953         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
92954         jm_AC_TYPE_UINTMAX_T.
92955         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
92956
92957         Module stat.
92958         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
92959         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
92960
92961         Module lstat.
92962         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
92963         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
92964
92965         Module timespec.
92966         * m4/timespec.m4 (gl_TIMESPEC): New macro.
92967         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
92968         * m4/st_mtim.m4: Indentation.
92969
92970         Module nanosleep.
92971         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
92972         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
92973         gl_PREREQ_NANOSLEEP.
92974
92975         Module regex.
92976         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92977         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92978         (gl_REGEX): New macro.
92979
92980         Module rename.
92981         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92982         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92983
92984         Module rmdir.
92985         * m4/rmdir.m4: New file.
92986
92987         Module utime.
92988         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92989         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92990         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92991
92992         Module dirname.
92993         * m4/dirname.m4: New file.
92994
92995         Module getopt.
92996         * m4/getopt.m4: New file.
92997
92998         Module unistd-safer.
92999         * m4/unistd-safer.m4: New file.
93000
93001         Module fnmatch.
93002         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93003         declaration.
93004         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93005         (gl_FUNC_FNMATCH_POSIX): New macro.
93006         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93007         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93008         simply fnmatch.
93009
93010         Module exclude.
93011         * m4/exclude.m4: New file.
93012
93013         Module human.
93014         * m4/human.m4: New file.
93015
93016         Module acl.
93017         * m4/acl.m4: Nop.
93018
93019         Module backupfile.
93020         * m4/backupfile.m4: New file.
93021         * m4/d-ino.m4: Indentation.
93022
93023         Module fsusage.
93024         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93025         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93026         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93027
93028         Module dirfd.
93029         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93030         requirements.
93031
93032         Module euidaccess.
93033         * m4/euidaccess.m4: New file.
93034
93035         Module file-type.
93036         * m4/file-type.m4: New file.
93037
93038         Module fileblocks.
93039         * m4/fileblocks.m4: New file.
93040
93041         Module filemode.
93042         * m4/filemode.m4: New file.
93043
93044         Module isdir.
93045         * m4/isdir.m4: New file.
93046
93047         Module lchown.
93048         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93049         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93050
93051         Module makepath.
93052         * m4/makepath.m4: New file.
93053
93054         Module modechange.
93055         * m4/modechange.m4: New file.
93056
93057         Module mountlist.
93058         * m4/mountlist.m4: New file.
93059         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93060         Indentation.
93061
93062         Module path-concat.
93063         * m4/path-concat.m4: New file.
93064
93065         Module pathmax.
93066         * m4/pathmax.m4: New file.
93067
93068         Module same.
93069         * m4/same.m4: New file.
93070
93071         Module save-cwd.
93072         * m4/save-cwd.m4: New file.
93073
93074         Module savedir.
93075         * m4/savedir.m4: New file.
93076
93077         Module xgetcwd.
93078         * m4/xgetcwd.m4: New file.
93079         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93080
93081         Module xreadlink.
93082         * m4/xreadlink.m4: New file.
93083
93084         Module safe-read.
93085         * m4/safe-read.m4: New file.
93086
93087         Module safe-write.
93088         * m4/safe-write.m4: New file.
93089
93090         Module closeout.
93091         * m4/closeout.m4: New file.
93092
93093         Module stdio-safer.
93094         * m4/stdio-safer.m4: New file.
93095
93096         Module getpass.
93097         * m4/getpass.m4: New file.
93098
93099         Module getugroups.
93100         * m4/getugroups.m4: New file.
93101
93102         Module group-member.
93103         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93104         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93105
93106         Module idcache.
93107         * m4/idcache.m4: New file.
93108
93109         Module userspec.
93110         * m4/userspec.m4: New file.
93111
93112         Module gettime.
93113         * m4/clock_time.m4: New file.
93114         * m4/gettime.m4: New file.
93115
93116         Module settime.
93117         * m4/settime.m4: New file.
93118
93119         Module posixtm.
93120         * m4/posixtm.m4: New file.
93121
93122         Module gethostname.
93123         * m4/gethostname.m4: New file.
93124
93125         Module canon-host.
93126         * m4/canon-host.m4: New file.
93127
93128         Module gettext.
93129         * m4/codeset.m4: New file, from gettext-0.11.5.
93130         * m4/gettext.m4: New file, from gettext-0.11.5.
93131         * m4/glibc21.m4: New file, from gettext-0.11.5.
93132         * m4/iconv.m4: New file, from gettext-0.11.5.
93133         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93134         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93135         * m4/inttypes.m4: New file, from gettext-0.11.5.
93136         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93137         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93138         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93139         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93140         * m4/lib-link.m4: New file, from gettext-0.11.5.
93141         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93142         * m4/progtest.m4: New file, from gettext-0.11.5.
93143         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93144         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93145         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93146
93147         Module localcharset.
93148         * m4/localcharset.m4: New file.
93149
93150         Module hard-locale.
93151         * m4/hard-locale.m4: New file.
93152
93153         Module mbswidth.
93154         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93155         onceonly macros.
93156         * m4/mbrtowc.m4: Add comment.
93157
93158         Module memcasecmp.
93159         * m4/memcasecmp.m4: New file.
93160
93161         Module memcoll.
93162         * m4/memcoll.m4: New file.
93163
93164         Module unicodeio.
93165         * m4/unicodeio.m4: New file.
93166
93167         Module rpmatch.
93168         * m4/rpmatch.m4: New file.
93169
93170         Module yesno.
93171         * m4/yesno.m4: New file.
93172
93173         Module exitfail.
93174         * m4/exitfail.m4: New file.
93175
93176         Module c-stack.
93177         * m4/c-stack.m4 (gl_C_STACK): New macro.
93178         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93179
93180         Module error.
93181         * m4/error.m4 (gl_ERROR): New macro.
93182         (jm_PREREQ_ERROR): Use onceonly macros.
93183
93184         Module fatal.
93185         * m4/fatal.m4: New file.
93186
93187         Module getloadavg.
93188         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93189         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93190
93191         Module getpagesize.
93192         * m4/getpagesize.m4: New file.
93193
93194         Module getusershell.
93195         * m4/getusershell.m4: New file.
93196
93197         Module physmem.
93198         * m4/physmem.m4: New file.
93199
93200         Module posixver.
93201         * m4/posixver.m4: New file.
93202
93203         Module quotearg.
93204         * m4/quotearg.m4: New file.
93205
93206         Module quote.
93207         * m4/quote.m4: New file.
93208
93209         Module readutmp.
93210         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93211
93212         Module sig2str.
93213         * m4/sig2str.m4: New file.
93214
93215         Other.
93216         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93217         ulonglong.m4.
93218         * m4/intmax_t.m4: New file.
93219         * m4/d-type.m4: Indentation.
93220         * m4/jm-macros.m4: Update.
93221         * m4/prereq.m4 (jm_PREREQ): Update.
93222         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93223         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93224         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93225         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93226         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93227         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93228         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93229         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93230         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93231         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93232         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93233         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93234         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93235         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93236         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93237         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93238         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93239         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93240         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93241
93242 2002-12-24  Bruno Haible  <bruno@clisp.org>
93243
93244         * MODULES.txt: Update according to m4/ changes.
93245
93246         Module gettext.
93247         * config.rpath: New file, from gettext-0.11.5.
93248
93249         * modules/*: New module descriptions.
93250         * gnulib-tool: New file.
93251         * MODULES.html.sh: New file.
93252
93253 2002-12-21  Karl Berry  <karl@gnu.org>
93254
93255         * doc/fdl.texi: update to version 1.2.
93256
93257 2002-12-19  Karl Berry  <karl@gnu.org>
93258
93259         * config/config.guess: update from prep.
93260
93261 2002-12-18  Bruno Haible  <bruno@clisp.org>
93262
93263         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93264         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93265
93266 2002-12-17  Bruno Haible  <bruno@clisp.org>
93267
93268         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93269         stdlib.h, string.h.
93270
93271 2002-12-17  Bruno Haible  <bruno@clisp.org>
93272
93273         * lib/canon-host.c (strdup): Remove unused declaration.
93274
93275         * lib/fsusage.c: Include full_read.h.
93276         (get_fs_usage): Use full_read instead of safe_read.
93277
93278         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93279
93280 2002-12-12  Karl Berry  <karl@gnu.org>
93281
93282         * config/config.guess: update from prep.
93283
93284 2002-12-11  Bruno Haible  <bruno@clisp.org>
93285
93286         * m4/setenv.m4: New file, from gettext-0.11.5.
93287
93288 2002-12-11  Bruno Haible  <bruno@clisp.org>
93289
93290         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93291         not unsetenv().
93292         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93293         modifications:
93294
93295         2002-12-11  Bruno Haible  <bruno@clisp.org>
93296
93297                 * setenv.c (alloca): Fall back to malloc.
93298                 (freea): New macro.
93299                 (setenv): Use freea() to free memory allocated with alloca().
93300
93301         2002-11-13  Bruno Haible  <bruno@clisp.org>
93302
93303                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93304                 function declarations.
93305                 * unsetenv.c (unsetenv): Likewise.
93306
93307         2002-03-04  Bruno Haible  <bruno@clisp.org>
93308
93309                 Portability to AIX 4.3.3.
93310                 * unsetenv.c: New file, extracted from setenv.c.
93311                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93312
93313         2001-12-20  Bruno Haible  <bruno@clisp.org>
93314
93315                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93316                 use malloc instead. For SunOS 4.
93317
93318         2001-12-11  Bruno Haible  <bruno@clisp.org>
93319
93320                 * setenv.c: Declare alloca.
93321                 (compar_fn_t): New typedef.
93322                 (KNOWN_VALUE, STORE_VALUE): Use it.
93323
93324         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93325         setenv.h.
93326
93327 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93328
93329         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93330         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93331         Choose values that are less likely to collide with system fnmatch
93332         options.
93333         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93334         defined (e.g., a pure POSIX system).
93335         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93336         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93337
93338 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93339
93340         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93341         a pain in practice to deal with generated m4 files.  This change
93342         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93343
93344         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93345         and jm-glibc-io.m4, as they are no longer a special case.
93346         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93347         kludge and the auto-generation stuff.  Check only whether the
93348         functions are declared, not whether they exist, since older hosts
93349         that don't declare the functions can't use the optimization anyway.
93350
93351 2002-12-06  Jim Meyering  <jim@meyering.net>
93352
93353         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93354
93355         Merge in changes from libc's misc/error.c, in preparation
93356         for the merge of gnulib's changes back into libc.
93357
93358         * lib/error.c (_): Define only if not already defined.
93359         Move definition to follow all #include directives.
93360         Include unlocked-io.h only if !_LIBC.
93361         [_LIBC]: Include <libio/libioP.h>.
93362         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93363         (fflush): Tweak definition to use INTUSE.
93364         (putc): Define.
93365
93366 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93367
93368         * lib/alloca.c [defined emacs]: Include "lisp.h".
93369         (xalloc_die) [defined emacs]: New macro.
93370         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93371         [! defined emacs]: Include <xalloc.h>.
93372         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93373         (pointer): Typedef to POINTER_TYPE *.
93374         (malloc): Remove decl; we now always use xmalloc.
93375         (alloca): Use old-style definition, since Emacs needs this.
93376         Check for arithmetic overflow when computing combined size.
93377
93378 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93379
93380         Do not generate unlocked-io.h automatically, since it's easier to
93381         maintain it by hand.
93382
93383         * lib/unlocked-io.h: New file, from GNU diffutils,
93384         but with proper copyright notice and attribution.
93385         * lib/gen-uio: Remove.
93386         * lib/Makefile.am: Add copyright notice.
93387         (libfetish_a_SOURCES): Add unlocked-io.h.
93388         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93389         (DISTCLEANFILES, io_functions): Remove macros.
93390         (EXTRA_DIST): Remove gen_uio.
93391         (unlocked-io.h): Remove rule.
93392
93393 2002-12-04  Jim Meyering  <jim@meyering.net>
93394
93395         Reflect the fact that stat.c and lstat.c are no longer generated.
93396         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93397         (DISTCLEANFILES): Likewise.
93398         (EXTRA_DIST): Likewise.
93399         (all_local): Don't depend on stat.c or lstat.c.
93400         (stat.c, lstat.c): Remove rules.
93401         (EXTRA_DIST): Remove xstat.in.
93402
93403         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93404         * lib/stat.c: New file.  Contents mostly from xstat.in.
93405         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93406         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93407
93408         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93409         too.
93410         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93411
93412 2002-12-03  Jim Meyering  <jim@meyering.net>
93413
93414         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93415         but not semantics, to minimize the differences between these two files.
93416         (safe_read): Change comment to mention SAFE_READ_ERROR.
93417
93418         * lib/safe-read.c (IS_EINTR): Define.
93419         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93420
93421 2002-12-02  Jim Meyering  <jim@meyering.net>
93422
93423         * lib/safe-read.c (EINTR): Define.
93424         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93425         (INT_MAX): Provide fallback.
93426         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93427
93428         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93429
93430 2002-12-02  Bruno Haible  <bruno@clisp.org>
93431
93432         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93433         Define, taken from safe-read.c.
93434         (INT_MAX): Provide fallback.
93435         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93436         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93437
93438         * lib/safe-read.c (EINTR): Remove definition.
93439         (safe_read): Don't use EINTR if it is absent.
93440
93441 2002-12-01  Jim Meyering  <jim@meyering.net>
93442
93443         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93444         zero.
93445         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93446
93447 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93448
93449         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93450         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93451         with `if (! (value < limit)) abort ();', for readability.
93452
93453 2002-11-26  Karl Berry  <karl@gnu.org>
93454
93455         * lib/strdup.c: copy from libc again, with jim's ok.
93456         * lib/.cppi-disable: re-add strdup.c
93457
93458 2002-11-25  Karl Berry  <karl@gnu.org>
93459
93460         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93461         instead of "strtol.c".
93462
93463 2002-11-25  Karl Berry  <karl@gnu.org>
93464
93465         * config/install-sh: update from automake for variable quoting, $0 in
93466         error msgs, etc.
93467
93468         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93469         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93470         entry.
93471
93472 2002-11-25  Jim Meyering  <jim@meyering.net>
93473
93474         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93475
93476 2002-11-24  Karl Berry  <karl@gnu.org>
93477
93478         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93479         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93480
93481 2002-11-24  Jim Meyering  <jim@meyering.net>
93482
93483         Update from coreutils:
93484
93485         * lib/mktime.c: Merge in changes from libc.
93486
93487         Avoid a link-time failure on some Linux systems.
93488         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93489         (otherwise).
93490         (__mon_yday): Declare with the STATIC attribute.
93491         (__mktime_internal): Likewise.
93492         Based on a report from Greg Schafer.
93493
93494 2002-11-23  Jim Meyering  <jim@meyering.net>
93495
93496         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93497         Use `unsigned', not `int', as type of index.
93498
93499         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93500
93501         * lib/fsusage.c: Remove unneeded parentheses around operands of
93502         `defined'.
93503
93504 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93505
93506         * lib/quotearg.h: Allow multiple inclusion by surrounding with
93507         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
93508         so that we can be included first.
93509         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
93510         * lib/quotearg.c: Include quotearg.h immediately after config.h.
93511         No need to include stddef.h or sys/types.h any more.
93512         Surround local include files with "", not "<>".
93513         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
93514         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
93515         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
93516         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
93517         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
93518         (ISPRINT): Remove; no longer needed now that we assume C89.
93519
93520         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
93521         Preserve errno.
93522
93523         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
93524         quotearg_char): Use SIZE_MAX rather than
93525         (size_t) -1 when we are talking about "infinity".
93526
93527         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
93528
93529 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93530
93531         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
93532         hint that one should use `if (! x) abort ();' rather than `assert
93533         (x);', and anyway it's one less thing to worry about configuring.
93534         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
93535         hash_rehash, hash_insert): Use abort rather than assert.
93536
93537 2002-11-22  Bruno Haible  <bruno@clisp.org>
93538
93539         * lib/safe-read.h: Assume C89. Add comments.
93540         (safe_read): Change return type to size_t.
93541         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
93542         byte counts > SSIZE_MAX correctly.
93543         * lib/safe-write.h: New file.
93544         * lib/safe-write.c: New file.
93545         * lib/full-read.h: New file.
93546         * lib/full-read.c: New file.
93547         * lib/full-write.h: Assume C89. Add comments.
93548         * lib/full-write.c: Include safe-write.h.
93549         (full_write): Rewritten to use safe_write.
93550         Suggested by Jim Meyering and Paul Eggert.
93551
93552 2002-11-21  Jim Meyering  <jim@meyering.net>
93553
93554         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
93555
93556         Merge in changes from the coreutils.
93557
93558         2002-09-25  Paul Eggert  <eggert@twinsun.com>
93559         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
93560         <stdint.h>.
93561         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
93562         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
93563         int.  Work more efficiently if X is the same width as uintmax_t.
93564         Do not compare X to -1, to avoid bogus compiler warning.
93565         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
93566         Don't assume that f_frsize and f_bsize are the same type.
93567
93568         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
93569         warning on FreeBSD.
93570
93571         * lib/makepath.c (make_path): Restore umask *before* creating the final
93572         component.
93573         (make_path): Minor reformatting.
93574
93575         * lib/xmalloc.c: Adjust to work with new autoconf macros,
93576         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
93577         HAVE_MALLOC/HAVE_REALLOC.
93578
93579         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
93580         dummy ones.  At least on GNU/Linux systems, `auto' means something
93581         else.
93582         From Michael Stone.
93583
93584 2002-11-21  Bruno Haible  <bruno@clisp.org>
93585
93586         Remove case insensitive option matching.
93587         * lib/argmatch.h (argcasematch): Remove declaration.
93588         (ARGCASEMATCH): Remove macro.
93589         (__xargmatch_internal): Remove case_sensitive argument.
93590         (XARGMATCH): Update.
93591         (XARGCASEMATCH): Remove macro.
93592         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
93593         case_sensitive argument.
93594         (argcasematch): Remove function.
93595         (__xargmatch_internal): Remove case_sensitive argument.
93596         (main): Use XARGMATCH instead of XARGCASEMATCH.
93597
93598         * lib/xmalloc.c: Change compile-time error message. Add comment about
93599         required autoconf version.
93600
93601 2002-11-20  Paul Eggert  <eggert@twinsun.com>
93602
93603         Merge argmatch cleanups from Bison.  Assume C89.
93604
93605         * lib/argmatch.c: Include config.h here, not in argmatch.h.
93606         Include stdlib.h, for EXIT_FAILURE.
93607         Always include <string.h>, since we assume C89.
93608         (EXIT_FAILURE): Remove pre-C89 bug workaround.
93609         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
93610         Include <stddef.h> instead, since it's all we need for size_t.
93611         (PARAMS): Remove.  All uses removed.
93612         (ARRAY_CARDINALITY): Do not bother to #undef.
93613         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
93614         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93615         Remove unnecessary parentheses.
93616         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
93617         Insert necessary parentheses.
93618         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
93619         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
93620
93621 2002-11-19  Bruno Haible  <bruno@clisp.org>
93622
93623         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
93624         * lib/mbswidth.h: Include <stddef.h>, for size_t.
93625
93626         * lib/mbswidth.h (PARAMS): Remove macro.
93627         (mbswidth, mbsnwidth): Use ANSI C function declarations.
93628         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
93629
93630         * lib/gcd.h (PARAMS): Remove macro.
93631         (gcd): Use ANSI C function declarations.
93632         * lib/gcd.c (gcd): Likewise.
93633
93634 2002-11-15  Bruno Haible  <bruno@clisp.org>
93635
93636         * lib/strcspn.c: Include <stddef.h>.
93637         (strcspn): Use ANSI C function declaration. Change return type to
93638         size_t. Use NULL.
93639         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
93640         (strpbrk): Use NULL.
93641         * lib/strpbrk.h (PARAMS): Remove macro.
93642         (strpbrk): Use ANSI C function declaration.
93643         * lib/strstr.c: Don't include <sys/types.h>.
93644         * lib/strstr.h (PARAMS): Remove macro.
93645         (strstr): Use ANSI C function declarations.
93646
93647 2002-11-14  Karl Berry  <karl@gnu.org>
93648
93649         * config/mkinstalldirs: `do' on separate line, instead of
93650         `for var; do'.
93651
93652 2002-11-06  Bruno Haible  <bruno@clisp.org>
93653
93654         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
93655         * lib/gcd.c (gcd): Likewise.
93656
93657 2002-11-05  Bruno Haible  <bruno@clisp.org>
93658
93659         * lib/gcd.h: New file, from gettext-0.11.5.
93660         * lib/gcd.c: New file, from gettext-0.11.5.
93661
93662 2002-11-05  Bruno Haible  <bruno@clisp.org>
93663
93664         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93665         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93666         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93667         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
93668
93669         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
93670         <libintl.h>.
93671         * lib/makepath.c: Include gettext.h instead of <locale.h> and
93672         <libintl.h>.
93673
93674         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
93675         * lib/human.c: Include gettext.h instead of <libintl.h>.
93676         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
93677         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
93678         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
93679         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
93680         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
93681         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
93682         (textdomain): Remove definition.
93683         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
93684
93685         * lib/long-options.c: Remove include of <libintl.h> and definition of
93686         _.
93687         * lib/same.c: Remove include of <libintl.h> and definition of _.
93688
93689 2002-11-04  Owen Taylor  <otaylor@redhat.com>
93690
93691         * lib/config.charset: A few additions for Solaris.
93692
93693 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93694
93695         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
93696         * lib/localcharset.c (locale_charset): Declare as extern "C".
93697
93698 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
93699
93700         * lib/config.charset: msdos in uk_UA uses CP1125.
93701
93702 2002-11-04  Bruno Haible  <bruno@clisp.org>
93703
93704         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
93705         * lib/strcase.h: New file, from GNU gettext-0.11.5.
93706         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
93707         * lib/strstr.h: New file, from GNU gettext-0.11.5.
93708         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
93709
93710 2002-11-04  Bruno Haible  <bruno@clisp.org>
93711
93712         * lib/localcharset.c (locale_charset): Don't return an empty string.
93713
93714 2002-11-04  Bruno Haible  <bruno@clisp.org>
93715
93716         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
93717         aliases.
93718
93719 2002-11-04  Bruno Haible  <bruno@clisp.org>
93720
93721         * lib/config.charset: Update for newest glibc. Add canonical names
93722         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
93723
93724 2002-11-04  Bruno Haible  <bruno@clisp.org>
93725
93726         * lib/config.charset: Add support for NetBSD.
93727
93728 2002-11-04  Bruno Haible  <bruno@clisp.org>
93729
93730         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
93731
93732 2002-11-01  Bruno Haible  <bruno@clisp.org>
93733
93734         * configure.in: Add AC_CONFIG_AUX_DIR call.
93735         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
93736         test/Makefile.
93737         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
93738
93739 2002-09-28  Karl Berry  <karl@gnu.org>
93740
93741         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
93742         installed automake until the next release, since changes have been
93743         made.
93744
93745 2002-09-25  Karl Berry  <karl@gnu.org>
93746
93747         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
93748         * lib/getopt*: copy from libc/posix.
93749         * lib/gettext.h: copy from gettext.
93750         * lib/.cppi-disable: add strdup.c, gettext.h.
93751
93752 2002-09-25  Karl Berry  <karl@gnu.org>
93753
93754         * config/srclist.txt: enable gettext.h check.
93755         * config/config.{guess,sub}: update from prep.
93756         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
93757                 from automake 1.6.3.
93758         See srclist*.
93759
93760 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
93761
93762         * regex.c (PATFETCH): Remove the translating fetch.
93763         (PATFETCH_RAW): Rename to PATFETCH.
93764         (set_image_of_range): New fun.
93765         (SET_RANGE_TABLE_WORK_AREA): Use it.
93766         (regex_compile): Don't translate the pattern chars so eagerly.
93767         Only do it when inserting an `exactn' bytecode or when handling
93768         a char-range.
93769         (mutually_exclusive_p): Avoid empty statement.
93770
93771 2002-07-06  Jim Meyering  <meyering@lucent.com>
93772
93773         * m4/README: Don't mention Makefile.am.in.
93774         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
93775
93776 2002-07-01  Jim Meyering  <meyering@lucent.com>
93777
93778         * lib/c-stack.c: Include sys/time.h.
93779         From Volker Borchert.
93780
93781 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93782
93783         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
93784
93785 2002-06-26  Paul Eggert  <eggert@twinsun.com>
93786
93787         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
93788         New macro.  Use it uniformly instead of
93789         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
93790         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
93791         reported by Vin Shelton.
93792
93793 2002-06-22  Paul Eggert  <eggert@twinsun.com>
93794
93795         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
93796         Do not assume SA_SIGINFO behavior.
93797         Bug reported by Jim Meyering on NetBSD 1.5.2.
93798
93799 2002-06-22  Jim Meyering  <meyering@lucent.com>
93800
93801         * m4/c-stack.m4: New file, from diffutils-2.8.2.
93802         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
93803
93804         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
93805         now that configure.ac uses AC_GNU_SOURCE.
93806         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
93807         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
93808
93809         Update to latest tools.  Suggestions from Paul Eggert.
93810         * m4/stdbool.m4: New file, from diffutils-2.8.2.
93811         * m4/gnu-source.m4: Update from diffutils-2.8.2.
93812         * m4/fnmatch.m4: Likewise.
93813         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
93814         to AC_HEADER_STDBOOL
93815
93816 2002-06-22  Jim Meyering  <meyering@lucent.com>
93817
93818         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
93819         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
93820
93821 2002-06-22  Jim Meyering  <meyering@lucent.com>
93822
93823         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
93824
93825         * lib/exitfail.c, exitfail.h: Likewise.
93826         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
93827
93828         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
93829         of fnmatch.h.
93830         (EXTRA_DIST): Add fnmatch_loop.c.
93831         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
93832
93833         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
93834         * lib/fnmatch.c: Update from diffutils-2.8.2.
93835         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
93836         * lib/fnmatch.h: Remove file.
93837
93838 2002-06-21  Jim Meyering  <meyering@lucent.com>
93839
93840         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
93841         * m4/mbrtowc.m4: Likewise.
93842
93843         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
93844         * m4/mbswidth.m4: Reflect name change:
93845         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
93846         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93847
93848         * m4/lib-link.m4: Update from gettext-0.11.2.
93849         * m4/gettext.m4: Likewise.
93850
93851         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
93852         From Alfred M. Szmidt.
93853
93854 2002-06-18  Paul Eggert  <eggert@twinsun.com>
93855
93856         * lib/file-type.h: Report an error if neither S_ISREG nor
93857         S_IFREG is defined, instead of using a test specific to glibc
93858         2.2.  This should be safe, since POSIX requires S_ISREG and
93859         Unix Version 7 had S_IFREG.  We don't need to check for
93860         <sys/types.h> since we don't use any symbols that it defines.
93861
93862 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
93863
93864         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
93865         $@-t, so that each temporary file name is unique and valid in the first
93866         8 characters, for operation under DOS.
93867
93868 2002-06-15  Paul Eggert  <eggert@twinsun.com>
93869
93870         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
93871
93872 2002-06-15  Jim Meyering  <meyering@lucent.com>
93873
93874         Work even with DJGPP 2.03, which lacks support for symlinks.
93875         From Richard Dawe.
93876         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
93877         is defined.
93878         * lib/lchown.c (S_ISLNK): Likewise.
93879
93880 2002-06-15  Jim Meyering  <meyering@lucent.com>
93881
93882         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
93883         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
93884         have been included before this file.
93885
93886 2002-06-14  Jim Meyering  <meyering@lucent.com>
93887
93888         * lib/file-type.h: Use the version from diffutils-2.8.2.
93889         * lib/file-type.c: Likewise.
93890
93891 2002-06-07  Jim Meyering  <meyering@lucent.com>
93892
93893         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
93894         They're needed at least for NetBSD 1.5.2.
93895         ($statxfs_includes): Include those same headers.
93896         ($statxfs_includes): Include sys/vfs.h if available.
93897         ($statxfs_includes): Likewise for sys/statvfs.h.
93898         Check for the following members in both structs statfs and statvfs:
93899         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93900
93901 2002-06-01  Jim Meyering  <meyering@lucent.com>
93902
93903         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93904         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93905
93906 2002-05-28  Jim Meyering  <meyering@lucent.com>
93907
93908         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93909         Reported by Volker Borchert.
93910
93911 2002-05-27  Jim Meyering  <meyering@lucent.com>
93912
93913         Fix a problem seen only on nonconforming systems whereby ls.c's
93914         use of localtime, and then of gettimeofday would cause trouble:
93915         the localtime call used to initialize rpl_gettimeofday's save
93916         mechanism would clobber ls's current local time information so
93917         that in any long listing the first file would always be listed
93918         with date 1970-01-01.  Analysis by Volker Borchert.
93919
93920         * lib/gettimeofday.c (localtime): Undefine.
93921         (rpl_localtime): New function.
93922
93923 2002-05-27  Jim Meyering  <meyering@lucent.com>
93924
93925         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
93926         localtime.
93927
93928         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
93929         use the replacement function; it wouldn't resolve at link time.
93930         Reported by Volker Borchert.
93931
93932 2002-05-22  Jim Meyering  <meyering@lucent.com>
93933
93934         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
93935         file-type.h.
93936         * lib/file-type.h: New file.
93937         * lib/file-type.c (file_type): New file/function.  Extracted from
93938         diffutils.
93939
93940 2002-04-30  Jim Meyering  <meyering@lucent.com>
93941
93942         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
93943
93944 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93945
93946         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
93947
93948 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93949
93950         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
93951         Do not check for alloca.h (no longer used) or stdbool.h (was never
93952         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
93953
93954 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93955
93956         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
93957
93958 2002-04-29  Jim Meyering  <meyering@lucent.com>
93959
93960         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
93961         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
93962         Use AC_FUNC_STRNLEN here instead.
93963
93964         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
93965         With autoconf-2.53a, it's part of AC_PROG_CC.
93966
93967 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93968
93969         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
93970         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
93971
93972 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93973
93974         * lib/sig2str.h, lib/sig2str.c: New files.
93975         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93976
93977 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93978
93979         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93980         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93981         of 127, since 64 is the largest conceivable number for ancient
93982         nonstandard hosts.
93983         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93984
93985 2002-04-28  Jim Meyering  <meyering@lucent.com>
93986
93987         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93988
93989 2002-04-24  Jim Meyering  <meyering@lucent.com>
93990
93991         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93992         (jm_PREREQ): Use it.
93993
93994         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93995         mach/mach.h fcntl.h.
93996         Check for this function: setlocale.
93997
93998 2002-04-24  Jim Meyering  <meyering@lucent.com>
93999
94000         * lib/gettext.h: New file, from Gettext.
94001         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94002         (libfetish_a_SOURCES): Add gettext.h.
94003
94004 2002-04-16  Jim Meyering  <meyering@lucent.com>
94005
94006         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94007         ut_pid, ut_id, ut_exit.
94008
94009 2002-04-16  Jim Meyering  <meyering@lucent.com>
94010
94011         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94012         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94013         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94014
94015 2002-04-12  Jim Meyering  <meyering@lucent.com>
94016
94017         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94018         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94019         existence of the getmntinfo function.  Needed for Darwin 5.3.
94020
94021         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94022         This is necessary at least on Darwin 5.3.
94023
94024         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94025         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94026         strnlen.o in the library, and that makes some versions of ranlib
94027         object.
94028
94029 2002-04-12  Jim Meyering  <meyering@lucent.com>
94030
94031         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94032
94033 2002-04-09  Jim Meyering  <meyering@lucent.com>
94034
94035         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94036         to be more precise.  Rather than saying we're checking whether the
94037         function `works', say what we're testing.
94038         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94039         Reported by Bruno Haible.
94040
94041 2002-03-10  Jim Meyering  <meyering@lucent.com>
94042
94043         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94044         Suggestion from Santiago Vila.
94045
94046 2002-03-08  Jim Meyering  <meyering@lucent.com>
94047
94048         * lib/rename.c: Mention that this wrapper is needed also on
94049         mips-dec-ultrix4.4 systems.
94050
94051 2002-03-02  Jim Meyering  <meyering@lucent.com>
94052
94053         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94054         not HAVE_CLOCK_SETTIME.
94055
94056 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94057
94058         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94059         Check for clock_settime.
94060
94061 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94062
94063         * lib/nanosleep.h: Rename to....
94064         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94065
94066         * lib/gettime.c: New file.
94067         * lib/settime.c: New file.
94068         * lib/stime.c: Remove.
94069
94070         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94071         timespec.h.  Remove nanosleep.h.
94072
94073 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94074
94075         * m4/acl.m4: New file.
94076         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94077         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94078
94079 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94080
94081         * lib/acl.c, lib/acl.h: New files.
94082         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94083
94084 2002-02-24  Jim Meyering  <meyering@lucent.com>
94085
94086         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94087         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94088         cause trouble.  Reported by Nelson Beebe.
94089
94090 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94091
94092         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94093         compilers that don't know that xalloc_die never returns.
94094
94095 2002-02-20  Jim Meyering  <meyering@lucent.com>
94096
94097         * lib/getdate.c: Regenerate using bison-1.33.
94098
94099 2002-02-17  Jim Meyering  <meyering@lucent.com>
94100
94101         * config/config.guess (main): Don't use `head -1'; it's no longer
94102         portable. Use `sed 1q' instead.
94103
94104 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94105
94106         * m4/codeset.m4: Upgrade to gettext-0.11.
94107         * m4/gettext.m4: Upgrade to gettext-0.11.
94108         * m4/glibc21.m4: Upgrade to gettext-0.11.
94109         * m4/iconv.m4: Upgrade to gettext-0.11.
94110         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94111         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94112         * m4/lib-ld.m4: New file, from gettext-0.11.
94113         * m4/lib-link.m4: New file, from gettext-0.11.
94114         * m4/lib-prefix.m4: New file, from gettext-0.11.
94115         * m4/progtest.m4: Upgrade to gettext-0.11.
94116
94117 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94118
94119         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94120         (jm_PREREQ): Use it.
94121
94122 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94123
94124         * lib/posixver.c, lib/posixver.h: New files.
94125         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94126
94127 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94128             Bruno Haible  <bruno@clisp.org>
94129
94130         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94131         (fwrite_success_callback): New declaration.
94132         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94133         print_unicode_char. Call failure callback instead of error.
94134         (fwrite_success_callback): New function.
94135         (exit_failure_callback): New function.
94136         (fallback_failure_callback): New function.
94137         (print_unicode_char): Call unicode_to_mb.
94138
94139 2002-01-26  Jim Meyering  <meyering@lucent.com>
94140
94141         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94142         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94143
94144 2002-01-26  Jim Meyering  <meyering@lucent.com>
94145
94146         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94147
94148 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94149
94150         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94151
94152 2002-01-22  Jim Meyering  <meyering@lucent.com>
94153
94154         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94155         Otherwise, some versions of automake would omit the rule that makes
94156         Makefile from Makefile.in.
94157
94158 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94159
94160         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94161         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94162         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94163         (memcoll): Set errno to zero if there is no error.
94164
94165         * lib/quotearg.c (quotearg_buffer_restyled):
94166         Fix bug with quoting buffers containing NUL when backslashing escapes.
94167         This bug was exposed by the other changes in this patch.
94168         (quotearg_n_options): New arg ARGSIZE.
94169         All callers changed.
94170         (quoting_options_from_style): New function.
94171         (quotearg_n_style): Use it.
94172         (quotearg_n_style_mem): New function.
94173
94174         * lib/quotearg.h (quotearg_n_style_mem): New function.
94175
94176 2002-01-19  Jim Meyering  <meyering@lucent.com>
94177
94178         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94179         Remove useless quotes: DF_PROG="df".
94180         * m4/strnlen.m4: New file.
94181
94182 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94183
94184         * lib/backupfile.c (ISDIGIT): Comment fix.
94185         * lib/getdate.y (ISDIGIT): Likewise.
94186         * lib/posixtm.c (ISDIGIT, year): Likewise.
94187         * lib/strverscmp.c (ISDIGIT): Likewise.
94188         * lib/userspec.c (ISDIGIT): Likewise.
94189
94190 2002-01-16  Jim Meyering  <meyering@lucent.com>
94191
94192         * lib/getdate.y: Add three semicolons, each just before a closing
94193         brace. Bison (as of version 1.31) no longer papers over that mistake.
94194
94195 2002-01-05  Jim Meyering  <meyering@lucent.com>
94196
94197         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94198
94199 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94200
94201         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94202         not silently exit merely because the output buffer happens to
94203         have nothing pending.
94204
94205 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94206
94207         See the big note in ../ChangeLog.
94208         * lib/human.c (suffixes): Prefer K to k for 1024.
94209         (generate_suffix_backwards): New function.
94210         (human_readable_inexact): Use it.
94211         * lib/xstrtol.c (__xstrtol): If there is no number but there
94212         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94213         Accept 'K' as well as 'k'.
94214
94215 2001-12-15  Jim Meyering  <meyering@lucent.com>
94216
94217         * lib/regex.h (__restrict_arr): Update from libc.
94218
94219         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94220         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94221         (STREQ): Define.
94222
94223 2001-12-14  Jim Meyering  <meyering@lucent.com>
94224
94225         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94226         Suggestion from Bruno Haible.
94227
94228 2001-12-10  Jim Meyering  <meyering@lucent.com>
94229
94230         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94231         xrealloc, Instead, include "xalloc.h".
94232         (initbuffer): Don't cast xmalloc return value to char*.
94233         (readline): Reword comment.
94234         Don't cast xrealloc return value to char*
94235         Return NULL, not 0.
94236
94237 2001-12-09  Jim Meyering  <meyering@lucent.com>
94238
94239         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94240         about `signed and unsigned type in conditional expression'.
94241         * lib/posixtm.c (posix_time_parse): Likewise.
94242
94243         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94244
94245         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94246         to avoid a pedantic warning.
94247
94248         * lib/getstr.c: Don't include assert.h.
94249         (getstr): Remove warning-evoking assertions.
94250         Return -1 if offset parameter is out of bounds.
94251         Change the type of a local from int to size_t.
94252
94253         * lib/strftime.c (my_strftime_localtime_r): Include this function
94254         definition in the `#if ! HAVE_TM_GMTOFF' block.
94255
94256         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94257         Include xalloc.h instead.
94258
94259 2001-12-02  Jim Meyering  <meyering@lucent.com>
94260
94261         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94262         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94263         included.
94264
94265         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94266         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94267
94268 2001-11-30  Akim Demaille  <akim@epita.fr>
94269
94270         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94271         before being defined.
94272
94273 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94274
94275         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94276         First arg is int, not unsigned.
94277         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94278         (SIZE_MAX, UINT_MAX): New macros.
94279         (quotearg_n_options): Abort if N is negative.
94280         Avoid overflow check on hosts where size_t is 64 bits and int
94281         is 32 bits, as overflow is impossible there.
94282         Fix off-by-one typo that caused unnecessary reallocation.
94283
94284 2001-11-27  Jim Meyering  <meyering@lucent.com>
94285
94286         * lib/tempname.c: Merge with version from libc.
94287         * lib/regex.c: Likewise.
94288
94289         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94290         systems for which STDC_HEADERS is 0, it was not included, resulting in
94291         a warning about an integer-to-pointer conversion problem with getenv.
94292         Reported by Volker Borchert.
94293
94294 2001-11-26  Jim Meyering  <meyering@lucent.com>
94295
94296         * lib/gtod.h: Remove file.
94297         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94298         * lib/gettimeofday.c: Don't include gtod.h.
94299         (GTOD_init): Remove function.
94300         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94301         Suggestion from Volker Borchert.
94302
94303 2001-11-23  Jim Meyering  <meyering@lucent.com>
94304
94305         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94306         it.
94307         * lib/hash.c (struct hash_table): Define it here instead.
94308
94309 2001-11-22  Jim Meyering  <meyering@lucent.com>
94310
94311         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94312
94313 2001-11-20  Jim Meyering  <meyering@lucent.com>
94314
94315         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94316         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94317
94318 2001-11-19  Jim Meyering  <meyering@lucent.com>
94319
94320         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94321         directory.  Use "conftestXXXXXX" as the template.
94322         Suggestion from Paul Eggert.
94323
94324         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94325         immediately, so the test doesn't mistakenly hit the max-open-files
94326         limit.
94327
94328 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94329
94330         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94331         (TEMPORARIES): New macro.
94332         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94333         removes an artificial limitation (e.g. HP-UX 10.20, where
94334         TMP_MAX is 17576).
94335
94336 2001-11-18  Jim Meyering  <meyering@lucent.com>
94337
94338         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94339
94340 2001-11-18  Jim Meyering  <meyering@lucent.com>
94341
94342         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94343         on SunOS 4.
94344
94345         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94346         files will be created before anything else.
94347
94348 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94349
94350         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94351         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94352
94353 2001-11-17  Jim Meyering  <meyering@lucent.com>
94354
94355         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94356         Prompted by a report from Bob Proulx.
94357
94358         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94359         Instead, require UTILS_FUNC_MKSTEMP.
94360
94361 2001-11-17  Jim Meyering  <meyering@lucent.com>
94362
94363         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94364         Now, that's done as part of AC_FUNC_STRTOD.
94365
94366 2001-11-17  Jim Meyering  <meyering@lucent.com>
94367
94368         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94369         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94370         rather than group writable.  Patch by Juan F. Codagnone.
94371
94372         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94373         xrealloc, Instead, include "xalloc.h".
94374
94375         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94376         Remove explicit declarations of xmalloc, xrealloc,
94377         and xstrdup.  Instead, include "xalloc.h".
94378
94379         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94380         unlocked-io.h.
94381         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94382         Likewise.
94383         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94384
94385         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94386         Reported by Padraig Brady.
94387
94388         * lib/mkstemp.c: #undef mkstemp.
94389         Include config.h.
94390         (rpl_mkstemp): Rename from mkstemp.
94391         Protoize.
94392
94393 2001-11-16  Jim Meyering  <meyering@lucent.com>
94394
94395         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94396         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94397         determine the amount of total physical memory, use pstat_getstatic.
94398         HPUX-11 doesn't define _SC_PHYS_PAGES.
94399         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94400         If sysconf couldn't be used to determine the amount of available
94401         physical memory, use both pstat_getstatic and pstat_getdynamic.
94402         Based on a patch from Bob Proulx.
94403
94404 2001-11-10  Jim Meyering  <meyering@lucent.com>
94405
94406         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94407         (jm_PREREQ): Use it.
94408
94409 2001-11-09  Jim Meyering  <meyering@lucent.com>
94410
94411         * m4/jm-macros.m4: Require autoconf-2.52f.
94412         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94413         Use these AC_-prefixed names, not the AM_-prefixed ones.
94414
94415         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94416
94417 2001-11-05  Jim Meyering  <meyering@lucent.com>
94418
94419         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94420
94421 2001-11-04  Jim Meyering  <meyering@lucent.com>
94422
94423         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94424         $DEFS.
94425
94426 2001-11-03  Jim Meyering  <meyering@lucent.com>
94427
94428         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94429         of AC_DEFUN.
94430
94431         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94432         know the name of the variable in the macro definition.
94433
94434 2001-11-03  Jim Meyering  <meyering@lucent.com>
94435
94436         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94437         in argmatch_to_argument call.
94438
94439         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94440         argument.
94441
94442         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94443         e.g., a fault due to an attempt to free a NULL pointer.
94444
94445 2001-11-01  Jim Meyering  <meyering@lucent.com>
94446
94447         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94448         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94449
94450 2001-11-01  Jim Meyering  <meyering@lucent.com>
94451
94452         * lib/dirfd.c, lib/dirfd.h: New files.
94453         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94454
94455         * lib/hash.c (hash_print) [TESTING]: Clean up.
94456
94457 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94458
94459         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94460         to avoid a warning if -Wall.
94461
94462 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94463
94464         * README: New file
94465         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94466         (per RMS's instructions, this is now the canonical source)
94467         * lgpl/, gpl/: New directories.
94468
94469 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94470
94471         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94472
94473 2001-10-21  Jim Meyering  <meyering@lucent.com>
94474
94475         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94476         this code would end up calling gettext even in packages built
94477         with --disable-nls.
94478         * lib/getopt.c (_): Likewise.
94479         * lib/regex.c (_): Likewise.
94480
94481 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94482
94483         * m4/error.m4 (jm_PREREQ_ERROR):
94484         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94485         AC_FUNC_STRERROR_R does that.
94486         Check for strerror declaration.
94487
94488         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94489         are supposed to have them these days.
94490         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94491         Merge changes from latest Autoconf CVS.
94492         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94493         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94494         POSIX decided to standardize on the int flavor of strerror_r.
94495
94496 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94497
94498         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94499         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94500         Use strerror_r that is only a macro, even if it is not a function.
94501         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94502         (private_strerror): Use prototypes, not old-style function definition.
94503         (print_errno_message): New function.
94504         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94505         char*-flavored one.
94506         (error_tail, error, error_at_line): Use it.
94507
94508 2001-10-11  Jim Meyering  <meyering@lucent.com>
94509
94510         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
94511         and quote_n (1, ... to avoid clobbering a buffer.
94512
94513 2001-10-05  Jim Meyering  <meyering@lucent.com>
94514
94515         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
94516         hash-pjw.h.
94517         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
94518         * lib/hash-pjw.h: New file.
94519
94520 2001-09-30  Jim Meyering  <meyering@lucent.com>
94521
94522         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
94523         `struct fsstat' has the `f_fstypename' member.
94524         Use that to define FS_TYPE, which is now used to make
94525         the getfsstat link test tighter.
94526
94527 2001-09-30  Jim Meyering  <meyering@lucent.com>
94528
94529         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
94530         Include <sys/ucred.h>, for Apple Darwin.
94531         Include sys/mount.h and sys/fs_types.h only if available.
94532         (FS_TYPE): Define.
94533         (read_filesystem_list): Use FS_TYPE.
94534
94535 2001-09-29  Paul Eggert  <eggert@twinsun.com>
94536
94537         * lib/exclude.c (excluded_filename): 0 -> false, since it's
94538         a boolean context.
94539
94540 2001-09-29  Jim Meyering  <meyering@lucent.com>
94541
94542         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94543         [one-argument getmntent function]): Include stdio.h before mntent.h.
94544         SunOS 4.1.x needs it for the declaration of `FILE'.
94545         Patch by Volker Borchert.
94546
94547         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
94548         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
94549         sys/fs_types.h, and make the link-test for getfsstat guard #include
94550         directives with appropriate #if HAVE_*_H tests so that we can
94551         detect getfsstat on Apple Darwin1.3.7 systems.
94552         Reported by Nelson Beebe.
94553         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
94554
94555 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94556
94557         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94558         #defines strtoimax.  Also treat the other strto* functions
94559         like strtoimax.
94560
94561         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94562         Check for strtoul and strtoumax,
94563         as those declarations are made even in the signed case.
94564         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
94565         Likewise, for strtol and strtoimax.
94566
94567 2001-09-28  Paul Eggert  <eggert@twinsun.com>
94568
94569         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
94570         #defines strtoimax.  Also treat the other strto* functions
94571         like strtoimax.
94572
94573         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
94574         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
94575         (strtoimax, strtoumax): Do not declare if already defined as a macro.
94576
94577 2001-09-26  Jim Meyering  <meyering@lucent.com>
94578
94579         Most macros in unlocked-io.h had the wrong number of arguments.
94580         * lib/gen-uio: New script.
94581         (USE_UNLOCKED_IO): Define to 1 if not already defined.
94582         * lib/unlocked-io.hin: Remove file.
94583         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
94584         rather than trying to embed it here.
94585         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
94586         Reported by Padraig Brady.
94587
94588 2001-09-25  Volker Borchert  <bt@teknon.de>
94589
94590         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
94591         `result'.
94592
94593 2001-09-24  Jim Meyering  <meyering@lucent.com>
94594
94595         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
94596
94597 2001-09-23  Jim Meyering  <meyering@lucent.com>
94598
94599         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
94600         instead of the mere test for existence of mntent.h.  The latter
94601         would get a false-positive on AIX 3.4 systems.
94602         In the outer getmntent if-block, don't die if neither of the getmntent
94603         tests succeeds.  Instead, just fall through and continue with the
94604         remaining tests.
94605
94606 2001-09-23  Jim Meyering  <meyering@lucent.com>
94607
94608         * lib/mountlist.c: Remove useless parentheses in #if directives.
94609         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
94610         the deprecated MOUNTED symbol is no longer defined in mntent.h.
94611
94612 2001-09-22  Jim Meyering  <meyering@lucent.com>
94613
94614         * m4/gettext.m4: New file.  From gettext.
94615         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
94616         * m4/progtest.m4: Likewise
94617         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
94618         * m4/glibc21.m4: Likewise.
94619
94620         * m4/libintl.m4: Remove.  No longer used.
94621
94622 2001-09-22  Jim Meyering  <meyering@lucent.com>
94623
94624         * lib/localcharset.c: Update from latest gettext.
94625         * lib/config.charset: Likewise.
94626
94627 2001-09-20  Jim Meyering  <meyering@lucent.com>
94628
94629         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
94630         strtoimax.
94631         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
94632         strtoumax.
94633
94634 2001-09-20  Jim Meyering  <meyering@lucent.com>
94635
94636         * lib/xstrtol.c (strtoimax): Guard declaration with
94637         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
94638         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
94639         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
94640         (strtoumax): Likewise, for completeness (it wasn't necessary).
94641
94642 2001-09-17  Paul Eggert  <eggert@twinsun.com>
94643
94644         * lib/strtoimax.c (HAVE_LONG_LONG):
94645         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
94646         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
94647         to work around bug in IBM C compiler.
94648
94649 2001-09-17  Jim Meyering  <meyering@lucent.com>
94650
94651         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
94652         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
94653         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
94654         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
94655         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
94656         whenever the right hand side need not be expanded by the shell.
94657
94658 2001-09-16  Paul Eggert  <eggert@twinsun.com>
94659
94660         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
94661         library.  It's not correct, as some older glibcs are buggy.
94662         fnmatch wasn't fixed until glibc 2.2.
94663
94664         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
94665         special shell magic here.
94666
94667 2001-09-16  Jim Meyering  <meyering@lucent.com>
94668
94669         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
94670         * m4/jm-macros.m4: Require it.
94671
94672 2001-09-16  Jim Meyering  <meyering@lucent.com>
94673
94674         * lib/mkdir.c: New file.
94675
94676 2001-09-15  Jim Meyering  <meyering@lucent.com>
94677
94678         * m4/jm-macros.m4: Check for help2man.
94679
94680 2001-09-11  Jim Meyering  <meyering@lucent.com>
94681
94682         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
94683         The body, by Paul Eggert, was moved here from configure.in.
94684         * m4/jm-macros.m4: Require UTILS_HOST_OS.
94685
94686 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94687
94688         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
94689         (jm_PREREQ): Use it.
94690
94691 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94692
94693         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
94694         Use ssize_t, not int, to store result of readlink.
94695         Check for ssize_t overflow as well as size_t overflow,
94696         as POSIX says the result of readlink is implementation-defined
94697         when ssize_t overflows.
94698         Remove unnecessary cast to char*.
94699         Use free+malloc instead of realloc, as the storage doesn't need
94700         to be preserved and it's clearer and can be more efficient that way.
94701         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
94702         * lib/xreadlink.h (xreadlink): Update prototype.
94703
94704 2001-09-04  Paul Eggert  <eggert@twinsun.com>
94705
94706         * lib/xgetcwd.c: Revert some of the previous change; intead,
94707         fix the HAVE_GETCWD_NULL code to behave more like the
94708         !HAVE_GETCWD_NULL code used to.
94709
94710         Include "xalloc.h".
94711         (xgetcwd): Do not return NULL when memory is exhausted; instead,
94712         invoke xalloc_die.
94713
94714 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94715
94716         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
94717         sys/param.h, as pathmax.h includes them.
94718
94719 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94720
94721         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
94722         (jm_PREREQ_XGETCWD): New macro.
94723
94724         * m4/getcwd.m4: New file.
94725
94726 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94727
94728         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
94729         like the HAVE_GETCWD_NULL code.
94730         Include pathmax.h if not HAVE_GETCWD.
94731         Do not include xalloc.h.
94732         (INITIAL_BUFFER_SIZE): New symbol.
94733         Do not use xmalloc / xrealloc, since the caller is responsible for
94734         handling errors.  Preserve errno around `free' during failure.
94735         Do not overrun buffer when using getwd.
94736
94737 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94738
94739         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
94740         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
94741         getcwd (NULL, 0).
94742
94743 2001-09-03  Paul Eggert  <eggert@twinsun.com>
94744
94745         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
94746         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
94747         spotted by Jim Meyering.
94748
94749 2001-09-03  Jim Meyering  <meyering@lucent.com>
94750
94751         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
94752         failure.
94753
94754 2001-09-02  Jim Meyering  <meyering@lucent.com>
94755
94756         * lib/error.c: Update from GNU libc.
94757
94758 2001-09-01  Jim Meyering  <meyering@lucent.com>
94759
94760         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
94761         Used by df.
94762
94763 2001-09-01  Jim Meyering  <meyering@lucent.com>
94764
94765         * lib/xreadlink.c: New file.
94766         * lib/xreadlink.h: New file.
94767         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
94768         xreadlink.h.
94769
94770         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
94771         doesn't conflict with sparc Solaris 7's definition in
94772         /usr/include/sys/int_types.h.
94773
94774         * lib/exclude.c: Use `""', not `<>' to #include non-system header
94775         files.
94776         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
94777         and strncasecmp as r-values.  Unixware didn't have declarations.
94778
94779 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94780
94781         * lib/xstrtol.h: Add copyright notice.
94782         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
94783         LONGINT_INVALID_SUFFIX_CHAR.
94784
94785 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94786
94787         * lib/xstrtol.c (strtoimax): New decl.
94788
94789 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94790
94791         * lib/xgetcwd.c: Don't include pathmax.h.
94792         Include stdlib.h and unistd.h if available.
94793         Include xalloc.h.
94794         (xmalloc, xstrdup, free): Remove decls.
94795         (xgetcwd): Don't assume sizes fit in unsigned.
94796         Check for overflow when computing sizes.
94797         Simplify reallocation code.
94798
94799 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94800
94801         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
94802         a directory's st_size can have an arbitrary value, so the old
94803         usage could waste an arbitrary amount of memory.  All uses
94804         changed.
94805         * lib/savedir.h: Update prototype.
94806
94807 2001-08-31  Paul Eggert  <eggert@twinsun.com>
94808
94809         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
94810
94811         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
94812         old strtoimax.c.
94813
94814         Also, make the following further changes to make this file's
94815         configuration more similar to that of strtol.c:
94816         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
94817         (strtoumax, uintmax_t, strtoull, strtol): Remove.
94818         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
94819         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
94820         changed to signed values.
94821
94822         And make the following changes as well:
94823         Fix copyright notice, as 1999 was missing.
94824         (verify): New macro.
94825         (strtoimax): Check sizes at compile-time, not run-time.
94826         Prefer strtol to strtoll if both work.
94827         (main): Remove; it was not that useful and was a pain to maintain.
94828
94829         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
94830
94831 2001-08-31  Jim Meyering  <meyering@lucent.com>
94832
94833         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
94834         Use an initial, malloc'd, buffer of length 128 rather than
94835         a statically allocated one of length 1024.
94836
94837 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94838
94839         Simplify code, partly by assuming autoconf 2.52 semantics.
94840
94841         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
94842
94843         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
94844         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
94845         All uses removed.
94846         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
94847         Move AC_REQUIRE to next-to-top level, to avoid confusion.
94848         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
94849         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
94850         jm_AC_HEADER_INTTYPES_H.
94851         * m4/jm-macros.m4 (jm_MACROS): Likewise.
94852
94853         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
94854
94855         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94856         Quote first arg of AC_DEFUN.
94857         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
94858         since they are needed to parse the include file even if we need
94859         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
94860         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
94861         but with opposite signedness.
94862
94863 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94864
94865         Merge 'exclude' changes from tar 1.13.22.
94866         This fixes one or two unlikely storage allocation overflow bugs,
94867         but doesn't change user-visible behavior otherwise.
94868
94869 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94870
94871         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
94872         (jm_PREREQ_EXCLUDE): New macro.
94873
94874 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94875
94876         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
94877         tm to be declared.
94878
94879 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94880
94881         * lib/hash.c: Remove '2001' from copyright notice.
94882
94883 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94884
94885         * lib/full-write.h: New file.
94886         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
94887         * lib/full-write.c: Correct credits, as cccp.c no longer
94888         exists and anyway it was so heavily changed from the old cccp
94889         code as to be unrecognizable.  Include full-write.h.
94890         (full_write): Return size_t, with short writes meaning failure.
94891         All callers changed.  This fixes a bug with large buffers
94892         on 64-bit hosts.
94893         * lib/utime.c: Include full-write.h.
94894
94895 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94896
94897         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94898         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94899         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94900         Include if available.
94901         (<xalloc.h>): Include
94902         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94903         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94904         collide with FNM macros.
94905         (struct patopts): New struct.
94906         (struct exclude): Use it, as exclude patterns now come with options.
94907         (new_exclude): Support above changes.
94908         (new_exclude, add_exclude_file):
94909         Initial size must now be a power of two to simplify overflow checking.
94910         (free_exclude, fnmatch_no_wildcards): New function.
94911         (excluded_filename): No longer requires options arg, as the options
94912         are determined by add_exclude.  Now returns bool, not int.
94913         (excluded_filename, add_exclude):
94914         Add support for the fancy new exclusion options.
94915         (add_exclude, add_exclude_file): Now takes int options arg.
94916         Check for arithmetic overflow when computing sizes.
94917         (add_exclude_file): xrealloc might modify errno, so don't
94918         realloc until after errno might be used.
94919
94920         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
94921         New macros.
94922         (free_exclude): New decl.
94923         (add_exclude, add_exclude_file): Now takes int options arg.
94924         (excluded_filename): No longer requires options arg, as the options
94925         are determined by add_exclude.  Now returns bool, not int.
94926
94927 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94928
94929         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
94930
94931 2001-08-27  Jim Meyering  <meyering@lucent.com>
94932
94933         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
94934
94935         * lib/version-etc.c (N_): Remove definition.
94936         Revert most of last change.
94937         Instead, simply don't mark the `Copyright...' string for translation.
94938         Based on advice from Paul Eggert.
94939
94940         * lib/strtoxmax.c: Tweak comment.
94941
94942 2001-08-26  Jim Meyering  <meyering@lucent.com>
94943
94944         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
94945
94946         * m4/xstrtoimax.m4: New file.
94947         * m4/xstrtoumax.m4: Add comments explaining why we
94948         AC_REPLACE_FUNCS(strtol).
94949
94950 2001-08-26  Jim Meyering  <meyering@lucent.com>
94951
94952         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
94953         of copyright with `%s' so translators don't get an untranslated
94954         message in 2002.
94955         (COPYRIGHT_YEAR): Define.
94956         (version_etc): Use fprintf rather than fputs.
94957         Suggestion from Ulrich Drepper.
94958
94959         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
94960
94961         * lib/strtoll.c: New file, from GNU libc.
94962         * lib/xstrtoimax.c: New file.
94963
94964         * lib/xstrtol.h: Add xstrtoimax.
94965         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
94966         * lib/strtoimax.c: New file.  Likewise, but first define
94967         STRTOUXMAX_SIGNED.
94968
94969         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
94970         ...
94971         * lib/strtoxmax.c: ... then renamed to this.
94972
94973 2001-08-18  Paul Eggert  <eggert@twinsun.com>
94974
94975         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94976         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94977         (jm_AC_TYPE_INTMAX_T): New macro.
94978         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94979
94980         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94981
94982         * m4/longlong.m4: Renamed from ulonglong.m4.
94983         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94984         * m4/uintmax_t.m4: Removed.
94985
94986 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94987
94988         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94989         Port to Solaris 8, where 'sed' requires a space after the 'r'
94990         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94991         Redirect output to $tmp just once.
94992
94993 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94994
94995         * lib/addext.c (<errno.h>): Include.
94996         (errno): Declare if not defined.
94997         (addext): Work correctly when pathconf returns -1 and leaves
94998         errno alone because there is no limit.  Also, work even if
94999         pathconf returns a value greater than SIZE_MAX.
95000
95001 2001-08-12  Jim Meyering  <meyering@lucent.com>
95002
95003         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95004         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95005         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95006         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95007         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95008         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95009         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95010         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95011         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95012         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95013         utime.m4, utimes.m4, xstrtoumax.m4:
95014         Quote the first argument in each use of AC_DEFUN.
95015
95016 2001-08-12  Jim Meyering  <meyering@lucent.com>
95017
95018         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95019         Simply `return getcwd (NULL, 0);'.
95020         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95021         Use 1300 as initial value for length, not PATH_MAX.
95022
95023         * lib/pathmax.h: Clean up cpp syntax.
95024
95025 2001-08-12  Jim Meyering  <meyering@lucent.com>
95026
95027         * lib/gettimeofday.c: New file.
95028         * lib/gtod.h: New file.
95029         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95030
95031 2001-08-05  Jim Meyering  <meyering@lucent.com>
95032
95033         * m4/jm-macros.m4: Require autoconf-2.52.
95034
95035 2001-08-04  Jim Meyering  <meyering@lucent.com>
95036
95037         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95038         stmt, to get in sync with glibc.
95039
95040 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95041
95042         The following changes are from gettext 0.10.39 as maintained by
95043         Bruno Haible.
95044
95045         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95046         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95047         with inverted sense.  All uses changed.
95048
95049         * lib/mbswidth.c: Don't include <limits.h>.
95050         Include <stdlib.h> and <string.h> unconditionally.
95051         (iswcntrl, mbsinit, ISCNTRL): New macros.
95052         (mbsnwidth): Use K&R style function declarations.
95053         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95054         can optimize it when MB_CUR_MAX == 1.
95055         The width of control characters is zero, not 1.
95056
95057 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95058
95059         The following changes are from gettext 0.10.39 as maintained by
95060         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95061
95062         * m4/codeset.m4: Upgrade to serial AM1.
95063         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95064         all uses changed.  Quote first arg of AC_DEFUN.
95065         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95066
95067         * m4/iconv.m4: Upgrade to serial AM2.
95068         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95069         Add --with-libconv-prefix.
95070         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95071         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95072         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95073         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95074         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95075
95076         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95077         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95078         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95079         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95080         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95081         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95082         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95083         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95084         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95085
95086         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95087         string.h any more.
95088
95089         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95090         not the default value.
95091
95092         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95093         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95094         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95095         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95096         Also check for iswcntrl, used for wcwidth fallback.
95097         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95098         to Autoconf 2.13.
95099
95100 2001-08-03  Jim Meyering  <meyering@lucent.com>
95101
95102         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95103         as it was in the original.  Reported by Paul Eggert.
95104
95105 2001-07-16  Jim Meyering  <meyering@lucent.com>
95106
95107         * m4/gettimeofday.m4: New file.
95108         Prompted by a report from Bernhard Baehr.
95109
95110 2001-07-15  Jim Meyering  <meyering@lucent.com>
95111
95112         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95113         stuff. Now it's in ../Makefile.cfg.
95114
95115 2001-07-15  Jim Meyering  <meyering@lucent.com>
95116
95117         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95118         (BUILT_SOURCES): Add unlocked-io.h.
95119         (io_functions): Define.
95120         (unlocked-io.h): New rule.
95121         (DISTCLEANFILES): Add unlocked-io.h.
95122         (all-local): Depend on unlocked-io.h, to ensure it is created.
95123
95124         * lib/unlocked-io.hin: New file
95125
95126         * lib/regex.c: Update from glibc.
95127
95128 2001-07-05  Jim Meyering  <meyering@lucent.com>
95129
95130         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95131         recommendation.
95132         (libfetish_a_SOURCES): Put all .h files here instead.
95133         Remove a thus-exposed (better checks in automake) duplicate and
95134         two unnecessary .h files.
95135
95136 2001-07-04  Jim Meyering  <meyering@lucent.com>
95137
95138         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95139         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95140         distcheck failure.
95141
95142 2001-07-02  Jim Meyering  <meyering@lucent.com>
95143
95144         The following changes were prompted by suggestions from Bruno Haible.
95145
95146         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95147         is now generated.
95148         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95149         definition of EXTRA_DIST.
95150         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95151         ensure that the generated file is created/updated whenever the list
95152         of $(unlocked_functions) is changed.
95153         (jm-glibc-io.m4): New rule.
95154         (unlocked-io.h): New rule -- currently unused.
95155
95156 2001-06-24  Jim Meyering  <meyering@lucent.com>
95157
95158         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95159         unmatched right bracket, rather than kludging it with an extra,
95160         falsely-matching quote in a comment.  Patch by Akim Demaille.
95161
95162 2001-06-11  Jim Meyering  <meyering@lucent.com>
95163
95164         * lib/regex.c: Update from GNU libc.
95165
95166 2001-05-27  Jim Meyering  <meyering@lucent.com>
95167
95168         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95169         Check for ut_type in struct utmp.
95170
95171 2001-05-27  Jim Meyering  <meyering@lucent.com>
95172
95173         * lib/readutmp.h (UT_TYPE): Define.
95174
95175 2001-05-24  Jim Meyering  <meyering@lucent.com>
95176
95177         * lib/argmatch.c: Include "quote.h".
95178         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95179         quote function.  Reported by Göran Uddeborg.
95180
95181 2001-05-22  Jim Meyering  <meyering@lucent.com>
95182
95183         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95184         now that we use the package-supplied version unconditionally.
95185         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95186
95187 2001-05-21  Jim Meyering  <meyering@lucent.com>
95188
95189         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95190         shell syntax errors.
95191
95192 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95193
95194         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95195
95196 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95197
95198         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95199         Don't bother to check library strftime, since
95200         we'll be using our own my_strftime function anyway.
95201         Define my_strftime instead of strftime.
95202
95203 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95204
95205         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95206         which is not yet declared.
95207
95208 2001-05-15  Jim Meyering  <meyering@lucent.com>
95209
95210         * m4/regex.m4: Use proper quoting so brackets appear in the test
95211         program.
95212         Reported by, and with help from, Bruno Haible.
95213
95214 2001-05-13  Jim Meyering  <meyering@lucent.com>
95215
95216         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95217         undefined.
95218
95219 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95220
95221         dirname code cleanup.  base_name now behaves more compatibly
95222         with POSIX basename when given file names that have trailing
95223         slashes, and similarly for dir_name.  Add new primitives
95224         base_len and dir_len.  Put the directory-name-related decls
95225         into dirname.h.
95226
95227         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95228         * lib/backupfile.c (base_name): Likewise.
95229         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95230         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95231         * lib/makepath.c (strip_trailing_slashes): Likewise.
95232         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95233         ISSLASH): Likewise.
95234         * lib/rename.c (strip_trailing_slashes): Likewise.
95235         * lib/same.c (base_name): Likewise.
95236         * lib/stripslash.c (ISSLASH): Likewise.
95237
95238         * lib/addext.c: Include <dirname.h> after size_t is defined.
95239         * lib/backupfile.c: Likewise.
95240
95241         * lib/addext.c (addext): Use base_len to trim redundant
95242         trailing slashes instead of doing it ourselves.
95243         But do not trim the last slash if it is not redundant.
95244
95245         * lib/backupfile.c (find_backup_file_name,
95246         max_backup_version): Use base_len instead of rolling it ourselves.
95247         Handle the case of "" and (on DOS) "C:" correctly.
95248
95249         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95250         needed. Include <string.h>, <dirname.h>.
95251         (base_name): Allow file names ending in slashes, other than names
95252         that are all slashes.  In this case, return the basename followed
95253         by the slashes.  This is more general, and can be used in places
95254         where the original base_name purposely had an assertion failure.
95255         (base_len): New function.
95256
95257         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95258         Do not include <assert.h>; no longer needed.
95259         Include xalloc.h.
95260         (memrchr): Remove decl.
95261         (dir_name_r): Remove.
95262         (dir_len): Renamed from dirlen.  All callers changed.
95263         Rewrite in terms of base_name, for simplicity and consistency.
95264         (dir_name): Never return NULL.  All callers changed.
95265         Do not include <stdlib.h> in test program; no longer needed.
95266         return 0; is fine for test program.
95267
95268         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95269         New macros.
95270         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95271
95272         * lib/path-concat.c (path_concat): Use base_len to compute
95273         base length, not strlen; this means we cannot rely on memcpy
95274         to null-terminate.
95275
95276         * lib/same.c (STREQ): Remove.
95277         (same_name): Handle the case where the basename ends in trailing '/'.
95278
95279         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95280         a slash was stripped.  Do not strip the last slash after a
95281         file system prefix.
95282
95283 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95284
95285         * lib/Makefile.am (libfetish_a_SOURCES):
95286         Add strftime.c, since we now compile it on all hosts.
95287
95288         * lib/strftime.c (my_strftime):
95289         Define to nstrftime if emacs, but only if my_strftime is not defined.
95290         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95291         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95292         Add one more extra argument: a nanoseconds value.
95293         All uses changed.
95294         (ns): New macro.
95295         (my_strftime function): Add %N format.
95296         (emacs_strftimeu): Renamed from emacs_strftime,
95297         with extra ut argument.
95298
95299 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95300
95301         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95302
95303 2001-04-21  Jim Meyering  <meyering@lucent.com>
95304
95305         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95306         doesn't interfere.
95307
95308 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95309
95310         * m4/ftruncate.m4: Check for chsize.
95311         Link with ftruncate.o unconditionally if ftruncate is missing.
95312         This was required when cross-compiling to i586-mingw32msvc.
95313
95314 2001-04-08  Jim Meyering  <meyering@lucent.com>
95315
95316         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95317         recomputed; that's necessary when the offset spans a DST transition.
95318         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95319
95320 2001-04-02  Jim Meyering  <meyering@lucent.com>
95321
95322         * lib/regex.h, regex.c: Update from GNU libc.
95323
95324 2001-03-24  Jim Meyering  <meyering@lucent.com>
95325
95326         * m4/jm-macros.m4: Require autoconf-2.49d.
95327
95328 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95329
95330         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95331
95332 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95333
95334         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95335
95336 2001-03-17  Jim Meyering  <meyering@lucent.com>
95337
95338         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95339         now that the version in autoconf is equivalent.
95340         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95341
95342         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95343         Suggestion from Akim Demaille.
95344
95345         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95346         (jm_PREREQ_TEMPNAME): New function.
95347
95348 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95349
95350         * lib/tempname.c (uint64_t): Define to uintmax_t if
95351         not defined, and if UINT64_MAX is not defined.
95352         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95353         Reported by John David Anglin.
95354
95355 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95356
95357         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95358         resolve alias if codeset is empty.
95359         * lib/config.charset (BeOS): Use wildcard syntax.
95360
95361 2001-03-13  Jim Meyering  <meyering@lucent.com>
95362
95363         * lib/path-concat.c (path_concat)
95364         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95365         concatenating e.g., `C:' and `foo'.
95366         From Bruno Haible.
95367
95368 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95369
95370         * lib/localcharset.c (locale_charset): Don't use
95371         setlocale(LC_CTYPE,NULL). Don't return NULL.
95372         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95373
95374 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95375
95376         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95377         support for DOS/DJGPP.
95378
95379 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95380
95381         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95382         lacks mkstemp.  Compile our own tempname.c if we compile our own
95383         mkstemp.c, as mkstemp relies on tempname.
95384
95385 2001-03-01  Jim Meyering  <meyering@lucent.com>
95386
95387         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95388         AH_VERBATIM really does output its argument verbatim.
95389
95390 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95391
95392         * lib/Makefile.am (libfetish_a_SOURCES):
95393         Add dup-safer.c, fopen-safer.c.
95394         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95395
95396         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95397         * lib/unistd-safer.h: New files.
95398
95399 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95400
95401         The mkstemp replacement is taken from glibc 2.2.2, with some
95402         portability fixes for use outside glibc, as follows:
95403
95404         * lib/tempname.c (struct_stat64): New macro.
95405         (direxists, __gen_tempname): Use it.
95406         This avoids a portability problem with Solaris 8.
95407
95408         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95409         (<stddef.h>, <stdint.h>, <string.h>):
95410         Include only if STDC_HEADERS || _LIBC.
95411         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95412         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95413         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95414         (__set_errno): Define this macro if <errno.h> doesn't.
95415         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95416         Define these macros if <stdio.h> doesn't.
95417         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95418         Define these macros if <sys/stat.h>
95419         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95420         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95421         __xstat64): Define if not _LIBC.
95422         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95423         (__gen_tempname): Invoke gettimeofday only if
95424         HAVE_GETTIMEOFDAY || _LIBC;
95425         otherwise, fall back on plain "time".
95426         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95427
95428         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95429
95430         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95431
95432 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95433
95434         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95435
95436 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95437
95438         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95439         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95440         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95441         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95442
95443 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95444
95445         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95446         Remove workaround macros for hosts that have mbrtowc but not
95447         mbstate_t, as we now insist on proper declarations for both
95448         before using mbrtowc.
95449
95450 2001-02-17  Jim Meyering  <meyering@lucent.com>
95451
95452         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95453         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95454         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95455         UnixWare 7.1.1.
95456
95457         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95458         rather than AC_CACHE_VAL.
95459
95460 2001-02-17  Jim Meyering  <meyering@lucent.com>
95461
95462         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95463         around included file name.
95464
95465         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95466
95467         * lib/strftime.c: Update from GNU libc (the only changes were to
95468         comments).
95469
95470 2001-02-17  Jim Meyering  <meyering@lucent.com>
95471
95472         * lib/regex.c: Update from libc.
95473
95474 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95475
95476         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95477         clash.
95478
95479 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95480
95481         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95482         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95483         Reported by Mark Hounschell via Paul Eggert.
95484
95485 2001-02-07  Jim Meyering  <meyering@lucent.com>
95486
95487         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95488
95489 2001-02-05  Jim Meyering  <meyering@lucent.com>
95490
95491         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95492         it includes the patch required for `large file' support with at least
95493         HP-UX's 10.20 /bin/cc.
95494
95495 2001-02-03  Jim Meyering  <meyering@lucent.com>
95496
95497         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95498         AS_IF, now that it works once again (mysteriously).
95499         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95500
95501 2001-01-30  Jim Meyering  <meyering@lucent.com>
95502
95503         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95504         * m4/chown.m4: Rename conftestchown to conftest.chown.
95505         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95506         s/conftestdir2/conftest.d2/.
95507         * m4/utimes.m4: s/conftestdata/conftest.data/
95508         Inspired by Pavel Roskin's change in autoconf.
95509
95510 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
95511
95512         * lib/config.charset: Update for FreeBSD 4.2.
95513
95514 2001-01-27  Jim Meyering  <meyering@lucent.com>
95515
95516         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
95517         a use of AS_IF.
95518         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95519
95520 2001-01-26  Jim Meyering  <meyering@lucent.com>
95521
95522         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
95523         quotearg.c includes it.
95524
95525 2001-01-26  Jim Meyering  <meyering@lucent.com>
95526
95527         * lib/quotearg.c: Include stddef.h.
95528         * lib/quote.c: Include stddef.h.
95529         Reported by Axel Kittenberger.
95530
95531         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
95532         line in double quotes so that it evokes a better diagnostic.
95533         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
95534         Reported by Axel Kittenberger.
95535
95536 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
95537
95538         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
95539         as if it was a `charset'.
95540
95541 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95542
95543         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
95544         has const.
95545
95546 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
95547
95548         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
95549         to avoid a warning.  Add back 'const' to inptr.
95550
95551 2001-01-20  Jim Meyering  <meyering@lucent.com>
95552
95553         Be sure that headers are checked before used in code compiled
95554         for the type checks.
95555         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
95556         In place of that, invoke jm_CHECK_ALL_TYPES.
95557         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
95558         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
95559         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
95560         The check for ssize_t was mistakenly run before the test for unistd.h.
95561
95562         The configure-time check for stdbool.h was missing.
95563         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
95564         (jm_PREREQ_HASH): New function.
95565
95566 2001-01-17  Jim Meyering  <meyering@lucent.com>
95567
95568         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
95569         for autoconf-2.49c.
95570         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
95571
95572 2001-01-16  Jim Meyering  <meyering@lucent.com>
95573
95574         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
95575         From Bruno Haible.
95576
95577 2001-01-14  Jim Meyering  <meyering@lucent.com>
95578
95579         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
95580         foo and bar.  Create conftestdir/ in the script, not in the C code.
95581         Remove directories in the script, not in the C code.
95582         Remove conftestdir{,2} before trying to create the directory.
95583         Make the entire configure script fail if the mkdir fails.
95584
95585 2001-01-14  Jim Meyering  <meyering@lucent.com>
95586
95587         * lib/rename.c: New file.  From Volker Borchert.
95588         Include stdlib.h, string.h or strings.h, and xalloc.h.
95589         Use strip_trailing_slashes rather than open-coding it.
95590
95591 2001-01-03  Paul Eggert  <eggert@twinsun.com>
95592
95593         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
95594
95595 2001-01-03  Jim Meyering  <meyering@lucent.com>
95596
95597         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
95598         of local `inptr' to avoid warning with some system declarations of
95599         iconv.
95600
95601 2001-01-02  Volker Borchert  <bt@teknon.de>
95602
95603         * m4/rename.m4: New file.
95604         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
95605
95606 2001-01-01  Jim Meyering  <meyering@lucent.com>
95607
95608         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
95609         even on systems with utmpx.h.  It's necessary for the declaration of
95610         utmp's ut_user member.  Reported by Andreas Jaeger.
95611
95612         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
95613         available. They are required for the declarations of getgrgid and
95614         getpwuid resp.
95615         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
95616         Reported by Andreas Jaeger.
95617
95618 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
95619
95620         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
95621         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
95622         so `make install' also works in VPATH builds.
95623
95624 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
95625
95626         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
95627         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
95628         can be used in subdirectories.
95629
95630 2000-12-29  Paul Eggert  <eggert@twinsun.com>
95631
95632         * lib/modechange.c: Do not assume that mode_t uses the
95633         traditional octal encoding.  E.g. "chmod 1 FOO" should set
95634         the other-execute bit of FOO even if S_IXOTH != 1.
95635
95636         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
95637         WOTH, XOTH, ALLM): New macros.
95638         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
95639          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
95640         Use them.
95641         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
95642         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
95643         (mode_compile):
95644         No need to use uintmax_t; unsigned long is long enough.
95645         Don't bother to get suffix since we don't use it.
95646
95647 2000-12-26  Jim Meyering  <meyering@lucent.com>
95648
95649         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
95650         better with autoheader.
95651
95652 2000-12-24  Jim Meyering  <meyering@lucent.com>
95653
95654         * lib/hash.c (is_prime): Return explicit boolean values.
95655         (hash_get_first): Return NULL to appease Irix5.6's 89.
95656         Reported by Nelson Beebe.
95657
95658 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
95659
95660         * lib/localcharset.c (locale_charset): Add support for Win32.
95661
95662 2000-12-18  Paul Eggert  <eggert@twinsun.com>
95663
95664         * lib/physmem.h, lib/physmem.c: New files.
95665
95666         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
95667         (noinst_HEADERS): Add physmem.h.
95668
95669         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
95670         't' for compatibility with Solaris 8 sort.
95671
95672 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
95673
95674         * lib/config.charset: Add support for BeOS.
95675
95676 2000-12-17  Jim Meyering  <meyering@lucent.com>
95677
95678         * m4/dos.m4 (jm_AC_DOS): New file and macro.
95679         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
95680
95681 2000-12-16  Jim Meyering  <meyering@lucent.com>
95682
95683         This bug had a serious impact on chown: `chown N:M FILE' (for integer
95684         N and M) would have treated it like `chown N:N FILE'.
95685
95686         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
95687
95688 2000-12-16  Jim Meyering  <meyering@lucent.com>
95689
95690         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
95691         SHELLS_FILE to a file name that's useful on djgpp systems.
95692         Include stdlib.h.
95693         (ADDITIONAL_DEFAULT_SHELLS): Define.
95694         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
95695         Based mostly on a patch from Prashant TR.
95696
95697 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
95698
95699         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
95700         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
95701         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
95702
95703 2000-12-08  Andreas Schwab  <schwab@suse.de>
95704
95705         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
95706         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
95707
95708 2000-12-07  Jim Meyering  <meyering@lucent.com>
95709
95710         * lib/stripslash.c (ISSLASH): Define.
95711         (strip_trailing_slashes): Use ISSLASH rather than comparing against
95712         `/'.
95713         From Prashant TR.
95714
95715         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
95716         (dir_name_r): Declare this function as static.
95717         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
95718         manifest itself on a name containing a mix of slashes and
95719         backslashes.
95720         Make this function work with names starting with a DOS-style
95721         drive letter and colon prefix.
95722         (dir_name): Append `.' if necessary.
95723         Based mostly on patches from Prashant TR and Eli Zaretskii.
95724
95725         * lib/dirname.h (dir_name_r): Remove prototype.
95726
95727 2000-12-06  Paul Eggert  <eggert@twinsun.com>
95728
95729         * m4/off_t-format.m4: Remove this file.
95730         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
95731
95732 2000-12-06  Jim Meyering  <meyering@lucent.com>
95733
95734         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
95735         replacement strtoull, we may well need the replacement strtoul, too.
95736         Check for declarations of strtoul and strtoull.
95737         Check for strtol.  Mainly as a cue to cause automake to include
95738         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
95739         Check for limits.h -- strtol.c needs it.
95740
95741 2000-12-05  Jim Meyering  <meyering@lucent.com>
95742
95743         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
95744
95745 2000-12-04  Jim Meyering  <meyering@lucent.com>
95746
95747         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
95748         Also include memory.h, stdlib.h, unistd.h if appropriate.
95749         Reported by Andreas Jaeger (conflicting declaration of malloc).
95750
95751 2000-12-02  Jim Meyering  <meyering@lucent.com>
95752
95753         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
95754         * m4/jm-macros.m4 (jm_MACROS): require it.
95755
95756 2000-12-02  Jim Meyering  <meyering@lucent.com>
95757
95758         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
95759
95760 2000-12-01  Paul Eggert  <eggert@twinsun.com>
95761
95762         * lib/memrchr.c: Include <config.h> before any system include file.
95763
95764 2000-11-30  Jim Meyering  <meyering@lucent.com>
95765
95766         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
95767
95768 2000-11-30  Jim Meyering  <meyering@lucent.com>
95769
95770         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
95771
95772 2000-11-29  Paul Eggert  <eggert@twinsun.com>
95773
95774         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
95775
95776 2000-11-26  Jim Meyering  <meyering@lucent.com>
95777
95778         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
95779
95780 2000-11-22  Paul Eggert  <eggert@twinsun.com>
95781
95782         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
95783         size of (size_t) -1; it's not portable.
95784
95785 2000-11-17  Jim Meyering  <meyering@lucent.com>
95786
95787         * lib/strstr.c: Update from GNU libc.
95788
95789 2000-11-17  Akim Demaille  <akim@epita.fr>
95790
95791         * lib/obstack.h: Formatting changes.
95792         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
95793         prevent type checking.
95794         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
95795         cast the value to (void *): assigning a `foo *' to a `void *'
95796         variable is valid.
95797         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
95798
95799 2000-11-16  Jim Meyering  <meyering@lucent.com>
95800
95801         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
95802
95803 2000-11-11  Jim Meyering  <meyering@lucent.com>
95804
95805         * lib/error.c: Add a couple #includes, merging from GNU libc version.
95806
95807 2000-11-10  Jim Meyering  <meyering@lucent.com>
95808
95809         * lib/obstack.h: Update from GNU libc.
95810         * lib/obstack.c: Likewise.
95811
95812 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
95813
95814         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
95815
95816 2000-11-06  Paul Eggert  <eggert@twinsun.com>
95817
95818         * lib/getusershell.c (setusershell): Use rewind rather than
95819         fseek/fseeko, to avoid configuration hassles with fseeko.
95820         Don't bother opening SHELLS_FILE if shellstream is NULL;
95821         it's not necessary.
95822
95823 2000-11-05  Jim Meyering  <meyering@lucent.com>
95824
95825         * lib/makepath.h (make_dir): Declare.
95826         * lib/makepath.c (make_dir): Remove `static' attribute.
95827         Tweak a comment.
95828
95829 2000-11-04  Jim Meyering  <meyering@lucent.com>
95830
95831         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
95832
95833 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
95834
95835         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
95836         last one in a bucket, advance to the next bucket.
95837
95838 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
95839
95840         * lib/fnmatch.c: Do not comment out all the code if we are using
95841         the GNU C library, because in some cases we are replacing buggy
95842         code in the GNU C library itself.
95843
95844 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
95845
95846         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
95847         (regex_compile): Catch bogus \(\1\).
95848
95849 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95850
95851         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
95852         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
95853         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
95854
95855 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95856
95857         * lib/error.h, getline.h, modechange.h:
95858         Remove "2000" from Copyright line, as the file hasn't been
95859         changed this year other than in the copyright notice.
95860
95861         * lib/xalloc.h: Add "2000" to Copyright line, as this file
95862         was changed this year.
95863
95864 2000-10-29  Jim Meyering  <meyering@lucent.com>
95865
95866         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
95867         renaming.
95868         * m4/ls-mntd-fs.m4: Likewise
95869
95870 2000-10-29  Jim Meyering  <meyering@lucent.com>
95871
95872         * lib/xstat.in: Fix grammar in comment.
95873
95874 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
95875
95876         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
95877         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
95878         doesn't define __restrict_arr.
95879
95880 2000-10-28  Jim Meyering  <meyering@lucent.com>
95881
95882         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
95883         (jm_PREREQ_MEMCHR): New function.
95884
95885 2000-10-28  Jim Meyering  <meyering@lucent.com>
95886
95887         * lib/memchr.c: Update from libc.
95888         Adjust for portability:
95889         [HAVE_STDLIB_H]: Include stdlib.h.
95890         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
95891         Undef __memchr, too.
95892         [!weak_alias]: Define __memchr to memchr.
95893
95894         * lib/regex.c: Update from libc.
95895         * lib/regex.h: Likewise.
95896         * lib/getopt1.c: Likewise.
95897         * lib/memcmp.c: Likewise.
95898
95899         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95900         Avoid using fseek, when possible -- it's broken by design.
95901         Patch by Ulrich Drepper.
95902
95903 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95904
95905         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95906         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95907         Giving in to popular pressure to shut up the compiler with casts.
95908
95909 2000-10-26  Jim Meyering  <meyering@lucent.com>
95910
95911         * lib/strftime.c: Update from libc.
95912
95913 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95914
95915         * regex.c: More `unsigned char' -> `re_char' changes.
95916         Also change several `int' into `re_wchar_t'.
95917         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95918         (PUSH_FAILURE_POINTER): Don't cast any more.
95919         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95920         We want GCC to complain, since this piece of code makes
95921         re_match non-reentrant, which *should* be fixed.
95922         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
95923         (EXTEND_BUFFER): Use RETALLOC.
95924         (SET_LIST_BIT): Don't cast.
95925         (re_wchar_t): New type.
95926         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
95927         that those two functions will always properly return.
95928         (IMMEDIATE_QUIT_CHECK): Cast to void.
95929         (analyse_first): Use recursion rather than an explicit stack.
95930         (re_compile_fastmap): Can't fail anymore.
95931         (re_search_2): Don't check re_compile_fastmap for failure.
95932         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
95933         Now also sets the new value (passed in a new argument).
95934         (re_match_2_internal): Use it.
95935         Also, use a new var `reg' of type size_t when looping through regs
95936         rather than reuse the inappropriate `mcnt'.
95937
95938 2000-10-25  Jim Meyering  <meyering@lucent.com>
95939
95940         * lib/obstack.c: Update from libc.
95941
95942 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
95943
95944         * regex.c (regex_compile): Change the way of handling a range from
95945         a char less than 256 to a char not less than 256.
95946
95947 2000-10-24  Andrew Innes  <andrewi@gnu.org>
95948
95949         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
95950         NT-Emacs only.
95951         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
95952         so that re_search functions only quit when callers expect them to.
95953
95954 2000-10-23  Jim Meyering  <meyering@lucent.com>
95955
95956         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
95957         wrong.  That set_locale call must not have any side effects.
95958         From Paul Eggert.
95959
95960 2000-10-22  Jim Meyering  <meyering@lucent.com>
95961
95962         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
95963         [CYCLIC]: Remove now-unused definition.
95964
95965         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
95966         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
95967         Suggestion from Ulrich Drepper.
95968
95969 2000-10-21  Jim Meyering  <meyering@lucent.com>
95970
95971         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
95972         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
95973         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
95974
95975 2000-10-21  Jim Meyering  <meyering@lucent.com>
95976
95977         * lib/dirname.c (memrchr): Declare if necessary.
95978         (dir_name): Remove the restriction that there be no
95979         trailing slashes.  Now, this code skips past them, effectively
95980         ignoring them.
95981         [TEST_DIRNAME] (main): New unit tests.
95982
95983         * lib/memrchr.c: New file from GNU libc.
95984         Undef __memrchr, too.
95985         [!weak_alias]: Define __memrchr to memrchr.
95986         Guard weak_alias use with `#ifdef weak_alias'.
95987
95988 2000-10-21  Jim Meyering  <meyering@lucent.com>
95989
95990         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95991         (dir_name): Use dir_name_r.
95992         * lib/dirname.h (dir_name_r): Declare it.
95993
95994 2000-10-17  Jim Meyering  <meyering@lucent.com>
95995
95996         * lib/quote.h (PARAMS): Define and use.
95997         Reported by Akim Demaille.
95998
95999         * lib/getopt.c: Update from libc.
96000
96001 2000-10-16  Jim Meyering  <meyering@lucent.com>
96002
96003         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96004         setlocale.
96005         From Jan Fedak.
96006
96007 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96008
96009         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96010
96011 2000-09-25  Jim Meyering  <meyering@lucent.com>
96012
96013         * lib/md5.h (rol): Define (from GnuPG).
96014
96015         * lib/sha.c: Give credit (GnuPG) where due.
96016         (M): Use rol rather than open-coding it.
96017         Add a FIXME comment.
96018
96019 2000-09-21  Jim Meyering  <meyering@lucent.com>
96020
96021         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96022         Reported by Michael Stone.
96023
96024 2000-09-20  Jim Meyering  <meyering@lucent.com>
96025
96026         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96027         (noinst_HEADERS): Add sha.h.
96028         Based on code from Scott G. Miller and from GnuPG.
96029
96030 2000-09-18  Jim Meyering  <meyering@lucent.com>
96031
96032         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96033         LIBS. Otherwise, everyone ends up linking with -lelf for some
96034         configurations.
96035         Reported by Mike Stone.
96036
96037 2000-09-15  Jim Meyering  <meyering@lucent.com>
96038
96039         * lib/regex.c: Update from libc.
96040
96041 2000-09-10  Jim Meyering  <meyering@lucent.com>
96042
96043         * lib/getopt.c (_getopt_internal): Update from glibc.
96044
96045 2000-09-09  Jim Meyering  <meyering@lucent.com>
96046
96047         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96048         think it should be used as a general replacement for isascii.
96049         * lib/fnmatch.c: Likewise.
96050         * lib/mbswidth.c: Likewise
96051         * lib/regex.c: Likewise.
96052
96053         Don't use atoi.
96054         * lib/userspec.c: Include sys/param.h and limits.h.
96055         Include xstrtol.h.
96056         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96057         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96058         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96059         UID, GID.  Check range.
96060
96061 2000-09-06  Jim Meyering  <meyering@lucent.com>
96062
96063         * lib/getopt.c (_getopt_internal): Update from glibc.
96064
96065 2000-08-30  Jim Meyering  <meyering@lucent.com>
96066
96067         * lib/strftime.c: Merge in changes from GNU libc.
96068
96069 2000-08-26  Jim Meyering  <meyering@lucent.com>
96070
96071         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96072         * m4/fpending.m4: New file.
96073
96074 2000-08-26  Jim Meyering  <meyering@lucent.com>
96075
96076         * lib/closeout.c: Include "__fpending.h".
96077         (close_stdout_status): Return right away if there's nothing to flush.
96078
96079         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96080         * lib/__fpending.c: New file.
96081         * lib/__fpending.h: New file.
96082
96083 2000-08-20  Jim Meyering  <meyering@lucent.com>
96084
96085         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96086         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96087         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96088
96089 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96090
96091         Improve fileutils installation on systems where running
96092         programs (like install) can't be unlinked.
96093         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96094         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96095
96096 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96097
96098         Standardize on "memory exhausted" instead of "Memory exhausted"
96099         or "virtual memory exhausted".
96100         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96101         "virtual memory exhausted".
96102         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96103         our own message.
96104         * lib/userspec.c (parse_user_spec): Likewise.
96105         * lib/bumpalloc.h: comment fix
96106         * lib/same.c, userspec.c: Include xalloc.h.
96107
96108         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96109         not char *const and pointing to a constant array.
96110         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96111         (xrealloc): Comment fix.
96112
96113         * lib/userspec.c (parse_user_spec):
96114         Don't translate a message until just before returning,
96115         to avoid unnecessary translation.
96116
96117 2000-08-07  Jim Meyering  <meyering@lucent.com>
96118
96119         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96120         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96121         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96122         getgroups.c, gethostname.c, getopt.h, group-member.c,
96123         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96124         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96125         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96126         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96127         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96128         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96129         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96130         yesno.c: Back out Copyright date changes for each file with no change
96131         this year.  This eases coordination with other programs using the same
96132         source code modules.  From Paul Eggert.
96133
96134 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96135
96136         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96137         not char, for compatibility with glibc 2.1.3 strftime.c.
96138
96139 2000-08-03  Greg McGary  <greg@mcgary.org>
96140
96141         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96142         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96143         (EXTEND_BUFFER): Use them.
96144
96145 2000-08-01  Jim Meyering  <meyering@lucent.com>
96146
96147         * lib/dirname.c (ISSLASH): Define.
96148         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96149         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96150         both `\' and `/' may be use as path separators.
96151         Based on a patch from Prashant TR.
96152
96153 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96154
96155         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96156         slot vector a constant, since it might get modified.
96157
96158 2000-07-31  Jim Meyering  <meyering@lucent.com>
96159
96160         * lib/xmalloc.c: Use `virtual memory exhausted', not
96161         `Memory exhausted'.
96162         * lib/obstack.c (print_and_abort): Likewise.
96163
96164 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96165
96166         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96167         buffer, so that the caller can always quote one small
96168         component of a "memory exhausted" message in slot 0.
96169         From a suggestion by Jim Meyering.
96170
96171 2000-07-30  Jim Meyering  <meyering@lucent.com>
96172
96173         * lib/makepath.c (make_path): Quote the other instance, too.
96174
96175         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96176         (STATIC_BUF_SIZE): Define.
96177         (quotearg_n_options): Use only statically allocated storage when
96178         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96179         than STATIC_BUF_SIZE.
96180
96181 2000-07-29  Jim Meyering  <meyering@lucent.com>
96182
96183         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96184         * lib/dirname.c (dir_name): Likewise.
96185
96186         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96187         `/'.
96188
96189         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96190         (dir_name): Assert that there are no trailing slashes.
96191
96192 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96193
96194         * lib/mbswidth.h (mbswidth): Add a flags argument.
96195         (mbswidth): New declaration.
96196         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96197         * lib/mbswidth.c (mbswidth): Add a flags argument.
96198         (mbsnwidth): New function.
96199
96200 2000-07-24  Jim Meyering  <meyering@lucent.com>
96201
96202         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96203
96204 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96205
96206         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96207
96208 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96209
96210         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96211         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96212         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96213         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96214         invoke multibyte primitives.
96215
96216 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96217
96218         * lib/quotearg.c:
96219         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96220         so that mbstate_t is always defined.
96221
96222         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96223         be 1 in at least one GCC installation, and this configuration
96224         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96225         performance on hosts that have mbrtowc but have only unibyte
96226         locales, but I assume these hosts are rare.
96227
96228 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96229
96230         * lib/mbswidth.c (_XOPEN_SOURCE):
96231         Don't define; this causes problems on Solaris 7.
96232         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96233
96234 2000-07-23  Jim Meyering  <meyering@lucent.com>
96235
96236         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96237         too: getgrgid, getpwuid, getuid.
96238
96239 2000-07-23  Jim Meyering  <meyering@lucent.com>
96240
96241         * lib/basename.c (base_name): Add an assertion.
96242
96243 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96244
96245         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96246         shadow its mbsinit function.
96247
96248 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96249
96250         * lib/mbswidth.h: New file.
96251         * lib/mbswidth.c: New file.
96252         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96253         (noinst_HEADERS): Add mbswidth.h.
96254
96255 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96256
96257         * lib/config.charset: Add support for FreeBSD. Improve support for
96258         HP-UX and IRIX 6.
96259
96260 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96261
96262         * m4/mbswidth.m4: New file.
96263         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96264
96265 2000-07-15  Jim Meyering  <meyering@lucent.com>
96266
96267         * lib/makepath.c: Include quote.h.
96268         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96269         corresponding argument in a `quote (...)' call.
96270         Give better diagnostics.
96271
96272         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96273         (noinst_HEADERS): Add quote.h.
96274
96275         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96276         from tar's src/misc.c.
96277         * lib/quote.h: New file.  Prototypes for same.
96278
96279 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96280
96281         From a suggestion by Bruno Haible.
96282         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96283         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96284         to decide whether to define the BeOS workaround macro;
96285         this adjusts to the change to AC_MBSTATE_T.
96286
96287 2000-07-14  Jim Meyering  <meyering@lucent.com>
96288
96289         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96290         jm_AC_TYPE_UINTMAX_T.
96291
96292 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96293
96294         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96295
96296         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96297         quotearg_buffer_restyled): Add support for
96298         clocale_quoting_style.  Undo previous change to
96299         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96300         and "{RIGHT QUOTATION MARK}" msgids.
96301
96302 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96303
96304         From a suggestion by Bruno Haible.
96305         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96306         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96307         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96308         and mbstate_t, to a single-part test that simply defines mbstate_t.
96309         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96310         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96311
96312 2000-07-10  Jim Meyering  <meyering@lucent.com>
96313
96314         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96315
96316         * m4/gnu-source.m4: Output to confdefs.h directly.
96317         Suggestion from Akim Demaille.
96318
96319 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96320
96321         The old behavior of quoting `like this' doesn't look good with
96322         newer, ISO-style fonts.  See:
96323         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96324
96325         Instead, quote "like this" by default.  Let the translator
96326         tailor the locale-specific quoting behavior by providing
96327         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96328
96329         * lib/quotearg.c (N_): New macro.
96330         (gettext_default): New function.
96331         (quotearg_buffer_restyled): Use
96332         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96333         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96334
96335 2000-07-09  Jim Meyering  <meyering@lucent.com>
96336
96337         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96338         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96339
96340         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96341         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96342
96343 2000-07-09  Jim Meyering  <meyering@lucent.com>
96344
96345         * lib/Most files: Update copyright dates to include 2000.
96346
96347 2000-07-08  Jim Meyering  <meyering@lucent.com>
96348
96349         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96350         if not defined.
96351         (xgethostname): Remove now-unnecessary #ifdef.
96352         Move declaration of `err' into loop where it's used.
96353
96354 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96355         and Bruno Haible  <haible@clisp.cons.org>
96356
96357         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96358         only if the test for an object-type mbstate_t fails.  This
96359         prevents us from mistakenly reporting that mbstate_t is a
96360         system object type after we "#define mbstate_t int" to work
96361         around its lack.
96362
96363 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96364         and Bruno Haible  <haible@clisp.cons.org>
96365
96366         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96367
96368 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96369
96370         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96371         to strerror_r.
96372         Include <ctype.h> for use of isalpha.
96373
96374 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96375
96376         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96377         by allocating a larger buffer. Test the gethostname return value for
96378         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96379         returns an error and ENAMETOOLONG isn't defined.
96380
96381 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96382
96383         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96384         dimension.
96385
96386 2000-07-04  Jim Meyering  <meyering@lucent.com>
96387
96388         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96389         of the deprecated AC_CHECKING.
96390
96391 2000-07-04  Jim Meyering  <meyering@lucent.com>
96392
96393         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96394         Reported by Bruno Haible.
96395
96396 2000-07-04  Jim Meyering  <meyering@lucent.com>
96397
96398         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96399         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96400         lacks mbrtowc.
96401
96402 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96403
96404         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96405         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96406
96407 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96408         and Bruno Haible  <haible@clisp.cons.org>
96409
96410         * lib/quotearg.c (mbrtowc):
96411         Assign to *pwc, and return 1 only if result is nonzero.
96412         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96413
96414 2000-07-03  Jim Meyering  <meyering@lucent.com>
96415
96416         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96417
96418 2000-07-03  Jim Meyering  <meyering@lucent.com>
96419
96420         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96421         This is necessary to get a definition of e.g., UTMP_FILE on
96422         HP-UX 10.20.
96423         From Bob Proulx.
96424
96425 2000-07-02  Jim Meyering  <meyering@lucent.com>
96426
96427         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96428
96429         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96430         AC_LIBOBJ(function_name).
96431         * m4/chown.m4: Likewise.
96432         * m4/fnmatch.m4: Likewise.
96433         * m4/ftruncate.m4: Likewise.
96434         * m4/getgroups.m4: Likewise.
96435         * m4/getline.m4: Likewise.
96436         * m4/group-member.m4: Likewise.
96437         * m4/jm-macros.m4: Likewise.
96438         * m4/lstat.m4: Likewise.
96439         * m4/malloc.m4: Likewise.
96440         * m4/memcmp.m4: Likewise.
96441         * m4/nanosleep.m4: Likewise.
96442         * m4/putenv.m4: Likewise.
96443         * m4/realloc.m4: Likewise.
96444         * m4/regex.m4: Likewise.
96445         * m4/stat.m4: Likewise.
96446         * m4/strftime.m4: Likewise.
96447
96448 2000-07-02  Jim Meyering  <meyering@lucent.com>
96449
96450         * lib/quotearg.c (mbstate_t): Don't define here.
96451
96452 2000-07-02  Jim Meyering  <meyering@lucent.com>
96453
96454         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96455
96456 2000-07-01  Jim Meyering  <meyering@lucent.com>
96457
96458         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96459
96460 2000-07-01  Jim Meyering  <meyering@lucent.com>
96461
96462         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96463         problem.
96464
96465 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96466
96467         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96468         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96469
96470 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96471
96472         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96473         per change in ../m4/ls-mntd-fs.m4.
96474         (read_filesystem_list): Ignore symbolic links.
96475
96476 2000-06-29  Jim Meyering  <meyering@lucent.com>
96477
96478         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96479         for declaration of strcmp.
96480
96481         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96482
96483         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96484         Avoid warning by casting result to `char *' to remove `const'.
96485
96486 2000-06-28  Jim Meyering  <meyering@lucent.com>
96487
96488         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96489         included by quotearg.c, for which we perform this test.  From
96490         Bruno Haible.
96491
96492 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96493
96494         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96495         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96496         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96497
96498 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96499
96500         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96501
96502 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96503
96504         savedir now sets errno on failure and invokes xmalloc to get memory.
96505         Fix a couple of other minor bugs while we're at it.
96506
96507         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
96508         (NAMLEN): Remove macro.
96509         (malloc, realloc): Remove decls.
96510         (stpcpy): Likewise.
96511         ("xalloc.h"): Include.
96512         (NAME_SIZE_DEFAULT): New macro.
96513         (savedir): Use xmalloc / xrealloc to allocate memory.
96514         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
96515         Skip "" directory entries.
96516         Use strlen to calculate directory entry length, since the old method
96517         is rarely used these days and isn't worth supporting.
96518         Don't use a pointer after freeing it.
96519         Check for integer overflow when calculating allocation size.
96520         Use memcpy to copy entries, instead of stpcpy.
96521         Set errno properly when returning NULL.
96522         Check for readdir error.
96523
96524 2000-06-26  Jim Meyering  <meyering@lucent.com>
96525
96526         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
96527
96528 2000-06-25  Jim Meyering  <meyering@lucent.com>
96529
96530         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
96531         Linux header bug when _XOPEN_SOURCE is defined to 500.
96532
96533 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96534
96535         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
96536         deficiency.
96537
96538 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
96539
96540         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
96541         Include xalloc.h.
96542         Don't include <stdlib.h>.  Don't declare malloc, realloc.
96543
96544 2000-06-24  Jim Meyering  <meyering@lucent.com>
96545
96546         * m4/strerror_r.m4: Revive this file -- to try out an experimental
96547         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
96548         for which strerror does return char*, but which lacks a conveniently
96549         accessible declaration of the function.  If the compile-test says
96550         strerror_r doesn't work, then resort to a `run'-test that works on
96551         BeOS and segfaults on DEC Unix.
96552
96553 2000-06-24  Jim Meyering  <meyering@lucent.com>
96554
96555         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
96556
96557 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96558
96559         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
96560         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
96561
96562 2000-06-23  Paul Eggert  <eggert@twinsun.com>
96563
96564         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
96565         (mbrtowc, mbstate_t): Define substitutes if
96566         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
96567         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
96568         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
96569
96570 2000-06-23  Jim Meyering  <meyering@lucent.com>
96571
96572         * m4/afs.m4: Add missing AC_MSG_RESULT.
96573         Reported by Bruno Haible.
96574
96575         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
96576         Suggestion from Bruno Haible.
96577
96578 2000-06-23  Jim Meyering  <meyering@lucent.com>
96579
96580         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
96581
96582 2000-06-21  Jim Meyering  <meyering@lucent.com>
96583
96584         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
96585
96586 2000-06-21  Jim Meyering  <meyering@lucent.com>
96587
96588         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
96589         (noinst_HEADERS): Add getstr.h.
96590
96591         * lib/getline.c (getstr): Move into a separate file.
96592         * lib/getstr.c (getstr): New file, extracted from getline.c, with
96593         the following changes: new parameter, delim2; both delim[12]
96594         parameters have type `int', not `char'.  The latter would lose
96595         with 8-bit delimiters.
96596         * lib/getstr.h: New file.
96597
96598 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96599
96600         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
96601         than 1024, return a memory chunk of least possible size, instead
96602         of size PATH_MAX + 2. In the loop, increment the size proportionally.
96603         Use free/xmalloc instead of xrealloc to avoid copying for very long
96604         paths.
96605
96606 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96607
96608         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
96609         the empty string.
96610
96611 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
96612
96613         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
96614         address, not strdup.  Include <stdlib.h> and don't declare free().
96615
96616 2000-06-19  Jim Meyering  <meyering@lucent.com>
96617
96618         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
96619
96620 2000-06-18  Jim Meyering  <meyering@lucent.com>
96621
96622         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
96623
96624         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
96625         `checking whether...' message to be consistent with that of the
96626         lstat test.
96627
96628 2000-06-18  Jim Meyering  <meyering@lucent.com>
96629
96630         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
96631         Besides, these days every porting target provides a mkdir function.
96632
96633         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
96634         needed. (this snippet comes from src/system.h).
96635
96636 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
96637
96638         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
96639
96640 2000-06-15  Paul Eggert  <eggert@twinsun.com>
96641
96642         * lib/human.c (adjust_value): New function.
96643         (human_readable_inexact): Apply rounding style even when
96644         printing approximate values.
96645
96646 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96647
96648         * lib/human.c (human_readable_inexact): Allow an input block
96649         size that is not a multiple of the output block size, and vice versa.
96650         Reported by Piergiorgio Sartor.
96651
96652 2000-06-14  Paul Eggert  <eggert@twinsun.com>
96653
96654         * lib/getdate.y (get_date): Apply relative times after time
96655         zone indicator, not before.  Reported by Todd A. Jacobs.
96656
96657 2000-06-13  Jim Meyering  <meyering@lucent.com>
96658
96659         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
96660
96661         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
96662
96663 2000-06-12  Paul Eggert  <eggert@twinsun.com>
96664
96665         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
96666
96667 2000-06-12  Jim Meyering  <meyering@lucent.com>
96668
96669         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
96670         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
96671         optional argument.
96672         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
96673         the optional argument, `lib'.
96674
96675 2000-06-08  Jim Meyering  <meyering@lucent.com>
96676
96677         * m4/largefile.m4: Remove file (now that it's part of autoconf).
96678
96679 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96680
96681         Rewrite largefile configuration so that we don't need to run
96682         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
96683         AC_CANONICAL_HOST in configure.in -- jmm]
96684
96685         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
96686         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
96687         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
96688         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
96689         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
96690         All uses changed.
96691         Instead of inspecting the output of getconf, try to compile the
96692         test program without and with the macro definition.
96693         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
96694         for getconf.  Instead, check for the needed flags by compiling
96695         test programs.
96696
96697 2000-06-04  Paul Eggert  <eggert@twinsun.com>
96698
96699         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
96700
96701 2000-06-04  Jim Meyering  <meyering@lucent.com>
96702
96703         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
96704         SunOS 4.1.4 for which gid_t is an unsigned type.
96705
96706 2000-06-03  Jim Meyering  <meyering@lucent.com>
96707
96708         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
96709         now that autoconf requires that.
96710
96711         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
96712         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
96713         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
96714
96715 2000-06-03  Jim Meyering  <meyering@lucent.com>
96716
96717         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
96718
96719 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96720
96721         * m4/glibc21.m4: New file.
96722         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
96723
96724 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
96725
96726         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
96727         newer, don't install charset.alias.
96728         * lib/config.charset: Change the Linux/glibc rules so they become empty
96729         on glibc-2.1 or newer.
96730
96731 2000-06-02  Jim Meyering  <meyering@lucent.com>
96732
96733         * lib/mountlist.c: Back out last change.  Instead, do this...
96734         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
96735         me_dummy member using the same `ignore'-testing code.
96736         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
96737         fs_type strings.
96738         From Mark D. Roth.
96739
96740 2000-05-29  Jim Meyering  <meyering@lucent.com>
96741
96742         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
96743         mounts with the `ignore' attribute.  Based on a patch from
96744         Mark D. Roth.
96745
96746 2000-05-28  Jim Meyering  <meyering@lucent.com>
96747
96748         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
96749         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96750         * m4/stat.m4: Likewise.
96751         * m4/lstat.m4: Likewise.
96752         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
96753
96754         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
96755         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
96756
96757 2000-05-26  Jim Meyering  <meyering@lucent.com>
96758
96759         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
96760
96761 2000-05-24  Jim Meyering  <meyering@lucent.com>
96762
96763         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
96764         autoconf requires that.
96765         * m4/lib-check.m4: Likewise.
96766         * m4/jm-macros.m4: Likewise.
96767         * m4/strftime.m4: Likewise.
96768
96769         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
96770         AC_CHECK_DECLS, now that autoconf requires that.
96771
96772 2000-05-22  Jim Meyering  <meyering@lucent.com>
96773
96774         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96775         * m4/lstat.m4: Likewise.
96776
96777 2000-05-22  Jim Meyering  <meyering@lucent.com>
96778
96779         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
96780
96781 2000-05-20  Jim Meyering  <meyering@lucent.com>
96782
96783         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
96784         (jm_PREREQ): Use it.
96785
96786 2000-05-18  Jim Meyering  <meyering@lucent.com>
96787
96788         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
96789         back, too, since it may have been modified by allocate_entry.
96790         (hash_delete): Rewrite to use neither the assignment operator
96791         nor the comma operator in an if-expression.
96792
96793 2000-05-15  Paul Eggert  <eggert@twinsun.com>
96794
96795         * lib/closeout.c:
96796         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
96797         Remove; no longer needed.
96798         "quotearg.h": Add include.
96799         (file_name): Do not bother to explicitly initialize to NULL; it's less
96800         efficient on some hosts.
96801         (close_stdout_status): Remove test as to whether stdout was already
96802         closed; it breaks for the case "echo x | sort >&-".
96803         Quote file name colons.
96804         Do not assume that _("write error") lacks format strings.
96805
96806 2000-05-15  Jim Meyering  <meyering@lucent.com>
96807
96808         * lib/version-etc.c (version_etc_copyright): Update the copyright
96809         string used in all --version output.
96810
96811 2000-05-14  Jim Meyering  <meyering@lucent.com>
96812
96813         * lib/closeout.c (close_stdout_set_file_name): New function.
96814         (close_stdout_status): Use new file-scoped global.
96815         Return right away if fstat says the stdout file descriptor is invalid.
96816         * lib/closeout.h (close_stdout_set_file_name): Declare.
96817
96818 2000-05-10  Jim Meyering  <meyering@lucent.com>
96819
96820         * lib/closeout.c [default_exit_status]: New file-scoped variable.
96821         (close_stdout_set_status): New function.
96822         * lib/closeout.h (close_stdout_set_status): Declare.
96823
96824 2000-05-09  Jim Meyering  <meyering@lucent.com>
96825
96826         * m4/gettext.m4: Rename this...
96827         * m4/libintl.m4: ...to this.
96828
96829 2000-05-08  Jim Meyering  <meyering@lucent.com>
96830
96831         * lib/long-options.c: Don't include closeout.h.
96832         (parse_long_options): Don't call close_stdout for --version.
96833
96834 2000-05-06  Paul Eggert  <eggert@twinsun.com>
96835
96836         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
96837         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
96838         2.1.3 bug.  This avoids a clash when files like regex.c define
96839         _GNU_SOURCE.
96840
96841 2000-05-06  Jim Meyering  <meyering@lucent.com>
96842
96843         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
96844         (AC_REPLACE_FUNCS): Add strnlen.
96845
96846         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
96847         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
96848
96849         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
96850         AC_SEARCH_LIBS call for nanosleep.
96851         (LIB_NANOSLEEP): Set and AC_SUBST.
96852
96853 2000-05-06  Jim Meyering  <meyering@lucent.com>
96854
96855         * lib/strnlen.c: Undefine __strnlen and strnlen.
96856         [!weak_alias]: Define __strnlen to strnlen.
96857
96858         * lib/atexit.c: New file, from libiberty.
96859
96860 2000-05-06  Jim Meyering  <meyering@lucent.com>
96861
96862         * lib/closeout.c (close_stdout_status): Also check for errors on the
96863         stderr stream.
96864
96865 2000-05-05  Jim Meyering  <meyering@lucent.com>
96866
96867         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
96868         AC_SEARCH_LIBS call for clock_gettime.
96869         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
96870
96871         * m4/search-libs.m4: Update from autoconf.
96872
96873         su doesn't work on Solaris 2.6.
96874         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
96875         <shadow.h>.  Reported by Dragos Harabor.
96876
96877 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
96878
96879         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
96880         memcpy instead of xmalloc, xrealloc, path_concat.
96881         (locale_charset): Treat empty environment variables as absent.
96882         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
96883
96884 2000-05-04  Jim Meyering  <meyering@lucent.com>
96885
96886         * lib/getopt.c: Update from glibc.
96887         * lib/obstack.c: Likewise.
96888         * lib/obstack.h: Likewise.
96889         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
96890         file
96891
96892         * lib/regex.h: Likewise.
96893         * lib/strndup.c: Likewise.
96894         * lib/strnlen.c: New file, from glibc.
96895
96896 2000-05-03  Jim Meyering  <meyering@lucent.com>
96897
96898         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96899
96900 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96901
96902         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96903         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96904         compile-time test, rather than inspecting host and OS, to
96905         decide whether to define _LARGEFILE_SOURCE.
96906
96907 2000-05-01  Jim Meyering  <meyering@lucent.com>
96908
96909         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96910
96911         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96912         Based on a patch from Bruno Haible.
96913
96914 2000-05-01  Jim Meyering  <meyering@lucent.com>
96915
96916         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96917
96918 2000-04-29  Jim Meyering  <meyering@lucent.com>
96919
96920         * lib/path-concat.c: Declare strdup only if it's not defined.
96921         * lib/canon-host.c: Likewise.
96922
96923 2000-04-28  Jim Meyering  <meyering@lucent.com>
96924
96925         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
96926         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
96927         is included first, then limits.h is included by locale.h by libintl.h.
96928         From John David Anglin.
96929
96930 2000-04-25  Jim Meyering  <meyering@lucent.com>
96931
96932         * lib/makepath.c (S_IRWXUGO): Define.
96933         (make_path): Always perform explicit chmod if MODE specifies any
96934         of the `special' permission bits.  Prompted by a bug report against
96935         install from Mate Wierdl and Joost van Baal.
96936
96937 2000-04-18  Jim Meyering  <meyering@lucent.com>
96938
96939         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
96940         (jm_PREREQ): Use it.
96941
96942 2000-04-18  Jim Meyering  <meyering@lucent.com>
96943
96944         * lib/README: New file.
96945
96946         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
96947         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
96948
96949 2000-04-17  Jim Meyering  <meyering@lucent.com>
96950
96951         Get it right :-)
96952         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
96953         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
96954         Suggestion from Akim Demaille.
96955
96956 2000-04-17  Jim Meyering  <meyering@lucent.com>
96957
96958         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
96959         the definition of it to rpl_strftime also defined-away the system's
96960         declaration.
96961
96962 2000-04-15  Jim Meyering  <meyering@lucent.com>
96963
96964         Use `C' to denote so-called `contiguous' files, the same way
96965         that tar does.
96966         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
96967         (ftypelet): Use S_ISCTG.
96968         From Michael Deutschmann.
96969
96970 2000-04-14  Jim Meyering  <meyering@lucent.com>
96971
96972         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
96973         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
96974         clobbered.
96975
96976 2000-04-14  Jim Meyering  <meyering@lucent.com>
96977
96978         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96979
96980 2000-04-13  Jim Meyering  <meyering@lucent.com>
96981
96982         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96983         AH_VERBATIM to insert required #ifndef into config.h.in.
96984         Suggestion from Akim Demaille.
96985
96986 2000-04-12  Jim Meyering  <meyering@lucent.com>
96987
96988         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96989         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96990         Christian Krackowizer.
96991
96992         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96993         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96994         (AC_SYS_LARGEFILE): Require.
96995         (AM_C_PROTOTYPES): Require.
96996
96997 2000-04-08  Jim Meyering  <meyering@lucent.com>
96998
96999         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97000         names don't conflict.  Reported by Eli Zaretskii.
97001
97002 2000-04-07  Jim Meyering  <meyering@lucent.com>
97003
97004         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97005         sys/types.h, to work around system header problems on AIX 3.2.5.
97006         From Bruno Haible.
97007
97008 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97009
97010         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97011         bug.  Deal with the different error behavior of Irix iconv.
97012
97013 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97014
97015         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97016         IRIX if the installer said otherwise.
97017
97018 2000-04-05  Jim Meyering  <meyering@lucent.com>
97019
97020         Portability tweaks required for ultrix4.3.
97021         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97022         (jm_CHECK_DECLS): Add getutent to the list of functions.
97023         (_jm_DECL_HEADERS): Add utmpx.h.
97024         From John David Anglin.
97025
97026         * m4/strftime.m4: Back out the 2000-04-02 change.
97027         Instead of that change, simply undefine putenv in the test program.
97028
97029 2000-04-05  Jim Meyering  <meyering@lucent.com>
97030
97031         Portability tweaks required for ultrix4.3.
97032         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97033         getutent.
97034         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97035         * lib/canon-host.c: Declare strdup.
97036         * lib/path-concat.c: Likewise.
97037         From John David Anglin.
97038
97039 2000-04-04  Jim Meyering  <meyering@lucent.com>
97040
97041         Be more DOS 8.3-friendly.
97042         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97043         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97044         * lib/Makefile.am: Reflect renaming.
97045         Reported by Eli Zaretskii.
97046
97047         Use a temporary file name that won't clash with `charset.alias'
97048         in the DOS 8.3 name space.
97049         * lib/Makefile.am (charset_tmp): Define.
97050         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97051         (uninstall-local): Likewise.
97052         Reported by Eli Zaretskii.
97053
97054 2000-04-03  Jim Meyering  <meyering@lucent.com>
97055
97056         * m4/gettext.m4: Fix typo in comment.
97057
97058         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97059         textutils/configure.in).  Suggestion from Paul Eggert.
97060         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97061
97062 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97063
97064         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97065         variable in the shell rather than using putenv, which isn't
97066         portable.  This avoids the configure-time inter-test dependency
97067         on the potentially-renamed putenv function.
97068
97069 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97070
97071         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97072         before checking struct stat.st_blksize, so that
97073         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97074
97075 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97076
97077         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97078         since strftime.c uses HAVE_STRFTIME to decide whether to use
97079         the underlying strftime.
97080
97081 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97082
97083         * lib/time/strftime.c (my_strftime): Make sure we call the system
97084         strftime, not ourselves, when invoking the underlying strftime.
97085
97086 2000-03-24  Jim Meyering  <meyering@lucent.com>
97087
97088         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97089         (charset_alias): Define.
97090         (install-exec-local): Factor out common code.
97091         (uninstall-local): Split lines longer than 80.
97092         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97093         (SUFFIXES): Define.
97094         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97095         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97096
97097 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97098
97099         * lib/config.charset: Output a line containing "Packages using this
97100         file".
97101         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97102         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97103         ref-del.sed): New rules.
97104
97105 2000-03-17  Jim Meyering  <meyering@lucent.com>
97106
97107         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97108         Otherwise, include <strings.h>
97109
97110 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97111
97112         * lib/unicodeio.c (utf8_wctomb): New function.
97113         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97114         format instead of in UCS-4 with platform dependent endianness.
97115
97116 2000-03-10  Jim Meyering  <meyering@lucent.com>
97117
97118         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97119         From Marco Franzen.
97120
97121 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97122
97123         * lib/savedir.c (savedir): Work even if directory size is
97124         negative; this can happen with some screwy NFS configurations.
97125
97126 2000-03-06  Jim Meyering  <meyering@lucent.com>
97127
97128         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97129         if it's NULL (because we ran out of memory).  From Bruno Haible.
97130
97131 2000-03-05  Jim Meyering  <meyering@lucent.com>
97132
97133         * lib/localcharset.c ("path-concat.h"): Include.
97134         (get_charset_aliases): Use path_concat instead of ANSI string
97135         concatenation.
97136
97137         * lib/unicodeio.h (PARAMS): Define.
97138         Use it to guard prototype.
97139
97140 2000-03-04  Jim Meyering  <meyering@lucent.com>
97141
97142         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97143         for lib/localcharset.c.
97144
97145 2000-03-04  Jim Meyering  <meyering@lucent.com>
97146
97147         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97148         installing into it.
97149         (uninstall-local): Uncomment this rule so `make distcheck' works
97150         once again.
97151
97152         * lib/unicodeio.c (<errno.h>): Include it.
97153         (errno): Declare if not defined.
97154
97155         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97156
97157         * lib/config.charset: New version, incorporating remarks from a linux
97158         i18n mailing list.  From Bruno Haible.
97159
97160 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97161
97162         * m4/codeset.m4: New file.
97163         * m4/iconv.m4: New file.
97164         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97165
97166 2000-03-03  Jim Meyering  <meyering@lucent.com>
97167
97168         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97169
97170 2000-03-02  Jim Meyering  <meyering@lucent.com>
97171
97172         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97173         the messages come out on separate lines.
97174
97175         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97176         rather than jm_CHECK_DECLARATIONS.
97177         * m4/decl.m4: Remove now-unused file.
97178
97179         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97180         geteuid.
97181
97182 2000-03-02  Jim Meyering  <meyering@lucent.com>
97183
97184         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97185
97186 2000-03-01  Jim Meyering  <meyering@lucent.com>
97187
97188         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97189         * lib/unicodeio.c: Likewise.
97190
97191 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97192
97193         * lib/config.charset: New file.
97194         * lib/localcharset.c: New file.
97195         * lib/unicodeio.h, lib/unicodeio.c: New files.
97196         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97197         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97198         (noinst_HEADERS): Add unicodeio.h.
97199         (all-local, install-exec-local, charset.alias): New targets.
97200
97201 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97202
97203         * lib/quotearg.c (ALERT_CHAR): New macro.
97204         (quotearg_buffer_restyled): Use it.
97205
97206 2000-02-27  Jim Meyering  <meyering@lucent.com>
97207
97208         * m4/check-decl.m4: Add getenv to the list.
97209
97210 2000-02-27  Jim Meyering  <meyering@lucent.com>
97211
97212         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97213         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97214
97215         * lib/backupfile.c: Guard inclusion of stdlib.h with
97216         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97217         Declare malloc if needed.
97218
97219         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97220         `#ifndef HAVE_DECL..'
97221         now that autoconf always defines the HAVE_DECL_ symbols.
97222         * lib/human.c: Likewise.
97223         * lib/same.c: Likewise.
97224         * lib/strtoumax.c: Likewise.
97225
97226         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97227         declaration check was not run.
97228         * lib/hash.c: Likewise.
97229         * lib/human.c: Likewise.
97230         * lib/same.c: Likewise.
97231         * lib/strtoumax.c: Likewise.
97232
97233         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97234         `.', then first look up the entire `.'-containing string as a login
97235         name.
97236
97237 2000-02-23  Jim Meyering  <meyering@lucent.com>
97238
97239         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97240         in place of my hack.
97241
97242 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97243
97244         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97245         (textint): New typedef.
97246         (parser_control): Member year changed from int to textint.
97247         All uses changed.
97248         (YYSTYPE): Removed; replaced by %union with int and textint members.
97249         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97250         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97251         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97252         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97253         (date, number, to_year): Use width of number in digits, not its value,
97254         to determine whether it's a 2-digit year, or a 2-digit time.
97255         (yylex): Store number of digits of numeric tokens.
97256         Reported by John Kendall.
97257
97258         (parser_control): Changed from struct parser_control to typedef (for
97259         consistency).  All uses changed.
97260
97261         (tID): Removed; not used.
97262         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97263
97264 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97265
97266         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97267         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97268
97269 2000-02-12  Jim Meyering  <meyering@lucent.com>
97270
97271         * lib/userspec.c (ISDIGIT): Define it.
97272         (isdigit): Remove definition.
97273         (is_number): Use ISDIGIT, not isdigit.
97274         <libintl.h>: Include.
97275         (_ and N_): Define.
97276         (parse_user_spec): Mark translatable strings.
97277
97278 2000-02-10  Jim Meyering  <meyering@lucent.com>
97279
97280         With these changes, nanosleep.[ch] are finally enough like the other
97281         lib/* replacement files to compile on a few more losing systems.
97282
97283         * lib/nanosleep.h: Don't include config.h.
97284         Remove prototype from declaration of nanosleep.
97285         (PARAMS): Remove now-unneeded definition.
97286         * lib/nanosleep.c: #undef nanosleep.
97287         (rpl_nanosleep): Rename from nanosleep.
97288
97289 2000-02-10  Jim Meyering  <meyering@lucent.com>
97290
97291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97292         gnu_nanosleep to rpl_nanosleep.
97293
97294 2000-02-09  Jim Meyering  <meyering@lucent.com>
97295
97296         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97297         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97298
97299 2000-02-08  Akim Demaille  <akim@epita.fr>
97300
97301         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97302         `[' and `]' and remove uses of `changequote'.
97303         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97304         (AC_SYS_LARGEFILE): Likewise.
97305         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97306         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97307         of changequote.
97308         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97309         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97310         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97311         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97312
97313 2000-02-05  Jim Meyering  <meyering@lucent.com>
97314
97315         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97316         Remove explicit use of AC_HEADER_TIME.  It is required by
97317         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97318         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97319         in autoconf whereby the expansion of the latter ended up preceding
97320         the expansion of its prerequisite, AC_HEADER_TIME.
97321         Reported by Volker Borchert.
97322
97323 2000-02-03  Jim Meyering  <meyering@lucent.com>
97324
97325         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97326
97327 2000-02-03  Jim Meyering  <meyering@lucent.com>
97328
97329         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97330         rather than with `#if HAVE_UTMPNAME'.
97331
97332 2000-02-02  Jim Meyering  <meyering@lucent.com>
97333
97334         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97335         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97336         Reported by Eli Zaretskii.
97337
97338 2000-02-01  Jim Meyering  <meyering@lucent.com>
97339
97340         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97341
97342 2000-01-31  Jim Meyering  <meyering@lucent.com>
97343
97344         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97345         functions.  Add the time.h and sys/time.h headers along with the
97346         AC_REQUIRE'ment of AC_HEADER_TIME.
97347
97348 2000-01-31  Jim Meyering  <meyering@lucent.com>
97349
97350         * lib/nanosleep.h (nanosleep): Guard declaration with
97351         `#if ! HAVE_DECL_NANOSLEEP'.
97352         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97353         the declaration in that vendor's sys/timers.h.
97354         Reported by Christian Krackowizer.
97355
97356         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97357         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97358         (ISPRINT): Likewise.
97359         Reported by Tom Tromey.
97360
97361 2000-01-30  Jim Meyering  <meyering@lucent.com>
97362
97363         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97364
97365         * m4/prereq.m4 (utmp_includes): Define.
97366         Check for ut_user and ut_name members in both struct utmpx
97367         and struct utmp.
97368
97369 2000-01-30  Jim Meyering  <meyering@lucent.com>
97370
97371         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97372         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97373         header files where only utmpx.ut_user is declared.
97374
97375         * lib/readutmp.h (UT_USER): Define.
97376
97377 2000-01-29  Jim Meyering  <meyering@lucent.com>
97378
97379         * m4/lib-check.m4: New file containing library-related checks from
97380         fileutils and sh-utils (textutils had none).
97381
97382 2000-01-28  Jim Meyering  <meyering@lucent.com>
97383
97384         * m4/perl.m4: Change format of warning message to look more like that
97385         from the missing script.  Suggestion from François Pinard.
97386
97387 2000-01-25  Jim Meyering  <meyering@lucent.com>
97388
97389         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97390         well as time.h in the compile check.
97391         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97392         Fix typo in cross-compiling case: s/yes/no/.
97393
97394 2000-01-23  Jim Meyering  <meyering@lucent.com>
97395
97396         * m4/jm-macros.m4: Move df-related tests here from
97397         fileutils/configure.in
97398
97399         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97400         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97401
97402         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97403         s/space/ac_fsusage_space/.
97404         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97405
97406         * m4/ftruncate.m4: New file (derived from part of
97407         fileutils/configure.in).
97408         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97409         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97410
97411         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97412         AC_SUBST these here, rather than just in sh-util/configure.in, so
97413         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97414         all the same.
97415         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97416         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97417         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97418         (AC_SUBST(POW_LIBM)): Likewise.
97419         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97420
97421 2000-01-23  Jim Meyering  <meyering@lucent.com>
97422
97423         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97424         obstack.c.
97425
97426 2000-01-22  Jim Meyering  <meyering@lucent.com>
97427
97428         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97429
97430         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97431
97432         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97433         configure.in
97434         (AC_CHECK_HEADERS): Likewise for sh-utils.
97435         (AC_CHECK_HEADERS): Likewise for textutils.
97436         Merge the three lists of headers.
97437
97438         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97439         from fileutils' configure.in.
97440
97441         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97442         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97443         check-decl.m4.
97444
97445         * m4/check-decl.m4: Use #if rather than #ifdef.
97446         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97447         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97448         (_jm_DECL_HEADERS): Define new function.
97449         (jm_CHECK_DECLARATIONS): Require it.
97450
97451 2000-01-22  Jim Meyering  <meyering@lucent.com>
97452
97453         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97454         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97455         Required for some AIX systems.  Reported by Christian Krackowizer.
97456         [TESTING] (main): New function.
97457
97458         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97459         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97460         letters.
97461
97462         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97463         iswprint.
97464
97465         * lib/strverscmp.c (ISDIGIT): Define.
97466         (strverscmp): Use ISDIGIT, not isdigit.
97467
97468 2000-01-19  Jim Meyering  <meyering@lucent.com>
97469
97470         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97471         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97472         defines `struct timespec' in <sys/time.h>
97473
97474         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97475         Thanks to Akim for explaining.
97476
97477 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97478
97479         * lib/nanosleep.c (nanosleep):
97480         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97481         POSIX.1 doesn't require SA_INTERRUPT and some systems
97482         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97483         it's been part of POSIX.1 since day 1 (in 1988).
97484
97485 2000-01-17  Jim Meyering  <meyering@lucent.com>
97486
97487         * lib/interlock: Remove unused file.  Reported by François Pinard.
97488
97489 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97490
97491         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97492         alert, backslash, formfeed, and vertical tab unnecessarily in
97493         shell quoting style.
97494
97495 2000-01-16  Jim Meyering  <meyering@lucent.com>
97496
97497         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97498         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97499         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97500         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97501
97502 2000-01-16  Jim Meyering  <meyering@lucent.com>
97503
97504         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97505         because the latter didn't work.
97506
97507 2000-01-15  Jim Meyering  <meyering@lucent.com>
97508
97509         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
97510         (AC_REPLACE_FUNCS): Add memcpy and memset.
97511         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
97512         Add strpbrk.
97513         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
97514
97515 2000-01-12  Jim Meyering  <meyering@lucent.com>
97516
97517         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
97518         (jm_PREREQ): Use it.
97519         (jm_PREREQ_READUTMP): New macro.
97520         (jm_PREREQ): Use it.
97521
97522 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97523
97524         Quote multibyte characters correctly.
97525         * m4/c-bs-a.m4: New file.
97526         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
97527         (jm_PREREQ): Use it.
97528
97529 2000-01-11  Paul Eggert  <eggert@twinsun.com>
97530
97531         * m4/uintmax_t.m4: Port to autoconf 2.13.
97532
97533 2000-01-08  Jim Meyering  <meyering@ascend.com>
97534
97535         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
97536         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
97537
97538 2000-01-04  Jim Meyering  <meyering@ascend.com>
97539
97540         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
97541         jm_STRUCT_DIRENT_D_TYPE.
97542         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
97543         jm_STRUCT_DIRENT_D_INO.
97544         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
97545         jm_STRUCT_UTIMBUF.
97546         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
97547         renamings.
97548         * m4/utime.m4: Likewise.
97549
97550         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
97551         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
97552
97553 2000-01-03  Paul Eggert  <eggert@twinsun.com>
97554
97555         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
97556         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
97557
97558 2000-01-02  Jim Meyering  <meyering@ascend.com>
97559
97560         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
97561         remember if this is necessary.
97562
97563 1999-12-26  Jim Meyering  <meyering@ascend.com>
97564
97565         * m4/jm-macros.m4: Use it here.
97566         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
97567
97568 1999-12-23  Jim Meyering  <meyering@ascend.com>
97569
97570         * m4/jm-macros.m4: Check for clock_gettime (moved from
97571         fileutils/configure.in)
97572         Check for gettimeofday.
97573
97574 1999-12-20  Jim Meyering  <meyering@ascend.com>
97575
97576         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
97577         autoconf-2.14a-1999-12-20.
97578
97579 1999-12-19  Jim Meyering  <meyering@ascend.com>
97580
97581         * m4/lstat-slash.m4: New file.
97582         * m4/jm-macros.m4: Use the new macro:
97583         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97584
97585 1999-12-07  Jim Meyering  <meyering@ascend.com>
97586
97587         * m4/perl.m4: Require that File::Compare be available, too.
97588         Too many systems seem to lack it.
97589
97590         * m4/strftime.m4: Add checks for most of the cpp macros tested in
97591         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
97592
97593 1999-11-18  Paul Eggert  <eggert@twinsun.com>
97594
97595         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
97596         problem with the QNX 4.25 shell, which doesn't propagate exit
97597         status of failed commands inside shell assignments.
97598
97599 1999-11-17  Jim Meyering  <meyering@ascend.com>
97600
97601         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
97602
97603 1999-11-07  Jim Meyering  <meyering@ascend.com>
97604
97605         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
97606
97607 1999-11-06  Jim Meyering  <meyering@ascend.com>
97608
97609         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
97610         * m4/jm-macros.m4 (jm_MACROS): Use it here.
97611
97612 1999-11-05  Jim Meyering  <meyering@ascend.com>
97613
97614         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
97615         configure.in of textutils, fileutils, and sh-utils into this one
97616         (shared between those packages) file.
97617         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
97618         AC_STRUCT_ST_BLKSIZE.
97619
97620 1999-11-03  Jim Meyering  <meyering@ascend.com>
97621
97622         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
97623         of AC_CHECK_TYPE checks includes unistd.h.
97624         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
97625         Suggestion from Akim Demaille.
97626
97627 1999-10-30  Jim Meyering  <meyering@ascend.com>
97628
97629         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
97630         m4-quoted string.
97631         * m4/ls-mntd-fs.m4: Likewise.
97632         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
97633         * m4/jm-winsz1.m4: Likewise.
97634
97635         * m4/const.m4: Remove file, since the fix made it into the experimental
97636         version of autoconf.
97637         * m4/mktime.m4: Likewise.
97638
97639         * m4/check-type.m4: Remove file, now that the latest version of
97640         AC_CHECK_TYPE takes a third arg to specify additional #includes.
97641
97642         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
97643         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
97644         AC_CHECK_TYPE.
97645
97646 1999-10-04  Jim Meyering  <meyering@ascend.com>
97647
97648         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
97649
97650 1999-09-22  Paul Eggert  <eggert@twinsun.com>
97651
97652         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
97653         2.95.1 bug with HP-UX 10.20.
97654
97655 1999-09-17  Jim Meyering  <meyering@ascend.com>
97656
97657         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
97658         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
97659         due to missing strdup (against sh-utils-2.0).
97660
97661 1999-08-29  Jim Meyering  <meyering@ascend.com>
97662
97663         * m4/jm-macros.m4: Require jm_BISON.
97664         * m4/bison.m4: New file.
97665
97666 1999-08-17  Paul Eggert  <eggert@twinsun.com>
97667
97668         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
97669         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
97670
97671 1999-08-05  Jim Meyering  <meyering@ascend.com>
97672
97673         * m4/getline.m4: Rename test file from conftestdata to conftest.data
97674         to avoid conflicts with `conftest' on 8+3 filesystems.
97675         Suggestion from Eli Zaretskii.
97676
97677 1999-08-04  Jim Meyering  <meyering@ascend.com>
97678
97679         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
97680         fileutils and sh-utils (textutils's getline test was inadequate).
97681         (AM_FUNC_GETLINE): Run this test.
97682         (AC_CHECK_FUNCS): Check for getdelim.
97683         Reported by Bob Proulx.
97684
97685 1999-08-02  Jim Meyering  <meyering@ascend.com>
97686
97687         * m4/jm-macros.m4: Add a comment.
97688
97689 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97690
97691         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
97692         <inttypes.h> defines strtoumax as a macro (and not as a
97693         function).
97694
97695 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97696
97697         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
97698         that we can shift, multiply and divide unsigned long long
97699         values; Ultrix cc can't do it.
97700
97701 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97702
97703         * m4/mktime.m4: New file, which is a preview of what should appear
97704         in the next public autoconf release.
97705
97706 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97707
97708         * m4/lfs.m4: Remove this file.
97709         * m4/largefile.m4: New file.  It contains the old contents of
97710         lfs.m4, except that all names with prefix AC_LFS have been
97711         changed to use the prefix AC_SYS_LARGEFILE instead, to be
97712         compatible with future autoconf versions.  Also, some minor m4
97713         quoting problems have been fixed.
97714
97715 1999-08-01  Paul Eggert  <eggert@twinsun.com>
97716
97717         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
97718         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
97719         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
97720         and simplify the shell code.
97721
97722 1999-08-01  Jim Meyering  <meyering@ascend.com>
97723
97724         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
97725         m4.
97726
97727 1999-07-20  Jim Meyering  <meyering@ascend.com>
97728
97729         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
97730
97731 1999-07-15  Jim Meyering  <meyering@ascend.com>
97732
97733         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
97734
97735 1999-05-22  Jim Meyering  <meyering@ascend.com>
97736
97737         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
97738
97739 1999-05-20  Jim Meyering  <meyering@ascend.com>
97740
97741         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
97742         Add a colon after each `then' in case $4 is empty.
97743
97744 1999-05-16  Jim Meyering  <meyering@ascend.com>
97745
97746         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
97747
97748 1999-05-10  Jim Meyering  <meyering@ascend.com>
97749
97750         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
97751
97752         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
97753         AC_FUNC_MKTIME.
97754
97755 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
97756
97757         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
97758
97759 1999-05-04  Paul Eggert  <eggert@twinsun.com>
97760
97761         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
97762         not CPPFLAGS, so that linking works correctly in IRIX.
97763
97764 1999-04-30  Paul Eggert  <eggert@twinsun.com>
97765
97766         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
97767
97768 1999-04-20  Paul Eggert  <eggert@twinsun.com>
97769
97770         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
97771         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
97772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
97773         jm_AC_TYPE_UNSIGNED_LONG_LONG.
97774         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
97775
97776         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
97777
97778 1999-04-20  Jim Meyering  <meyering@ascend.com>
97779
97780         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
97781         AC_REPLACE xstroull if necessary.  From Paul Eggert.
97782         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
97783
97784 1999-04-18  Jim Meyering  <meyering@ascend.com>
97785
97786         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
97787         * m4/jm-macros.m4: Use it.
97788
97789 1999-04-06  Jim Meyering  <meyering@ascend.com>
97790
97791         * m4/strftime.m4: Remove test for %f.
97792
97793 1999-03-29  Jim Meyering  <meyering@ascend.com>
97794
97795         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
97796         superset of the AC_TYPE_* checks in the textutils, fileutils,
97797         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
97798         AC_TYPE_PID_T.
97799
97800 1999-03-28  Jim Meyering  <meyering@ascend.com>
97801
97802         * m4/jm-macros.m4: Define GNU_PACKAGE here.
97803         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
97804         replaced e.g., in the *.sh files of the sh-utils.
97805
97806 1999-03-20  Jim Meyering  <meyering@ascend.com>
97807
97808         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
97809         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
97810         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
97811
97812 1999-03-19  Jim Meyering  <meyering@ascend.com>
97813
97814         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
97815
97816 1999-03-12  Jim Meyering  <meyering@ascend.com>
97817
97818         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
97819
97820 1999-03-07  Jim Meyering  <meyering@ascend.com>
97821
97822         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
97823         declared.
97824
97825 1999-02-17  Jim Meyering  <meyering@ascend.com>
97826
97827         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
97828         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
97829
97830 1999-02-07  Jim Meyering  <meyering@ascend.com>
97831
97832         * m4/group-member.m4: New file -- extracted from sh-utils'
97833         configure.in.
97834
97835         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
97836         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
97837
97838 1999-02-06  Jim Meyering  <meyering@ascend.com>
97839
97840         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
97841         * m4/fnmatch.m4: Likewise.
97842         * m4/getgroups.m4: Likewise.
97843         * m4/lstat.m4: Likewise.
97844         * m4/malloc.m4: Likewise.
97845         * m4/putenv.m4: Likewise.
97846         * m4/realloc.m4: Likewise.
97847         * m4/regex.m4: Likewise.
97848         * m4/stat.m4: Likewise.
97849         * m4/strftime.m4: Likewise.
97850         Suggestion from Alain Magloire.
97851
97852         * m4/chown.m4: Use `.$ac_objext', not `.o'.
97853         * m4/fnmatch.m4: Likewise.
97854         * m4/getgroups.m4: Likewise.
97855         * m4/getline.m4: Likewise.
97856         * m4/lstat.m4: Likewise.
97857         * m4/malloc.m4: Likewise.
97858         * m4/memcmp.m4: Likewise.
97859         * m4/putenv.m4: Likewise.
97860         * m4/realloc.m4: Likewise.
97861         * m4/regex.m4: Likewise.
97862         * m4/stat.m4: Likewise.
97863         * m4/strftime.m4: Likewise.
97864         Suggestion from Alain Magloire.
97865
97866         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
97867         an argument.
97868
97869         * m4/regex.m4: Add a run-time Test for proper operation of
97870         re_compile_pattern.
97871
97872 1999-01-31  Jim Meyering  <meyering@ascend.com>
97873
97874         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
97875
97876 1999-01-30  Jim Meyering  <meyering@ascend.com>
97877
97878         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
97879
97880         * m4/jm-mktime.m4: Make this a wrapper around the official
97881         AM_FUNC_MKTIME rather than my private copy, now that the official one
97882         is up to date.
97883         * m4/mktime.m4: Remove file.
97884
97885         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
97886         * m4/uptime.m4: Likewise.
97887         * m4/uintmax_t.m4: Likewise.
97888
97889 1999-01-28  Jim Meyering  <meyering@ascend.com>
97890
97891         * m4/jm-macros.m4: Use jm_AFS.
97892         * m4/afs.m4: New file (from fileutils' configure.in).
97893
97894         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
97895         * m4/chown.m4: Likewise.
97896         * m4/d-ino.m4: Likewise.
97897         * m4/d-type.m4: Likewise.
97898         * m4/fnmatch.m4: Likewise.
97899         * m4/getgroups.m4: Likewise.
97900         * m4/gettext.m4: Likewise.
97901         * m4/jm-mktime.m4: Likewise.
97902         * m4/jm-winsz2.m4: Likewise.
97903         * m4/lcmessage.m4: Likewise.
97904         * m4/ls-mntd-fs.m4: Likewise.
97905         * m4/malloc.m4: Likewise.
97906         * m4/memcmp.m4: Likewise.
97907         * m4/putenv.m4: Likewise.
97908         * m4/realloc.m4: Likewise.
97909         * m4/st_mtim.m4: Likewise.
97910         * m4/strftime.m4: Likewise.
97911
97912 1999-01-16  Jim Meyering  <meyering@ascend.com>
97913
97914         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97915         (ARGMATCH_DIE_DECL): Define.
97916
97917 1999-01-12  Jim Meyering  <meyering@ascend.com>
97918
97919         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97920         Reported by Lars Hecking.
97921
97922 1999-01-10  Jim Meyering  <meyering@ascend.com>
97923
97924         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
97925         gross kludge.
97926         * m4/inttypes_h.m4: Likewise.
97927         * m4/lstat.m4: Likewise.
97928         * m4/malloc.m4: Likewise.
97929         * m4/readdir.m4: Likewise.
97930         * m4/realloc.m4: Likewise.
97931         * m4/st_dm_mode.m4: Likewise.
97932         * m4/stat.m4: Likewise.
97933         * m4/utimbuf.m4: Likewise.
97934         * m4/utimes.m4: Likewise.
97935
97936         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
97937         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
97938         comments in config.h.in are meaningful.
97939
97940         * m4/jm-macros.m4: Require autoconf-2.13 here.
97941
97942         * m4/regex.m4: By default, don't use the included regex.c on systems
97943         with glibc 2.  Suggestion from Uli Drepper.
97944
97945 1999-01-02  Jim Meyering  <meyering@ascend.com>
97946
97947         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
97948
97949 1998-12-18  Jim Meyering  <meyering@ascend.com>
97950
97951         * m4/Makefile.am.in (Makefile.am): Simplify rule.
97952         Based on a suggestion from Lars Hecking.
97953
97954 1998-11-16  Paul Eggert  <eggert@twinsun.com>
97955
97956         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
97957
97958 1998-11-16  Jim Meyering  <meyering@ascend.com>
97959
97960         * m4/lfs.m4: Double-quote the `uname...` expression.
97961
97962 1998-11-14  Jim Meyering  <meyering@ascend.com>
97963
97964         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
97965         * m4/stat.m4: Likewise.
97966
97967 1998-11-03  Jim Meyering  <meyering@ascend.com>
97968
97969         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
97970         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
97971
97972 1998-10-18  Jim Meyering  <meyering@ascend.com>
97973
97974         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97975
97976 1998-10-17  Jim Meyering  <meyering@ascend.com>
97977
97978         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97979         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97980         calls for those previously hard-coded headers.  Instead, take a new
97981         parameter.
97982         (jm_CHECK_DECLARATIONS): Reflect interface change.
97983         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97984         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97985
97986         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97987
97988 1998-10-14  Jim Meyering  <meyering@ascend.com>
97989
97990         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97991         instead of "TZ=America/Vancouver".  From Paul Eggert.
97992
97993 1998-10-11  Jim Meyering  <meyering@ascend.com>
97994
97995         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97996         This adds a test for a recently added compatibility fix for mktime.c.
97997         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97998
97999 1998-09-27  Jim Meyering  <meyering@ascend.com>
98000
98001         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98002
98003         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98004         ../configure.in, including a change from Gordon Matzigkeit to allow
98005         cross-compiling for the Hurd.
98006
98007         * m4/glibc.m4: New file/macro to test for the GNU C Library
98008         versions 1 and 2.  From Gordon Matzigkeit.
98009         Indent.
98010
98011 1998-09-21  Jim Meyering  <meyering@ascend.com>
98012
98013         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98014
98015 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98016
98017         Port nanosecond-resolution times to UnixWare 2.1.2 and
98018         pedantic Solaris 2.6.
98019
98020         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98021         AC_STRUCT_ST_MTIM.
98022         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98023         Generate name of ns member, instead of just 1 or undef.
98024         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98025
98026 1998-08-15  Jim Meyering  <meyering@ascend.com>
98027
98028         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98029         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98030         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98031         instead of jm_TYPE_SSIZE_T.
98032
98033 1998-08-12  Jim Meyering  <meyering@ascend.com>
98034
98035         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98036
98037 1998-08-02  Jim Meyering  <meyering@ascend.com>
98038
98039         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98040         in acconfig.h manually.
98041
98042 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98043
98044         * m4/st_mtim.m4: New file.
98045
98046 1998-07-28  Jim Meyering  <meyering@ascend.com>
98047
98048         * m4/utimes.m4: Undef stat.
98049
98050 1998-07-25  Jim Meyering  <meyering@ascend.com>
98051
98052         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98053         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98054
98055 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98056
98057         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98058         uid and gid actually remain unchanged.
98059
98060 1998-07-07  Jim Meyering  <meyering@ascend.com>
98061
98062         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98063
98064 1998-07-04  Jim Meyering  <meyering@ascend.com>
98065
98066         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98067         to prove that this macro can be used in packages without regex.c.
98068
98069 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98070
98071         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98072         is to be used.
98073
98074 1998-07-03  Jim Meyering  <meyering@ascend.com>
98075
98076         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98077
98078         * m4/gettext.m4: New file -- from gettext-0.10.35.
98079         * m4/lcmessage.m4: Likewise.
98080         * m4/progtest.m4: Likewise.
98081
98082         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98083         * m4/jm-macros.m4: Require the new macro.
98084
98085 1998-06-29  Jim Meyering  <meyering@ascend.com>
98086
98087         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98088         for the definition of NGROUPS (used in a system header included
98089         by sys/mount.h).
98090
98091 1998-06-28  Jim Meyering  <meyering@ascend.com>
98092
98093         * m4/ls-mntd-fs.m4: New file.
98094         * m4/fstypename.m4: New file.
98095
98096         * m4/jm-macros.m4: Require the new macro.
98097         * m4/jm-glibc-io.m4: New file.
98098
98099 1998-05-19  Jim Meyering  <meyering@ascend.com>
98100
98101         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98102         * m4/lchown.m4: New file.
98103
98104         * m4/Makefile.am.in: New file.
98105         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98106
98107 1998-05-14  Jim Meyering  <meyering@ascend.com>
98108
98109         * m4/Makefile.am (EXTRA_DIST): Add them.
98110         * m4/jm-macros.m4: New file.
98111         * m4/utimbuf.m4: New file.
98112
98113 1998-05-12  Jim Meyering  <meyering@ascend.com>
98114
98115         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98116
98117 1998-05-11  Jim Meyering  <meyering@ascend.com>
98118
98119         * m4/isc-posix.m4: New file.
98120
98121 1998-05-10  Jim Meyering  <meyering@ascend.com>
98122
98123         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98124
98125 1998-05-09  Jim Meyering  <meyering@ascend.com>
98126
98127         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98128         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98129         with automake.
98130
98131         * m4/ssize_t.m4: New file.
98132         * m4/mktime.m4: Remove file -- the new automake has this now.
98133
98134 1998-04-26  Jim Meyering  <meyering@ascend.com>
98135
98136         * m4/assert.m4: New file.
98137         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98138
98139 1998-04-05  Jim Meyering  <meyering@ascend.com>
98140
98141         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98142         (jm_PREREQ): Use it here.
98143
98144 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98145
98146         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98147         in acconfig.h.
98148
98149 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98150
98151         * m4/prereq.m4: New file.
98152         * m4/error.m4: New file.
98153         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98154
98155 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98156
98157         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98158         cache-check for the same variable -- that defeated the purpose of
98159         the test; the test program was never run.  This was a problem only
98160         on systems with losing getline functions -- HP-UX 10.20 is one.
98161         Reported by Bjorn Helgaas.
98162
98163 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98164
98165         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98166
98167 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98168
98169         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98170
98171         * m4/const.m4: New file.  Use an initializer in this declaration
98172         typedef int charset[2]; const charset x;
98173         Reported by Bob Glickstein.
98174
98175 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98176
98177         * m4/chown.m4: Fix reversed types on -1 args to chown.
98178         From Kaveh Ghazi.
98179
98180 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98181
98182         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98183         Add lseek and memchr.
98184
98185         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98186         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98187         have a 20-character limit on names.
98188
98189 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98190
98191         * m4/inttypes_h.m4: New file.
98192         * m4/uintmax_t.m4: New file.
98193         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98194
98195
98196         -----
98197
98198         Local Variables:
98199         coding: utf-8
98200         End:
98201
98202         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98203
98204         Copying and distribution of this file, with or without
98205         modification, are permitted provided the copyright notice
98206         and this notice are preserved.